|  | @@ -462,6 +462,9 @@
 | 
	
		
			
				|  |  |                  <span class="el-button--text" style="cursor: pointer"
 | 
	
		
			
				|  |  |                        @click="openTrack(row)">{{ row.plateNo }}</span>
 | 
	
		
			
				|  |  |          </template>
 | 
	
		
			
				|  |  | +        <template slot-scope="scope" slot="menu">
 | 
	
		
			
				|  |  | +          <el-link type="primary" :disabled="vehicleDelete" style="font-size: 1px" @click="vehicleClick(scope.row)">删 除</el-link>
 | 
	
		
			
				|  |  | +        </template>
 | 
	
		
			
				|  |  |        </avue-crud>
 | 
	
		
			
				|  |  |      </trade-card>
 | 
	
		
			
				|  |  |      <trade-card title="杂费明细">
 | 
	
	
		
			
				|  | @@ -640,6 +643,8 @@ import {contrastList, contrastObj} from "@/util/contrastData";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import { getAdminProfilesById } from "@/api/specialTrade/placeAnOrder/detailPage";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +import { getUserInfo } from "@/api/system/user"
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    comments: {
 | 
	
		
			
				|  |  |      trackPlayback
 | 
	
	
		
			
				|  | @@ -671,6 +676,8 @@ export default {
 | 
	
		
			
				|  |  |        KeyBox: 0,
 | 
	
		
			
				|  |  |        KeyBoxTwo: 0,
 | 
	
		
			
				|  |  |        typeTwo: false,
 | 
	
		
			
				|  |  | +      // 车辆信息删除权限
 | 
	
		
			
				|  |  | +      vehicleDelete: true,
 | 
	
		
			
				|  |  |        type: false,
 | 
	
		
			
				|  |  |        enclosure: false,
 | 
	
		
			
				|  |  |        orderList: [],
 | 
	
	
		
			
				|  | @@ -696,7 +703,7 @@ export default {
 | 
	
		
			
				|  |  |          align: 'center',
 | 
	
		
			
				|  |  |          menuAlign: 'center',
 | 
	
		
			
				|  |  |          refreshBtn: false,
 | 
	
		
			
				|  |  | -        menu: false,
 | 
	
		
			
				|  |  | +        menu: true,
 | 
	
		
			
				|  |  |          index: true,
 | 
	
		
			
				|  |  |          stripe: true,
 | 
	
		
			
				|  |  |          cellBtn: false,
 | 
	
	
		
			
				|  | @@ -1823,6 +1830,13 @@ export default {
 | 
	
		
			
				|  |  |        //   // console.log(this.lineArr[this.lineArr.length - 1])
 | 
	
		
			
				|  |  |        // })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    vehicleClick(row) {
 | 
	
		
			
				|  |  | +      console.log(row)
 | 
	
		
			
				|  |  | +      if (row.plateNo == null || row.plateNo == '') {
 | 
	
		
			
				|  |  | +        console.log(row)
 | 
	
		
			
				|  |  | +        this.vehicleList.splice(row.$index, 1);
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      getCropId(row) {
 | 
	
		
			
				|  |  |        if (row) {
 | 
	
		
			
				|  |  |          this.goodsForm.corpId = row.id
 | 
	
	
		
			
				|  | @@ -2260,6 +2274,18 @@ export default {
 | 
	
		
			
				|  |  |        this.goodsOptionForm.disabled = false
 | 
	
		
			
				|  |  |        this.goodsOptionFormTwo.disabled = false
 | 
	
		
			
				|  |  |        this.typeTwo = true
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      getUserInfo().then(res => {
 | 
	
		
			
				|  |  | +        var user = res.data.data;
 | 
	
		
			
				|  |  | +        let postName = user.account;
 | 
	
		
			
				|  |  | +        console.log(user)
 | 
	
		
			
				|  |  | +        let postNameList = postName.split(",");
 | 
	
		
			
				|  |  | +        for (const iterator of postNameList) {
 | 
	
		
			
				|  |  | +          if (iterator == 'admin') {
 | 
	
		
			
				|  |  | +            this.vehicleDelete = false
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  |        // }else {
 | 
	
		
			
				|  |  |        //   this.$message.error('不允许变更')
 | 
	
		
			
				|  |  |        // }
 | 
	
	
		
			
				|  | @@ -2305,10 +2331,11 @@ export default {
 | 
	
		
			
				|  |  |                  orderAddressList: data,
 | 
	
		
			
				|  |  |                  fileList: this.orderFilesList,
 | 
	
		
			
				|  |  |                  itemList: this.entrustList,
 | 
	
		
			
				|  |  | -                orderItemList: [],
 | 
	
		
			
				|  |  | +                orderItemList: this.vehicleList,
 | 
	
		
			
				|  |  |                  orderFeeList: this.collectionList.concat(this.paymentList)
 | 
	
		
			
				|  |  |                }).then(res => {
 | 
	
		
			
				|  |  |                  this.$message.success('保存成功');
 | 
	
		
			
				|  |  | +                this.vehicleDelete = true
 | 
	
		
			
				|  |  |                  this.typeTwo = false
 | 
	
		
			
				|  |  |                  this.refreshData()
 | 
	
		
			
				|  |  |                })
 |