|  | @@ -326,6 +326,131 @@
 | 
	
		
			
				|  |  |        <!--      </avue-crud>-->
 | 
	
		
			
				|  |  |        <!--    </basic-container>-->
 | 
	
		
			
				|  |  |  </span>
 | 
	
		
			
				|  |  | +    <containerTitle title="杂费明细"></containerTitle>
 | 
	
		
			
				|  |  | +    <basic-container>
 | 
	
		
			
				|  |  | +      <el-tabs v-model="activeIndex" @tab-click="handleSelect">
 | 
	
		
			
				|  |  | +        <el-tab-pane label="应收" name="1"></el-tab-pane>
 | 
	
		
			
				|  |  | +        <el-tab-pane label="应付" name="2"></el-tab-pane>
 | 
	
		
			
				|  |  | +      </el-tabs>
 | 
	
		
			
				|  |  | +      <avue-crud
 | 
	
		
			
				|  |  | +          v-if="activeIndex === '1'"
 | 
	
		
			
				|  |  | +          :data="collectionList"
 | 
	
		
			
				|  |  | +          :key="key"
 | 
	
		
			
				|  |  | +          :option="collectionOption"
 | 
	
		
			
				|  |  | +          ref="collection"
 | 
	
		
			
				|  |  | +          @resetColumn="resetColumnCollection"
 | 
	
		
			
				|  |  | +          @saveColumn="saveColumnCollection"
 | 
	
		
			
				|  |  | +          @row-save="(row,done,loading)=>{rowSave(row,0,done,loading)}"
 | 
	
		
			
				|  |  | +          @row-update="rowSave"
 | 
	
		
			
				|  |  | +          @row-del="makeDel">
 | 
	
		
			
				|  |  | +        <template slot-scope="{row}" slot="corpId">
 | 
	
		
			
				|  |  | +          <crop-select
 | 
	
		
			
				|  |  | +              v-if="row.$cellEdit"
 | 
	
		
			
				|  |  | +              v-model="row.corpId"
 | 
	
		
			
				|  |  | +              @getCorpData="(data)=>{getfleetId(data,row)}"
 | 
	
		
			
				|  |  | +          ></crop-select>
 | 
	
		
			
				|  |  | +          <span v-else>{{ row.corpName }}</span>
 | 
	
		
			
				|  |  | +        </template>
 | 
	
		
			
				|  |  | +        <template slot="plateNoHeader" slot-scope="{column}">
 | 
	
		
			
				|  |  | +          {{ column.label }}<span style="color:#F56C6C">*</span>
 | 
	
		
			
				|  |  | +        </template>
 | 
	
		
			
				|  |  | +        <template slot-scope="{row}" slot="feeId">
 | 
	
		
			
				|  |  | +          <breakdown-select
 | 
	
		
			
				|  |  | +              v-if="row.$cellEdit"
 | 
	
		
			
				|  |  | +              v-model="row.feeId"
 | 
	
		
			
				|  |  | +              @selectValue="(value) => selectValue(value,row)"
 | 
	
		
			
				|  |  | +              :configuration="breakConfiguration"
 | 
	
		
			
				|  |  | +          >
 | 
	
		
			
				|  |  | +          </breakdown-select>
 | 
	
		
			
				|  |  | +          <span v-else>{{ row.feeName }}</span>
 | 
	
		
			
				|  |  | +        </template>
 | 
	
		
			
				|  |  | +        <template slot-scope="{row,index}" slot="menu">
 | 
	
		
			
				|  |  | +          <el-button
 | 
	
		
			
				|  |  | +              type="text"
 | 
	
		
			
				|  |  | +              size="small"
 | 
	
		
			
				|  |  | +              :icon="row.$cellEdit?'el-icon-circle-plus-outline':'el-icon-edit'"
 | 
	
		
			
				|  |  | +              @click="rowCell(row,index)"
 | 
	
		
			
				|  |  | +          >{{ row.$cellEdit ? '保存' : '编辑' }}
 | 
	
		
			
				|  |  | +          </el-button>
 | 
	
		
			
				|  |  | +          <el-button type="text"
 | 
	
		
			
				|  |  | +                     icon="el-icon-delete"
 | 
	
		
			
				|  |  | +                     size="small"
 | 
	
		
			
				|  |  | +                     @click="$refs.collection.rowDel(row,index)"
 | 
	
		
			
				|  |  | +          >删除
 | 
	
		
			
				|  |  | +          </el-button>
 | 
	
		
			
				|  |  | +          <el-button
 | 
	
		
			
				|  |  | +              size="small"
 | 
	
		
			
				|  |  | +              type="text"
 | 
	
		
			
				|  |  | +              icon="el-icon-s-order"
 | 
	
		
			
				|  |  | +              @click="annexOpen(row, index)"
 | 
	
		
			
				|  |  | +          >附 件
 | 
	
		
			
				|  |  | +          </el-button>
 | 
	
		
			
				|  |  | +        </template>
 | 
	
		
			
				|  |  | +        <template slot="menuLeft">
 | 
	
		
			
				|  |  | +          <el-button type="primary" icon="el-icon-plus" @click="addRowCollection"
 | 
	
		
			
				|  |  | +                     size="small">录入明细
 | 
	
		
			
				|  |  | +          </el-button>
 | 
	
		
			
				|  |  | +        </template>
 | 
	
		
			
				|  |  | +      </avue-crud>
 | 
	
		
			
				|  |  | +      <avue-crud
 | 
	
		
			
				|  |  | +          v-if="activeIndex === '2'"
 | 
	
		
			
				|  |  | +          :data="paymentList"
 | 
	
		
			
				|  |  | +          :option="paymentOption"
 | 
	
		
			
				|  |  | +          ref="payment"
 | 
	
		
			
				|  |  | +          @resetColumn="resetColumnPayment"
 | 
	
		
			
				|  |  | +          @saveColumn="saveColumnPayment"
 | 
	
		
			
				|  |  | +          @row-save="(row,done,loading)=>{rowSave(row,0,done,loading)}"
 | 
	
		
			
				|  |  | +          @row-update="rowSave"
 | 
	
		
			
				|  |  | +          @row-del="feeDel"
 | 
	
		
			
				|  |  | +      >
 | 
	
		
			
				|  |  | +        <template slot-scope="{row}" slot="corpId">
 | 
	
		
			
				|  |  | +          <crop-select
 | 
	
		
			
				|  |  | +              v-if="row.$cellEdit"
 | 
	
		
			
				|  |  | +              v-model="row.corpId"
 | 
	
		
			
				|  |  | +              @getCorpData="(data)=>{getfleetId(data,row)}"
 | 
	
		
			
				|  |  | +          ></crop-select>
 | 
	
		
			
				|  |  | +          <span v-else>{{ row.corpName }}</span>
 | 
	
		
			
				|  |  | +        </template>
 | 
	
		
			
				|  |  | +        <template slot-scope="{row}" slot="feeId">
 | 
	
		
			
				|  |  | +          <breakdown-select
 | 
	
		
			
				|  |  | +              v-if="row.$cellEdit"
 | 
	
		
			
				|  |  | +              v-model="row.feeId"
 | 
	
		
			
				|  |  | +              @selectValue="(value) => selectValue(value,row)"
 | 
	
		
			
				|  |  | +              :configuration="breakConfiguration"
 | 
	
		
			
				|  |  | +          >
 | 
	
		
			
				|  |  | +          </breakdown-select>
 | 
	
		
			
				|  |  | +          <span v-else>{{ row.feeName }}</span>
 | 
	
		
			
				|  |  | +        </template>
 | 
	
		
			
				|  |  | +        <template slot-scope="{row,index}" slot="menu">
 | 
	
		
			
				|  |  | +          <el-button
 | 
	
		
			
				|  |  | +              type="text"
 | 
	
		
			
				|  |  | +              size="small"
 | 
	
		
			
				|  |  | +              :icon="row.$cellEdit?'el-icon-circle-plus-outline':'el-icon-edit'"
 | 
	
		
			
				|  |  | +              @click="paymentRowCell(row,index)"
 | 
	
		
			
				|  |  | +          >{{ row.$cellEdit ? '保存' : '编辑' }}
 | 
	
		
			
				|  |  | +          </el-button>
 | 
	
		
			
				|  |  | +          <el-button type="text"
 | 
	
		
			
				|  |  | +                     icon="el-icon-delete"
 | 
	
		
			
				|  |  | +                     size="small"
 | 
	
		
			
				|  |  | +                     :disabled="goodsForm.status === 1"
 | 
	
		
			
				|  |  | +                     @click="$refs.payment.rowDel(row,index)"
 | 
	
		
			
				|  |  | +          >删除
 | 
	
		
			
				|  |  | +          </el-button>
 | 
	
		
			
				|  |  | +          <el-button
 | 
	
		
			
				|  |  | +              size="small"
 | 
	
		
			
				|  |  | +              type="text"
 | 
	
		
			
				|  |  | +              icon="el-icon-s-order"
 | 
	
		
			
				|  |  | +              @click="annexOpen(row, index)"
 | 
	
		
			
				|  |  | +          >附 件
 | 
	
		
			
				|  |  | +          </el-button>
 | 
	
		
			
				|  |  | +        </template>
 | 
	
		
			
				|  |  | +        <template slot="menuLeft">
 | 
	
		
			
				|  |  | +          <el-button type="primary" icon="el-icon-plus" @click="addRowPayment"
 | 
	
		
			
				|  |  | +                     size="small">录入明细
 | 
	
		
			
				|  |  | +          </el-button>
 | 
	
		
			
				|  |  | +        </template>
 | 
	
		
			
				|  |  | +      </avue-crud>
 | 
	
		
			
				|  |  | +    </basic-container>
 | 
	
		
			
				|  |  |      <containerTitle title="上传附件"></containerTitle>
 | 
	
		
			
				|  |  |      <c-upload
 | 
	
		
			
				|  |  |          typeUpload="CD"
 | 
	
	
		
			
				|  | @@ -381,6 +506,23 @@
 | 
	
		
			
				|  |  |            <el-button @click="dialogRecord = false" size="small">关 闭</el-button>
 | 
	
		
			
				|  |  |          </span>
 | 
	
		
			
				|  |  |      </el-dialog>
 | 
	
		
			
				|  |  | +    <el-dialog
 | 
	
		
			
				|  |  | +        title="附件"
 | 
	
		
			
				|  |  | +        :visible.sync="enclosure"
 | 
	
		
			
				|  |  | +        append-to-body
 | 
	
		
			
				|  |  | +        width="70%">
 | 
	
		
			
				|  |  | +      <c-upload
 | 
	
		
			
				|  |  | +          typeUpload="GZ"
 | 
	
		
			
				|  |  | +          :basic="true"
 | 
	
		
			
				|  |  | +          deleteUrl="/api/blade-client/common-file/remove"
 | 
	
		
			
				|  |  | +          :data="orderList"
 | 
	
		
			
				|  |  | +          :enumerationValue="76"
 | 
	
		
			
				|  |  | +      ></c-upload>
 | 
	
		
			
				|  |  | +      <span slot="footer" class="dialog-footer">
 | 
	
		
			
				|  |  | +          <el-button @click="enclosure = false" size="small">取 消</el-button>
 | 
	
		
			
				|  |  | +          <el-button type="primary" @click="saveAnnex" size="small">保 存</el-button>
 | 
	
		
			
				|  |  | +        </span>
 | 
	
		
			
				|  |  | +    </el-dialog>
 | 
	
		
			
				|  |  |    </div>
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -391,7 +533,13 @@ import {
 | 
	
		
			
				|  |  |    detailDelegationList,
 | 
	
		
			
				|  |  |    removeCollection,
 | 
	
		
			
				|  |  |    dispatchCollection,
 | 
	
		
			
				|  |  | -  cancelDispatchCollection, dispatchBatch, fleetDriverSave, recordingDetails, changeFleet
 | 
	
		
			
				|  |  | +  queryVehicle,
 | 
	
		
			
				|  |  | +  cancelDispatchCollection,
 | 
	
		
			
				|  |  | +  dispatchBatch,
 | 
	
		
			
				|  |  | +  fleetDriverSave,
 | 
	
		
			
				|  |  | +  recordingDetails,
 | 
	
		
			
				|  |  | +  changeFleet,
 | 
	
		
			
				|  |  | +  incidentalSubmit, saveFile, getFee
 | 
	
		
			
				|  |  |  } from "@/api/landTransportation";
 | 
	
		
			
				|  |  |  import website from "@/config/website";
 | 
	
		
			
				|  |  |  import {getDeptTree} from "@/api/system/dept";
 | 
	
	
		
			
				|  | @@ -404,22 +552,26 @@ export default {
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    data() {
 | 
	
		
			
				|  |  |      return {
 | 
	
		
			
				|  |  | -      formData:{},
 | 
	
		
			
				|  |  | -      formDataList:{},
 | 
	
		
			
				|  |  | -      dialogChange:false,
 | 
	
		
			
				|  |  | -      optionData:{
 | 
	
		
			
				|  |  | -        span:12,
 | 
	
		
			
				|  |  | -        menuBtn:false,
 | 
	
		
			
				|  |  | -        column:[{
 | 
	
		
			
				|  |  | +      formData: {},
 | 
	
		
			
				|  |  | +      enclosure:false,
 | 
	
		
			
				|  |  | +      formAnnex: {},
 | 
	
		
			
				|  |  | +      key:0,
 | 
	
		
			
				|  |  | +      formDataList: {},
 | 
	
		
			
				|  |  | +      orderList:[],
 | 
	
		
			
				|  |  | +      dialogChange: false,
 | 
	
		
			
				|  |  | +      optionData: {
 | 
	
		
			
				|  |  | +        span: 12,
 | 
	
		
			
				|  |  | +        menuBtn: false,
 | 
	
		
			
				|  |  | +        column: [{
 | 
	
		
			
				|  |  |            label: "车队",
 | 
	
		
			
				|  |  |            prop: "fleetId",
 | 
	
		
			
				|  |  | -        },{
 | 
	
		
			
				|  |  | +        }, {
 | 
	
		
			
				|  |  |            label: "应付陆运费",
 | 
	
		
			
				|  |  |            prop: "landAmountC",
 | 
	
		
			
				|  |  |            precision: 2,
 | 
	
		
			
				|  |  |            controls: false,
 | 
	
		
			
				|  |  |            type: 'number',
 | 
	
		
			
				|  |  | -        },{
 | 
	
		
			
				|  |  | +        }, {
 | 
	
		
			
				|  |  |            label: '应收场站费',
 | 
	
		
			
				|  |  |            width: 100,
 | 
	
		
			
				|  |  |            precision: 2,
 | 
	
	
		
			
				|  | @@ -460,32 +612,32 @@ export default {
 | 
	
		
			
				|  |  |            prop: 'feeRemarksD'
 | 
	
		
			
				|  |  |          }]
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | -      form:{},
 | 
	
		
			
				|  |  | -      dataRecord:[],
 | 
	
		
			
				|  |  | -      dialogRecord:false,
 | 
	
		
			
				|  |  | -      optionRecord:{
 | 
	
		
			
				|  |  | -        stripe:true,
 | 
	
		
			
				|  |  | -        refreshBtn:false,
 | 
	
		
			
				|  |  | -        columnBtn:false,
 | 
	
		
			
				|  |  | -        menu:false,
 | 
	
		
			
				|  |  | -        addBtn:false,
 | 
	
		
			
				|  |  | -        align:'center',
 | 
	
		
			
				|  |  | -        column:[
 | 
	
		
			
				|  |  | +      form: {},
 | 
	
		
			
				|  |  | +      dataRecord: [],
 | 
	
		
			
				|  |  | +      dialogRecord: false,
 | 
	
		
			
				|  |  | +      optionRecord: {
 | 
	
		
			
				|  |  | +        stripe: true,
 | 
	
		
			
				|  |  | +        refreshBtn: false,
 | 
	
		
			
				|  |  | +        columnBtn: false,
 | 
	
		
			
				|  |  | +        menu: false,
 | 
	
		
			
				|  |  | +        addBtn: false,
 | 
	
		
			
				|  |  | +        align: 'center',
 | 
	
		
			
				|  |  | +        column: [
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  | -            label:'变更内容',
 | 
	
		
			
				|  |  | -            prop:'content'
 | 
	
		
			
				|  |  | +            label: '变更内容',
 | 
	
		
			
				|  |  | +            prop: 'content'
 | 
	
		
			
				|  |  |            }, {
 | 
	
		
			
				|  |  | -            label:'变更人',
 | 
	
		
			
				|  |  | -            prop:'changeUserName'
 | 
	
		
			
				|  |  | +            label: '变更人',
 | 
	
		
			
				|  |  | +            prop: 'changeUserName'
 | 
	
		
			
				|  |  |            }, {
 | 
	
		
			
				|  |  | -            label:'变更时间',
 | 
	
		
			
				|  |  | -            prop:'changeTime'
 | 
	
		
			
				|  |  | +            label: '变更时间',
 | 
	
		
			
				|  |  | +            prop: 'changeTime'
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |          ]
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        option: {
 | 
	
		
			
				|  |  | -        span:12,
 | 
	
		
			
				|  |  | -        menuBtn:false,
 | 
	
		
			
				|  |  | +        span: 12,
 | 
	
		
			
				|  |  | +        menuBtn: false,
 | 
	
		
			
				|  |  |          column: [{
 | 
	
		
			
				|  |  |            label: "车队",
 | 
	
		
			
				|  |  |            prop: "fleetId",
 | 
	
	
		
			
				|  | @@ -494,7 +646,7 @@ export default {
 | 
	
		
			
				|  |  |              message: " ",
 | 
	
		
			
				|  |  |              trigger: "blur"
 | 
	
		
			
				|  |  |            }]
 | 
	
		
			
				|  |  | -        },{
 | 
	
		
			
				|  |  | +        }, {
 | 
	
		
			
				|  |  |            label: "应付陆运费",
 | 
	
		
			
				|  |  |            prop: "landAmountC",
 | 
	
		
			
				|  |  |            precision: 2,
 | 
	
	
		
			
				|  | @@ -539,7 +691,7 @@ export default {
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        tableData: [],
 | 
	
		
			
				|  |  |        entrustListT: [],
 | 
	
		
			
				|  |  | -      KeyBoxTwo:0,
 | 
	
		
			
				|  |  | +      KeyBoxTwo: 0,
 | 
	
		
			
				|  |  |        entrustOptionTwoTBackup: {
 | 
	
		
			
				|  |  |          selectable: (row, index) => {
 | 
	
		
			
				|  |  |            return row.status === 0
 | 
	
	
		
			
				|  | @@ -550,7 +702,7 @@ export default {
 | 
	
		
			
				|  |  |          cellBtn: false,
 | 
	
		
			
				|  |  |          refreshBtn: false,
 | 
	
		
			
				|  |  |          selection: true,
 | 
	
		
			
				|  |  | -        selectionWidth:55,
 | 
	
		
			
				|  |  | +        selectionWidth: 55,
 | 
	
		
			
				|  |  |          tip: false,
 | 
	
		
			
				|  |  |          addBtn: false,
 | 
	
		
			
				|  |  |          cancelBtn: false,
 | 
	
	
		
			
				|  | @@ -640,7 +792,7 @@ export default {
 | 
	
		
			
				|  |  |            defaultTime: ['00:00:00', '23:59:59'],
 | 
	
		
			
				|  |  |            format: "yyyy-MM-dd HH:mm:ss",
 | 
	
		
			
				|  |  |            valueFormat: "yyyy-MM-dd HH:mm:ss",
 | 
	
		
			
				|  |  | -          index:2,
 | 
	
		
			
				|  |  | +          index: 2,
 | 
	
		
			
				|  |  |            width: 140,
 | 
	
		
			
				|  |  |          }, {
 | 
	
		
			
				|  |  |            label: '尺寸箱型',
 | 
	
	
		
			
				|  | @@ -673,7 +825,7 @@ export default {
 | 
	
		
			
				|  |  |            index: 7,
 | 
	
		
			
				|  |  |            prop: 'quantity',
 | 
	
		
			
				|  |  |            type: 'number',
 | 
	
		
			
				|  |  | -          precision:0
 | 
	
		
			
				|  |  | +          precision: 0
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |            // , {
 | 
	
		
			
				|  |  |            //   label: '包装',
 | 
	
	
		
			
				|  | @@ -860,7 +1012,7 @@ export default {
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |          ]
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | -      entrustOptionTwoT:{},
 | 
	
		
			
				|  |  | +      entrustOptionTwoT: {},
 | 
	
		
			
				|  |  |        entrustList: [],
 | 
	
		
			
				|  |  |        goodsOptionForm: {
 | 
	
		
			
				|  |  |          menuBtn: false,
 | 
	
	
		
			
				|  | @@ -876,7 +1028,7 @@ export default {
 | 
	
		
			
				|  |  |              trigger: "change"
 | 
	
		
			
				|  |  |            }],
 | 
	
		
			
				|  |  |          }, {
 | 
	
		
			
				|  |  | -          label: '业务员部门',
 | 
	
		
			
				|  |  | +          label: '所属部门',
 | 
	
		
			
				|  |  |            prop: 'salesmanDept',
 | 
	
		
			
				|  |  |            type: "tree",
 | 
	
		
			
				|  |  |            filter: false,
 | 
	
	
		
			
				|  | @@ -927,25 +1079,25 @@ export default {
 | 
	
		
			
				|  |  |              trigger: "blur"
 | 
	
		
			
				|  |  |            }],
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  | -        //   {
 | 
	
		
			
				|  |  | -        //   label: '货运日期',
 | 
	
		
			
				|  |  | -        //   type: "datetime",
 | 
	
		
			
				|  |  | -        //   format: 'yyyy-MM-dd HH:mm:ss',
 | 
	
		
			
				|  |  | -        //   valueFormat: 'yyyy-MM-dd HH:mm:ss',
 | 
	
		
			
				|  |  | -        //   prop: 'arrivalTime',
 | 
	
		
			
				|  |  | -        //   rules: [{
 | 
	
		
			
				|  |  | -        //     required: true,
 | 
	
		
			
				|  |  | -        //     message: " ",
 | 
	
		
			
				|  |  | -        //     trigger: "blur"
 | 
	
		
			
				|  |  | -        //   }],
 | 
	
		
			
				|  |  | -        // },
 | 
	
		
			
				|  |  | +          //   {
 | 
	
		
			
				|  |  | +          //   label: '货运日期',
 | 
	
		
			
				|  |  | +          //   type: "datetime",
 | 
	
		
			
				|  |  | +          //   format: 'yyyy-MM-dd HH:mm:ss',
 | 
	
		
			
				|  |  | +          //   valueFormat: 'yyyy-MM-dd HH:mm:ss',
 | 
	
		
			
				|  |  | +          //   prop: 'arrivalTime',
 | 
	
		
			
				|  |  | +          //   rules: [{
 | 
	
		
			
				|  |  | +          //     required: true,
 | 
	
		
			
				|  |  | +          //     message: " ",
 | 
	
		
			
				|  |  | +          //     trigger: "blur"
 | 
	
		
			
				|  |  | +          //   }],
 | 
	
		
			
				|  |  | +          // },
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  | -          label: '备注',
 | 
	
		
			
				|  |  | -          span: 24,
 | 
	
		
			
				|  |  | -          minRows: 2,
 | 
	
		
			
				|  |  | -          prop: 'remarks',
 | 
	
		
			
				|  |  | -          type: 'textarea'
 | 
	
		
			
				|  |  | -        }]
 | 
	
		
			
				|  |  | +            label: '备注',
 | 
	
		
			
				|  |  | +            span: 24,
 | 
	
		
			
				|  |  | +            minRows: 2,
 | 
	
		
			
				|  |  | +            prop: 'remarks',
 | 
	
		
			
				|  |  | +            type: 'textarea'
 | 
	
		
			
				|  |  | +          }]
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        goodsOptionFormTwo: {
 | 
	
		
			
				|  |  |          menuBtn: false,
 | 
	
	
		
			
				|  | @@ -1075,7 +1227,8 @@ export default {
 | 
	
		
			
				|  |  |          ]
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        collectionList: [],
 | 
	
		
			
				|  |  | -      collectionOption: {
 | 
	
		
			
				|  |  | +      collectionOption:{},
 | 
	
		
			
				|  |  | +      collectionOptionBackup: {
 | 
	
		
			
				|  |  |          align: 'center',
 | 
	
		
			
				|  |  |          menuAlign: 'center',
 | 
	
		
			
				|  |  |          index: true,
 | 
	
	
		
			
				|  | @@ -1132,7 +1285,7 @@ export default {
 | 
	
		
			
				|  |  |            cell: true,
 | 
	
		
			
				|  |  |            prop: 'amount'
 | 
	
		
			
				|  |  |          }, {
 | 
	
		
			
				|  |  | -          label: '税率(默认6)',
 | 
	
		
			
				|  |  | +          label: '税率',
 | 
	
		
			
				|  |  |            cell: true,
 | 
	
		
			
				|  |  |            prop: 'taxRate'
 | 
	
		
			
				|  |  |          }, {
 | 
	
	
		
			
				|  | @@ -1145,11 +1298,21 @@ export default {
 | 
	
		
			
				|  |  |              label: "dictValue",
 | 
	
		
			
				|  |  |              value: "dictKey"
 | 
	
		
			
				|  |  |            },
 | 
	
		
			
				|  |  | +        }, {
 | 
	
		
			
				|  |  | +          label: '车号',
 | 
	
		
			
				|  |  | +          cell: true,
 | 
	
		
			
				|  |  | +          prop: 'plateNo',
 | 
	
		
			
				|  |  | +          type: "select",
 | 
	
		
			
				|  |  | +          props: {
 | 
	
		
			
				|  |  | +            label: "label",
 | 
	
		
			
				|  |  | +            value: "label"
 | 
	
		
			
				|  |  | +          },
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          ]
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        paymentList: [],
 | 
	
		
			
				|  |  | -      paymentOption: {
 | 
	
		
			
				|  |  | +      paymentOption:{},
 | 
	
		
			
				|  |  | +      paymentOptionBackup:{
 | 
	
		
			
				|  |  |          align: 'center',
 | 
	
		
			
				|  |  |          menuAlign: 'center',
 | 
	
		
			
				|  |  |          index: true,
 | 
	
	
		
			
				|  | @@ -1219,6 +1382,15 @@ export default {
 | 
	
		
			
				|  |  |              label: "dictValue",
 | 
	
		
			
				|  |  |              value: "dictKey"
 | 
	
		
			
				|  |  |            },
 | 
	
		
			
				|  |  | +        }, {
 | 
	
		
			
				|  |  | +          label: '车号',
 | 
	
		
			
				|  |  | +          cell: true,
 | 
	
		
			
				|  |  | +          prop: 'plateNo',
 | 
	
		
			
				|  |  | +          type: "select",
 | 
	
		
			
				|  |  | +          props: {
 | 
	
		
			
				|  |  | +            label: "label",
 | 
	
		
			
				|  |  | +            value: "label"
 | 
	
		
			
				|  |  | +          },
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          ]
 | 
	
		
			
				|  |  |        }
 | 
	
	
		
			
				|  | @@ -1226,6 +1398,8 @@ export default {
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    async created() {
 | 
	
		
			
				|  |  |      this.entrustOptionTwoT = await this.getColumnData(this.getColumnName(86.1), this.entrustOptionTwoTBackup);
 | 
	
		
			
				|  |  | +    this.collectionOption = await this.getColumnData(this.getColumnName(86.4), this.collectionOptionBackup);
 | 
	
		
			
				|  |  | +    this.paymentOption = await this.getColumnData(this.getColumnName(86.5), this.paymentOptionBackup);
 | 
	
		
			
				|  |  |      this.KeyBoxTwo++
 | 
	
		
			
				|  |  |      if (this.id) {
 | 
	
		
			
				|  |  |        detailDelegationList({id: this.id, kind: '2'}).then(res => {
 | 
	
	
		
			
				|  | @@ -1251,6 +1425,16 @@ export default {
 | 
	
		
			
				|  |  |          // })
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | +    queryVehicle({orderId: this.id}).then(res => {
 | 
	
		
			
				|  |  | +      const column = this.findObject(this.collectionOption.column, "plateNo");
 | 
	
		
			
				|  |  | +      const columnTwo = this.findObject(this.paymentOption.column, "plateNo");
 | 
	
		
			
				|  |  | +      column.dicData = columnTwo.dicData = []
 | 
	
		
			
				|  |  | +      res.data.data.forEach(item => {
 | 
	
		
			
				|  |  | +        column.dicData.push({label: item})
 | 
	
		
			
				|  |  | +        columnTwo.dicData.push({label: item})
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +      this.key++
 | 
	
		
			
				|  |  | +    });
 | 
	
		
			
				|  |  |      this.$refs.other.show = false
 | 
	
		
			
				|  |  |      // 非租户模式默认加载管理组数据
 | 
	
		
			
				|  |  |      if (!website.tenantMode) {
 | 
	
	
		
			
				|  | @@ -1283,16 +1467,80 @@ export default {
 | 
	
		
			
				|  |  |          this.$refs.crudBoxTwo.$refs.dialogColumn.columnBox = false;
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    getCorpData(val){
 | 
	
		
			
				|  |  | +    //自定义列保存
 | 
	
		
			
				|  |  | +    async saveColumnCollection() {
 | 
	
		
			
				|  |  | +      /**
 | 
	
		
			
				|  |  | +       * 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
 | 
	
		
			
				|  |  | +       * 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
 | 
	
		
			
				|  |  | +       * 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
 | 
	
		
			
				|  |  | +       */
 | 
	
		
			
				|  |  | +      const inSave = await this.saveColumnData(this.getColumnName(85.4), this.collectionOption);
 | 
	
		
			
				|  |  | +      if (inSave) {
 | 
	
		
			
				|  |  | +        this.$message.success("保存成功");
 | 
	
		
			
				|  |  | +        //关闭窗口
 | 
	
		
			
				|  |  | +        this.$refs.collection.$refs.dialogColumn.columnBox = false;
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    //自定义列重置
 | 
	
		
			
				|  |  | +    async resetColumnCollection() {
 | 
	
		
			
				|  |  | +      this.collectionOption = this.collectionOptionBackup;
 | 
	
		
			
				|  |  | +      const inSave = await this.delColumnData(this.getColumnName(85.4), this.collectionOptionBackup);
 | 
	
		
			
				|  |  | +      if (inSave) {
 | 
	
		
			
				|  |  | +        this.$message.success("重置成功");
 | 
	
		
			
				|  |  | +        this.$refs.collection.$refs.dialogColumn.columnBox = false;
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    //自定义列保存
 | 
	
		
			
				|  |  | +    async saveColumnPayment() {
 | 
	
		
			
				|  |  | +      /**
 | 
	
		
			
				|  |  | +       * 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
 | 
	
		
			
				|  |  | +       * 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
 | 
	
		
			
				|  |  | +       * 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
 | 
	
		
			
				|  |  | +       */
 | 
	
		
			
				|  |  | +      const inSave = await this.saveColumnData(this.getColumnName(86.5), this.paymentOption);
 | 
	
		
			
				|  |  | +      if (inSave) {
 | 
	
		
			
				|  |  | +        this.$message.success("保存成功");
 | 
	
		
			
				|  |  | +        //关闭窗口
 | 
	
		
			
				|  |  | +        this.$refs.payment.$refs.dialogColumn.columnBox = false;
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    //自定义列重置
 | 
	
		
			
				|  |  | +    async resetColumnPayment() {
 | 
	
		
			
				|  |  | +      this.paymentOption = this.paymentOptionBackup;
 | 
	
		
			
				|  |  | +      const inSave = await this.delColumnData(this.getColumnName(86.5), this.paymentOptionBackup);
 | 
	
		
			
				|  |  | +      if (inSave) {
 | 
	
		
			
				|  |  | +        this.$message.success("重置成功");
 | 
	
		
			
				|  |  | +        this.$refs.payment.$refs.dialogColumn.columnBox = false;
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    //打开附件
 | 
	
		
			
				|  |  | +    annexOpen(row, index){
 | 
	
		
			
				|  |  | +      this.enclosure = true
 | 
	
		
			
				|  |  | +      this.formAnnex = row
 | 
	
		
			
				|  |  | +      getFee({id:row.id}).then(res=>{
 | 
	
		
			
				|  |  | +        this.orderList = res.data.data
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    //保存
 | 
	
		
			
				|  |  | +    saveAnnex(){
 | 
	
		
			
				|  |  | +      saveFile({
 | 
	
		
			
				|  |  | +        id:this.formAnnex.id,
 | 
	
		
			
				|  |  | +        fileList:this.orderList
 | 
	
		
			
				|  |  | +      }).then(res=>{
 | 
	
		
			
				|  |  | +        this.$message.success("保存成功");
 | 
	
		
			
				|  |  | +        this.annexOpen(this.formAnnex)
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    getCorpData(val) {
 | 
	
		
			
				|  |  |        this.formData.fleetName = val.cname
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    confirmChange(){
 | 
	
		
			
				|  |  | +    confirmChange() {
 | 
	
		
			
				|  |  |        changeFleet({
 | 
	
		
			
				|  |  |          ...this.formData,
 | 
	
		
			
				|  |  |          id: this.formDataList.id,
 | 
	
		
			
				|  |  | -        orderId:this.goodsForm.id,
 | 
	
		
			
				|  |  | -        originalFleetName:this.formDataList.fleetName
 | 
	
		
			
				|  |  | -      }).then(res=>{
 | 
	
		
			
				|  |  | +        orderId: this.goodsForm.id,
 | 
	
		
			
				|  |  | +        originalFleetName: this.formDataList.fleetName
 | 
	
		
			
				|  |  | +      }).then(res => {
 | 
	
		
			
				|  |  |          this.$refs.saveForm.resetForm()
 | 
	
		
			
				|  |  |          this.entrustList = res.data.data
 | 
	
		
			
				|  |  |          this.dialogChange = false
 | 
	
	
		
			
				|  | @@ -1319,19 +1567,19 @@ export default {
 | 
	
		
			
				|  |  |      saveScheduling() {
 | 
	
		
			
				|  |  |        this.$refs['form'].validate((valid, done) => {
 | 
	
		
			
				|  |  |          done()
 | 
	
		
			
				|  |  | -        if (valid){
 | 
	
		
			
				|  |  | +        if (valid) {
 | 
	
		
			
				|  |  |            let data = []
 | 
	
		
			
				|  |  |            this.$confirm('是否确认调度?', '提示', {
 | 
	
		
			
				|  |  |              confirmButtonText: '确定',
 | 
	
		
			
				|  |  |              cancelButtonText: '取消',
 | 
	
		
			
				|  |  |              type: 'warning'
 | 
	
		
			
				|  |  |            }).then(() => {
 | 
	
		
			
				|  |  | -            this.selectionList.forEach(item=>data.push(item.id))
 | 
	
		
			
				|  |  | +            this.selectionList.forEach(item => data.push(item.id))
 | 
	
		
			
				|  |  |              dispatchBatch({
 | 
	
		
			
				|  |  |                ...this.form,
 | 
	
		
			
				|  |  | -              idList:data,
 | 
	
		
			
				|  |  | -              orderId:this.goodsForm.id
 | 
	
		
			
				|  |  | -            }).then(res=>{
 | 
	
		
			
				|  |  | +              idList: data,
 | 
	
		
			
				|  |  | +              orderId: this.goodsForm.id
 | 
	
		
			
				|  |  | +            }).then(res => {
 | 
	
		
			
				|  |  |                this.entrustList = res.data.data
 | 
	
		
			
				|  |  |                this.dialogVisible = false
 | 
	
		
			
				|  |  |              })
 | 
	
	
		
			
				|  | @@ -1341,7 +1589,7 @@ export default {
 | 
	
		
			
				|  |  |                message: '已取消'
 | 
	
		
			
				|  |  |              });
 | 
	
		
			
				|  |  |            });
 | 
	
		
			
				|  |  | -        }else {
 | 
	
		
			
				|  |  | +        } else {
 | 
	
		
			
				|  |  |            return false
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        })
 | 
	
	
		
			
				|  | @@ -1410,15 +1658,15 @@ export default {
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      //变更车队
 | 
	
		
			
				|  |  | -    changeFleetT(row, index){
 | 
	
		
			
				|  |  | +    changeFleetT(row, index) {
 | 
	
		
			
				|  |  |        this.formDataList = row
 | 
	
		
			
				|  |  |        this.dialogChange = true
 | 
	
		
			
				|  |  |        this.formData = {}
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      //打开变更记录
 | 
	
		
			
				|  |  | -    recordsOfChanges(row, index){
 | 
	
		
			
				|  |  | +    recordsOfChanges(row, index) {
 | 
	
		
			
				|  |  |        this.dialogRecord = true
 | 
	
		
			
				|  |  | -      recordingDetails({itemId:row.id,kind:2}).then(res=>{
 | 
	
		
			
				|  |  | +      recordingDetails({itemId: row.id, kind: 2}).then(res => {
 | 
	
		
			
				|  |  |          this.dataRecord = res.data.data
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
	
		
			
				|  | @@ -1462,9 +1710,27 @@ export default {
 | 
	
		
			
				|  |  |        done()
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      rowCell(row, index) {
 | 
	
		
			
				|  |  | -      this.$refs.collection.rowCell(row, index)
 | 
	
		
			
				|  |  | +      if (row.$cellEdit) {
 | 
	
		
			
				|  |  | +        if (row.plateNo){
 | 
	
		
			
				|  |  | +          incidentalSubmit(row).then(res=>{
 | 
	
		
			
				|  |  | +            this.$refs.collection.rowCell(row, index)
 | 
	
		
			
				|  |  | +            row = res.data.data
 | 
	
		
			
				|  |  | +            this.$message.success("保存成功");
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  | +        }else {
 | 
	
		
			
				|  |  | +          this.$message.error("请选择车号");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      }else {
 | 
	
		
			
				|  |  | +        this.$refs.collection.rowCell(row, index)
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      paymentRowCell(row, index) {
 | 
	
		
			
				|  |  | +      if (row.$cellEdit) {
 | 
	
		
			
				|  |  | +        incidentalSubmit(row).then(res=>{
 | 
	
		
			
				|  |  | +          row = res.data.data
 | 
	
		
			
				|  |  | +          this.$message.success("保存成功");
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |        this.$refs.payment.rowCell(row, index)
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      //箱信息移除
 | 
	
	
		
			
				|  | @@ -1503,6 +1769,7 @@ export default {
 | 
	
		
			
				|  |  |        this.$refs.collection.rowCellAdd({
 | 
	
		
			
				|  |  |          currency: '1',
 | 
	
		
			
				|  |  |          type: '1',
 | 
	
		
			
				|  |  | +        orderId:this.id,
 | 
	
		
			
				|  |  |          $cellEdit: true
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
	
		
			
				|  | @@ -1511,6 +1778,7 @@ export default {
 | 
	
		
			
				|  |  |        this.$refs.payment.rowCellAdd({
 | 
	
		
			
				|  |  |          currency: '1',
 | 
	
		
			
				|  |  |          type: '2',
 | 
	
		
			
				|  |  | +        orderId:this.id,
 | 
	
		
			
				|  |  |          $cellEdit: true
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
	
		
			
				|  | @@ -1573,9 +1841,10 @@ export default {
 | 
	
		
			
				|  |  |    margin-bottom: 8px;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -::v-deep .el-form-item__content{
 | 
	
		
			
				|  |  | +::v-deep .el-form-item__content {
 | 
	
		
			
				|  |  |    line-height: 32px;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  ::v-deep .el-card__body {
 | 
	
		
			
				|  |  |    padding: 10px 15px;
 | 
	
		
			
				|  |  |    font-size: 14px;
 |