Browse Source

基础数据导入修改

master
李胜楠 1 year ago
parent
commit
1fd2f45453
  1. 5
      src/api/wms/accountcalendar/index.ts
  2. 5
      src/api/wms/areabasic/index.ts
  3. 5
      src/api/wms/businesstype/index.ts
  4. 5
      src/api/wms/carrier/index.ts
  5. 5
      src/api/wms/condition/index.ts
  6. 5
      src/api/wms/configuration/index.ts
  7. 5
      src/api/wms/configurationsetting/index.ts
  8. 5
      src/api/wms/currencyexchange/index.ts
  9. 5
      src/api/wms/customer/index.ts
  10. 5
      src/api/wms/customerdock/index.ts
  11. 5
      src/api/wms/customeritem/index.ts
  12. 5
      src/api/wms/dock/index.ts
  13. 5
      src/api/wms/documentsetting/index.ts
  14. 5
      src/api/wms/jobsetting/index.ts
  15. 5
      src/api/wms/location/index.ts
  16. 5
      src/api/wms/locationgroup/index.ts
  17. 5
      src/api/wms/owner/index.ts
  18. 5
      src/api/wms/paramsetting/index.ts
  19. 5
      src/api/wms/process/index.ts
  20. 5
      src/api/wms/productionline/index.ts
  21. 5
      src/api/wms/project/index.ts
  22. 5
      src/api/wms/purchaseprice/index.ts
  23. 5
      src/api/wms/recordsetting/index.ts
  24. 5
      src/api/wms/requestsetting/index.ts
  25. 5
      src/api/wms/rule/index.ts
  26. 5
      src/api/wms/saleprice/index.ts
  27. 5
      src/api/wms/shift/index.ts
  28. 5
      src/api/wms/supplier/index.ts
  29. 5
      src/api/wms/supplieritem/index.ts
  30. 5
      src/api/wms/systemcalendar/index.ts
  31. 5
      src/api/wms/team/index.ts
  32. 5
      src/api/wms/transactiontype/index.ts
  33. 5
      src/api/wms/warehouse/index.ts
  34. 5
      src/api/wms/workshop/index.ts
  35. 5
      src/api/wms/workstation/index.ts
  36. 10
      src/components/BasicForm/src/BasicForm.vue
  37. 3
      src/views/wms/accountcalendar/index.vue
  38. 9
      src/views/wms/areabasic/index.vue
  39. 11
      src/views/wms/businesstype/index.vue
  40. 3
      src/views/wms/carrier/index.vue
  41. 3
      src/views/wms/condition/index.vue
  42. 7
      src/views/wms/configuration/index.vue
  43. 3
      src/views/wms/configurationsetting/index.vue
  44. 3
      src/views/wms/currencyexchange/index.vue
  45. 3
      src/views/wms/customer/index.vue
  46. 7
      src/views/wms/customerdock/index.vue
  47. 7
      src/views/wms/customeritem/index.vue
  48. 7
      src/views/wms/dock/index.vue
  49. 3
      src/views/wms/documentsetting/index.vue
  50. 3
      src/views/wms/jobsetting/index.vue
  51. 3
      src/views/wms/location/index.vue
  52. 7
      src/views/wms/locationgroup/index.vue
  53. 3
      src/views/wms/owner/index.vue
  54. 3
      src/views/wms/paramsetting/index.vue
  55. 7
      src/views/wms/process/index.vue
  56. 7
      src/views/wms/productionline/index.vue
  57. 7
      src/views/wms/project/index.vue
  58. 7
      src/views/wms/purchaseprice/index.vue
  59. 3
      src/views/wms/recordsetting/index.vue
  60. 3
      src/views/wms/requestsetting/index.vue
  61. 3
      src/views/wms/rule/index.vue
  62. 11
      src/views/wms/saleprice/index.vue
  63. 3
      src/views/wms/shift/index.vue
  64. 3
      src/views/wms/supplier/index.vue
  65. 9
      src/views/wms/supplieritem/index.vue
  66. 3
      src/views/wms/systemcalendar/index.vue
  67. 3
      src/views/wms/team/index.vue
  68. 3
      src/views/wms/transactiontype/index.vue
  69. 3
      src/views/wms/warehouse/index.vue
  70. 3
      src/views/wms/workshop/index.vue
  71. 7
      src/views/wms/workstation/index.vue

5
src/api/wms/accountcalendar/index.ts

@ -42,3 +42,8 @@ export const deleteAccountcalendar = async (id: number) => {
export const exportAccountcalendar = async (params) => {
return await request.download({ url: `/wms/accountcalendar/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/accountcalendar/get-import-template' })
}

5
src/api/wms/areabasic/index.ts

@ -42,3 +42,8 @@ export const deleteArea = async (id: number) => {
export const exportArea = async (params) => {
return await request.download({ url: `/wms/areabasic/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/areabasic/get-import-template' })
}

5
src/api/wms/businesstype/index.ts

@ -52,3 +52,8 @@ export const deleteBusinesstype = async (id: number) => {
export const exportBusinesstype = async (params) => {
return await request.download({ url: `/wms/businesstype/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/businesstype/get-import-template' })
}

5
src/api/wms/carrier/index.ts

@ -50,3 +50,8 @@ export const deleteCarrier = async (id: number) => {
export const exportCarrier = async (params) => {
return await request.download({ url: `/wms/carrier/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/carrier/get-import-template' })
}

5
src/api/wms/condition/index.ts

@ -38,3 +38,8 @@ export const deleteCondition = async (id: number) => {
export const exportCondition = async (params) => {
return await request.download({ url: `/wms/condition/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/condition/get-import-template' })
}

5
src/api/wms/configuration/index.ts

@ -38,3 +38,8 @@ export const deleteConfiguration = async (id: number) => {
export const exportConfiguration = async (params) => {
return await request.download({ url: `/wms/configuration/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/configuration/get-import-template' })
}

5
src/api/wms/configurationsetting/index.ts

@ -40,3 +40,8 @@ export const deleteConfigurationsetting = async (id: number) => {
export const exportConfigurationsetting = async (params) => {
return await request.download({ url: `/wms/configurationsetting/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/configurationsetting/get-import-template' })
}

5
src/api/wms/currencyexchange/index.ts

@ -39,3 +39,8 @@ export const deleteCurrencyexchange = async (id: number) => {
export const exportCurrencyexchange = async (params) => {
return await request.download({ url: `/wms/currencyexchange/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/currencyexchange/get-import-template' })
}

5
src/api/wms/customer/index.ts

@ -50,3 +50,8 @@ export const deleteCustomer = async (id: number) => {
export const exportCustomer = async (params) => {
return await request.download({ url: `/wms/customer/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/customer/get-import-template' })
}

5
src/api/wms/customerdock/index.ts

@ -46,3 +46,8 @@ export const deleteCustomerdock = async (id: number) => {
export const exportCustomerdock = async (params) => {
return await request.download({ url: `/wms/customerdock/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/customerdock/get-import-template' })
}

5
src/api/wms/customeritem/index.ts

@ -46,3 +46,8 @@ export const deleteCustomeritem = async (id: number) => {
export const exportCustomeritem = async (params) => {
return await request.download({ url: `/wms/customeritem/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/customeritem/get-import-template' })
}

5
src/api/wms/dock/index.ts

@ -46,3 +46,8 @@ export const deleteDock = async (id: number) => {
export const exportDock = async (params) => {
return await request.download({ url: `/wms/dock/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/dock/get-import-template' })
}

5
src/api/wms/documentsetting/index.ts

@ -47,3 +47,8 @@ export const deleteDocumentsetting = async (id: number) => {
export const exportDocumentsetting = async (params) => {
return await request.download({ url: `/wms/documentsetting/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/documentsetting/get-import-template' })
}

5
src/api/wms/jobsetting/index.ts

@ -49,3 +49,8 @@ export const deleteJobsetting = async (id: number) => {
export const exportJobsetting = async (params) => {
return await request.download({ url: `/wms/jobsetting/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/jobsetting/get-import-template' })
}

5
src/api/wms/location/index.ts

@ -53,3 +53,8 @@ export const deleteLocation = async (id: number) => {
export const exportLocation = async (params) => {
return await request.download({ url: `/wms/location/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/location/get-import-template' })
}

5
src/api/wms/locationgroup/index.ts

@ -41,3 +41,8 @@ export const deleteLocationgroup = async (id: number) => {
export const exportLocationgroup = async (params) => {
return await request.download({ url: `/wms/locationgroup/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/locationgroup/get-import-template' })
}

5
src/api/wms/owner/index.ts

@ -50,3 +50,8 @@ export const deleteOwner = async (id: number) => {
export const exportOwner = async (params) => {
return await request.download({ url: `/wms/owner/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/owner/get-import-template' })
}

5
src/api/wms/paramsetting/index.ts

@ -41,3 +41,8 @@ export const deleteParamsetting = async (id: number) => {
export const exportParamsetting = async (params) => {
return await request.download({ url: `/wms/paramsetting/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/paramsetting/get-import-template' })
}

5
src/api/wms/process/index.ts

@ -42,3 +42,8 @@ export const deleteProcess = async (id: number) => {
export const exportProcess = async (params) => {
return await request.download({ url: `/wms/process/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/process/get-import-template' })
}

5
src/api/wms/productionline/index.ts

@ -43,3 +43,8 @@ export const deleteProductionline = async (id: number) => {
export const exportProductionline = async (params) => {
return await request.download({ url: `/wms/productionline/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/productionline/get-import-template' })
}

5
src/api/wms/project/index.ts

@ -40,3 +40,8 @@ export const deleteProject = async (id: number) => {
export const exportProject = async (params) => {
return await request.download({ url: `/wms/project/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/project/get-import-template' })
}

5
src/api/wms/purchaseprice/index.ts

@ -40,3 +40,8 @@ export const deletePurchaseprice = async (id: number) => {
export const exportPurchaseprice = async (params) => {
return await request.download({ url: `/wms/purchaseprice/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/purchaseprice/get-import-template' })
}

5
src/api/wms/recordsetting/index.ts

@ -39,3 +39,8 @@ export const deleteRecordsetting = async (id: number) => {
export const exportRecordsetting = async (params) => {
return await request.download({ url: `/wms/recordsetting/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/recordsetting/get-import-template' })
}

5
src/api/wms/requestsetting/index.ts

@ -43,3 +43,8 @@ export const deleteRequestsetting = async (id: number) => {
export const exportRequestsetting = async (params) => {
return await request.download({ url: `/wms/requestsetting/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/requestsetting/get-import-template' })
}

5
src/api/wms/rule/index.ts

@ -39,3 +39,8 @@ export const deleteRule = async (id: number) => {
export const exportRule = async (params) => {
return await request.download({ url: `/wms/rule/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/rule/get-import-template' })
}

5
src/api/wms/saleprice/index.ts

@ -40,3 +40,8 @@ export const deleteSaleprice = async (id: number) => {
export const exportSaleprice = async (params) => {
return await request.download({ url: `/wms/saleprice/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/saleprice/get-import-template' })
}

5
src/api/wms/shift/index.ts

@ -42,3 +42,8 @@ export const deleteShift = async (id: number) => {
export const exportShift = async (params) => {
return await request.download({ url: `/wms/shift/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/shift/get-import-template' })
}

5
src/api/wms/supplier/index.ts

@ -50,3 +50,8 @@ export const deleteSupplier = async (id: number) => {
export const exportSupplier = async (params) => {
return await request.download({ url: `/wms/supplier/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/supplier/get-import-template' })
}

5
src/api/wms/supplieritem/index.ts

@ -49,3 +49,8 @@ export const deleteSupplieritem = async (id: number) => {
export const exportSupplieritem = async (params) => {
return await request.download({ url: `/wms/supplieritem/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/supplieritem/get-import-template' })
}

5
src/api/wms/systemcalendar/index.ts

@ -39,3 +39,8 @@ export const deleteSystemcalendar = async (id: number) => {
export const exportSystemcalendar = async (params) => {
return await request.download({ url: `/wms/systemcalendar/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/systemcalendar/get-import-template' })
}

5
src/api/wms/team/index.ts

@ -40,3 +40,8 @@ export const deleteTeam = async (id: number) => {
export const exportTeam = async (params) => {
return await request.download({ url: `/wms/team/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/team/get-import-template' })
}

5
src/api/wms/transactiontype/index.ts

@ -42,3 +42,8 @@ export const deleteTransactiontype = async (id: number) => {
export const exportTransactiontype = async (params) => {
return await request.download({ url: `/wms/transactiontype/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/transactiontype/get-import-template' })
}

5
src/api/wms/warehouse/index.ts

@ -40,3 +40,8 @@ export const deleteWarehouse = async (id: number) => {
export const exportWarehouse = async (params) => {
return await request.download({ url: `/wms/warehouse/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/warehouse/get-import-template' })
}

5
src/api/wms/workshop/index.ts

@ -40,3 +40,8 @@ export const deleteWorkshop = async (id: number) => {
export const exportWorkshop = async (params) => {
return await request.download({ url: `/wms/workshop/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/workshop/get-import-template' })
}

5
src/api/wms/workstation/index.ts

@ -49,3 +49,8 @@ export const exportWorkstation = async (params) => {
export const importWorkstationTemplate = () => {
return request.download({ url: '/wms/workstation/get-import-template' })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/workstation/get-import-template' })
}

10
src/components/BasicForm/src/BasicForm.vue

@ -84,6 +84,16 @@
<el-input v-model="form['inAreaCodes']" :placeholder="'请选择库区代码'" @click="opensearchTable('inAreaCodes', 'code')" />
</div>
</template>
<template #customercode="form">
<div class="w-[100%] flex">
<el-input v-model="form['customercode']" :placeholder="'请选择客户代码'" @click="opensearchTable('customercode', 'code')" />
</div>
</template>
<template #itemcode="form">
<div class="w-[100%] flex">
<el-input v-model="form['itemcode']" :placeholder="'请选择物料代码'" @click="opensearchTable('itemcode', 'code')" />
</div>
</template>
</Form>
<div class="table" v-if="isBusiness">
<TableForm ref="tableFormRef"

3
src/views/wms/accountcalendar/index.vue

@ -177,7 +177,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await AccountcalendarApi.importTemplate()
})
</script>

9
src/views/wms/areabasic/index.vue

@ -48,7 +48,7 @@
<Detail ref="detailRef" :isBasic="true" :allSchemas="Area.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/area/import" :importTemplateData="importTemplateData" @success="importSuccess" />
<ImportForm ref="importFormRef" url="/wms/areabasic/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
@ -138,10 +138,6 @@ const openForm = (type: string, row?: any) => {
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
console.log(144, formField)
console.log(145, searchField)
console.log(146, val)
console.log(147, formRef)
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
@ -200,7 +196,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await AreaApi.importTemplate()
})
</script>

11
src/views/wms/businesstype/index.vue

@ -143,10 +143,6 @@ const openForm = (type: string, row?: any) => {
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
console.log(144, formField)
console.log(145, searchField)
console.log(146, val)
console.log(147, formRef)
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
@ -182,7 +178,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await BusinesstypeApi.exportBusinesstype(setSearchParams)
download.excel(data, '仓库.xls')
download.excel(data, '业务类型.xls')
} catch {
} finally {
exportLoading.value = false
@ -197,7 +193,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '仓库导入模版.xls'
templateTitle: '业务类型导入模版.xls'
})
//
const importSuccess = () => {
@ -205,7 +201,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await BusinesstypeApi.importTemplate()
})
</script>

3
src/views/wms/carrier/index.vue

@ -177,7 +177,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await CarrierApi.importTemplate()
})
</script>

3
src/views/wms/condition/index.vue

@ -180,7 +180,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await ConditionApi.importTemplate()
})
</script>

7
src/views/wms/configuration/index.vue

@ -157,7 +157,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await ConfigurationApi.exportConfiguration(setSearchParams)
download.excel(data, '仓库.xls')
download.excel(data, '配置.xls')
} catch {
} finally {
exportLoading.value = false
@ -172,7 +172,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '仓库导入模版.xls'
templateTitle: '配置导入模版.xls'
})
//
const importSuccess = () => {
@ -180,7 +180,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await ConfigurationApi.importTemplate()
})
</script>

3
src/views/wms/configurationsetting/index.vue

@ -180,7 +180,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await ConfigurationsettingApi.importTemplate()
})
</script>

3
src/views/wms/currencyexchange/index.vue

@ -177,7 +177,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await CurrencyexchangeApi.importTemplate()
})
</script>

3
src/views/wms/customer/index.vue

@ -177,7 +177,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await CustomerApi.importTemplate()
})
</script>

7
src/views/wms/customerdock/index.vue

@ -150,10 +150,6 @@ const openForm = (type: string, row?: any) => {
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
console.log(144, formField)
console.log(145, searchField)
console.log(146, val)
console.log(147, formRef)
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
@ -212,7 +208,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await CustomerdockApi.importTemplate()
})
</script>

7
src/views/wms/customeritem/index.vue

@ -144,10 +144,6 @@ const openForm = (type: string, row?: any) => {
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
console.log(144, formField)
console.log(145, searchField)
console.log(146, val)
console.log(147, formRef)
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
@ -206,7 +202,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await CustomeritemApi.importTemplate()
})
</script>

7
src/views/wms/dock/index.vue

@ -144,10 +144,6 @@ const openForm = (type: string, row?: any) => {
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
console.log(144, formField)
console.log(145, searchField)
console.log(146, val)
console.log(147, formRef)
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
@ -206,7 +202,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await DockApi.importTemplate()
})
</script>

3
src/views/wms/documentsetting/index.vue

@ -180,7 +180,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await DocumentsettingApi.importTemplate()
})
</script>

3
src/views/wms/jobsetting/index.vue

@ -180,7 +180,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await JobsettingApi.importTemplate()
})
</script>

3
src/views/wms/location/index.vue

@ -212,7 +212,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await LocationApi.importTemplate()
})
</script>

7
src/views/wms/locationgroup/index.vue

@ -144,10 +144,6 @@ const openForm = (type: string, row?: any) => {
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
console.log(144, formField)
console.log(145, searchField)
console.log(146, val)
console.log(147, formRef)
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
@ -206,7 +202,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await LocationgroupApi.importTemplate()
})
</script>

3
src/views/wms/owner/index.vue

@ -177,7 +177,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await OwnerApi.importTemplate()
})
</script>

3
src/views/wms/paramsetting/index.vue

@ -180,7 +180,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await ParamsettingApi.importTemplate()
})
</script>

7
src/views/wms/process/index.vue

@ -144,10 +144,6 @@ const openForm = (type: string, row?: any) => {
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
console.log(144, formField)
console.log(145, searchField)
console.log(146, val)
console.log(147, formRef)
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
@ -206,7 +202,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await ProcessApi.importTemplate()
})
</script>

7
src/views/wms/productionline/index.vue

@ -149,10 +149,6 @@ const openForm = (type: string, row?: any) => {
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
console.log(144, formField)
console.log(145, searchField)
console.log(146, val)
console.log(147, formRef)
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
@ -211,7 +207,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await ProductionlineApi.importTemplate()
})
</script>

7
src/views/wms/project/index.vue

@ -138,10 +138,6 @@ const openForm = (type: string, row?: any) => {
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
console.log(144, formField)
console.log(145, searchField)
console.log(146, val)
console.log(147, formRef)
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
@ -200,7 +196,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await ProjectApi.importTemplate()
})
</script>

7
src/views/wms/purchaseprice/index.vue

@ -144,10 +144,6 @@ const openForm = (type: string, row?: any) => {
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
console.log(144, formField)
console.log(145, searchField)
console.log(146, val)
console.log(147, formRef)
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
@ -206,7 +202,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await PurchasepriceApi.importTemplate()
})
</script>

3
src/views/wms/recordsetting/index.vue

@ -180,7 +180,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await RecordsettingApi.importTemplate()
})
</script>

3
src/views/wms/requestsetting/index.vue

@ -180,7 +180,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await RequestsettingApi.importTemplate()
})
</script>

3
src/views/wms/rule/index.vue

@ -180,7 +180,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await RuleApi.importTemplate()
})
</script>

11
src/views/wms/saleprice/index.vue

@ -70,12 +70,12 @@ const { t } = useI18n() // 国际化
//
const searchTableParams = ref([{
formField: 'customerCode',
formField: 'customercode',
searchTableTitle: '客户信息',
searchTableAllSchemas: Customer.allSchemas,
searchTablePage: CustomerApi.getCustomerPage
},{
formField: 'itemCode',
formField: 'itemcode',
searchTableTitle: '物料信息',
searchTableAllSchemas: ItemBasic.allSchemas,
searchTablePage: ItembasicApi.getItembasicPage
@ -144,10 +144,6 @@ const openForm = (type: string, row?: any) => {
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
console.log(144, formField)
console.log(145, searchField)
console.log(146, val)
console.log(147, formRef)
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
@ -206,7 +202,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await SalepriceApi.importTemplate()
})
</script>

3
src/views/wms/shift/index.vue

@ -177,7 +177,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await ShiftApi.importTemplate()
})
</script>

3
src/views/wms/supplier/index.vue

@ -177,7 +177,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await SupplierApi.importTemplate()
})
</script>

9
src/views/wms/supplieritem/index.vue

@ -48,7 +48,7 @@
<Detail ref="detailRef" :isBasic="true" :allSchemas="Supplieritem.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/Supplieritem/import" :importTemplateData="importTemplateData" @success="importSuccess" />
<ImportForm ref="importFormRef" url="/wms/supplieritem/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
@ -156,10 +156,6 @@ const openForm = (type: string, row?: any) => {
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
console.log(144, formField)
console.log(145, searchField)
console.log(146, val)
console.log(147, formRef)
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
@ -218,7 +214,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await SupplieritemApi.importTemplate()
})
</script>

3
src/views/wms/systemcalendar/index.vue

@ -177,7 +177,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await SystemcalendarApi.importTemplate()
})
</script>

3
src/views/wms/team/index.vue

@ -177,7 +177,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await TeamApi.importTemplate()
})
</script>

3
src/views/wms/transactiontype/index.vue

@ -180,7 +180,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await TransactiontypeApi.importTemplate()
})
</script>

3
src/views/wms/warehouse/index.vue

@ -176,7 +176,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await WarehouseApi.importTemplate()
})
</script>

3
src/views/wms/workshop/index.vue

@ -176,7 +176,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await WorkshopApi.importTemplate()
})
</script>

7
src/views/wms/workstation/index.vue

@ -155,10 +155,6 @@ const openForm = (type: string, row?: any) => {
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
console.log(144, formField)
console.log(145, searchField)
console.log(146, val)
console.log(147, formRef)
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
@ -217,7 +213,8 @@ const importSuccess = () => {
}
/** 初始化 **/
onMounted(() => {
onMounted(async() => {
getList()
importTemplateData.templateUrl = await WorkstationApi.importTemplate()
})
</script>

Loading…
Cancel
Save