diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue index e9b92ee48..89d43ca3b 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue @@ -87,16 +87,13 @@ available: 'TRUE', // poLine: row['lineNumber'], }).then(res => { - // if (formField == 'poLine') { - // row['itemCode'] = res.list[0].itemCode - // row['uom'] = res.list[0].uom - // } - if (res) tableData.value = res.list; - tableData.value.forEach(item => { - item.poNumber = item.number - item.poLine = item.lineNumber - item.planQty =item.orderQty-item.plannedQty - }) + if (formField == 'poLine') { + row['itemCode'] = res.list[0].itemCode + row['uom'] = res.list[0].uom + row['orderQty'] = res.list[0].orderQty + row['planQty'] = res.list[0].orderQty-res.list[0].plannedQty + row['available'] = res.list[0].available + } }) } else { const setV = {} @@ -178,7 +175,7 @@ // 列表-操作按钮 const butttondata = (row) => { return [ - defaultButtons.mainListPurchasePlanOpeBtn({ hide: isShowMainButton(row, ['5']) }), // 打开 + defaultButtons.mainListPurchasePlanOpeBtn({ hide: isShowMainButton(row, ['2']) }), // 打开 defaultButtons.mainListPurchasePlanCloBtn({ hide: isShowMainButton(row, ['1']) }), // 关闭 defaultButtons.mainListPurchasePlanPubBtn({ hide: isShowMainButton(row, ['1']) }), // 发布 defaultButtons.mainListPurchasePlanAccBtn({ hide: isShowMainButton(row, ['3']) }), // 接受 diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts index d76314b26..32e7bbd2e 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts @@ -306,12 +306,28 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([ width: 150 }, form: { + // labelMessage: '信息提示说明!!!', componentProps: { - disabled: true + isSearchList: true, + searchListPlaceholder: '请选择订单行', + searchField: 'lineNumber', + searchTitle: '采购订单信息', + searchAllSchemas: PurchaseDetail.allSchemas, + searchPage: PurchaseDetailApi.getPurchaseDetailPage, } }, tableForm: { - disabled: true + isInpuFocusShow: true, + searchListPlaceholder: '请选择订单行', + searchField: 'lineNumber', + searchTitle: '采购订单信息', + searchAllSchemas: PurchaseDetail.allSchemas, + searchPage: PurchaseDetailApi.getPurchaseDetailPage, + searchCondition: [ { + key: 'number', + value: 'poNumber', + isMainValue: true + }] } }, { @@ -362,23 +378,22 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([ } }, - - { - label: '已计划数量', - field: 'plannedQty', - sort: 'custom', - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - }, - tableForm: { - disabled: true - } - }, + // { + // label: '已计划数量', + // field: 'plannedQty', + // sort: 'custom', + // table: { + // width: 150 + // }, + // form: { + // componentProps: { + // disabled: true + // } + // }, + // tableForm: { + // disabled: true + // } + // }, { label: '已发货数量', field: 'shippedQty', diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue index 596a6b2e5..787e99d89 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue @@ -21,8 +21,8 @@ {{ row.number }} -