Browse Source

Merge branch 'dev' of http://47.108.105.48:3000/java_project/logpm_page into dev

fix_bug_pro20231227
13208366016 1 year ago
parent
commit
86e7d2a1a3
  1. 155
      src/api/distribution/distrilbutionBillLading.js
  2. 210
      src/views/distribution/inventory/distrilbutionBillLading.vue
  3. 11
      src/views/distribution/stockup/distributionStockupDetails.vue

155
src/api/distribution/distrilbutionBillLading.js

@ -8,10 +8,11 @@ export const getList = (current, size, params) => {
...params,
current,
size,
}
})
}
export const getOrderDetail = (current, size, params) => { //订单
},
});
};
export const getOrderDetail = (current, size, params) => {
//订单
return request({
url: '/api/logpm-distribution/distrilbutionBillStock/billOrderDetail',
method: 'get',
@ -19,10 +20,11 @@ export const getOrderDetail = (current, size, params) => { //订单
...params,
current,
size,
}
})
}
export const getPackDetail = (current, size, params) => { //包件
},
});
};
export const getPackDetail = (current, size, params) => {
//包件
return request({
url: '/api/logpm-distribution/distrilbutionBillStock/billOrderPack',
method: 'get',
@ -30,10 +32,11 @@ export const getPackDetail = (current, size, params) => { //包件
...params,
current,
size,
}
})
}
export const getInventoryDetail = (current, size, params) => { //库存品
},
});
};
export const getInventoryDetail = (current, size, params) => {
//库存品
return request({
url: '/api/logpm-distribution/distributionDeliveryDetails/billOrderInventory',
method: 'get',
@ -41,9 +44,9 @@ export const getInventoryDetail = (current, size, params) => { //库存品
...params,
current,
size,
}
})
}
},
});
};
export const getListOwn = (current, size, params) => {
return request({
@ -53,84 +56,85 @@ export const getListOwn = (current, size, params) => {
...params,
current,
size,
}
})
}
},
});
};
export const getListOwnNUm = (params) => {
export const getListOwnNUm = params => {
return request({
url: '/api/logpm-distribution/distrilbutionBillLading/listNum',
method: 'get',
params: {
...params,
}
})
}
},
});
};
export const getDetail = (id) => {
export const getDetail = id => {
return request({
url: '/api/logpm-distribution/distrilbutionBillLading/detail',
method: 'get',
params: {
id
}
})
}
id,
},
});
};
export const getViewDetailOwn = (id) => {
export const getViewDetailOwn = id => {
return request({
url: '/api/logpm-distribution/distrilbutionBillLading/viewDetailOwn',
method: 'get',
params: {
id
}
})
}
export const getBillLadingDetail = (ids) => { //签收
id,
},
});
};
export const getBillLadingDetail = ids => {
//签收
return request({
url: '/api/logpm-distribution/distrilbutionBillLading/updateOwn',
method: 'post',
params: {
ids,
}
})
}
},
});
};
export const remove = (ids) => {
export const remove = ids => {
return request({
url: '/api/logpm-distribution/distrilbutionBillLading/remove',
method: 'post',
params: {
ids,
}
})
}
},
});
};
export const add = (row) => {
export const add = row => {
return request({
url: '/api/logpm-distribution/distrilbutionBillLading/submit',
method: 'post',
data: row
})
}
data: row,
});
};
export const addAssign = (row) => {
export const addAssign = row => {
return request({
url: '/api/logpm-distribution/distrilbutionBillLading/saveAssign',
method: 'post',
data: row
})
}
data: row,
});
};
export const getDetailStockupOwn = (id) => {
export const getDetailStockupOwn = id => {
return request({
url: '/api/logpm-distribution/distrilbutionBillLading/detailOwn',
method: 'get',
params: {
id
}
})
}
id,
},
});
};
export const getDetailReservationOwn = (current, size, params) => {
return request({
url: '/api/logpm-distribution/distrilbutionBillLading/detailReservationOwn',
@ -139,10 +143,11 @@ export const getDetailReservationOwn = (current, size, params) => {
...params,
current,
size,
}
})
}
export const getDetailOrderOwn = (current, size, params) => { //订单
},
});
};
export const getDetailOrderOwn = (current, size, params) => {
//订单
return request({
url: '/api/logpm-distribution/distrilbutionBillLading/detailOrderOwn',
method: 'get',
@ -150,10 +155,11 @@ export const getDetailOrderOwn = (current, size, params) => { //订单
...params,
current,
size,
}
})
}
export const getDetailInventoryOwn = (current, size, params) => { //库存品
},
});
};
export const getDetailInventoryOwn = (current, size, params) => {
//库存品
return request({
url: '/api/logpm-distribution/distrilbutionBillLading/inventoryOwn',
method: 'get',
@ -161,19 +167,19 @@ export const getDetailInventoryOwn = (current, size, params) => { //库存品
...params,
current,
size,
}
})
}
export const update = (row) => {
},
});
};
export const update = row => {
return request({
url: '/api/logpm-distribution/distrilbutionBillLading/submit',
method: 'post',
data: row
})
}
data: row,
});
};
/**
* 获取零担订单详情数据
* @param {*} params
* @param {*} params
*/
export const zeroMaterial = params => {
return request({
@ -182,3 +188,14 @@ export const zeroMaterial = params => {
params,
});
};
/**
* 维护零担在库数量
* @param {*} params
*/
export const zeroUpdateMaterial = data => {
return request({
url: '/api/logpm-distribution/distributionParcelList/zeroUpdateMaterial',
method: 'put',
data,
});
};

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

@ -379,6 +379,7 @@
</div>
</div>
<!-- 添加库存品 -->
<el-dialog v-model="dialogFormVisible" title="添加库存品" style="width: 80%">
<el-table
ref="table"
@ -444,6 +445,7 @@
</template>
</el-dialog>
<!-- 添加订单 -->
<el-dialog v-model="dialogFormOrderVisible" title="添加订单" style="width: 80%">
<tablecmt
ref="multipleTable"
@ -488,7 +490,7 @@
<!-- 零担订单信息修改 -->
<el-dialog v-model="dialogFormZeroOrderVisible" title="零担订单信息" center style="width: 50%">
<template v-if="zeroOrderFormList">
<!-- <template v-if="zeroOrderFormList">
<div style="display: flex; align-items: center; text-align: center">
<div style="width: 120px; display: flex">名称</div>
<div style="display: flex">数量</div>
@ -501,72 +503,66 @@
>
<el-input-number :min="0" :max="item.maxNum" v-model="item.quantity" />
</el-form-item>
</template>
</template> -->
<el-table :data="zeroOrderFormList" border style="width: 100%">
<el-table-column fixed prop="firsts" label="名称" />
<el-table-column prop="quantity" label="数量" />
<el-table-column prop="libraryQuantity" label="在库数量" />
<el-table-column prop="deliveryQuantity" label="冻结数量" />
<!-- <el-table-column prop="deliveryQuantity" label="出库数量" /> -->
<el-table-column label="可用数量">
<template #default="props">
<span> {{ props.row.libraryQuantity - props.row.deliveryQuantity }}</span>
</template>
</el-table-column>
<!-- 在库=冻结-出库 -->
<el-table-column fixed="right" label="数量操作">
<template #default="scope">
<el-input-number
size="small"
v-model="scope.row._quantity"
:min="0"
:max="scope.row.maxNum"
/>
</template>
</el-table-column>
</el-table>
<div style="text-align: center">
<el-button type="primary" @click="handleRowZeroOrder">确定</el-button>
<el-button @click="dialogFormZeroOrderVisible = false">取消</el-button>
<el-button type="primary" @click="handleRowZeroOrder">录入数量</el-button>
</div>
</el-dialog>
<!-- 零担订单信息修改 -->
<!-- 零担订单在库信息修改 -->
<el-dialog v-model="zeroOrderVisible" title="零担品类信息" center width="50%">
<el-row :gutter="24" class="rows">
<el-col :xl="4" :lg="7" :md="8" :sm="24">
<h3>
<!-- <span>在库总数{{ this.obj.handQuantity }}</span> -->
</h3>
</el-col>
</el-row>
<div Class="iszer">
<el-table :data="zeroOrderData" border style="width: 100%">
<el-table-column fixed prop="firsts" label="名称" />
<el-table-column prop="quantity" label="数量" />
<el-table-column prop="libraryQuantity" label="在库数量" />
<el-table-column prop="deliveryQuantity" label="冻结数量" />
<template v-if="zeroOrderData != null && zeroOrderData.length !== 0">
<div v-for="(item, index) in zeroOrderData" :key="index">
<el-row :gutter="24" class="rows">
<el-col :xl="4" :lg="7" :md="8" :sm="24">
<span>名称{{ item.firsts }}</span>
</el-col>
<el-col :xl="4" :lg="7" :md="8" :sm="24">
<span>总数量{{ item.quantity }} </span>
</el-col>
<el-col :xl="4" :lg="7" :md="8" :sm="24">
<span>在库数量{{ item.handQuantity }} </span>
</el-col>
<el-col :xl="4" :lg="7" :md="8" :sm="24">
<span>冻结数量{{ item.deliveryQuantity }} </span>
</el-col>
<el-col :xl="4" :lg="7" :md="8" :sm="24">
<span>出库数量{{ item.outboundQuantity }} </span>
</el-col>
<el-col :xl="4" :lg="7" :md="8" :sm="24">
<span
>可用数量{{
item.handQuantity - item.deliveryQuantity - item.outboundQuantity
}}</span
>
</el-col>
</el-row>
<el-input-number
v-if="this.isrReservationEntry"
v-model="item.reservationNum"
min="0"
:max="item.zeroOrderMax"
placeholder="请输入预约数量"
></el-input-number>
<el-input-number
v-else
v-model="item.number"
min="0"
:max="item.quantity"
placeholder="请输入预约数量"
></el-input-number>
<el-table-column fixed="right" label="数量操作">
<template #default="scope">
<el-input-number
size="small"
v-model="scope.row.tiQuantity"
:min="0"
:max="scope.row.maxNum"
/>
</template>
</el-table-column>
</el-table>
<div style="text-align: center">
<el-button icon="el-icon-circle-close" @click="zeroOrderVisible = false"> </el-button>
<el-button icon="el-icon-check" color="#172e60" type="success" @click="onSubmitZeroOrder"
>维护在库数量</el-button
>
</div>
</template>
<el-form-item style="margin-left: 37%; margin-top: 5px">
<el-button type="primary" icon="el-icon-check" @click="onSubmitZeroOrder"
>提交(零担订单)
</el-button>
<el-button icon="el-icon-circle-close" @click="zeroOrderVisible = false"> </el-button>
</el-form-item>
</div>
</el-dialog>
<!-- 选择包件 -->
@ -621,6 +617,7 @@ import {
update,
remove,
zeroMaterial,
zeroUpdateMaterial,
} from '@/api/distribution/distrilbutionBillLading';
import { getListOwn, getList, getEditList } from '@/api/distribution/distributionParcelList';
import option from '@/option/distribution/distrilbutionBillLading';
@ -1841,7 +1838,7 @@ export default {
},
//
zeroOrderVisible: false,
zeroOrderData: [],
zeroOrderData: [{}],
};
},
mounted() {
@ -2590,6 +2587,7 @@ export default {
// submitFormData.parcelLisList.push(item);
// });
});
submitFormData.parcelLisList.forEach(val => (val.quantity = val._quantity));
} else {
submitFormData.zeroType = '1';
}
@ -2990,23 +2988,27 @@ export default {
const { code, data } = res.data;
if (code === 200) {
this.zeroOrderFormList = data.map(val => {
const zeroOrder = {
// id
stockArticleId: val.stockArticleId,
// id
id: val.id,
//
maxNum: val.quantity,
//
quantity: val.quantity,
//
firsts: val.firsts,
};
// zeroOrder = {
// stockArticleId: val.stockArticleId,
// // id
// id: val.id,
// //
// maxNum: val.quantity,
// //
// quantity: val.quantity,
// //
// firsts: val.firsts,
// };
const zeroOrder = val;
// id
zeroOrder.stockArticleId = val.stockArticleId;
//
zeroOrder.maxNum = val.libraryQuantity - val.deliveryQuantity;
// ,
if (row.completeSetName !== '是' && Number(this.$route.query.type) === 3)
zeroOrder.quantity = null;
zeroOrder._quantity = null;
else if (val.deliveryQuantity && Number(this.$route.query.type) === 2) {
zeroOrder.quantity = val.deliveryQuantity;
zeroOrder._quantity = val.deliveryQuantity;
}
return zeroOrder;
});
@ -3026,15 +3028,69 @@ export default {
/**
* 显示维护在库零担数量
*/
handleStockZeroOrder() {
async handleStockZeroOrder(row) {
//
const res = await zeroMaterial({
stockArticleId: row.id,
reservationId: this.$route.query.id,
});
console.log('res :>> ', res);
const { code, data } = res.data;
if (code === 200) {
this.zeroOrderData = data.map(val => {
// zeroOrder = {
// stockArticleId: val.stockArticleId,
// // id
// id: val.id,
// //
// maxNum: val.quantity,
// //
// quantity: val.quantity,
// //
// firsts: val.firsts,
// };
const zeroOrder = val;
// id
zeroOrder.stockArticleId = val.stockArticleId;
//
zeroOrder.maxNum = val.quantity;
// ,
zeroOrder.tiQuantity = val.libraryQuantity;
return zeroOrder;
});
console.log('this.zeroOrderFormList :>> ', this.zeroOrderFormList);
}
//
this.zeroOrderVisible = true;
console.log('this.zeroOrderVisible :>> ', this.zeroOrderVisible);
console.log('111 :>> ', 111);
},
/**
* 在库零担维护提交
*/
onSubmitZeroOrder() {},
async onSubmitZeroOrder() {
try {
if (this.zeroOrderData.length === 0) {
return (this.zeroOrderVisible = false);
}
const submitData = {
stockArticleId: this.zeroOrderData[0].stockArticleId,
distributionParcelListZeroVO: [],
};
submitData.distributionParcelListZeroVO = this.zeroOrderData.map(val => {
val.TiQuantity = val.tiQuantity;
return val;
});
const res = await zeroUpdateMaterial(submitData);
const { code } = res.data;
if (code === 200) {
this.$message.success(res.data.msg);
}
} catch (error) {
console.log('error :>> ', error);
} finally {
this.zeroOrderVisible = false;
}
},
},
};
</script>

11
src/views/distribution/stockup/distributionStockupDetails.vue

@ -104,7 +104,7 @@
</el-tab-pane>
<el-tab-pane label="库存品" name="enter">
<el-text type="primary" text icon="el-icon-view" @click="handleBatchDetail('2')">批量打印</el-text>
<el-button type="primary" icon="el-icon-view" @click="handleBatchDetail('2')">批量打印</el-button>
<tablecmt
:columnList="columnListarrs.columnInventory"
@ -142,7 +142,7 @@
</el-row>
<el-dialog title="包条码" :visible.sync="dialogPack" width="1050px" v-model="dialogPack">
<el-text type="primary" icon="el-icon-view" @click="handleBatchDetail('1')">批量打印</el-text>
<el-button type="primary" icon="el-icon-view" @click="handleBatchDetail('1')">批量打印</el-button>
<tablecmt
:columnList="columnListarrs.columnInventoryBatch"
@ -964,6 +964,11 @@ export default {
this.$message.warning("至少选择一条数据!!")
return ;
}
const _flag = this.selectionList.every(val => !(val.stockupStatusName === '待备货'))
if (_flag) return this.$message.warning('有待备货数据, 无法打印')
if(type== '1'){
//
let checkcode=[]
@ -981,7 +986,7 @@ export default {
this.html=this.getHtmls(res.data.data.dataList,res.data.data.templateHtml)
})
}else if(type== '2'){
//
//
let myMap = [];
this.selectionList.map(item=>{
if(!!item.stocklist){

Loading…
Cancel
Save