|
|
|
@ -31,13 +31,13 @@
|
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="10"> |
|
|
|
|
<el-form-item label="货物单位:"> |
|
|
|
|
<span>{{ queryOwn.cargoUnit || '无'}}</span> |
|
|
|
|
<span>{{ queryOwn.cargoUnit || '无' }}</span> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="10"> |
|
|
|
|
<el-form-item label="门店地址:"> |
|
|
|
|
<!-- <span>{{ queryOwn?:!queryOwn.storeName ? !queryOwn: '无' : queryOwn.storeName }}</span> --> |
|
|
|
|
<span>{{ queryOwn.storeNam||'无'}}</span> |
|
|
|
|
<span>{{ queryOwn.storeNam || '无' }}</span> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
@ -144,7 +144,18 @@
|
|
|
|
|
@selection="selectionChange" |
|
|
|
|
> |
|
|
|
|
<template #default="slotProps"> |
|
|
|
|
<el-text v-if="slotProps.scope.row.sourceType === '1'" size="small" @click="handleInventoryQRCode(slotProps.scope)">查看二维码</el-text> |
|
|
|
|
<el-text |
|
|
|
|
v-if="slotProps.scope.row.sourceType === '1'" |
|
|
|
|
size="small" |
|
|
|
|
@click="revokeFn(slotProps.scope.row)" |
|
|
|
|
>撤销</el-text |
|
|
|
|
> |
|
|
|
|
<el-text |
|
|
|
|
v-if="slotProps.scope.row.sourceType === '1'" |
|
|
|
|
size="small" |
|
|
|
|
@click="handleInventoryQRCode(slotProps.scope)" |
|
|
|
|
>查看二维码</el-text |
|
|
|
|
> |
|
|
|
|
</template> |
|
|
|
|
</tablecmt> |
|
|
|
|
<div class="avue-crud__pagination" style="width: 100%"> |
|
|
|
@ -216,48 +227,44 @@
|
|
|
|
|
</div> |
|
|
|
|
</el-row>--> |
|
|
|
|
</div> |
|
|
|
|
<el-dialog |
|
|
|
|
title="二维码" |
|
|
|
|
:visible.sync="dialogVisibleF" |
|
|
|
|
width="780px" |
|
|
|
|
v-model="dialogVisibleF" |
|
|
|
|
> |
|
|
|
|
<el-dialog title="二维码" :visible.sync="dialogVisibleF" width="780px" v-model="dialogVisibleF"> |
|
|
|
|
<div> |
|
|
|
|
<div v-html="html"></div> |
|
|
|
|
</div> |
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
|
<!-- <el-button type="primary" @click="ddd">导 出</el-button>--> |
|
|
|
|
<el-button type="primary" @click="printTemplate">打 印</el-button> |
|
|
|
|
<el-button @click="dialogVisibleF = false">取 消</el-button> |
|
|
|
|
</span> |
|
|
|
|
<!-- <el-button type="primary" @click="ddd">导 出</el-button>--> |
|
|
|
|
<el-button type="primary" @click="printTemplate">打 印</el-button> |
|
|
|
|
<el-button @click="dialogVisibleF = false">取 消</el-button> |
|
|
|
|
</span> |
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</basic-container> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { |
|
|
|
|
getList, |
|
|
|
|
getDetail, |
|
|
|
|
add, |
|
|
|
|
update, |
|
|
|
|
remove, |
|
|
|
|
getListAllocation, |
|
|
|
|
stockExport, |
|
|
|
|
stockInfoExport, showInventoryPackgeCode, showInventorySourcePackageCode |
|
|
|
|
} from '@/api/distribution/distributionStockList'; |
|
|
|
|
import { |
|
|
|
|
getList, |
|
|
|
|
getDetail, |
|
|
|
|
add, |
|
|
|
|
update, |
|
|
|
|
remove, |
|
|
|
|
getListAllocation, |
|
|
|
|
stockExport, |
|
|
|
|
stockInfoExport, |
|
|
|
|
showInventoryPackgeCode, |
|
|
|
|
showInventorySourcePackageCode, |
|
|
|
|
$_cancelAddStockListByPackage, |
|
|
|
|
} from '@/api/distribution/distributionStockList'; |
|
|
|
|
import option from '@/option/distribution/distributionStockList'; |
|
|
|
|
import { mapGetters } from 'vuex'; |
|
|
|
|
import { getListStock } from '@/api/distribution/distributionStock'; |
|
|
|
|
import { getStockListInfoList } from '@/api/distribution/distributionStockListInfo'; |
|
|
|
|
import { downloadXls } from '@/utils/util'; |
|
|
|
|
|
|
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'; |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
dialogVisibleF:false, |
|
|
|
|
html:'', |
|
|
|
|
dialogVisibleF: false, |
|
|
|
|
html: '', |
|
|
|
|
columnListarrs: { |
|
|
|
|
//入库明细 |
|
|
|
|
columnWarehousing: [ |
|
|
|
@ -637,23 +644,49 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
//查看二维码 |
|
|
|
|
handleInventoryQRCode(scope){ |
|
|
|
|
handleInventoryQRCode(scope) { |
|
|
|
|
const { row } = scope; |
|
|
|
|
console.log('执行查看二维码------------>row:',row); |
|
|
|
|
console.log('执行查看二维码------------>row:', row); |
|
|
|
|
|
|
|
|
|
this.materialQRCode = row; |
|
|
|
|
console.log('---------------->',row); |
|
|
|
|
console.log('---------------->', row); |
|
|
|
|
let qr = { |
|
|
|
|
ids: row.id, |
|
|
|
|
}; |
|
|
|
|
this.html = ''; |
|
|
|
|
showInventorySourcePackageCode(row.incomingBatch,row.parcelListId).then(res => { |
|
|
|
|
showInventorySourcePackageCode(row.incomingBatch, row.parcelListId).then(res => { |
|
|
|
|
// this.orderPackageCode = res.data |
|
|
|
|
console.log(res.data); |
|
|
|
|
this.html = this.getHtmls(res.data.data.dataList, res.data.data.templateHtml); |
|
|
|
|
}); |
|
|
|
|
this.dialogVisibleF = true; |
|
|
|
|
}, |
|
|
|
|
revokeFn(val) { |
|
|
|
|
ElMessageBox.confirm('撤销物料会产生库存数量扣减,是否继续?', 'Warning', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'warning', |
|
|
|
|
}) |
|
|
|
|
.then(() => { |
|
|
|
|
this.loading = true; |
|
|
|
|
let data = { |
|
|
|
|
stockListId: val.stockListId, |
|
|
|
|
packageIds: val.parcelListId, |
|
|
|
|
stockListInfoIds: val.id, |
|
|
|
|
}; |
|
|
|
|
console.log(data, '提交参数'); |
|
|
|
|
$_cancelAddStockListByPackage(data).then(res => { |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
ElMessage({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: res.data.msg, |
|
|
|
|
}); |
|
|
|
|
this.getOnRu(this.page2); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
.catch(() => {}); |
|
|
|
|
}, |
|
|
|
|
//导出 |
|
|
|
|
handleExport() { |
|
|
|
|
let row = {}; |
|
|
|
@ -868,7 +901,7 @@ export default {
|
|
|
|
|
i.outboundTypeName = '自提'; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
console.log("处理的数据》》》",this.data1); |
|
|
|
|
console.log('处理的数据》》》', this.data1); |
|
|
|
|
this.page1.total = b.data.data.total; |
|
|
|
|
this.loading = false; |
|
|
|
|
}, |
|
|
|
@ -880,8 +913,8 @@ export default {
|
|
|
|
|
this.query.materialId = this.queryOwn.materialId; |
|
|
|
|
this.query.warehouseId = this.queryOwn.warehouseId; |
|
|
|
|
this.query.incomingBatch = this.$route.query.incomingBatch; |
|
|
|
|
this.query.stockListId=this.$route.query.id; |
|
|
|
|
console.log(this.query.stockListId,'this.query.stockListId'); |
|
|
|
|
this.query.stockListId = this.$route.query.id; |
|
|
|
|
console.log(this.query.stockListId, 'this.query.stockListId'); |
|
|
|
|
this.query.storeId = |
|
|
|
|
!!this.queryOwn.storeId && this.queryOwn.storeId != '-1' ? this.queryOwn.storeId : null; |
|
|
|
|
if (!!this.queryOwn.pid) { |
|
|
|
@ -933,7 +966,7 @@ export default {
|
|
|
|
|
let a = await getList(page.currentPage, page.pageSize, Object.assign(params, this.query)); |
|
|
|
|
console.log('aaaa', a.data.data.records); |
|
|
|
|
this.queryOwn = a.data.data.records[0] || {}; |
|
|
|
|
console.log(this.queryOwn ,'参数'); |
|
|
|
|
console.log(this.queryOwn, '参数'); |
|
|
|
|
if (!this.queryOwn.pid) { |
|
|
|
|
console.log('11111111111'); |
|
|
|
|
//查全部 |
|
|
|
|