Browse Source

BUG修改

master
yejiaxing 1 year ago
parent
commit
4a5371bcad
  1. 15
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
  2. 8
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts

15
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -204,12 +204,10 @@ const butttondata = (row) => {
defaultButtons.mainListPurchasePlanCloBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListPurchasePlanOpeBtn({hide:isShowMainButton(row,['2'])}), //
defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchase-plan-main:update'}), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchase-plan-main:delete'}), //
// defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchase-plan-main:delete'}), //
]
}
// -
const buttonTableClick = async (val, row) => {
if (val == 'mainPurPlanOpe') { //
@ -299,13 +297,14 @@ const submitForm = async (formType, data) => {
for(let item of tableData.value) {
await PurchaseDetailApi.getPurchaseDetailPage({
number: item.poNumber,
lineNumber: item.poLine
lineNumber: item.poLine,
}).then(res => {
if(item.planQty > res.list[0].orderQty-res.list[0].plannedQty){
message.error('要货计划数量不得大于订单数量-已计划数量')
} else {
data.subList.push(item) //
}
// if(item.planQty > res.list[0].orderQty-res.list[0].plannedQty){
// message.error('-')
// } else {
// data.subList.push(item) //
// }
})
}
if(data.subList.length == tableData.value.length){

8
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts

@ -333,7 +333,8 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
key: 'number',
value: 'poNumber',
isMainValue: true
},{
},
{
key: 'available',
value: 'TRUE',
isMainValue: false
@ -350,9 +351,10 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchPage: PurchaseDetailApi.getPurchaseDetailPage,
searchCondition: [{
key: 'number',
value:'poNumber',
value: 'number',
isMainValue: true
},{
},
{
key: 'available',
value: 'TRUE',
isMainValue: false

Loading…
Cancel
Save