|  | @@ -42,10 +42,7 @@
 | 
	
		
			
				|  |  |                size="small"
 | 
	
		
			
				|  |  |                v-if="goodsForm.status > 0"
 | 
	
		
			
				|  |  |                :disabled="
 | 
	
		
			
				|  |  | -            (roleName.indexOf('平台') !== -1
 | 
	
		
			
				|  |  | -            ||roleName.indexOf('经理') !== -1
 | 
	
		
			
				|  |  | -            ||roleName.indexOf('部门经理') !== -1
 | 
	
		
			
				|  |  | -            ||roleName.indexOf('总经理') !== -1) && !(roleName.indexOf('admin') !== -1)"
 | 
	
		
			
				|  |  | +            !(roleName.indexOf('平台') !== -1||roleName.indexOf('经理') !== -1||roleName.indexOf('部门经理') !== -1||roleName.indexOf('总经理') !== -1) && !(roleName.indexOf('admin') !== -1)"
 | 
	
		
			
				|  |  |                @click="confirmChange"
 | 
	
		
			
				|  |  |            >变更
 | 
	
		
			
				|  |  |            </el-button>
 | 
	
	
		
			
				|  | @@ -59,44 +56,43 @@
 | 
	
		
			
				|  |  |            </el-button>
 | 
	
		
			
				|  |  |            <el-button
 | 
	
		
			
				|  |  |                type="success"
 | 
	
		
			
				|  |  | -              v-if="goodsForm.status > 0 && goodsForm.status !== 5"
 | 
	
		
			
				|  |  | +              v-if="goodsForm.status > 0 && goodsForm.status !== 5 && roleName.indexOf('客户') === -1"
 | 
	
		
			
				|  |  |                size="small"
 | 
	
		
			
				|  |  |                :loading="type"
 | 
	
		
			
				|  |  |                v-show="
 | 
	
		
			
				|  |  | -              (roleName.indexOf('客户') !== -1 && goodsForm.status < 2)
 | 
	
		
			
				|  |  | -            || (roleName.indexOf('车队') !== -1 && goodsForm.status === 2)
 | 
	
		
			
				|  |  | -            || (roleName.indexOf('司机') !== -1 && (goodsForm.status === 3||goodsForm.status === 6||goodsForm.status === 4))
 | 
	
		
			
				|  |  | -            || (roleName.indexOf('平台') !== -1
 | 
	
		
			
				|  |  | -            ||roleName.indexOf('经理') !== -1
 | 
	
		
			
				|  |  | -            ||roleName.indexOf('部门经理') !== -1
 | 
	
		
			
				|  |  | -            ||roleName.indexOf('总经理') !== -1)"
 | 
	
		
			
				|  |  | +              (roleName.indexOf('平台') !== -1 && goodsForm.status === 1)
 | 
	
		
			
				|  |  | +              || (roleName.indexOf('车队') !== -1 && goodsForm.status === 2)
 | 
	
		
			
				|  |  | +              || (roleName.indexOf('司机') !== -1 && goodsForm.status === 3)
 | 
	
		
			
				|  |  | +              || (roleName.indexOf('司机') !== -1 && goodsForm.status === 4)
 | 
	
		
			
				|  |  | +              || (roleName.indexOf('司机') !== -1 && goodsForm.status === 6)"
 | 
	
		
			
				|  |  |                @click="modifyState"
 | 
	
		
			
				|  |  |            >
 | 
	
		
			
				|  |  |              {{
 | 
	
		
			
				|  |  | -              goodsForm.status === 1 ? '调度' : goodsForm.status === 2 ? '派车' : goodsForm.status === 3 ? '受理' : goodsForm.status === 4 ? '确认完工' : goodsForm.status === 6 ? '确认到厂' : goodsForm.status === 7 ? '提箱' : '未知状态:' + goodsForm.status
 | 
	
		
			
				|  |  | +              goodsForm.status === 1 ? '调度' : goodsForm.status === 2 ? '派车' : goodsForm.status === 3 ? '受理' : goodsForm.status === 4 ? '确认完工' : goodsForm.status === 6 ? '确认到厂' :  '未知状态:' + goodsForm.status
 | 
	
		
			
				|  |  |              }}
 | 
	
		
			
				|  |  |            </el-button>
 | 
	
		
			
				|  |  |            <el-button
 | 
	
		
			
				|  |  |                type="warning"
 | 
	
		
			
				|  |  | -              v-if="goodsForm.status === 2"
 | 
	
		
			
				|  |  | +              v-if="goodsForm.status === 2 && roleName.indexOf('平台') !== -1 "
 | 
	
		
			
				|  |  |                size="small"
 | 
	
		
			
				|  |  |                @click="cancelScheduling(false)"
 | 
	
		
			
				|  |  |            >取消调度
 | 
	
		
			
				|  |  |            </el-button>
 | 
	
		
			
				|  |  |            <el-button
 | 
	
		
			
				|  |  |                type="warning"
 | 
	
		
			
				|  |  | -              v-if="goodsForm.status === 3"
 | 
	
		
			
				|  |  | +              v-if="goodsForm.status === 3 && roleName.indexOf('车队') !== -1"
 | 
	
		
			
				|  |  |                size="small"
 | 
	
		
			
				|  |  |                @click="cancelScheduling(true)"
 | 
	
		
			
				|  |  |            >取消派车
 | 
	
		
			
				|  |  |            </el-button>
 | 
	
		
			
				|  |  |            <el-button
 | 
	
		
			
				|  |  |                type="success"
 | 
	
		
			
				|  |  | -              v-if="goodsForm.status === 1"
 | 
	
		
			
				|  |  | +              v-if="goodsForm.status === 1 && roleName.indexOf('客户') !== -1"
 | 
	
		
			
				|  |  |                size="small"
 | 
	
		
			
				|  |  |                @click="submit(false)"
 | 
	
		
			
				|  |  |            >取消提交
 | 
	
		
			
				|  |  |            </el-button>
 | 
	
		
			
				|  |  | +<!--          !(roleName.indexOf('客户') !== -1 || roleName.indexOf('平台') !== -1 || roleName.indexOf('车队') !== -1)-->
 | 
	
		
			
				|  |  |            <el-button
 | 
	
		
			
				|  |  |                type="primary"
 | 
	
		
			
				|  |  |                :disabled="goodsForm.status === 5"
 | 
	
	
		
			
				|  | @@ -434,6 +430,7 @@
 | 
	
		
			
				|  |  |                      :disabled="goodsForm.status !== 0"
 | 
	
		
			
				|  |  |                      style="width: 100%;"
 | 
	
		
			
				|  |  |                      filterable
 | 
	
		
			
				|  |  | +                    clearable
 | 
	
		
			
				|  |  |                      v-model="scope.row.corpId"
 | 
	
		
			
				|  |  |                      size="small" placeholder="请选择"
 | 
	
		
			
				|  |  |                      @change="withAddress({},scope,true)">
 | 
	
	
		
			
				|  | @@ -653,7 +650,7 @@
 | 
	
		
			
				|  |  |                  @clear="clear(scope.row)"
 | 
	
		
			
				|  |  |                  @getCorpData="(row)=>{withAddressTwo(row,scope)}">
 | 
	
		
			
				|  |  |                <template slot="slot">
 | 
	
		
			
				|  |  | -                <el-select @change="withAddressTwo({},scope,true)" :disabled="goodsForm.status !== 0"
 | 
	
		
			
				|  |  | +                <el-select @change="withAddressTwo({},scope,true)" :disabled="goodsForm.status !== 0" clearable
 | 
	
		
			
				|  |  |                             style="width: 100%;" filterable v-model="scope.row.corpId" size="small" placeholder="请选择">
 | 
	
		
			
				|  |  |                    <el-option
 | 
	
		
			
				|  |  |                        v-for="item in corpList"
 | 
	
	
		
			
				|  | @@ -832,7 +829,7 @@
 | 
	
		
			
				|  |  |      </basic-container>
 | 
	
		
			
				|  |  |      </span>
 | 
	
		
			
				|  |  |      <containerTitle title="杂费明细"
 | 
	
		
			
				|  |  | -                    v-if="roleName.indexOf('平台') !== -1 || this.roleName.indexOf('客户') !== -1"></containerTitle>
 | 
	
		
			
				|  |  | +                    v-if="roleName.indexOf('平台') !== -1 || roleName.indexOf('客户') !== -1"></containerTitle>
 | 
	
		
			
				|  |  |      <basic-container v-if="roleName.indexOf('平台') !== -1 || roleName.indexOf('客户') !== -1">
 | 
	
		
			
				|  |  |        <el-tabs v-model="activeIndex" @tab-click="handleSelect">
 | 
	
		
			
				|  |  |          <el-tab-pane label="应收" name="1"></el-tab-pane>
 | 
	
	
		
			
				|  | @@ -1022,7 +1019,7 @@ import {gaude, location} from "@/api/gaude";
 | 
	
		
			
				|  |  |  import trackPlayback from "@/components/trackPlayback"
 | 
	
		
			
				|  |  |  import {fleetList, telephone} from "@/api/landTransportation";
 | 
	
		
			
				|  |  |  import {getDictionary} from "@/api/system/dictbiz";
 | 
	
		
			
				|  |  | -import {allCropList} from "@/api/basicData/customerInformation";
 | 
	
		
			
				|  |  | +import {allCropList, customerList} from "@/api/basicData/customerInformation";
 | 
	
		
			
				|  |  |  // goodsOptionFormTwo
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    comments: {
 | 
	
	
		
			
				|  | @@ -1042,7 +1039,6 @@ export default {
 | 
	
		
			
				|  |  |          this.collectionOption.disabled = this.paymentOption.disabled = this.goodsForm.status === 5
 | 
	
		
			
				|  |  |          if (this.roleName.indexOf('客户') !== -1 || this.roleName.indexOf('司机') !== -1){
 | 
	
		
			
				|  |  |            this.goodsOptionFormTwo.disabled = true
 | 
	
		
			
				|  |  | -          this.findObject(this.goodsOptionFormTwo.column, "freightPay").display = false
 | 
	
		
			
				|  |  |          } else {
 | 
	
		
			
				|  |  |            if (this.goodsForm.status === 0) {
 | 
	
		
			
				|  |  |              this.goodsOptionFormTwo.disabled = true
 | 
	
	
		
			
				|  | @@ -1053,7 +1049,6 @@ export default {
 | 
	
		
			
				|  |  |                this.findObject(this.goodsOptionFormTwo.column, "plateNo").disabled = false
 | 
	
		
			
				|  |  |                this.findObject(this.goodsOptionFormTwo.column, "driverId").disabled = false
 | 
	
		
			
				|  |  |                this.findObject(this.goodsOptionFormTwo.column, "driverTel").disabled = false
 | 
	
		
			
				|  |  | -              this.findObject(this.goodsOptionFormTwo.column, "fleetVolum").disabled = false
 | 
	
		
			
				|  |  |                this.findObject(this.goodsOptionFormTwo.column, "freightPay").disabled = false
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |            }else if (this.goodsForm.status === 2){
 | 
	
	
		
			
				|  | @@ -1063,16 +1058,20 @@ export default {
 | 
	
		
			
				|  |  |                this.findObject(this.goodsOptionFormTwo.column, "plateNo").disabled = false
 | 
	
		
			
				|  |  |                this.findObject(this.goodsOptionFormTwo.column, "driverId").disabled = false
 | 
	
		
			
				|  |  |                this.findObject(this.goodsOptionFormTwo.column, "driverTel").disabled = false
 | 
	
		
			
				|  |  | -              this.findObject(this.goodsOptionFormTwo.column, "fleetVolum").disabled = false
 | 
	
		
			
				|  |  | +              this.findObject(this.goodsOptionFormTwo.column, "freightPay").disabled = true
 | 
	
		
			
				|  |  | +            }else {
 | 
	
		
			
				|  |  | +              this.findObject(this.goodsOptionFormTwo.column, "fleetId").disabled = true
 | 
	
		
			
				|  |  | +              this.findObject(this.goodsOptionFormTwo.column, "plateNo").disabled = true
 | 
	
		
			
				|  |  | +              this.findObject(this.goodsOptionFormTwo.column, "driverId").disabled = true
 | 
	
		
			
				|  |  | +              this.findObject(this.goodsOptionFormTwo.column, "driverTel").disabled = true
 | 
	
		
			
				|  |  |                this.findObject(this.goodsOptionFormTwo.column, "freightPay").disabled = true
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |            }else{
 | 
	
		
			
				|  |  | -            this.findObject(this.goodsOptionFormTwo.column, "fleetId").disabled = false
 | 
	
		
			
				|  |  | -            this.findObject(this.goodsOptionFormTwo.column, "plateNo").disabled = false
 | 
	
		
			
				|  |  | -            this.findObject(this.goodsOptionFormTwo.column, "driverId").disabled = false
 | 
	
		
			
				|  |  | -            this.findObject(this.goodsOptionFormTwo.column, "driverTel").disabled = false
 | 
	
		
			
				|  |  | -            this.findObject(this.goodsOptionFormTwo.column, "fleetVolum").disabled = false
 | 
	
		
			
				|  |  | -            this.findObject(this.goodsOptionFormTwo.column, "freightPay").disabled = false
 | 
	
		
			
				|  |  | +            this.findObject(this.goodsOptionFormTwo.column, "fleetId").disabled = true
 | 
	
		
			
				|  |  | +            this.findObject(this.goodsOptionFormTwo.column, "plateNo").disabled = true
 | 
	
		
			
				|  |  | +            this.findObject(this.goodsOptionFormTwo.column, "driverId").disabled = true
 | 
	
		
			
				|  |  | +            this.findObject(this.goodsOptionFormTwo.column, "driverTel").disabled = true
 | 
	
		
			
				|  |  | +            this.findObject(this.goodsOptionFormTwo.column, "freightPay").disabled = true
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        }
 | 
	
	
		
			
				|  | @@ -1498,15 +1497,6 @@ export default {
 | 
	
		
			
				|  |  |            props: {
 | 
	
		
			
				|  |  |              label: "dictValue",
 | 
	
		
			
				|  |  |              value: "dictValue"
 | 
	
		
			
				|  |  | -          },
 | 
	
		
			
				|  |  | -          change: (data) => {
 | 
	
		
			
				|  |  | -            if (data.value === '集装箱') {
 | 
	
		
			
				|  |  | -              this.findObject(this.goodsOptionForm.column, "dispatchNumber").rules[0].required = true
 | 
	
		
			
				|  |  | -            } else if (!data.value) {
 | 
	
		
			
				|  |  | -              this.findObject(this.goodsOptionForm.column, "dispatchNumber").rules[0].required = true
 | 
	
		
			
				|  |  | -            } else {
 | 
	
		
			
				|  |  | -              this.findObject(this.goodsOptionForm.column, "dispatchNumber").rules[0].required = false
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |          }, {
 | 
	
		
			
				|  |  |            label: '平台号',
 | 
	
	
		
			
				|  | @@ -1547,6 +1537,7 @@ export default {
 | 
	
		
			
				|  |  |          }, {
 | 
	
		
			
				|  |  |            label: '物流运输',
 | 
	
		
			
				|  |  |            prop: 'dispatchDept',
 | 
	
		
			
				|  |  | +          span: 6,
 | 
	
		
			
				|  |  |            dicUrl: "/api/blade-system/dept/top-list?deptCategory=1",
 | 
	
		
			
				|  |  |            cascader: ['dispatcher'],
 | 
	
		
			
				|  |  |            type: "select",
 | 
	
	
		
			
				|  | @@ -1562,6 +1553,7 @@ export default {
 | 
	
		
			
				|  |  |          }, {
 | 
	
		
			
				|  |  |            label: '运输调度',
 | 
	
		
			
				|  |  |            prop: 'dispatcher',
 | 
	
		
			
				|  |  | +          span: 6,
 | 
	
		
			
				|  |  |            type: "select",
 | 
	
		
			
				|  |  |            dicUrl: "/api/blade-user/userList?deptPid={{key}}",
 | 
	
		
			
				|  |  |            props: {
 | 
	
	
		
			
				|  | @@ -1572,9 +1564,14 @@ export default {
 | 
	
		
			
				|  |  |            label: '委托日期',
 | 
	
		
			
				|  |  |            prop: 'bsDate',
 | 
	
		
			
				|  |  |            type: "datetime",
 | 
	
		
			
				|  |  | +          span: 6,
 | 
	
		
			
				|  |  |            format: 'yyyy-MM-dd HH:mm',
 | 
	
		
			
				|  |  |            valueFormat: 'yyyy-MM-dd HH:mm:ss',
 | 
	
		
			
				|  |  |          }, {
 | 
	
		
			
				|  |  | +          label: '车体积',
 | 
	
		
			
				|  |  | +          span: 6,
 | 
	
		
			
				|  |  | +          prop: 'fleetVolum'
 | 
	
		
			
				|  |  | +        }, {
 | 
	
		
			
				|  |  |            label: '合同号',
 | 
	
		
			
				|  |  |            span: 6,
 | 
	
		
			
				|  |  |            prop: 'contractNo'
 | 
	
	
		
			
				|  | @@ -1691,12 +1688,11 @@ export default {
 | 
	
		
			
				|  |  |            label: '车队',
 | 
	
		
			
				|  |  |            prop: 'fleetId',
 | 
	
		
			
				|  |  |            type: 'select',
 | 
	
		
			
				|  |  | +          dicData:[],
 | 
	
		
			
				|  |  |            cascader: ['plateNo'],
 | 
	
		
			
				|  |  | -          dicUrl: "/api/blade-client/corpsdesc/list?size=500¤t=1&&corpType=CD",
 | 
	
		
			
				|  |  |            props: {
 | 
	
		
			
				|  |  |              label: "cname",
 | 
	
		
			
				|  |  | -            value: "id",
 | 
	
		
			
				|  |  | -            res: "data.records"
 | 
	
		
			
				|  |  | +            value: "id"
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |          }, {
 | 
	
		
			
				|  |  |            label: '车号',
 | 
	
	
		
			
				|  | @@ -1725,9 +1721,6 @@ export default {
 | 
	
		
			
				|  |  |            label: '电话',
 | 
	
		
			
				|  |  |            prop: 'driverTel'
 | 
	
		
			
				|  |  |          }, {
 | 
	
		
			
				|  |  | -          label: '车体积',
 | 
	
		
			
				|  |  | -          prop: 'fleetVolum'
 | 
	
		
			
				|  |  | -        }, {
 | 
	
		
			
				|  |  |            label: '应付运费',
 | 
	
		
			
				|  |  |            prop: 'freightPay'
 | 
	
		
			
				|  |  |          }]
 | 
	
	
		
			
				|  | @@ -2065,6 +2058,22 @@ export default {
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    async created() {
 | 
	
		
			
				|  |  | +    if (this.roleName.indexOf('客户') !== -1){
 | 
	
		
			
				|  |  | +      this.findObject(this.goodsOptionFormTwo.column, "freightPay").display = false
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +    if (this.roleName.indexOf('车队') !== -1){
 | 
	
		
			
				|  |  | +      console.log(this.goodsOptionFormTwo.column)
 | 
	
		
			
				|  |  | +      this.findObject(this.goodsOptionForm.column, "freightCollect").display = false
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +    if (this.roleName.indexOf('司机') !== -1){
 | 
	
		
			
				|  |  | +      this.findObject(this.goodsOptionFormTwo.column, "freightPay").display = false
 | 
	
		
			
				|  |  | +      this.findObject(this.goodsOptionForm.column, "freightCollect").display = false
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +    customerList({
 | 
	
		
			
				|  |  | +      size:500,current:1,corpType:'CD'
 | 
	
		
			
				|  |  | +    }).then(res=>{
 | 
	
		
			
				|  |  | +      this.findObject(this.goodsOptionFormTwo.column, "fleetId").dicData = res.data.data.records
 | 
	
		
			
				|  |  | +    })
 | 
	
		
			
				|  |  |      allCropList({
 | 
	
		
			
				|  |  |        corpType: 'GC'
 | 
	
		
			
				|  |  |      }).then(res => {
 | 
	
	
		
			
				|  | @@ -2219,7 +2228,7 @@ export default {
 | 
	
		
			
				|  |  |        getCorp().then(res => {
 | 
	
		
			
				|  |  |          this.goodsForm = {
 | 
	
		
			
				|  |  |            corpId: res.data.data ? res.data.data.id : '',
 | 
	
		
			
				|  |  | -          businessType: "出口",
 | 
	
		
			
				|  |  | +          businessType: "内贸",
 | 
	
		
			
				|  |  |            shippingMode: "散货",
 | 
	
		
			
				|  |  |            status: 0,
 | 
	
		
			
				|  |  |            salesman: JSON.parse(localStorage.getItem("saber-userInfo")).content.user_id,
 | 
	
	
		
			
				|  | @@ -2277,6 +2286,7 @@ export default {
 | 
	
		
			
				|  |  |        for (let item of this.salesmanList) {
 | 
	
		
			
				|  |  |          if (item.id == val) {
 | 
	
		
			
				|  |  |            this.goodsForm.salesmanDept = item.deptId.split(',')[0]
 | 
	
		
			
				|  |  | +          this.goodsForm.tel = item.phone
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 |