Browse Source

要货计划根据物料的受入地进行拆分 YT-291

intex_online20241111
叶佳兴 4 months ago
parent
commit
47dd567469
  1. 22
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts
  2. 20
      src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/PurchaseClaimRequestMain.data.ts
  3. 8
      src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue

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

@ -814,6 +814,28 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
disabled:true, disabled:true,
} }
}, },
{
label: '受入号',
field: 'receivedNumber',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
sortTableDefault:13,
},
{
label: '受入地',
field: 'receivedLocation',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
sortTableDefault:14,
},
{ {
label: '是否可用', label: '是否可用',
field: 'available', field: 'available',

20
src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/PurchaseClaimRequestMain.data.ts

@ -68,11 +68,11 @@ export const PurchaseClaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '索赔时间', label: '索赔时间',
field: 'invoiceTime', field: 'claimTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
table: { table: {
width: 110 width: 180
}, },
search: { search: {
component: 'DatePicker', component: 'DatePicker',
@ -167,6 +167,7 @@ export const PurchaseClaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '操作', label: '操作',
field: 'action', field: 'action',
isForm: false, isForm: false,
isDetail: false,
table: { table: {
width: 150, width: 150,
fixed: 'right' fixed: 'right'
@ -193,7 +194,8 @@ export const PurchaseClaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
table: { table: {
width: 150 width: 150,
}, },
tableForm:{ tableForm:{
multiple:false,//多选 multiple:false,//多选
@ -320,4 +322,16 @@ export const PurchaseClaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
precision: 5 precision: 5
} }
}, },
{
label: '操作',
field: 'action',
isDetail: false,
isForm: false,
hiddenInMain:true,
table: {
width: 150,
fixed: 'right'
},
isTableForm: false,
}
])) ]))

8
src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue

@ -273,9 +273,9 @@ const buttonTableClick = async (val, row) => {
if (val == 'edit') { if (val == 'edit') {
// //
openForm('update', row) openForm('update', row)
} else if (val == 'delete') { } else if (val == 'mainPlanSub') {
// //
handleSub(row.id) handleSub(row.masterId)
} }
else if (val == 'delete') { else if (val == 'delete') {
// //
@ -285,13 +285,13 @@ const buttonTableClick = async (val, row) => {
/** 提交审批按钮操作 */ /** 提交审批按钮操作 */
const handleSub = async (id: number) => { const handleSub = async (masterId: number) => {
try { try {
// //
await message.confirm(t('ts.是否提交审批所选中数据?')) await message.confirm(t('ts.是否提交审批所选中数据?'))
tableObject.loading = true tableObject.loading = true
// //
await PurchaseClaimRequestMainApi.subPurchaseClaimRequestMain(id) await PurchaseClaimRequestMainApi.subPurchaseClaimRequestMain(masterId)
message.success(t('ts.提交审批成功!')) message.success(t('ts.提交审批成功!'))
tableObject.loading = false tableObject.loading = false
// //

Loading…
Cancel
Save