Ver Fonte

Merge branch 'master' of https://git.steerinfo.com/DAL-DAZHOU/icore-pass

liyg há 2 anos atrás
pai
commit
7eee6507f7

+ 2 - 2
build/utils.js

@@ -16,8 +16,8 @@ const devPathSrc = path.resolve(__dirname, '../../../src') // node_modules应用
 //       统计报表       组织机构/系统管理 采购  仓储
 //  'statisticalReport','systemConfig','TMS','WMS','workFlow','ADMINISTRATORS']
 
-let devModules = ['all']
-// let devModules = ['index', 'statisticalReport']
+// let devModules = ['all']
+let devModules = ['index', 'statisticalReport', 'queue']
 // let devModules = ['all']
 
 // let devModules = ['index', 'ADMINISTRATORS']

+ 99 - 99
src/views/sale/components/transportFreight/saleTruckSettlement/bmsTruckDetailOrder.vue

@@ -168,7 +168,7 @@
 </template>
 
 <script>
-import { getCookie } from "@/utils/util.js";
+import { getCookie } from '@/utils/util.js'
 export default {
   data() {
     return {
@@ -190,18 +190,18 @@ export default {
       damageFee: null,
       //加载
       selectLineLoading: false,
-      input: "",
-      activeName: "first",
+      input: '',
+      activeName: 'first',
       ssoId: null,
       //详单Id
       detailsId: null,
       options1: {
         // first请求数据的地址
-        requestUrl: ""
+        requestUrl: ''
       },
       options2: {
         // second请求数据的地址
-        requestUrl: ""
+        requestUrl: ''
       },
       //是否打开修改详单地址弹出框
       dialogFormVisible: false,
@@ -221,171 +221,171 @@ export default {
       addressDrawer: false,
       //运输单价的表格
       Address: {
-        requestUrl: "/api/v1/ams/getAddressDeliveryAddress?apiId=255",
-        selectionType: "radio"
+        requestUrl: '/api/v1/ams/getAddressDeliveryAddress?apiId=255',
+        selectionType: 'radio'
       },
       // addressText:null,
       //缓存当前选中的运输单价
       priceMap: {},
-      formLabelWidth: "125px"
-    };
+      formLabelWidth: '125px'
+    }
   },
   created() {
-    this.options1GetRequestUrl();
-    this.options2GetRequestUrl();
+    this.options1GetRequestUrl()
+    this.options2GetRequestUrl()
   },
   methods: {
     //未结算数据
     options1GetRequestUrl() {
-      if (getCookie("orgCode") == "chengyunshang") {
-        this.ssoId = getCookie("userId");
+      if (getCookie('orgCode') == 'chengyunshang') {
+        this.ssoId = getCookie('userId')
         this.options1.requestUrl =
-          "/api/v1/bms/getUnFinishedTruckDetailsOrderList?apiId=176&orderType=2&carrierSsoId=" +
-          getCookie("userId");
+          '/api/v1/bms/getUnFinishedTruckDetailsOrderList?apiId=176&orderType=2&carrierSsoId=' +
+          getCookie('userId')
       } else {
         this.options1.requestUrl =
-          "/api/v1/bms/getUnFinishedTruckDetailsOrderList?apiId=176&orderType=2&carrierSsoId=" +
-          this.ssoId;
+          '/api/v1/bms/getUnFinishedTruckDetailsOrderList?apiId=176&orderType=2&carrierSsoId=' +
+          this.ssoId
       }
     },
     //已结算数据
     options2GetRequestUrl() {
-      if (getCookie("orgCode") == "chengyunshang") {
+      if (getCookie('orgCode') == 'chengyunshang') {
         this.options2.requestUrl =
-          "/api/v1/bms/getTruckDetailsOrderList?apiId=176&orderType=2&carrierSsoId=" +
-          getCookie("userId");
+          '/api/v1/bms/getTruckDetailsOrderList?apiId=176&orderType=2&carrierSsoId=' +
+          getCookie('userId')
       } else {
         this.options2.requestUrl =
-          "/api/v1/bms/getTruckDetailsOrderList?apiId=176&orderType=2&carrierSsoId=" +
-          this.ssoId;
+          '/api/v1/bms/getTruckDetailsOrderList?apiId=176&orderType=2&carrierSsoId=' +
+          this.ssoId
       }
     },
     //收货地址弹出层
     handleSelect1(item) {
-      console.log("获取所有下拉值!");
+      console.log('获取所有下拉值!')
     },
     //查询全国省市县
     selectAddresClick() {
       if (this.addresText) {
         this.Address.requestUrl =
-          "/api/v1/ams/getAddressDeliveryAddress?apiId=255&con=" +
-          this.addresText;
+          '/api/v1/ams/getAddressDeliveryAddress?apiId=255&con=' +
+          this.addresText
       } else {
         this.Address.requestUrl =
-          "/api/v1/ams/getAddressDeliveryAddress?apiId=255&i=" + new Date();
+          '/api/v1/ams/getAddressDeliveryAddress?apiId=255&i=' + new Date()
       }
     },
     //以下是收货地址边输边查搜索
     querySearch1(queryString, cb) {
       this.axios
         .post(
-          "/api/v1/ams/getRealAddressByLike?addressId=" +
+          '/api/v1/ams/getRealAddressByLike?addressId=' +
             this.addressId +
-            "&index=" +
+            '&index=' +
             queryString
         )
         .then(res => {
-          if (res.data.code == "200") {
-            var restaurants = res.data.data;
+          if (res.data.code == '200') {
+            var restaurants = res.data.data
             var results = queryString
               ? restaurants.filter(this.createFilter1(queryString))
-              : restaurants;
+              : restaurants
             // 调用 callback 返回建议列表的数据
-            cb(results);
+            cb(results)
           }
-        });
+        })
     },
     createFilter1(queryString) {
       return restaurants => {
         return (
           restaurants.value.toLowerCase().indexOf(queryString.toLowerCase()) >
           -1
-        );
-      };
+        )
+      }
     },
     //以上是收货地址边输边查搜索
     toInsert() {
-      this.$router.push("/insertCheckInventory");
+      this.$router.push('/insertCheckInventory')
     },
     // getclick(scope){
     //   this.$router.push("/getTransportResult/"+scope.row.orderId)
     // },
     //增加途损
     addDamage(row) {
-      this.detailsId = row.detailsId;
-      this.dialogDamage = true;
+      this.detailsId = row.detailsId
+      this.dialogDamage = true
     },
     makeSureAdd() {
       if (!this.DaDryBasis) {
-        this.$message.error("达钢的干基还未填!");
+        this.$message.error('达钢的干基还未填!')
       } else if (!this.JiuDryBasis) {
-        this.$message.error("九江收货的干基还未填!");
+        this.$message.error('九江收货的干基还未填!')
       } else if (!this.Fee) {
-        this.$message.error("单价还未填!");
+        this.$message.error('单价还未填!')
       } else {
-        this.dialogDamage = false;
+        this.dialogDamage = false
         //计算途损 [(达钢的干基-九江收货的干基)/达钢的干基 - 0.03] * 单价 > 0, 扣除途损
         this.damageFee =
           ((this.DaDryBasis - this.JiuDryBasis) / this.DaDryBasis - 0.03) *
-          this.Fee;
+          this.Fee
         if (this.damageFee > 0) {
           let map = {
             detailsId: this.detailsId,
             lossFees: this.damageFee.toFixed(2)
-          };
+          }
           //是否确定增加途损费!
-          this.$confirm("是否确定增加途损费", "提示", {
-            confirmButtonText: "确定",
-            cancelButtonText: "取消",
-            type: "warning",
+          this.$confirm('是否确定增加途损费', '提示', {
+            confirmButtonText: '确定',
+            cancelButtonText: '取消',
+            type: 'warning',
             center: true
           })
             .then(() => {
               //初始化增加途损费对话框中的信息
-              (this.damageFee = null),
+              ;(this.damageFee = null),
                 this.axios
-                  .post("/api/v1/bms/addLossFeeOfCoke", map)
+                  .post('/api/v1/bms/addLossFeeOfCoke', map)
                   .then(res => {
-                    if (res.data.code == "0") {
-                      this.$message.success("增加途损费成功!");
+                    if (res.data.code == '0') {
+                      this.$message.success('增加途损费成功!')
                       //重置未结算详单表单信息
                       this.options1.requestUrl =
-                        "/api/v1/bms/getUnFinishedTruckDetailsOrderList?apiId=176&orderType=1&i=" +
-                        new Date();
+                        '/api/v1/bms/getUnFinishedTruckDetailsOrderList?apiId=176&orderType=1&i=' +
+                        new Date()
                     } else {
-                      this.$message.error("增加途损费失败,请联系管理员!");
+                      this.$message.error('增加途损费失败,请联系管理员!')
                     }
-                  });
+                  })
             })
             .catch(() => {
               this.$message({
-                type: "info",
-                message: "取消修改详单单价!"
-              });
-            });
+                type: 'info',
+                message: '取消修改详单单价!'
+              })
+            })
         }
       }
     },
     onclick() {
-      console.log("查询待定值");
+      console.log('查询待定值')
       // this.options.requestUrl = "/api/v1/bms/getTruckDetailsOrderList?apiId=176&orderType=1&con="+this.input;
     },
     //修改详单单价
     priceValueUpdate(row) {
-      this.originalAddress = row.realAddress;
-      this.originalPriceValue = row.priceValue;
-      this.detailsId = row.detailsId;
-      this.dialogFormVisible = true;
+      this.originalAddress = row.realAddress
+      this.originalPriceValue = row.priceValue
+      this.detailsId = row.detailsId
+      this.dialogFormVisible = true
     },
     //运输订单点击浏览的事件
     select() {
-      this.addressDrawer = true;
+      this.addressDrawer = true
     },
     //运输单价模态窗口的框计算
     selectAddressClick() {
       this.Price.requestUrl =
-        "/api/v1/ams/getAddressDeliveryAddress?apiId=255&con=" +
-        this.addressText;
+        '/api/v1/ams/getAddressDeliveryAddress?apiId=255&con=' +
+        this.addressText
     },
     //运输单价模态窗口的点击事件
     addAddressClick() {
@@ -393,28 +393,28 @@ export default {
       let map = {
         place: this.place,
         addressId: this.addressId
-      };
-      this.axios.post("/api/v1/ams/getPriceMap", map).then(res => {
+      }
+      this.axios.post('/api/v1/ams/getPriceMap', map).then(res => {
         if (res.data.data.priceId == -1) {
-          this.newPriceValue = "未录单价!";
-          this.priceId = null;
+          this.newPriceValue = '未录单价!'
+          this.priceId = null
         } else {
           //赋值运输单价和运输单价ID
-          this.newPriceValue = res.data.data.priceValue; //this.priceMap.priceValue
-          this.priceId = res.data.data.priceId; //this.priceMap.priceId
+          this.newPriceValue = res.data.data.priceValue //this.priceMap.priceValue
+          this.priceId = res.data.data.priceId //this.priceMap.priceId
         }
-      });
+      })
       //priceMap
-      this.newAddress = this.address + this.place;
-      this.addressDrawer = false;
+      this.newAddress = this.address + this.place
+      this.addressDrawer = false
     },
     //运输单价模态框单选选中的事件
     currentRadioChange2(val) {
       //若具体地址有值,清空值
       if (this.place != null) {
-        this.place = null;
+        this.place = null
       }
-      (this.address = val.address), (this.addressId = val.addressId);
+      ;(this.address = val.address), (this.addressId = val.addressId)
       // this.priceMap = {};
       // this.priceMap = val;
     },
@@ -422,52 +422,52 @@ export default {
     makeSure() {
       //若没有单价Id
       if (this.priceId == null) {
-        this.$message.error("该区域没有录入单价,不可修改!");
+        this.$message.error('该区域没有录入单价,不可修改!')
       } else {
-        this.dialogFormVisible = false;
+        this.dialogFormVisible = false
         let mapValue = {
           detailsId: this.detailsId,
           priceId: this.priceId
-        };
+        }
         //是否确定修改详单地址!
-        this.$confirm("是否确定修改详单地址", "提示", {
-          confirmButtonText: "确定",
-          cancelButtonText: "取消",
-          type: "warning",
+        this.$confirm('是否确定修改详单地址', '提示', {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          type: 'warning',
           center: true
         })
           .then(() => {
             //初始化修改详单地址对话框的信息
-            (this.newPriceValue = null),
+            ;(this.newPriceValue = null),
               (this.newAddress = null),
               (this.address = null),
               (this.addresText = null),
               (this.addressId = null),
               (this.priceId = null),
               this.axios
-                .post("/api/v1/bms/updateDetailsOrder", mapValue)
+                .post('/api/v1/bms/updateDetailsOrder', mapValue)
                 .then(res => {
-                  if (res.data.code == "0") {
-                    this.$message.success("修改详单单价成功!");
+                  if (res.data.code == '0') {
+                    this.$message.success('修改详单单价成功!')
                     //重置未结算详单表单信息
                     this.options1.requestUrl =
-                      "/api/v1/bms/getUnFinishedTruckDetailsOrderList?apiId=176&orderType=1&i=" +
-                      new Date();
+                      '/api/v1/bms/getUnFinishedTruckDetailsOrderList?apiId=176&orderType=1&i=' +
+                      new Date()
                   } else {
-                    this.$message.error("修改详单单价失败,请联系管理员!");
+                    this.$message.error('修改详单单价失败,请联系管理员!')
                   }
-                });
+                })
           })
           .catch(() => {
             this.$message({
-              type: "info",
-              message: "取消修改详单单价!"
-            });
-          });
+              type: 'info',
+              message: '取消修改详单单价!'
+            })
+          })
       }
     }
   }
-};
+}
 </script>
 
 <style lang="scss" scode>

+ 111 - 95
src/views/sale/components/transportFreight/saleTruckSettlement/bmsTruckDetailsOrderNew.vue

@@ -123,12 +123,20 @@
           </el-button>
         </el-form-item>
         <el-form-item v-show="activeName == 'first'">
-          <el-button type="primary" @click="openDetails"  v-if="!notRoutList.includes('uploadDetails')">
+          <el-button
+            type="primary"
+            @click="openDetails"
+            v-if="!notRoutList.includes('uploadDetails')"
+          >
             <i class="el-icon-circle-check"></i>直接修改单价
           </el-button>
         </el-form-item>
-         <el-form-item v-show="activeName == 'first'">
-          <el-button type="primary" @click="openDetailsAdd"  v-if="!notRoutList.includes('uploadDetails')">
+        <el-form-item v-show="activeName == 'first'">
+          <el-button
+            type="primary"
+            @click="openDetailsAdd"
+            v-if="!notRoutList.includes('uploadDetails')"
+          >
             <i class="el-icon-circle-check"></i>冲红
           </el-button>
         </el-form-item>
@@ -381,11 +389,14 @@
                 show-overflow-tooltip
               >
                 <template slot-scope="scope">
-                  <el-button @click="showPhoto(scope.row)" type="text" size="small">
-                    {{scope.row.detailsRemark}}
+                  <el-button
+                    @click="showPhoto(scope.row)"
+                    type="text"
+                    size="small"
+                  >
+                    {{ scope.row.detailsRemark }}
                   </el-button>
                 </template>
-
               </el-table-column>
             </el-table>
           </div>
@@ -613,18 +624,21 @@
                 show-overflow-tooltip
               >
               </el-table-column>
-               <el-table-column
+              <el-table-column
                 prop="detailsRemark"
                 label="直接修改备注"
                 width="120px"
                 show-overflow-tooltip
               >
                 <template slot-scope="scope">
-                  <el-button @click="showPhoto(scope.row)" type="text" size="small">
-                    {{scope.row.detailsRemark}}
+                  <el-button
+                    @click="showPhoto(scope.row)"
+                    type="text"
+                    size="small"
+                  >
+                    {{ scope.row.detailsRemark }}
                   </el-button>
                 </template>
-
               </el-table-column>
             </el-table>
           </div>
@@ -867,15 +881,12 @@
           ></el-input>
         </el-form-item>
         <el-form-item label="修改备注">
-          <el-input
-            v-model="detailRemark"
-            style="width:200px"
-          ></el-input>
+          <el-input v-model="detailRemark" style="width:200px"></el-input>
         </el-form-item>
         <el-form-item label="凭证图片" style="">
           <el-upload
             ref="detailsUpload"
-            action='noAction'
+            action="noAction"
             list-type="picture-card"
             :limit="10"
             :on-change="fileChange2"
@@ -896,10 +907,7 @@
         >确定</el-button
       >
     </el-dialog>
-    <el-dialog
-      title="冲红"
-      :visible.sync="showDetailsAdd"
-    >
+    <el-dialog title="冲红" :visible.sync="showDetailsAdd">
       <el-form style="margin-left:20%">
         <el-form-item label="冲红金额">
           <el-input
@@ -909,10 +917,7 @@
           ></el-input>
         </el-form-item>
         <el-form-item label="冲红备注">
-          <el-input
-            v-model="detailRemark"
-            style="width:200px"
-          ></el-input>
+          <el-input v-model="detailRemark" style="width:200px"></el-input>
         </el-form-item>
       </el-form>
       <el-button
@@ -929,9 +934,15 @@
     <el-dialog
       title="查看凭证"
       :visible.sync="showPhotoPreview"
-      :before-close=" ()=>showPhotoPreview=false "
+      :before-close="() => (showPhotoPreview = false)"
     >
-        <img width="100%"  v-for="(item,index) in previewList" :key="index" :src="item" alt="" />
+      <img
+        width="100%"
+        v-for="(item, index) in previewList"
+        :key="index"
+        :src="item"
+        alt=""
+      />
     </el-dialog>
   </div>
 </template>
@@ -1251,13 +1262,13 @@ export default {
       excludeTax: null,
       statementList: [],
       showStatementUpLoad: false,
-      detailAmount:null,
-      detailsList:[],
-      showDetailsUpLoad:false,
-      showDetailsAdd:false,
-      detailRemark:null,
-      showPhotoPreview:false,
-      previewList:[],
+      detailAmount: null,
+      detailsList: [],
+      showDetailsUpLoad: false,
+      showDetailsAdd: false,
+      detailRemark: null,
+      showPhotoPreview: false,
+      previewList: [],
       selecteddetailsOrderAmount: 0,
       scrollLeft: 0,
       scrollLeft1: 0,
@@ -1606,22 +1617,22 @@ export default {
       console.log('确认执行价的顺序')
       console.log(this.makeSurePriceOrderList)
       console.log(map)
-      let flag = 0
-      this.someOnePriceValueList.forEach(e => {
-        if (e.detailsAmount == null) {
-          console.log('进入了flag++')
-          flag++
-        }
-      })
-      if (flag != 0) {
-        this.$message({
-          type: 'error',
-          message: '没有最终运费',
-          duration: 2000,
-          offset: '250'
-        })
-        return
-      }
+      // let flag = 0
+      // this.someOnePriceValueList.forEach(e => {
+      //   if (e.detailsAmount == null) {
+      //     console.log('进入了flag++')
+      //     flag++
+      //   }
+      // })
+      // if (flag != 0) {
+      //   this.$message({
+      //     type: 'error',
+      //     message: '没有最终运费',
+      //     duration: 2000,
+      //     offset: '250'
+      //   })
+      //   return
+      // }
       console.log('确认执行价的顺序')
       console.log(this.makeSurePriceOrderList)
       console.log(map)
@@ -1672,13 +1683,15 @@ export default {
         if (this.setteldAllselectValue == 1) {
           data = this.tableData1
         } else {
-          let orderList= [];
-          this.$refs.tableRef1.selection.forEach((item)=>{
-            orderList.push(item.orderId);
-          });
-          console.log("orderList",orderList);
-          console.log("tableData1",this.tableData1);
-          data = this.tableData1.filter(item => orderList.indexOf(item.orderId)>=0);
+          let orderList = []
+          this.$refs.tableRef1.selection.forEach(item => {
+            orderList.push(item.orderId)
+          })
+          console.log('orderList', orderList)
+          console.log('tableData1', this.tableData1)
+          data = this.tableData1.filter(
+            item => orderList.indexOf(item.orderId) >= 0
+          )
         }
         console.log(data, 'data')
         this.selecteddetailsOrderAmount = data.reduce((prev, item) => {
@@ -1750,7 +1763,7 @@ export default {
         this.$refs.tableRef.selection.length != 1
       ) {
         this.$message.warning('请选择需要上传凭证的订单,一次只允许修改一个')
-        return;
+        return
       } else {
         this.detailAmount = null
         this.detailRemark = null
@@ -1761,17 +1774,17 @@ export default {
         } else {
           data = this.$refs.tableRef.selection
         }
-        for(let i=0;i<data.length;i++){
-          if(!data[i].orderId || !data[i].netWeight){
+        for (let i = 0; i < data.length; i++) {
+          if (!data[i].orderId || !data[i].netWeight) {
             this.$message.warning('没有派发运单,或没有净重,无法修改此项')
-            return;
+            return
           }
         }
         this.showDetailsUpLoad = true
       }
     },
-    updateTruckDetail(){
-        this.isLoading = true
+    updateTruckDetail() {
+      this.isLoading = true
       if (!this.detailAmount || !this.detailRemark) {
         this.$message.warning('请填写所有信息!')
         this.isLoading = false
@@ -1787,15 +1800,15 @@ export default {
         })
         console.log(orderList, 'orderList')
         let formData = new window.FormData()
-        if(this.detailsList){
-          this.detailsList.forEach((item,index)=>{
-            formData.append('file'+index, item.raw)
-          });
+        if (this.detailsList) {
+          this.detailsList.forEach((item, index) => {
+            formData.append('file' + index, item.raw)
+          })
         }
         formData.append('orderList', orderList)
         formData.append('userId', getCookie('userId'))
-        formData.append('detailAmount',this.detailAmount);
-        formData.append('detailRemark',this.detailRemark);
+        formData.append('detailAmount', this.detailAmount)
+        formData.append('detailRemark', this.detailRemark)
         let options = {
           url: '/api/v1/bms/updateTruckDetail',
           data: formData,
@@ -1809,7 +1822,7 @@ export default {
           if (res.data.status == 'succeed') {
             this.$message.success('修改成功!')
             this.setteldAllselectValue = 0
-            this.onclick();
+            this.onclick()
             this.closeUpload2()
           } else {
             this.$message.error(res.data.data)
@@ -1818,14 +1831,14 @@ export default {
         })
       }
     },
-    openDetailsAdd(){
-       console.log(this.$refs.tableRef.selection, 'selection')
+    openDetailsAdd() {
+      console.log(this.$refs.tableRef.selection, 'selection')
       if (
         !this.$refs.tableRef.selection ||
         this.$refs.tableRef.selection.length != 1
       ) {
         this.$message.warning('请选择需要冲红的订单,一次只允许修改一个')
-        return;
+        return
       } else {
         this.detailAmount = null
         this.detailRemark = null
@@ -1836,17 +1849,17 @@ export default {
         } else {
           data = this.$refs.tableRef.selection
         }
-        for(let i=0;i<data.length;i++){
-          if(!data[i].orderId){
+        for (let i = 0; i < data.length; i++) {
+          if (!data[i].orderId) {
             this.$message.warning('没有派发运单,无法修改此项')
-            return;
+            return
           }
         }
         this.showDetailsAdd = true
       }
     },
-    addTruckDetail(){
-        this.isLoading = true
+    addTruckDetail() {
+      this.isLoading = true
       if (!this.detailAmount || !this.detailRemark) {
         this.$message.warning('请填写所有信息!')
         this.isLoading = false
@@ -1862,16 +1875,16 @@ export default {
         })
         console.log(orderList, 'orderList')
         let map = {
-          orderList:orderList,
-          userId:getCookie('userId'),
-          detailAmount:this.detailAmount,
-          detailRemark:this.detailRemark
+          orderList: orderList,
+          userId: getCookie('userId'),
+          detailAmount: this.detailAmount,
+          detailRemark: this.detailRemark
         }
-        this.axios.post('/api/v1/bms/addTruckDetail',map).then(res => {
+        this.axios.post('/api/v1/bms/addTruckDetail', map).then(res => {
           if (res.data.status == 'succeed') {
             this.$message.success('修改成功!')
             this.setteldAllselectValue = 0
-            this.onclick();
+            this.onclick()
           } else {
             this.$message.error(res.data.data)
           }
@@ -2281,15 +2294,17 @@ export default {
     fileChange2(file, fileList) {
       this.detailsList = fileList
     },
-    showPhoto(row){
-      this.showPhotoPreview=true;
-      this.previewList=[];
-      this.axios.post('/api/v1/uc/getPicture',{
-        urls:row.photo
-      }).then((res)=>{
-        console.log(res);
-        this.previewList=res.data;
-      })
+    showPhoto(row) {
+      this.showPhotoPreview = true
+      this.previewList = []
+      this.axios
+        .post('/api/v1/uc/getPicture', {
+          urls: row.photo
+        })
+        .then(res => {
+          console.log(res)
+          this.previewList = res.data
+        })
     },
     exceed() {
       this.$message.warning('超出上传数量!')
@@ -2304,10 +2319,10 @@ export default {
       this.$refs.statementUpload.clearFiles()
       // this.$refs.receive.clearFiles()
     },
-    closeUpload2(){
-       this.showDetailsUpLoad = false
-       this.isLoading = false
-       this.$refs.detailsUpload.clearFiles()
+    closeUpload2() {
+      this.showDetailsUpLoad = false
+      this.isLoading = false
+      this.$refs.detailsUpload.clearFiles()
     },
     //防抖函数--防止用户重复点击
     debounce(func, delay) {
@@ -3342,6 +3357,7 @@ export default {
       map.isCloseEas = Number(1)
       map.isNewCar = Number(1)
       map.shipperAddressId = this.addressId
+      map.userName = getCookie('loginName')
       this.axios
         .post('/api/v1/ams/updateCarAddress', map)
         .then(res => {