shaogen1995 3 лет назад
Родитель
Сommit
a875ccc0b0
2 измененных файлов с 21 добавлено и 5 удалено
  1. 2 2
      src/utils/request.js
  2. 19 3
      src/views/statistics/statistics2.vue

+ 2 - 2
src/utils/request.js

@@ -1,8 +1,8 @@
 import axios from 'axios'
 // export const baseURL = '666初始地址'
 const service = axios.create({
-  baseURL: 'http://192.168.0.135:8006', // 本地调试
-  // baseURL: 'http://8.135.106.227:8006', // 线上调试
+  // baseURL: 'http://192.168.0.135:8006', // 本地调试
+  baseURL: 'http://8.135.106.227:8006', // 线上调试
   // baseURL: '', // build
   timeout: 5000
 })

+ 19 - 3
src/views/statistics/statistics2.vue

@@ -226,6 +226,7 @@ export default {
       moveValue: null,
       options: [],
       valueOne: '',
+      myObj: {},
       // 点击的藏品id
       myIdAnew: ''
     }
@@ -247,7 +248,6 @@ export default {
         return this.$message.warning('还未选择移库位置!')
       }
       if (this.myObj.storageId === this.tempIds) {
-        console.log(this.myObj.storageId, this.tempIds)
         return this.$message.warning('不能与之前入库位置相同!')
       }
       const res = await applyMove(this.myObj.goodsId, this.tempIds)
@@ -268,12 +268,17 @@ export default {
       this.tempIds = val.join(',')
     },
     applyMoveFn (row) {
-      this.myObj = row
+      this.myObj.goodsId = row.goodsId
       const temp = row.storageId.split(',')
       this.valueOne = []
+      const tempArr = []
       temp.forEach((v) => {
-        if (v !== '') this.valueOne.push(Number(v))
+        if (v !== '') {
+          this.valueOne.push(Number(v))
+          tempArr.push(v)
+        }
       })
+      this.myObj.storageId = tempArr.join(',')
       // console.log(998, this.valueOne)
       // console.log(this.$refs.cascaderAddr)
       // const thsAreaCode = this.$refs.cascaderAddr.getCheckedNodes()
@@ -482,6 +487,17 @@ export default {
   /deep/#mytitle > span {
     font-weight: 800;
   }
+  .moveBtn {
+  position: absolute;
+  bottom: 20px;
+  left: 50%;
+  transform: translateX(-50%);
+}
+.myMove {
+  /deep/.el-dialog {
+    height: 400px;
+  }
+}
 .block {
   & > div {
     margin: 0px 100px 0;