liuchen864 11 months ago
parent
commit
e4872ef5dd
  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') {
// 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) {
//
tableData.value.forEach((item, index) => {

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

@ -154,7 +154,18 @@ const buttonBaseClickBom = (val) => {
//
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){
tableData.value.forEach((item, 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') {
//
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) {
tableData.value.forEach((item, index) => {
if(tableListBom.value[0].rowId == index) {

Loading…
Cancel
Save