|
|
@@ -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;
|