Browse Source

问题修复

hella_online_20240829
wangyufei 5 months ago
parent
commit
f02508c786
  1. 15
      src/api/wms/purchasePlanMain/index.ts
  2. 2
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue
  3. 1
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue
  4. 33
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

15
src/api/wms/purchasePlanMain/index.ts

@ -87,19 +87,34 @@ export const exportPurchasePlanMain = async (params) => {
}
// 导出明细要货计划主 Excel
export const exportDetailsPurchasePlanMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/purchase-plan-main/export-excel-senior`, data })
} else {
params = getPageParams(params)
return await request.download({ url: `/wms/purchase-plan-main/export-excel-detail`, params })
}
}
// 要货预测-列表和头部请求参数
const getPageParams = (params)=>{
console.log('params.status',params.status)
// 状态
if(params.status&&params.status.length>0){
params.statuss = params.status.join(',')
}
params.status = ''
return params
}
// 导出要货计划二维表 Excel
export const exportTablePurchasePlanMain = async (params) => {
params = getPageParams(params)
// if (params.isSearch) {
// const data = {...params}
// return await request.downloadPost({ url: `/wms/purchase-plan-main/export-excel-senior`, data })
// } else {
return await request.download({ url: `/wms/purchase-plan-main/export-excel`, params })
//}
}

2
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue

@ -233,6 +233,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
val.forEach(item=>{
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item}))
newRow[formField] = item[searchField]
newRow.batch = formatTime(new Date(), 'yyyyMMdd')
tableData.value.push(newRow)
})
}else{

1
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue

@ -234,6 +234,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
val.forEach(item=>{
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item}))
newRow[formField] = item[searchField]
newRow.batch = formatTime(new Date(), 'yyyyMMdd')
tableData.value.push(newRow)
})
}else{

33
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

@ -765,13 +765,13 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
},
{
label: '采购价格审批人',
field: 'procurementCreatorName',
field: 'procurementCreator',
table: {
width: 150
},
sortTableDefault:14,
isForm: true,
isTable:true,
isTable:false,
isDetail:false,
form: {
component: 'Select',
@ -800,7 +800,27 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
// }
}
},
{
label: '采购价格审批人',
field: 'procurementCreatorName',
table: {
width: 150
},
sortTableDefault:14,
isForm: false,
isTable:true,
isDetail:false,
form: {
component: 'Select',
api: () => procurementCreators.list,
componentProps: {
optionsAlias: {
labelField: 'nickname',
valueField: 'id'
}
},
}
},
{
label: '采购审批人',
field: 'procurementCreatorName',
@ -1251,6 +1271,9 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche
{
label: '采购价格审批时间',
field: 'procurementCreateTime',
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sortTableDefault: 1003,
isForm: false,
isTable: false,
@ -1345,7 +1368,9 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche
label: '财务审批时间',
field: 'financialCreateTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sortTableDefault: 6,
isForm: false,
isTable: false,

Loading…
Cancel
Save