|
|
@ -69,16 +69,31 @@ |
|
|
|
:apiCreate="ModelDeliTimeDetailApi.createPurchaseClaimRequestDetail" |
|
|
|
:apiUpdate="ModelDeliTimeDetailApi.updatePurchaseClaimRequestDetail" |
|
|
|
:apiPage="ModelDeliTimeDetailApi.getSupplierAddrDeliTimeDetailPage" |
|
|
|
:apiDelete="ModelDeliTimeDetailApi.deletePurchaseClaimRequestDetail" |
|
|
|
:apiDelete="ModelDeliTimeDetailApi.deleteSupplierAddrDeliTimeDetail" |
|
|
|
:detailButtonIsShowDelete="true" |
|
|
|
:detailButtonIsShowAdd="false" |
|
|
|
:detailButtonIsShowAdd="true" |
|
|
|
:detailButtonIsShowEdit='false' |
|
|
|
:detailButtonIsShowAddStatusArray="[]" |
|
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
|
:isChangeDetailDrawer="[]" |
|
|
|
:changeDetailDrawer="true" |
|
|
|
@detailOpenForm="detailOpenForm" |
|
|
|
/> |
|
|
|
|
|
|
|
<SearchTable ref="searchTableRef" @searchTableSuccess="submitItem" /> |
|
|
|
|
|
|
|
<!-- :detailAllSchemas="ModelDeliTimeDetail.allSchemas" --> |
|
|
|
<!-- 导入 --> |
|
|
|
<ImportForm ref="importFormRef" url="/wms/supplier-addr-deli-time-detail/import" :importTemplateData="importTemplateData" @success="importSuccess" /> |
|
|
|
<ImportForm |
|
|
|
ref="importFormRef" |
|
|
|
url="/wms/model-deli-time-detail/import" |
|
|
|
:importTemplateData="importTemplateData" |
|
|
|
@success="importSuccess" |
|
|
|
:isShowOut="true" |
|
|
|
:updateIsDisable="true" |
|
|
|
:appendIsDisable="true" |
|
|
|
:mode="3" |
|
|
|
/> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
@ -90,6 +105,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
|
import Detail from '@/components/Detail/src/Detail.vue' |
|
|
|
import { debug } from 'console' |
|
|
|
import { DeliTimeWms } from '../deliTimeWms/deliTimeWms.data' |
|
|
|
import * as DeliTimeWmsApi from '@/api/wms/deliTimeWms' |
|
|
|
|
|
|
|
defineOptions({ name: 'ModelDeliTime' }) |
|
|
|
|
|
|
@ -359,7 +376,9 @@ const formsSuccess = async (formType,data) => { |
|
|
|
/** 详情操作 */ |
|
|
|
const detailRef = ref() |
|
|
|
const detailData = ref({}) |
|
|
|
const masterId = ref(0) |
|
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
|
masterId.value = row.masterId |
|
|
|
detailData.value = row |
|
|
|
detailRef.value.openDetail(row, titleName, titleValue, 'basicSupplierAddrDeliTimeDetail') |
|
|
|
} |
|
|
@ -417,6 +436,41 @@ const searchFormClick = (searchData) => { |
|
|
|
getList() // 刷新当前列表 |
|
|
|
} |
|
|
|
|
|
|
|
const tableSelectionDelete = (selection) => { |
|
|
|
tableData.value = tableData.value.filter((item) => !selection.includes(item)) |
|
|
|
} |
|
|
|
|
|
|
|
const searchTableRef = ref() |
|
|
|
const detailOpenForm = (type, row) => { |
|
|
|
searchTableRef.value.open( |
|
|
|
'便次时间配置', |
|
|
|
DeliTimeWms.allSchemas, |
|
|
|
DeliTimeWmsApi.getDeliTimePage, |
|
|
|
null, |
|
|
|
DeliTimeWms.allSchemas.searchSchema, |
|
|
|
true, |
|
|
|
null, |
|
|
|
null, |
|
|
|
null, |
|
|
|
null, |
|
|
|
null |
|
|
|
// searchTableSelections.value |
|
|
|
) |
|
|
|
} |
|
|
|
|
|
|
|
const submitItem = async (formType, data, val, tableList) => { |
|
|
|
console.log('formType',formType) |
|
|
|
console.log('data',data) |
|
|
|
console.log('val',val) |
|
|
|
console.log('tableList',tableList) |
|
|
|
val.forEach((item) => { |
|
|
|
item.masterId = masterId; |
|
|
|
}); |
|
|
|
await ModelDeliTimeDetailApi.addModelDeliTimeDetail(val) |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
detailRef.value.updateList() |
|
|
|
} |
|
|
|
|
|
|
|
/** 初始化 **/ |
|
|
|
onMounted(async () => { |
|
|
|
getList() |
|
|
|