|
@ -7,19 +7,13 @@ |
|
|
</ContentWrap> |
|
|
</ContentWrap> |
|
|
|
|
|
|
|
|
<!-- 列表头部 --> |
|
|
<!-- 列表头部 --> |
|
|
<TableHead |
|
|
<TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" :routeName="routeName" |
|
|
:HeadButttondata="HeadButttondata" |
|
|
@updataTableColumns="updataTableColumns" @searchFormClick="searchFormClick" |
|
|
@button-base-click="buttonBaseClick" |
|
|
:allSchemas="PurchaseclaimRequestMain.allSchemas" /> |
|
|
:routeName="routeName" |
|
|
|
|
|
@updataTableColumns="updataTableColumns" |
|
|
|
|
|
@searchFormClick="searchFormClick" |
|
|
|
|
|
:allSchemas="PurchaseclaimRequestMain.allSchemas" |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 列表 --> |
|
|
<!-- 列表 --> |
|
|
<ContentWrap> |
|
|
<ContentWrap> |
|
|
<Table :columns="tableColumns" :data="tableObject.tableList" |
|
|
<Table :columns="tableColumns" :data="tableObject.tableList" :loading="tableObject.loading" :pagination="{ |
|
|
:loading="tableObject.loading" :pagination="{ |
|
|
|
|
|
total: tableObject.total |
|
|
total: tableObject.total |
|
|
}" v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage" |
|
|
}" v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage" |
|
|
v-model:sort="tableObject.sort"> |
|
|
v-model:sort="tableObject.sort"> |
|
@ -35,36 +29,22 @@ |
|
|
</ContentWrap> |
|
|
</ContentWrap> |
|
|
|
|
|
|
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
<BasicForm |
|
|
<BasicForm ref="formRef" @success="getList" :rules="PurchaseclaimRequestMainRules" |
|
|
ref="formRef" |
|
|
:formAllSchemas="PurchaseclaimRequestMain.allSchemas" :tableAllSchemas="PurchaseclaimRequestDetail.allSchemas" |
|
|
@success="getList" |
|
|
:tableFormRules="PurchaseclaimRequestDetailRules" :tableData="tableData" |
|
|
:rules="PurchaseclaimRequestMainRules" |
|
|
|
|
|
:formAllSchemas="PurchaseclaimRequestMain.allSchemas" |
|
|
|
|
|
:tableAllSchemas="PurchaseclaimRequestDetail.allSchemas" |
|
|
|
|
|
:tableFormRules="PurchaseclaimRequestDetailRules" |
|
|
|
|
|
:tableData="tableData" |
|
|
|
|
|
:apiUpdate="PurchaseclaimRequestMainApi.updatePurchaseclaimRequestMain" |
|
|
:apiUpdate="PurchaseclaimRequestMainApi.updatePurchaseclaimRequestMain" |
|
|
:apiCreate="PurchaseclaimRequestMainApi.createPurchaseclaimRequestMain" |
|
|
:apiCreate="PurchaseclaimRequestMainApi.createPurchaseclaimRequestMain" :isBusiness="true" |
|
|
:isBusiness="true" |
|
|
@handleAddTable="handleAddTable" @handleDeleteTable="handleDeleteTable" @searchTableSuccess="searchTableSuccess" |
|
|
@handleAddTable="handleAddTable" |
|
|
@submitForm="submitForm" /> |
|
|
@handleDeleteTable="handleDeleteTable" |
|
|
|
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
|
|
|
@submitForm="submitForm" |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
<!-- 详情 --> |
|
|
<Detail |
|
|
<Detail ref="detailRef" :isBasic="false" :allSchemas="PurchaseclaimRequestMain.allSchemas" |
|
|
ref="detailRef" |
|
|
:detailAllSchemas="PurchaseclaimRequestDetail.allSchemas" :detailAllSchemasRules="PurchaseclaimRequestDetailRules" |
|
|
:isBasic="false" |
|
|
|
|
|
:allSchemas="PurchaseclaimRequestMain.allSchemas" |
|
|
|
|
|
:detailAllSchemas="PurchaseclaimRequestDetail.allSchemas" |
|
|
|
|
|
:detailAllSchemasRules="PurchaseclaimRequestDetailRules" |
|
|
|
|
|
:apiCreate="PurchaseclaimRequestDetailApi.createPurchaseclaimRequestDetail" |
|
|
:apiCreate="PurchaseclaimRequestDetailApi.createPurchaseclaimRequestDetail" |
|
|
:apiUpdate="PurchaseclaimRequestDetailApi.updatePurchaseclaimRequestDetail" |
|
|
:apiUpdate="PurchaseclaimRequestDetailApi.updatePurchaseclaimRequestDetail" |
|
|
:apiPage="PurchaseclaimRequestDetailApi.getPurchaseclaimRequestDetailPage" |
|
|
:apiPage="PurchaseclaimRequestDetailApi.getPurchaseclaimRequestDetailPage" |
|
|
:apiDelete="PurchaseclaimRequestDetailApi.deletePurchaseclaimRequestDetail" |
|
|
:apiDelete="PurchaseclaimRequestDetailApi.deletePurchaseclaimRequestDetail" |
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" /> |
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
<!-- 导入 --> |
|
|
<ImportForm ref="importFormRef" url="/wms/purchaseclaim-request-main/import" :importTemplateData="importTemplateData" |
|
|
<ImportForm ref="importFormRef" url="/wms/purchaseclaim-request-main/import" :importTemplateData="importTemplateData" |
|
@ -99,8 +79,10 @@ const updataTableColumns = (val) => { |
|
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
// 查询页面返回 |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { |
|
|
|
|
|
|
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
|
if (type == 'tableForm') { |
|
|
if (type == 'tableForm') { |
|
|
|
|
|
|
|
|
// 子表查询页赋值 |
|
|
// 子表查询页赋值 |
|
|
row[formField] = val[0][searchField] |
|
|
row[formField] = val[0][searchField] |
|
|
row['poLine'] = val[0]['poLine'] |
|
|
row['poLine'] = val[0]['poLine'] |
|
@ -117,6 +99,25 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
// 主表查询页赋值 |
|
|
// 主表查询页赋值 |
|
|
const setV = {} |
|
|
const setV = {} |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
|
|
|
|
|
|
|
|
|
|
if(formField=='asnNumber'){ |
|
|
|
|
|
// 获取子表数据 getBomDisassemble |
|
|
|
|
|
PurchasePlanDetailApi.getPurchasePlanDetailList({ |
|
|
|
|
|
number: val[0]['asnNumber']}).then(res => { |
|
|
|
|
|
if (res) tableData.value = res; |
|
|
|
|
|
tableData.value.forEach(item=>{ |
|
|
|
|
|
item.batch = item.toBatch |
|
|
|
|
|
item.qty = 1 |
|
|
|
|
|
}) |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setV['ppNumber'] = val[0]['ppNumber'] |
|
|
setV['ppNumber'] = val[0]['ppNumber'] |
|
|
setV['supplierCode'] = val[0]['supplierCode'] |
|
|
setV['supplierCode'] = val[0]['supplierCode'] |
|
|
formRef.setValues(setV) |
|
|
formRef.setValues(setV) |
|
@ -125,7 +126,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
} |
|
|
} |
|
|
// 查询页面返回——详情 |
|
|
// 查询页面返回——详情 |
|
|
const searchTableSuccessDetail = (formField, searchField, val, formRef) => { |
|
|
const searchTableSuccessDetail = (formField, searchField, val, formRef) => { |
|
|
|
|
|
console.log(456) |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
|
|
|
|
|
|
|
const setV = {} |
|
|
const setV = {} |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
|
setV['poLine'] = val[0]['poLine'] |
|
|
setV['poLine'] = val[0]['poLine'] |
|
@ -314,9 +317,7 @@ const submitForm = async (formType, data) => { |
|
|
getList() |
|
|
getList() |
|
|
} finally { |
|
|
} finally { |
|
|
formRef.value.formLoading = false |
|
|
formRef.value.formLoading = false |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** 导入 */ |
|
|
/** 导入 */ |
|
|