chenrui 3 年之前
父節點
當前提交
a4755cd2a6
共有 4 個文件被更改,包括 21 次插入10 次删除
  1. 13 0
      api/shelfReplenish.js
  2. 1 1
      config/index.js
  3. 1 1
      pages.json
  4. 6 8
      pages/replenishmentManage/replenishmentList.vue

+ 13 - 0
api/shelfReplenish.js

@@ -0,0 +1,13 @@
+import axios from '@/libs/axios.js'
+
+// 补货单  列表
+export const shelfReplenishList = (params) => {
+	let url = `shelfReplenish/queryPage/${params.pageNo}/${params.pageSize}`
+	delete params.pageNo
+	delete params.pageSize
+	return axios.request({
+		url: url,
+		data: params,
+		method: 'post'
+	})
+}

+ 1 - 1
config/index.js

@@ -6,7 +6,7 @@ const getConfig = (theme) => {
 			themePath: 'default',
 			pro_URL: 'https://car.zyucgj.com/saas/clz/', // 生产地址
 			uat_URL: 'http://md.test.zyucgj.com/saas/clz/', // 预发布地址
-			dev_URL: 'http://192.168.16.102:9110/saas/clz/', // 本地地址
+			dev_URL: 'http://192.168.16.107:7300/mock/61aad8ea5688cb3878d81e39/qpls-md/', // 本地地址
 			appName: 'iSCM智慧供应链', // app 名称
 			company: '陕西山海高科信息技术有限公司',
 			loadText:{

+ 1 - 1
pages.json

@@ -75,7 +75,7 @@
         }
 		,{
 		    "path" : "pages/replenishmentManage/replenishmentList",
-		    "style" :                                                                                    
+		    "style" :
 		    {
 		        "navigationBarTitleText": "补货管理",
 		        "enablePullDownRefresh": false

+ 6 - 8
pages/replenishmentManage/replenishmentList.vue

@@ -1,8 +1,7 @@
 <template>
 	<view class="pagesCons">
 		    <view class="utabs">
-				<u-tabs-swiper ref="uTabs" :list="tabList" name="dispName" :current="current" @change="tabsChange" :is-scroll="false"
-				 swiperWidth="750"></u-tabs-swiper>
+				<u-tabs-swiper ref="uTabs" :list="tabList" name="dispName" :current="current" @change="tabsChange" :is-scroll="false" swiperWidth="750"></u-tabs-swiper>
 			</view>
 			<swiper class="check-list" :current="swiperCurrent" @transition="transition" @change="swiperChange" @animationfinish="animationfinish">
 				<swiper-item class="swiper-item" v-for="(tabs, index) in tabList" :key="index">
@@ -12,8 +11,7 @@
 						v-if="index==current"
 						v-for="(item,sindex) in 20" 
 						:key="item.id+'-'+sindex"
-						@click="viewRow(item)"
-						>
+						@click="viewRow(item)" >
 							<view class="check-row">
 								<view>西安车领主常青二路数字货架</view>
 								<view>
@@ -37,7 +35,7 @@
 </template>
 
 <script>
-	// import { getBackLogList } from '@/api/backLog.js'
+	import { shelfReplenishList } from '@/api/shelfReplenish.js'
 	export default {
 		components: {
 		},
@@ -63,7 +61,7 @@
 						status: ''
 					  },
 					  {
-					    dispName: '待入库',
+					    dispName: '待签收',
 					  	typeId: 3,
 						status: ''
 					  },
@@ -90,7 +88,7 @@
 		onLoad() {
 			// 监听整改完成后刷新事件
 			uni.$on('refreshBL',this.getRow)
-			// this.getRow(1)
+			this.getRow(1)
 		},
 		onUnload() {
 			uni.$off('refreshBL',this.getRow)
@@ -144,7 +142,7 @@
 			    billState: this.tabList[this.current].status,
 			  }
 			  this.status = "loading"
-			  getBackLogList(params).then(res => {
+			  shelfReplenishList(params).then(res => {
 				if (res.status == 200) {
 				  if(this.pageNo>1){
 					  this.list = this.list.concat(res.data.list || [])