|
|
@ -86,6 +86,7 @@ |
|
|
|
:isShowDownloadBtn="false" |
|
|
|
:confirmFormSuccess="confirmFormSuccess" |
|
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
|
@open-difference-data="openDifferenceData" |
|
|
|
sourcePage="InducedProduct" |
|
|
|
/> |
|
|
|
|
|
|
@ -111,6 +112,8 @@ |
|
|
|
:tableData="tableDataBillDate" |
|
|
|
:isShowFooterButtton="false" |
|
|
|
:footButttondata="footButttondata" |
|
|
|
:isShowReduceButton="false" |
|
|
|
:isShowReduceButtonSelection="true" |
|
|
|
@handleAddTable="handleAddTableBillDate" |
|
|
|
@handleDeleteTable="handleDeleteTableBillDate" |
|
|
|
@tableSelectionDelete="tableSelectionDeleteBillDate" |
|
|
@ -124,12 +127,45 @@ |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</BasicForm> |
|
|
|
|
|
|
|
<!-- 维护对账日期弹窗 --> |
|
|
|
<BasicForm |
|
|
|
ref="adjustDiffDataRef" |
|
|
|
:formAllSchemas="AdjustDiffDataMain.allSchemas" |
|
|
|
:tableAllSchemas="MaintenanceBillDateDetail.allSchemas" |
|
|
|
:tableFormRules="MaintenanceBillDateDetailRules" |
|
|
|
:isBusiness="true" |
|
|
|
:apiUpdate="DeliverRecordMainApi.inducedProductUpdate" |
|
|
|
:apiCreate="DeliverRecordMainApi.inducedProductCreate" |
|
|
|
:tableData="tableDataBillDate" |
|
|
|
:isShowFooterButtton="false" |
|
|
|
:footButttondata="footButttondataAdjustDiffData" |
|
|
|
:isShowReduceButton="false" |
|
|
|
:isShowReduceButtonSelection="true" |
|
|
|
@handleAddTable="handleAddTableBillDate" |
|
|
|
@handleDeleteTable="handleDeleteTableBillDate" |
|
|
|
@tableSelectionDelete="tableSelectionDeleteBillDate" |
|
|
|
@searchTableSuccess="searchTableAddSuccessBillDate" |
|
|
|
@clearSearchInput="clearSearchInputBillDate" |
|
|
|
@footButtonClick="footButtonClickAdjustDiffData" |
|
|
|
> |
|
|
|
<template #table> |
|
|
|
<div> |
|
|
|
<div class="tips">以下是调整后的数据差异情况</div> |
|
|
|
<Table v-clientTable :columns="AdjustDiffDataTable.allSchemas.tableColumns" :data="tableObject.tableList" :loading="tableObject.loading" :pagination="{ total: tableObject.total }" v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage" v-model:sort="tableObject.sort" style="width: calc(100% - 6px);"> |
|
|
|
<template #number="{row}"> |
|
|
|
<el-button type="primary" link @click="openDetail(row, '单据号', row.number)"> |
|
|
|
<span>{{ row.number }}</span> |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|
</Table> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</BasicForm> |
|
|
|
</template> |
|
|
|
<script setup lang="ts"> |
|
|
|
import download from '@/utils/download' |
|
|
|
import { getAccessToken } from '@/utils/auth' |
|
|
|
import { DeliverRecordMain,DeliverRecordMainRules,DeliverRecordDetail,DeliverRecordDetailRules,DeliverRecordImport,DeliverRecordImportRules,ImportLeadershipDocErrorData,ImportLeadershipDocTempData,MaintenanceBillDateMain,MaintenanceBillDateMainRules,MaintenanceBillDateDetail,MaintenanceBillDateDetailRules} from './deliverRecordMain.data' |
|
|
|
import { DeliverRecordMain,DeliverRecordMainRules,DeliverRecordDetail,DeliverRecordDetailRules,DeliverRecordImport,DeliverRecordImportRules,ImportLeadershipDocErrorData,ImportLeadershipDocTempData,MaintenanceBillDateMain,MaintenanceBillDateMainRules,MaintenanceBillDateDetail,MaintenanceBillDateDetailRules,AdjustDiffDataMain,AdjustDiffDataTable} from './deliverRecordMain.data' |
|
|
|
import * as DeliverRecordMainApi from '@/api/wms/deliverRecordMain' |
|
|
|
import * as DeliverRecordDetailApi from '@/api/wms/deliverRecordDetail' |
|
|
|
import * as MaintenanceBillDateApi from '@/api/wms/maintenanceBillDate' |
|
|
@ -161,7 +197,7 @@ mainAndDetaillSchemas.value.tableColumns = [...DeliverRecordMain.allSchemas.tabl |
|
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
|
getListApi: DeliverRecordDetailApi.getDeliverRecordDetailPage // 分页接口 |
|
|
|
}) |
|
|
|
|
|
|
|
const adjustDiffDataRef = ref() |
|
|
|
// 判断 路由名称 进行条件过滤 |
|
|
|
/** |
|
|
|
* OktoholdRequestMain 合格转隔离 |
|
|
@ -544,6 +580,19 @@ const footButttondata = ref([ |
|
|
|
}, // BOM下一步 |
|
|
|
defaultButtons.formCloseBtn(null) // BOM关闭 |
|
|
|
]) |
|
|
|
const footButttondataAdjustDiffData = ref([ |
|
|
|
{ |
|
|
|
label: t('ts.下一步'), |
|
|
|
name: 'nextStep', |
|
|
|
type: 'primary', |
|
|
|
hide: false, |
|
|
|
icon: '', |
|
|
|
color: '', |
|
|
|
float: 'right', |
|
|
|
hasPermi: '' |
|
|
|
}, // 下一步 |
|
|
|
defaultButtons.formCloseBtn(null) // BOM关闭 |
|
|
|
]) |
|
|
|
// 维护对账日期弹窗 |
|
|
|
const handleMainBillDate = async (type,row) => { |
|
|
|
maintenanceBillDateRef.value.open(type,row) |
|
|
@ -576,6 +625,7 @@ const footButtonClick = async (val) => { |
|
|
|
maintenanceBillDateRef.value.dialogVisible = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
watch( |
|
|
|
() => maintenanceBillDateRef.value?.formRef?.formModel, |
|
|
|
(val) => { |
|
|
@ -678,6 +728,16 @@ const searchTableAddSuccessBillDate = (formField, searchField, val, formRef, typ |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
formRef.setValues(setV) |
|
|
|
} |
|
|
|
const footButtonClickAdjustDiffData = async (val) => { |
|
|
|
if (val == 'nextStep') { |
|
|
|
} else if (val == 'close') { |
|
|
|
adjustDiffDataRef.value.dialogVisible = false |
|
|
|
} |
|
|
|
} |
|
|
|
// 调整差异数据弹窗 |
|
|
|
const openDifferenceData = () => { |
|
|
|
adjustDiffDataRef.value.dialogVisible = true |
|
|
|
} |
|
|
|
/** 初始化 **/ |
|
|
|
onMounted(async () => { |
|
|
|
tableObject.params.businessType = 'InducedProduct' |
|
|
@ -687,3 +747,9 @@ onMounted(async () => { |
|
|
|
} |
|
|
|
}) |
|
|
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
|
|
.tips{ |
|
|
|
padding: 10px 0px; |
|
|
|
color: #7d7d7d; |
|
|
|
} |
|
|
|
</style> |
|
|
|