| 
					
				 | 
			
			
				@@ -10,25 +10,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         >返回列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            class="el-button--small-yh add-customer-btn" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            type="primary" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            :disabled="disabled" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            style="margin-right: 70px;" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            @click="editCustomer" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        >提交 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            class="el-button--small-yh add-customer-btn" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            type="primary" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            :disabled="disabled" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            @click="editCustomer" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        >保存 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <containerTitle 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         title="起止地信息" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -91,11 +72,16 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              icon="el-icon-delete" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               type="text" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               @click="designate(row, index)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              v-if="!row.$cellEdit" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          >指派</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              v-if="row.status === 0" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          >调 度</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              type="text" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              @click="cancelDesignate(row, index)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              v-if="row.status===1" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          >取消调度</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </avue-crud> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </basic-container> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -217,7 +203,13 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import {getLazyTree} from "@/api/base/region"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import {saveDelegationList, detailDelegationList, removeCollection} from "@/api/landTransportation"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  saveDelegationList, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  detailDelegationList, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  removeCollection, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  dispatchCollection, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  cancelDispatchCollection 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} from "@/api/landTransportation"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   props: { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -297,12 +289,12 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             label: '状态', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             width: 200, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             type: 'select', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            dicUrl: "/api/blade-client/corpsdesc/fleet-list", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            dicUrl: "/api/blade-system/dict-biz/dictionary?code=land_order_status", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             props: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              label: "cname", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              value: "id" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              label: "dictValue", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              value: "dictKey" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            cell: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            dataType: "string", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             prop: 'status' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           },{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             label: '车队', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -635,6 +627,30 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    //刷新数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    refreshData(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      detailDelegationList({id: this.id, kind: '2'}).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.goodsForm = res.data.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.tableData = res.data.data.orderAddressList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.entrustList = res.data.data.orderItemList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.goodsList = res.data.data.orderItemList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (res.data.data.orderFeeList.length > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          res.data.data.orderFeeList.forEach(item => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (item.type == 1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.collectionList.push(item) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.paymentList.push(item) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        delete this.goodsForm.orderAddressList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        delete this.goodsForm.orderItemList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        delete this.goodsForm.orderFeeList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.tableData.forEach(item => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if (item.region) item.region = item.region.split(',') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //切换收付费 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleSelect(tab, event) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.activeIndex = tab.name 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -644,14 +660,39 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$refs.crudContact.rowCell(row, index) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       done() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    //箱信息指派 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    //箱信息调度 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     designate(row){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.$confirm('是否确定指派车队', '提示', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (row.fleetId){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$confirm('是否确定调度', '提示', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          confirmButtonText: '确定', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          cancelButtonText: '取消', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          type: 'warning' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }).then(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          dispatchCollection(row).then(res=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$message.success('操作成功'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.refreshData() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }).catch(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$message({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            type: 'info', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            message: '已取消' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$message.warning('请选择车队'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    //取消调度 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    cancelDesignate(row){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.$confirm('是否确定取消调度', '提示', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         confirmButtonText: '确定', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         cancelButtonText: '取消', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         type: 'warning' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }).then(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        console.log('11111') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        cancelDispatchCollection({id:row.id}).then(res=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$message.success('操作成功'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.refreshData() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }).catch(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$message({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           type: 'info', 
			 |