Browse Source

提示语修改

master
zhaoxuebing 10 months ago
parent
commit
9204d855a6
  1. 4
      src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue
  2. 4
      src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue
  3. 5
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

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

@ -154,14 +154,16 @@ const buttonBaseClickBom = async (val) => {
if (val == 'save') { if (val == 'save') {
// bom // bom
let flag = false; let flag = false;
let bomQty = 0;
detatableDataBom.tableList.forEach((item) => { detatableDataBom.tableList.forEach((item) => {
if(item.qty!=0 && (item.bomQty * detailQty.value < item.qty)){ if(item.qty!=0 && (item.bomQty * detailQty.value < item.qty)){
flag = true; flag = true;
bomQty = item.bomQty * detailQty.value;
return; return;
} }
}) })
if(flag){ if(flag){
message.warning('数量需要小于Bom数量!') message.warning('数量需要小于'+bomQty+'(子表数量乘以Bom数量的值)!')
return return
} }
tableListBom.value = detatableDataBom.tableList.filter(item => (item.qty!=0 && item.bomQty * detailQty.value >= item.qty)) tableListBom.value = detatableDataBom.tableList.filter(item => (item.qty!=0 && item.bomQty * detailQty.value >= item.qty))

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

@ -159,14 +159,16 @@ const buttonBaseClickBom = (val) => {
if (val == 'save') { if (val == 'save') {
// //
let flag = false; let flag = false;
let bomQty = 0;
detatableDataBom.tableList.forEach((item) => { detatableDataBom.tableList.forEach((item) => {
if(item.qty!=0 && (item.bomQty * detailQty.value < item.qty)){ if(item.qty!=0 && (item.bomQty * detailQty.value < item.qty)){
flag = true; flag = true;
bomQty = item.bomQty * detailQty.value;
return; return;
} }
}) })
if(flag){ if(flag){
message.warning('数量需要小于Bom数量!') message.warning('数量需要小于'+bomQty+'(子表数量乘以Bom数量的值)!')
return return
} }
tableListBom.value = detatableDataBom.tableList.filter(item => (item.qty!=0 && (item.bomQty * detailQty.value >= item.qty))) tableListBom.value = detatableDataBom.tableList.filter(item => (item.qty!=0 && (item.bomQty * detailQty.value >= item.qty)))

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

@ -158,15 +158,16 @@ const buttonBaseClickBom = (val) => {
if (val == 'save') { if (val == 'save') {
// //
let flag = false; let flag = false;
let bomQty = 0;
detatableDataBom.tableList.forEach((item) => { detatableDataBom.tableList.forEach((item) => {
console.log("AAAAAA",item.qty)
if(item.qty!=0 && (item.bomQty * detailQty.value < item.qty)){ if(item.qty!=0 && (item.bomQty * detailQty.value < item.qty)){
flag = true; flag = true;
bomQty = item.bomQty * detailQty.value;
return; return;
} }
}) })
if(flag){ if(flag){
message.warning('数量需要小于Bom数量!') message.warning('数量需要小于'+bomQty+'(子表数量乘以Bom数量的值)!')
return return
} }
tableListBom.value = detatableDataBom.tableList.filter(item => (item.qty!=0 && (item.bomQty * detailQty.value >= item.qty))) tableListBom.value = detatableDataBom.tableList.filter(item => (item.qty!=0 && (item.bomQty * detailQty.value >= item.qty)))

Loading…
Cancel
Save