|  | @@ -80,6 +80,16 @@
 | 
	
		
			
				|  |  |                          :disabled="goodsForm.status >= 1"
 | 
	
		
			
				|  |  |                      />
 | 
	
		
			
				|  |  |                  </template>
 | 
	
		
			
				|  |  | +                <template slot-scope="scope" slot="pickUpGoodsUserId">
 | 
	
		
			
				|  |  | +                  <el-select v-model="goodsForm.pickUpGoodsUserId" placeholder="请选择揽货员" :disabled="goodsForm.status !== 0">
 | 
	
		
			
				|  |  | +                    <el-option
 | 
	
		
			
				|  |  | +                      v-for="item in adminProfilesList"
 | 
	
		
			
				|  |  | +                      :key="item.id"
 | 
	
		
			
				|  |  | +                      :label="item.name"
 | 
	
		
			
				|  |  | +                      :value="item.id">
 | 
	
		
			
				|  |  | +                    </el-option>
 | 
	
		
			
				|  |  | +                  </el-select>
 | 
	
		
			
				|  |  | +                </template>
 | 
	
		
			
				|  |  |              </avue-form>
 | 
	
		
			
				|  |  |          </basic-container>
 | 
	
		
			
				|  |  |          <containerTitle title="其他信息"></containerTitle>
 | 
	
	
		
			
				|  | @@ -438,9 +448,9 @@
 | 
	
		
			
				|  |  |                      ></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="plateNoHeader" slot-scope="{column}">-->
 | 
	
		
			
				|  |  | +<!--                    {{ column.label }}<span style="color:#F56C6C">*</span>-->
 | 
	
		
			
				|  |  | +<!--                </template>-->
 | 
	
		
			
				|  |  |                  <template slot="feeIdHeader" slot-scope="{column}">
 | 
	
		
			
				|  |  |                      {{ column.label }}<span style="color:#F56C6C">*</span>
 | 
	
		
			
				|  |  |                  </template>
 | 
	
	
		
			
				|  | @@ -495,15 +505,16 @@
 | 
	
		
			
				|  |  |                  @row-update="rowSave"
 | 
	
		
			
				|  |  |                  @row-del="feeDel"
 | 
	
		
			
				|  |  |              >
 | 
	
		
			
				|  |  | -                <template slot-scope="{row}" slot="corpId">
 | 
	
		
			
				|  |  | +                <template slot-scope="{row}" slot="fleetId">
 | 
	
		
			
				|  |  |                      <crop-select
 | 
	
		
			
				|  |  |                          v-if="row.$cellEdit"
 | 
	
		
			
				|  |  |                          v-model="row.corpId"
 | 
	
		
			
				|  |  | +                        corpType="CD"
 | 
	
		
			
				|  |  |                          @getCorpData="(data)=>{getfleetId(data,row)}"
 | 
	
		
			
				|  |  |                      ></crop-select>
 | 
	
		
			
				|  |  |                      <span v-else>{{ row.corpName }}</span>
 | 
	
		
			
				|  |  |                  </template>
 | 
	
		
			
				|  |  | -                <template slot-scope="{ row }" slot="fleetId">
 | 
	
		
			
				|  |  | +                <!-- <template slot-scope="{ row }" slot="fleetId">
 | 
	
		
			
				|  |  |                      <el-select v-if="row.$cellEdit" v-model="row.fleetId" size="small" placeholder="请选择"
 | 
	
		
			
				|  |  |                                 @blur="fleetblur(row)">
 | 
	
		
			
				|  |  |                          <el-option
 | 
	
	
		
			
				|  | @@ -514,10 +525,10 @@
 | 
	
		
			
				|  |  |                          </el-option>
 | 
	
		
			
				|  |  |                      </el-select>
 | 
	
		
			
				|  |  |                      <span v-else>{{row.fleetName}}</span>
 | 
	
		
			
				|  |  | -                </template>
 | 
	
		
			
				|  |  | -                <template slot="plateNoHeader" slot-scope="{column}">
 | 
	
		
			
				|  |  | -                    {{ column.label }}<span style="color:#F56C6C">*</span>
 | 
	
		
			
				|  |  | -                </template>
 | 
	
		
			
				|  |  | +                </template> -->
 | 
	
		
			
				|  |  | +<!--                <template slot="plateNoHeader" slot-scope="{column}">-->
 | 
	
		
			
				|  |  | +<!--                    {{ column.label }}<span style="color:#F56C6C">*</span>-->
 | 
	
		
			
				|  |  | +<!--                </template>-->
 | 
	
		
			
				|  |  |                  <template slot="feeIdHeader" slot-scope="{column}">
 | 
	
		
			
				|  |  |                      {{ column.label }}<span style="color:#F56C6C">*</span>
 | 
	
		
			
				|  |  |                  </template>
 | 
	
	
		
			
				|  | @@ -680,6 +691,8 @@ import {customerList, corpsdesclist} from "@/api/basicData/basicFeesDesc";
 | 
	
		
			
				|  |  |  import {gaude, location} from "@/api/gaude";
 | 
	
		
			
				|  |  |  import reportDialog from "@/components/report-dialog/main.vue";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +import { getAdminProfilesById } from "@/api/specialTrade/placeAnOrder/detailPage";
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |      components: {reportDialog},
 | 
	
		
			
				|  |  |      props: {
 | 
	
	
		
			
				|  | @@ -692,6 +705,8 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      data() {
 | 
	
		
			
				|  |  |          return {
 | 
	
		
			
				|  |  | +            // 揽货员list
 | 
	
		
			
				|  |  | +            adminProfilesList: [],
 | 
	
		
			
				|  |  |              // 车队数据
 | 
	
		
			
				|  |  |              fleetdata:[],
 | 
	
		
			
				|  |  |              // 打印组件
 | 
	
	
		
			
				|  | @@ -1326,12 +1341,21 @@ export default {
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |                      }, {
 | 
	
		
			
				|  |  |                          label: '货物',
 | 
	
		
			
				|  |  | -                        span: 24,
 | 
	
		
			
				|  |  | +                        span: 16,
 | 
	
		
			
				|  |  |                          minRows: 2,
 | 
	
		
			
				|  |  |                          prop: 'goods',
 | 
	
		
			
				|  |  |                          type: 'textarea'
 | 
	
		
			
				|  |  | -                    },
 | 
	
		
			
				|  |  | -                    {
 | 
	
		
			
				|  |  | +                    }, {
 | 
	
		
			
				|  |  | +                        label: '揽货员',
 | 
	
		
			
				|  |  | +                        span: 8,
 | 
	
		
			
				|  |  | +                        prop: 'pickUpGoodsUserId',
 | 
	
		
			
				|  |  | +                        disabled: true,
 | 
	
		
			
				|  |  | +                        rules: [{
 | 
	
		
			
				|  |  | +                          required: true,
 | 
	
		
			
				|  |  | +                          message: " ",
 | 
	
		
			
				|  |  | +                          trigger: "blur"
 | 
	
		
			
				|  |  | +                        }]
 | 
	
		
			
				|  |  | +                    }, {
 | 
	
		
			
				|  |  |                          label: '备注',
 | 
	
		
			
				|  |  |                          span: 24,
 | 
	
		
			
				|  |  |                          minRows: 2,
 | 
	
	
		
			
				|  | @@ -1734,19 +1758,35 @@ export default {
 | 
	
		
			
				|  |  |          this.KeyBoxTwo++
 | 
	
		
			
				|  |  |          if (this.id) {
 | 
	
		
			
				|  |  |              detailDelegationList({id: this.id, kind: '2'}).then(res => {
 | 
	
		
			
				|  |  | +              console.log(res.data.data)
 | 
	
		
			
				|  |  |                  this.goodsForm = res.data.data
 | 
	
		
			
				|  |  |                  this.tableData = res.data.data.orderAddressList
 | 
	
		
			
				|  |  |                  this.entrustList = res.data.data.orderItemList
 | 
	
		
			
				|  |  |                  this.goodsList = res.data.data.orderItemList
 | 
	
		
			
				|  |  |                  this.orderFilesList = res.data.data.fileList
 | 
	
		
			
				|  |  |                  if (res.data.data.orderFeeList.length > 0) {
 | 
	
		
			
				|  |  | -                    res.data.data.orderFeeList.forEach(item => {
 | 
	
		
			
				|  |  | -                        if (item.type == 1) {
 | 
	
		
			
				|  |  | -                            this.collectionList.push(item)
 | 
	
		
			
				|  |  | +                  let orderFeeList = res.data.data.orderFeeList;
 | 
	
		
			
				|  |  | +                  let collectionList = [];
 | 
	
		
			
				|  |  | +                  let paymentList = [];
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                  for (const orderFee of orderFeeList) {
 | 
	
		
			
				|  |  | +                        if (orderFee.type == 1) {
 | 
	
		
			
				|  |  | +                            collectionList.push(orderFee)
 | 
	
		
			
				|  |  |                          } else {
 | 
	
		
			
				|  |  | -                            this.paymentList.push(item)
 | 
	
		
			
				|  |  | +                            paymentList.push(orderFee)
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  | -                    })
 | 
	
		
			
				|  |  | +                  }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                  this.collectionList = collectionList;
 | 
	
		
			
				|  |  | +                  this.paymentList = paymentList;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                    // 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
 | 
	
	
		
			
				|  | @@ -1760,6 +1800,10 @@ export default {
 | 
	
		
			
				|  |  |                      this.collectionOption.menu = false
 | 
	
		
			
				|  |  |                      this.paymentOption.menu = false
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                getAdminProfilesById(this.goodsForm.corpId).then(res => {
 | 
	
		
			
				|  |  | +                  this.adminProfilesList = res.data.data;
 | 
	
		
			
				|  |  | +                })
 | 
	
		
			
				|  |  |              })
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          this.KeyBoxTwo++
 | 
	
	
		
			
				|  | @@ -2087,13 +2131,29 @@ export default {
 | 
	
		
			
				|  |  |                  })
 | 
	
		
			
				|  |  |                  this.yugudata = res.data.data.orderEstimateList?res.data.data.orderEstimateList:[]
 | 
	
		
			
				|  |  |                  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)
 | 
	
		
			
				|  |  | -                        }
 | 
	
		
			
				|  |  | -                    })
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                  let orderFeeList = res.data.data.orderFeeList;
 | 
	
		
			
				|  |  | +                  let collectionList = [];
 | 
	
		
			
				|  |  | +                  let paymentList = [];
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                  for (const orderFee of orderFeeList) {
 | 
	
		
			
				|  |  | +                    if (orderFee.type == 1) {
 | 
	
		
			
				|  |  | +                      collectionList.push(orderFee)
 | 
	
		
			
				|  |  | +                    } else {
 | 
	
		
			
				|  |  | +                      paymentList.push(orderFee)
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                  }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                  this.collectionList = collectionList;
 | 
	
		
			
				|  |  | +                  this.paymentList = paymentList;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                    // 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
 | 
	
	
		
			
				|  | @@ -2101,6 +2161,10 @@ export default {
 | 
	
		
			
				|  |  |                  // this.tableData.forEach(item => {
 | 
	
		
			
				|  |  |                  //   if (item.region) item.region = item.region.split(',')
 | 
	
		
			
				|  |  |                  // })
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                getAdminProfilesById(this.goodsForm.corpId).then(res => {
 | 
	
		
			
				|  |  | +                  this.adminProfilesList = res.data.data;
 | 
	
		
			
				|  |  | +                })
 | 
	
		
			
				|  |  |              })
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          //切换收付费
 | 
	
	
		
			
				|  | @@ -2252,7 +2316,7 @@ export default {
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          rowCell(row, index) {
 | 
	
		
			
				|  |  |              if (row.$cellEdit) {
 | 
	
		
			
				|  |  | -                if (row.plateNo) {
 | 
	
		
			
				|  |  | +                // if (row.plateNo) {
 | 
	
		
			
				|  |  |                      if (row.feeId) {
 | 
	
		
			
				|  |  |                          incidentalSubmit(row).then(res => {
 | 
	
		
			
				|  |  |                              this.$refs.collection.rowCell(row, index)
 | 
	
	
		
			
				|  | @@ -2262,16 +2326,17 @@ export default {
 | 
	
		
			
				|  |  |                      } else {
 | 
	
		
			
				|  |  |                          this.$message.error("请选择费用名称");
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  | -                } else {
 | 
	
		
			
				|  |  | -                    this.$message.error("请选择车号");
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | +                // } else {
 | 
	
		
			
				|  |  | +                //     this.$message.error("请选择车号");
 | 
	
		
			
				|  |  | +                // }
 | 
	
		
			
				|  |  |              } else {
 | 
	
		
			
				|  |  |                  this.$refs.collection.rowCell(row, index)
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          paymentRowCell(row, index) {
 | 
	
		
			
				|  |  | +          console.log(row)
 | 
	
		
			
				|  |  |              if (row.$cellEdit) {
 | 
	
		
			
				|  |  | -                if (row.plateNo) {
 | 
	
		
			
				|  |  | +                // if (row.plateNo) {
 | 
	
		
			
				|  |  |                      if (row.feeId) {
 | 
	
		
			
				|  |  |                          incidentalSubmit(row).then(res => {
 | 
	
		
			
				|  |  |                              row = {
 | 
	
	
		
			
				|  | @@ -2284,9 +2349,9 @@ export default {
 | 
	
		
			
				|  |  |                      } else {
 | 
	
		
			
				|  |  |                          this.$message.error("请选择费用名称");
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  | -                } else {
 | 
	
		
			
				|  |  | -                    this.$message.error("请选择车号");
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | +                // } else {
 | 
	
		
			
				|  |  | +                //     this.$message.error("请选择车号");
 | 
	
		
			
				|  |  | +                // }
 | 
	
		
			
				|  |  |              } else {
 | 
	
		
			
				|  |  |                  this.$refs.payment.rowCell(row, index)
 | 
	
		
			
				|  |  |              }
 | 
	
	
		
			
				|  | @@ -2409,7 +2474,10 @@ export default {
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          //选择客户信息触发
 | 
	
		
			
				|  |  |          getfleetId(data, row) {
 | 
	
		
			
				|  |  | +          console.log(data)
 | 
	
		
			
				|  |  | +            this.$set(row, 'corpShortName', data.corpId)
 | 
	
		
			
				|  |  |              this.$set(row, 'corpName', data.cname)
 | 
	
		
			
				|  |  | +            this.$set(row, 'corpShortName', data.shortName)
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          //收款信息移除
 | 
	
		
			
				|  |  |          makeDel(row, index) {
 |