Browse Source

要货计划修改

master
zhaoxuebing 11 months ago
parent
commit
a20a839697
  1. 6
      src/api/wms/purchaseDetail/index.ts
  2. 41
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts

6
src/api/wms/purchaseDetail/index.ts

@ -46,16 +46,10 @@ export const getPurchaseDetailPage = async (params) => {
// 查询采购订单子列表 // 查询采购订单子列表
export const getPurchaseDetailPagePoNumber = async (params) => { export const getPurchaseDetailPagePoNumber = async (params) => {
if (params.isSearch) { if (params.isSearch) {
if(params.number == ''){
return;
}
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/purchase-detail/senior', data }) return await request.post({ url: '/wms/purchase-detail/senior', data })
} else { } else {
if(params.number == ''){
return;
}
return await request.get({ url: `/wms/purchase-detail/page`, params }) return await request.get({ url: `/wms/purchase-detail/page`, params })
} }
} }

41
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts

@ -545,19 +545,36 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false, isForm: false,
}, },
{ {
label: '转换率', label: '转换率',
field: 'convertRate', field: 'convertRate',
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
min: 0 min: 0
} }
}, },
table: { table: {
width: 150 width: 150
},
isTableForm: false,
isForm: false,
}, },
isTableForm: false, {
isForm: false, label: '已计划数量',
field: 'plannedQty',
table: {
width: 150
},
form: {
component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
},
value: 1
},
isTableForm: false,
isForm: false,
}, },
{ {
label: '已发货数量', label: '已发货数量',

Loading…
Cancel
Save