|
|
@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<basic-container> |
|
|
|
<basic-container> |
|
|
|
<div class="avue-crud"> |
|
|
|
<div class="avue-crud" v-loading="loadingObj.pageLoading"> |
|
|
|
<!-- <el-row v-if="!search" style="padding:6px 18px">--> |
|
|
|
<!-- <el-row v-if="!search" style="padding:6px 18px">--> |
|
|
|
<!-- 查询模块 --> |
|
|
|
<!-- 查询模块 --> |
|
|
|
<el-form :model="queryOwn" label-width="80px"> |
|
|
|
<el-form :model="queryOwn" label-width="80px"> |
|
|
@ -617,6 +617,9 @@ export default { |
|
|
|
data2: [], |
|
|
|
data2: [], |
|
|
|
data3: [], |
|
|
|
data3: [], |
|
|
|
leibiao: '', |
|
|
|
leibiao: '', |
|
|
|
|
|
|
|
loadingObj: { |
|
|
|
|
|
|
|
pageLoading: false, |
|
|
|
|
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
mounted() { |
|
|
@ -628,7 +631,7 @@ export default { |
|
|
|
// console.log(newVal, oldVal); |
|
|
|
// console.log(newVal, oldVal); |
|
|
|
if (this.$route.path !== '/distribution/inventory/distributionStockListDetails') return; |
|
|
|
if (this.$route.path !== '/distribution/inventory/distributionStockListDetails') return; |
|
|
|
this.activeName = 'library'; |
|
|
|
this.activeName = 'library'; |
|
|
|
this.query = {} |
|
|
|
this.query = {}; |
|
|
|
this.init(); |
|
|
|
this.init(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
deep: true, |
|
|
|
deep: true, |
|
|
@ -647,22 +650,23 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
//查看二维码 |
|
|
|
//查看二维码 |
|
|
|
handleInventoryQRCode(scope) { |
|
|
|
async handleInventoryQRCode({ row }) { |
|
|
|
const { row } = scope; |
|
|
|
|
|
|
|
console.log('执行查看二维码------------>row:', row); |
|
|
|
console.log('执行查看二维码------------>row:', row); |
|
|
|
|
|
|
|
|
|
|
|
this.materialQRCode = row; |
|
|
|
try { |
|
|
|
console.log('---------------->', row); |
|
|
|
this.loadingObj.pageLoading = true; |
|
|
|
let qr = { |
|
|
|
let res = await showInventorySourcePackageCode(row.incomingBatch, row.parcelListId); |
|
|
|
ids: row.id, |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
this.html = ''; |
|
|
|
this.html = ''; |
|
|
|
showInventorySourcePackageCode(row.incomingBatch, row.parcelListId).then(res => { |
|
|
|
|
|
|
|
// this.orderPackageCode = res.data |
|
|
|
const { code, data } = res.data; |
|
|
|
console.log(res.data); |
|
|
|
if (code !== 200) return; |
|
|
|
this.html = this.getHtmls(res.data.data.dataList, res.data.data.templateHtml); |
|
|
|
this.html = this.getHtmls(data.dataList, data.templateHtml); |
|
|
|
}); |
|
|
|
|
|
|
|
this.dialogVisibleF = true; |
|
|
|
this.dialogVisibleF = true; |
|
|
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
|
|
console.log('error :>> ', error); |
|
|
|
|
|
|
|
} finally { |
|
|
|
|
|
|
|
this.loadingObj.pageLoading = false; |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
revokeFn(val) { |
|
|
|
revokeFn(val) { |
|
|
|
ElMessageBox.confirm('撤销物料会产生库存数量扣减,是否继续?', 'Warning', { |
|
|
|
ElMessageBox.confirm('撤销物料会产生库存数量扣减,是否继续?', 'Warning', { |
|
|
|