Browse Source

修改数量不能大于默认的Bom数量问题修复

master
zhaoxuebing 11 months ago
parent
commit
5abbeb7cf9
  1. 13
      src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue
  2. 13
      src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue
  3. 13
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

13
src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue

@ -149,7 +149,18 @@ const buttonBaseClickBom = async (val) => {
// //
if (val == 'save') { if (val == 'save') {
// bom // bom
tableListBom.value = detatableDataBom.tableList.filter(item => (item.qty!=0)) let flag = false;
detatableDataBom.tableList.forEach((item) => {
if(item.qty!=0 && item.bomQty < item.qty){
flag = true;
return;
}
})
if(flag){
message.warning('数量需要小于Bom数量!')
return
}
tableListBom.value = detatableDataBom.tableList.filter(item => (item.qty!=0 && item.bomQty >= item.qty))
if (lsBomSave.value) { if (lsBomSave.value) {
// //
tableData.value.forEach((item, index) => { tableData.value.forEach((item, index) => {

13
src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue

@ -154,7 +154,18 @@ const buttonBaseClickBom = (val) => {
// //
if (val == 'save') { if (val == 'save') {
// //
tableListBom.value = detatableDataBom.tableList.filter(item => (item.qty!=0)) let flag = false;
detatableDataBom.tableList.forEach((item) => {
if(item.qty!=0 && item.bomQty < item.qty){
flag = true;
return;
}
})
if(flag){
message.warning('数量需要小于Bom数量!')
return
}
tableListBom.value = detatableDataBom.tableList.filter(item => (item.qty!=0 && item.bomQty >= item.qty))
if(lsBomSave.value){ if(lsBomSave.value){
tableData.value.forEach((item, index) => { tableData.value.forEach((item, index) => {
if(tableListBom.value[0].rowId == index) { if(tableListBom.value[0].rowId == index) {

13
src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

@ -154,7 +154,18 @@ const buttonBaseClickBom = (val) => {
// //
if (val == 'save') { if (val == 'save') {
// //
tableListBom.value = detatableDataBom.tableList.filter(item => (item.qty!=0)) let flag = false;
detatableDataBom.tableList.forEach((item) => {
if(item.qty!=0 && item.bomQty < item.qty){
flag = true;
return;
}
})
if(flag){
message.warning('数量需要小于Bom数量!')
return
}
tableListBom.value = detatableDataBom.tableList.filter(item => (item.qty!=0 && item.bomQty >= item.qty))
if (lsBomSave.value) { if (lsBomSave.value) {
tableData.value.forEach((item, index) => { tableData.value.forEach((item, index) => {
if(tableListBom.value[0].rowId == index) { if(tableListBom.value[0].rowId == index) {

Loading…
Cancel
Save