qb 10 months ago
parent
commit
38b4d20709
  1. 1
      src/api/distribution/createTask.js
  2. 19
      src/views/distribution/inventory/distrilbutionBillLading.vue

1
src/api/distribution/createTask.js

@ -219,6 +219,7 @@ export const postExportContrastStockInfo = params => {
url: '/api/logpm-warehouse/blade-taskQuest/taskQuest/exportContrastStockInfo', url: '/api/logpm-warehouse/blade-taskQuest/taskQuest/exportContrastStockInfo',
method: 'get', method: 'get',
params, params,
responseType: 'blob',
}); });
}; };

19
src/views/distribution/inventory/distrilbutionBillLading.vue

@ -2279,6 +2279,10 @@ export default {
let isa = false; let isa = false;
this.selectionList.some(i => { this.selectionList.some(i => {
let a = this.dataList.filter(ele => ele.id == i.id).length >= 1; let a = this.dataList.filter(ele => ele.id == i.id).length >= 1;
if(!this.$route.query.id){
i.reservationNum=i.handQuantity
}
if (!a) { if (!a) {
this.dataList.push(i); this.dataList.push(i);
} }
@ -2971,9 +2975,14 @@ export default {
params.isAll = 0; params.isAll = 0;
$_getListOne(page.currentPage, page.pageSize, Object.assign(params, this.queryOrder)).then( $_getListOne(page.currentPage, page.pageSize, Object.assign(params, this.queryOrder)).then(
res => { res => {
console.log(res,'res===>');
if(res.data.code !=200 || !res.data.data){
return
}
const data = res.data.data; const data = res.data.data;
this.pageOrder.total = data.total; this.pageOrder.total = data.total || 0;
this.dataOrder = data.records; this.dataOrder = data.records || [];
this.dataOrder = this.dataOrder.map(i => { this.dataOrder = this.dataOrder.map(i => {
const notificationMap = { const notificationMap = {
1: '已通知', 1: '已通知',
@ -3005,7 +3014,11 @@ export default {
this.loading = false; this.loading = false;
this.selectionClear(); this.selectionClear();
} }
); ).catch(res=>{
}).finally(()=>{
this.loading = false;
});
}, },
// //
handleAddView(row) { handleAddView(row) {

Loading…
Cancel
Save