From 65d1e61e0546a5a7b42381b1f11a5ad6ed2ce145 Mon Sep 17 00:00:00 2001
From: wk
Date: 星期六, 29 六月 2024 13:50:15 +0800
Subject: [PATCH] feta:道路指引

---
 pages/customer-page/addDailyPlan/addDailyPlan.vue |   47 ++++++++++++++++++++---------------------------
 1 files changed, 20 insertions(+), 27 deletions(-)

diff --git a/pages/customer-page/addDailyPlan/addDailyPlan.vue b/pages/customer-page/addDailyPlan/addDailyPlan.vue
index e2428a1..d1f7b32 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,12 +158,12 @@
 		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;
 							})
@@ -173,27 +173,20 @@
             },
 			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