|
|
|
|
@ -103,16 +103,16 @@ |
|
|
|
|
<span><i style="color: red">*</i>仓库物料</span> |
|
|
|
|
</template> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<!-- <el-select v-model="scope.row.goodsCode" @change="val => changeCode(val, scope.$index)"> |
|
|
|
|
<el-select v-model="scope.row.goodsCode" @change="val => changeCode(val, scope.$index)"> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in goodsList" |
|
|
|
|
:key="item.id" |
|
|
|
|
:label="item.goodsCode" |
|
|
|
|
:value="item.goodsCode" |
|
|
|
|
></el-option> |
|
|
|
|
</el-select> --> |
|
|
|
|
</el-select> |
|
|
|
|
|
|
|
|
|
<jhSelect |
|
|
|
|
<!-- <jhSelect |
|
|
|
|
@input="val => (scope.row.goodsCode = val)" |
|
|
|
|
:value="scope.row.goodsCode" |
|
|
|
|
placeholder="请搜索选择" |
|
|
|
|
@ -129,7 +129,7 @@ |
|
|
|
|
:debounce-time="100" |
|
|
|
|
@change="(val, item) => changeCode(val, item, scope.$index)" |
|
|
|
|
:title="'修改'" |
|
|
|
|
/> |
|
|
|
|
/> --> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
@ -254,12 +254,12 @@ import { |
|
|
|
|
getOtherOutNo, |
|
|
|
|
getWarehouseList, |
|
|
|
|
getKeeperList, |
|
|
|
|
getGoodsOutList, |
|
|
|
|
getLocationList, |
|
|
|
|
completeIssue, |
|
|
|
|
getLocationData, |
|
|
|
|
addIssue, |
|
|
|
|
getShList, |
|
|
|
|
getGoodsListByShId |
|
|
|
|
} from '@/api/storeManagement/otherIssuing'; |
|
|
|
|
export default { |
|
|
|
|
props: { |
|
|
|
|
@ -379,7 +379,7 @@ export default { |
|
|
|
|
if (this.checkCode == '') { |
|
|
|
|
this.getWare(); |
|
|
|
|
this.getKeeper(); |
|
|
|
|
this.getGoods(); |
|
|
|
|
// this.getGoods(); |
|
|
|
|
} else { |
|
|
|
|
this.getKeeper(); |
|
|
|
|
this.getShData(); |
|
|
|
|
@ -418,23 +418,23 @@ export default { |
|
|
|
|
} |
|
|
|
|
return Array.from(seen.values()); |
|
|
|
|
}, |
|
|
|
|
changeCode(val, item, index) { |
|
|
|
|
// let tmp = this.goodsList.find(item => item.goodsCode == val); |
|
|
|
|
// console.log('tmp------------', tmp); |
|
|
|
|
changeCode(val, index) { |
|
|
|
|
let tmp = this.goodsList.find(item => item.goodsCode == val); |
|
|
|
|
console.log('tmp------------', tmp); |
|
|
|
|
|
|
|
|
|
if (item != undefined) { |
|
|
|
|
this.outbankList[index].goodsName = item.goodsName; |
|
|
|
|
this.outbankList[index].materialModel = item.materialModel; |
|
|
|
|
this.outbankList[index].unitName = item.unitName; |
|
|
|
|
this.outbankList[index].goodsId = item.id; |
|
|
|
|
// if (item != undefined) { |
|
|
|
|
this.outbankList[index].goodsName = tmp.goodsName; |
|
|
|
|
this.outbankList[index].materialModel = tmp.materialModel; |
|
|
|
|
this.outbankList[index].unitName = tmp.unitName; |
|
|
|
|
this.outbankList[index].goodsId = tmp.id; |
|
|
|
|
this.outbankList[index].slId = ''; |
|
|
|
|
this.outbankList[index].piNo = ''; |
|
|
|
|
this.outbankList[index].quantity = ''; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
// } |
|
|
|
|
getLocationData({ |
|
|
|
|
shId: this.stOtherOutRecord.shId, |
|
|
|
|
goodsId: item.id, |
|
|
|
|
goodsId: tmp.id, |
|
|
|
|
}).then(res => { |
|
|
|
|
console.log('res--------', res); |
|
|
|
|
let data = this.uniqueById(res.data.data.records); |
|
|
|
|
@ -462,7 +462,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
getGoods() { |
|
|
|
|
getGoodsOutList().then(res => { |
|
|
|
|
getGoodsListByShId().then(res => { |
|
|
|
|
this.goodsList = res.data.data.records; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
@ -650,16 +650,17 @@ export default { |
|
|
|
|
} else { |
|
|
|
|
this.isShowInput = false; |
|
|
|
|
} |
|
|
|
|
if (this.outbankList.length == 1) { |
|
|
|
|
this.outbankList[0].slId = ''; |
|
|
|
|
this.outbankList[0].piNo = ''; |
|
|
|
|
this.outbankList[0].quantity = ''; |
|
|
|
|
getGoodsOutList({ |
|
|
|
|
if (this.outbankList.length >= 0) { |
|
|
|
|
// this.outbankList[0].slId = ''; |
|
|
|
|
// this.outbankList[0].piNo = ''; |
|
|
|
|
// this.outbankList[0].quantity = ''; |
|
|
|
|
getGoodsListByShId({ |
|
|
|
|
shId: val, |
|
|
|
|
}).then(res => { |
|
|
|
|
this.goodsList = res.data.data.records; |
|
|
|
|
if (this.outbankList[0].goodsCode != '') { |
|
|
|
|
let tmp = this.goodsList.find(item => item.goodsCode == this.outbankList[0].goodsCode); |
|
|
|
|
if (this.checkCode != '') { |
|
|
|
|
let tmp = this.goodsList.find(item => item.goodsCode == this.checkCode); |
|
|
|
|
|
|
|
|
|
this.outbankList[0].goodsId = tmp.id; |
|
|
|
|
if (tmp) { |
|
|
|
|
getLocationData({ |
|
|
|
|
|