|
|
@ -40,7 +40,6 @@ |
|
|
|
@success="getList" |
|
|
|
:rules="PurchaseclaimRequestMainRules" |
|
|
|
:formAllSchemas="PurchaseclaimRequestMain.allSchemas" |
|
|
|
:searchTableParams="searchTableParams" |
|
|
|
:tableAllSchemas="PurchaseclaimRequestDetail.allSchemas" |
|
|
|
:tableFormRules="PurchaseclaimRequestDetailRules" |
|
|
|
:tableData="tableData" |
|
|
@ -60,12 +59,11 @@ |
|
|
|
:allSchemas="PurchaseclaimRequestMain.allSchemas" |
|
|
|
:detailAllSchemas="PurchaseclaimRequestDetail.allSchemas" |
|
|
|
:detailAllSchemasRules="PurchaseclaimRequestDetailRules" |
|
|
|
:searchTableParams="searchTableParams" |
|
|
|
:apiCreate="PurchaseclaimRequestDetailApi.createPurchaseclaimRequestDetail" |
|
|
|
:apiUpdate="PurchaseclaimRequestDetailApi.updatePurchaseclaimRequestDetail" |
|
|
|
:apiPage="PurchaseclaimRequestDetailApi.getPurchaseclaimRequestDetailPage" |
|
|
|
:apiDelete="PurchaseclaimRequestDetailApi.deletePurchaseclaimRequestDetail" |
|
|
|
:Echo="Echo" |
|
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
@ -76,14 +74,12 @@ |
|
|
|
import download from '@/utils/download' |
|
|
|
import * as PurchaseclaimRequestMainApi from '@/api/wms/purchaseclaimRequestMain' |
|
|
|
import * as PurchaseclaimRequestDetailApi from '@/api/wms/purchaseclaimRequestDetail' |
|
|
|
import * as supplierdeliverRecordMainApi from '@/api/wms/supplierdeliverRecordMain' |
|
|
|
import * as supplierdeliverRecordDetailApi from '@/api/wms/supplierdeliverRecordDetail' |
|
|
|
import { SupplierdeliverRecordMain, SupplierdeliverRecordDetail } from '@/utils/disposition/tableColumns' |
|
|
|
import { PurchaseclaimRequestMain, PurchaseclaimRequestMainRules, PurchaseclaimRequestDetail, PurchaseclaimRequestDetailRules } from './purchaseclaimRequestMain.data' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' |
|
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
|
|
|
|
|
// 供应商索赔申请 |
|
|
|
defineOptions({ name: 'PurchaseclaimRequestMain' }) |
|
|
|
|
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
@ -99,24 +95,11 @@ const updataTableColumns = (val) => { |
|
|
|
tableColumns.value = val |
|
|
|
} |
|
|
|
|
|
|
|
// 查询列表参数设置 |
|
|
|
const searchTableParams = ref([{ |
|
|
|
formField: 'asnNumber', |
|
|
|
searchTableTitle: '供应商发货记录', |
|
|
|
searchTableAllSchemas: SupplierdeliverRecordMain.allSchemas, |
|
|
|
searchTablePage: supplierdeliverRecordMainApi.getSupplierdeliverRecordMainPage |
|
|
|
},{ |
|
|
|
formField: 'poNumber', |
|
|
|
searchTableTitle: '供应商发货记录', |
|
|
|
searchTableAllSchemas: SupplierdeliverRecordDetail.allSchemas, |
|
|
|
searchTablePage: supplierdeliverRecordDetailApi.getSupplierdeliverRecordDetailPage |
|
|
|
}]) |
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
|
nextTick(() => { |
|
|
|
if (type == 'tableForm') { |
|
|
|
// 明细查询页赋值 |
|
|
|
// 子表查询页赋值 |
|
|
|
row[formField] = val[0][searchField] |
|
|
|
row['poLine'] = val[0]['poLine'] |
|
|
|
row['batch'] = val[0]['toBatch'] |
|
|
@ -129,6 +112,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
row['qty'] = val[0]['qty'] |
|
|
|
row['uom'] = val[0]['uom'] |
|
|
|
} else { |
|
|
|
// 主表查询页赋值 |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
setV['ppNumber'] = val[0]['ppNumber'] |
|
|
@ -137,11 +121,26 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
// 子表新增的时候选择表格之后需要会显得字段 |
|
|
|
const Echo = ['ppNumber','poLine', 'batch', 'altBatch', 'itemCode', 'itemName', 'itemDesc1', 'itemDesc2', 'projectCode', 'qty', 'uom'] |
|
|
|
// 查询页面返回——详情 |
|
|
|
const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { |
|
|
|
nextTick(() => { |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
setV['poLine'] = val[0]['poLine'] |
|
|
|
setV['batch'] = val[0]['toBatch'] |
|
|
|
setV['altBatch'] = val[0]['altBatch'] |
|
|
|
setV['itemCode'] = val[0]['itemCode'] |
|
|
|
setV['itemName'] = val[0]['itemName'] |
|
|
|
setV['itemDesc1'] = val[0]['itemDesc1'] |
|
|
|
setV['itemDesc2'] = val[0]['itemDesc2'] |
|
|
|
setV['projectCode'] = val[0]['projectCode'] |
|
|
|
setV['qty'] = val[0]['qty'] |
|
|
|
setV['uom'] = val[0]['uom'] |
|
|
|
formRef.setValues(setV) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
const exportLoading = ref(false) // 导出的加载中 |
|
|
|
|
|
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
|
getListApi: PurchaseclaimRequestMainApi.getPurchaseclaimRequestMainPage // 分页接口 |
|
|
|
}) |
|
|
|