Browse Source

采购索赔申请修改

master
陈薪名 1 year ago
parent
commit
cfbd79447a
  1. 15
      src/views/wms/purchaseclaimRequestMain/index.vue

15
src/views/wms/purchaseclaimRequestMain/index.vue

@ -48,6 +48,7 @@
@handleAddTable="handleAddTable"
@handleDeleteTable="handleDeleteTable"
@searchTableSuccess="searchTableSuccess"
@submitForm="submitForm"
/>
<!-- 详情 -->
@ -269,6 +270,20 @@ const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
}
//
const submitForm = async (formType, data) => {
data.details = tableData.value //
if (formType === 'create') {
await PurchaseclaimRequestMainApi.createPurchaseclaimRequestMain(data)
message.success(t('common.createSuccess'))
} else {
await PurchaseclaimRequestMainApi.updatePurchaseclaimRequestMain(data)
message.success(t('common.updateSuccess'))
}
//
getList()
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {

Loading…
Cancel
Save