| 
					
				 | 
			
			
				@@ -847,10 +847,10 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </avue-crud> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </basic-container> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <trade-card title="杂费明细" v-if="roleName.indexOf('平台') !== -1 || roleName.indexOf('客户') !== -1 || roleName.indexOf('admin') !== -1"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <trade-card title="杂费明细" v-if="roleName.indexOf('平台') !== -1 || roleName.indexOf('客户') !== -1 || roleName.indexOf('admin') !== -1 || roleName.indexOf('车队') !== -1"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-tabs v-model="activeIndex" @tab-click="handleSelect"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-tab-pane label="应收" name="1"></el-tab-pane> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-tab-pane label="应付" name="2" v-if="roleName.indexOf('平台') !== -1 || roleName.indexOf('admin') !== -1"></el-tab-pane> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-tab-pane label="应收" name="1" v-if="roleName.indexOf('平台') !== -1 || roleName.indexOf('客户') !== -1 || roleName.indexOf('admin') !== -1"></el-tab-pane> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-tab-pane label="应付" name="2" v-if="roleName.indexOf('平台') !== -1 || roleName.indexOf('admin') !== -1 || roleName.indexOf('车队') !== -1"></el-tab-pane> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </el-tabs> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <avue-crud 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           v-if="activeIndex === '1'" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -858,7 +858,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           :option="collectionOption" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           :key="key" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           ref="collection" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          :disabled="goodsForm.status === 5" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           @resetColumn="resetColumnCollection" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           @saveColumn="saveColumnCollection" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           @row-save="(row,done,loading)=>{rowSave(row,0,done,loading)}" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -868,7 +867,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <crop-select 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               v-if="row.$cellEdit" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               v-model="row.corpId" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              :disabled="goodsForm.status === 5" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              :disabled="!((roleName.indexOf('平台') !== -1 && roleName.indexOf('分管调度') !== -1) || roleName.indexOf('admin') !== -1)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               @getCorpData="(data)=>{getfleetId(data,row)}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           ></crop-select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <span v-else>{{ row.corpName }}</span> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -877,7 +876,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <breakdown-select 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               v-if="row.$cellEdit" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               v-model="row.feeId" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              :disabled="goodsForm.status === 5" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              :disabled="!((roleName.indexOf('平台') !== -1 && roleName.indexOf('分管调度') !== -1) || roleName.indexOf('admin') !== -1)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               @selectValue="(value) => selectValue(value,row)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               :configuration="breakConfiguration"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </breakdown-select> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -887,8 +886,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               type="text" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              v-if="(roleName.indexOf('平台') !== -1 && roleName.indexOf('分管调度') !== -1) || roleName.indexOf('admin') !== -1 || (roleName.indexOf('客户') !== -1 && roleName.indexOf('业务员') !== -1)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              :disabled="goodsForm.status === 5" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              v-if="(roleName.indexOf('平台') !== -1 && roleName.indexOf('分管调度') !== -1) || roleName.indexOf('admin') !== -1" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               :icon="row.$cellEdit?'el-icon-circle-plus-outline':'el-icon-edit'" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               @click="rowCell(row,index)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           >{{ row.$cellEdit ? '保存' : '编辑' }} 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -896,8 +894,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-button type="text" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                      icon="el-icon-delete" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                      size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                     v-if="(roleName.indexOf('平台') !== -1 && roleName.indexOf('分管调度') !== -1) || roleName.indexOf('admin') !== -1 || (roleName.indexOf('客户') !== -1 && roleName.indexOf('业务员') !== -1)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                     :disabled="goodsForm.status === 5" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                     v-if="(roleName.indexOf('平台') !== -1 && roleName.indexOf('分管调度') !== -1) || roleName.indexOf('admin') !== -1" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                      @click="$refs.collection.rowDel(row,index)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           >删除 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </el-button> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -913,8 +910,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               type="primary" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               icon="el-icon-plus" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              v-if="(roleName.indexOf('平台') !== -1 && roleName.indexOf('分管调度') !== -1) || roleName.indexOf('admin') !== -1 || (roleName.indexOf('客户') !== -1 && roleName.indexOf('业务员') !== -1)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              :disabled="goodsForm.status === 5" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              v-if="(roleName.indexOf('平台') !== -1 && roleName.indexOf('分管调度') !== -1) || roleName.indexOf('admin') !== -1" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               @click="addRowCollection" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               size="small">录入明细 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </el-button> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -936,7 +932,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <crop-select 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               v-if="row.$cellEdit" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               v-model="row.corpId" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              :disabled="goodsForm.status === 5" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              :disabled="!((roleName.indexOf('平台') !== -1 && roleName.indexOf('分管调度') !== -1) || roleName.indexOf('admin') !== -1)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               @getCorpData="(data)=>{getfleetId(data,row)}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           ></crop-select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <span v-else>{{ row.corpName }}</span> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -945,7 +941,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <breakdown-select 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               v-if="row.$cellEdit" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               v-model="row.feeId" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              :disabled="goodsForm.status === 5" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              :disabled="!((roleName.indexOf('平台') !== -1 && roleName.indexOf('分管调度') !== -1) || roleName.indexOf('admin') !== -1)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               @selectValue="(value) => selectValue(value,row)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               :configuration="breakConfiguration" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           > 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -956,7 +952,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               type="text" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              :disabled="goodsForm.status === 5" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              v-if="(roleName.indexOf('平台') !== -1 && roleName.indexOf('分管调度') !== -1) || roleName.indexOf('admin') !== -1" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               :icon="row.$cellEdit?'el-icon-circle-plus-outline':'el-icon-edit'" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               @click="paymentRowCell(row,index)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           >{{ row.$cellEdit ? '保存' : '编辑' }} 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -964,7 +960,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-button type="text" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                      icon="el-icon-delete" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                      size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                     :disabled="goodsForm.status === 5" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                     v-if="(roleName.indexOf('平台') !== -1 && roleName.indexOf('分管调度') !== -1) || roleName.indexOf('admin') !== -1" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                      @click="$refs.payment.rowDel(row,index)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           >删除 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </el-button> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -980,7 +976,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               type="primary" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               icon="el-icon-plus" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              :disabled="goodsForm.status === 5" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              v-if="(roleName.indexOf('平台') !== -1 && roleName.indexOf('分管调度') !== -1) || roleName.indexOf('admin') !== -1" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               @click="addRowPayment" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               size="small">录入明细 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </el-button> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1064,7 +1060,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.findObject(this.goodsOptionFormTwo.column, "fleetRemarks").display = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (!this.typeTwo){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.collectionOption.disabled = this.paymentOption.disabled = this.goodsForm.status === 5 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // this.collectionOption.disabled = this.paymentOption.disabled = this.goodsForm.status === 5 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (this.roleName.indexOf('客户') !== -1 || this.roleName.indexOf('司机') !== -1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.goodsOptionFormTwo.disabled = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } else { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1952,6 +1948,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           label: '车号', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           prop: 'plateNo', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          width: 100, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           index: 2 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           label: '费用名称', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2045,6 +2042,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           label: '车号', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           prop: 'plateNo', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          width: 100, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           index: 2 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           label: '费用名称', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2101,6 +2099,8 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   async created() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    this.activeIndex = this.roleName.indexOf('车队') !== -1?'2':'1' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    console.log(this.activeIndex) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if (this.roleName.indexOf('客户') !== -1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.findObject(this.goodsOptionFormTwo.column, "freightPay").display = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2211,7 +2211,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.goodsOptionFormTwo.disabled = this.goodsOptionForm.disabled = this.goodsOptionFormC.disabled = this.collectionOption.disabled = this.paymentOption.disabled = this.goodsForm.status !== 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.goodsOptionFormTwo.disabled = this.goodsOptionForm.disabled = this.goodsOptionFormC.disabled = this.goodsForm.status !== 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           delete this.goodsForm.orderAddressList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           delete this.goodsForm.itemList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           delete this.goodsForm.orderFeeList 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2247,7 +2247,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.goodsOptionFormTwo.disabled = this.goodsOptionForm.disabled = this.goodsOptionFormC.disabled = this.collectionOption.disabled = this.paymentOption.disabled = this.goodsForm.status !== 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.goodsOptionFormTwo.disabled = this.goodsOptionForm.disabled = this.goodsOptionFormC.disabled = this.goodsForm.status !== 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           delete this.goodsForm.orderAddressList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           delete this.goodsForm.itemList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           delete this.goodsForm.orderFeeList 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2495,7 +2495,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.goodsOptionFormC.disabled = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.goodsOptionForm.disabled = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.goodsOptionFormTwo.disabled = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.goodsOptionFormTwo.disabled = this.goodsOptionForm.disabled = this.goodsOptionFormC.disabled = this.collectionOption.disabled = this.paymentOption.disabled = this.goodsForm.status >= 1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.goodsOptionFormTwo.disabled = this.goodsOptionForm.disabled = this.goodsOptionFormC.disabled = this.goodsForm.status >= 1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         delete this.goodsForm.orderAddressList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         delete this.goodsForm.itemList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         delete this.goodsForm.orderFeeList 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2848,6 +2848,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           type: '1', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           $cellEdit: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           corpId: this.goodsForm.corpId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          corpName: this.goodsForm.corpName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           plateNo: this.goodsForm.plateNo 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } else { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2862,6 +2863,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           type: '2', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           $cellEdit: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           corpId: this.goodsForm.corpId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          corpName: this.goodsForm.corpName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           plateNo: this.goodsForm.plateNo 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } else { 
			 |