From 156a667b09390614c685c15a3c42b035e7a1d269 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期一, 15 七月 2024 14:58:13 +0800 Subject: [PATCH] fix:库管日计划页面详情 列表修改样式 --- pages/customer-page/addDailyPlan/addDailyPlan.vue | 57 +++++++++++++++++++++++++++++---------------------------- 1 files changed, 29 insertions(+), 28 deletions(-) diff --git a/pages/customer-page/addDailyPlan/addDailyPlan.vue b/pages/customer-page/addDailyPlan/addDailyPlan.vue index e2428a1..cc9f5ad 100644 --- a/pages/customer-page/addDailyPlan/addDailyPlan.vue +++ b/pages/customer-page/addDailyPlan/addDailyPlan.vue @@ -47,20 +47,19 @@ <uni-table border stripe emptyText="鏆傛棤鏇村鏁版嵁"> <uni-tr> - <uni-th align="left">璁㈠崟缂栧彿</uni-th> - <uni-th align="left">绫诲瀷</uni-th> - <uni-th align="left">浜у搧鍚嶇О</uni-th> - <uni-th align="left">鍦哄湴</uni-th> - <uni-th align="left">瀹㈡埛</uni-th> + <uni-th align="center">浜у搧鍚嶇О</uni-th> + <uni-th align="center">绫诲瀷</uni-th> + <uni-th align="center">浠撳簱</uni-th> </uni-tr> - <uni-tr v-for="(item, index) in subDataList[0].tmOrderList" :key="index"> - <uni-td>{{ item.orderCode }}</uni-td> + <uni-tr v-for="(item, index) in subDataList" :key="index"> + <uni-td align="center"> + <view>{{ item.productName}}</view></uni-td> <uni-td> <view class="name">{{ item.orderType }}</view> </uni-td> - <uni-td align="center">{{ item.productName }}</uni-td> - 聽 <uni-td align="center">{{ item.filedName }}</uni-td> - <uni-td align="center">{{ item.customerName }}</uni-td> + + 聽 <uni-td align="center"> + <view>{{ item.bunkerName }}</view></uni-td> </uni-tr> </uni-table> </view> @@ -109,6 +108,7 @@ </view> </u-popup> </view> --> + </view> </template> @@ -158,42 +158,43 @@ methods: { //鏌ヨ璁㈠崟 getDingdan(){ - this.$reqGet('getAppOrderList') + this.$reqGet('getAppOrderList',{orderType:'澶栭攢'}) .then(res => { uni.hideLoading() if (res.code == 0) { this.customerNameList = res.data.map(item=>{ - item.text = item.productName + '-' + item.orderCode; + item.text = (item.productNames ? item.productNames : item.productName) + '-' + item.orderCode; item.value = item.id; return item; - }) + }); + if(this.customerNameList.length === 1){ + this.deptId = this.customerNameList[0].value; //閫夋嫨褰撳墠 + if(this.deptId){ + this.deptChange(this.deptId); + } + + } + console.log(this.customerNameList,'') } }) }, deptChange(e) { console.log(e,'eee'); - this.subDataList = this.customerNameList.filter(item=>item.id === e); + this.subDataList = this.customerNameList.filter(item=>item.id === e).length ? + this.customerNameList.filter(item=>item.id === e)[0].tmOrderList : []; + ; }, confirmBuild() { let form = { - carNo: uni.getStorageSync('carNo'), - coalName: this.productName, - deptId: this.deptId, //閮ㄩ棬Id - deptName: this.deptName, //閮ㄩ棬鍚嶇О - filedId: this.filedId, //鐓ゅ満Id - filedName: this.filedName, //鐓ゅ満鍚嶇О - orderType: "澶栬喘", - sendDate: this.sendDate, //鍙戣繍鏃堕棿 - xsUserId1: uni.getStorageSync('userId'), //鐢ㄦ埛id - isPretendDischar: 1, //鏄惁鑳借鍗� 1宸茬粡纭瑁呭嵏 0涓嶉渶瑕佽鍗� - isSpecial: 1, //鏄惁鏄壒浜у搧 1鐗规畩浜у搧 0涓嶆槸鐗逛娇浜у搧 - customerId: this.customerId, - customerName: this.customerName + orderId:this.deptId, + carNum:this.value, + sendDate:this.sendDate, + sendSign:0, } this.buildLoading = true - this.$reqPost('saveDeliveryNote', form, 'json').then(res => { + this.$reqPost('addDeliveryPlan', form, 'json').then(res => { this.buildLoading = false if (res.code == 0) { this.$u.toast('鍒涘缓鎴愬姛') -- Gitblit v1.9.1