Browse Source

维修备件退货,采购上架,采购索赔,上架记录,导出文件名字,检验任务和记录重置问题,页面刷新问题

hella_online_20240815
zhang_li 3 months ago
parent
commit
04b7ce3257
  1. 30
      src/views/qms/inspectionJob/index.vue
  2. 27
      src/views/qms/inspectionRecord/index.vue
  3. 3
      src/views/wms/purchasereceiptManage/inspect/inspectJobMain/index.vue
  4. 3
      src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/index.vue
  5. 5
      src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue
  6. 5
      src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRecordSpareMain/index.vue
  7. 3
      src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue
  8. 3
      src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue
  9. 3
      src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/index.vue
  10. 5
      src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue
  11. 3
      src/views/wms/supplierManage/purchaseclaim/purchaseclaimRecordMain/index.vue
  12. 5
      src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue

30
src/views/qms/inspectionJob/index.vue

@ -4,7 +4,7 @@
<Search
:schema="InspectionJobMain.allSchemas.searchSchema"
@search="setSearchParams"
@reset="resetSearch"
@reset="setSearchParams"
/>
</ContentWrap>
@ -477,27 +477,30 @@ const searchFormClick = (searchData) => {
}
getList() //
}
const resetSearch = () => {
if (route.name == 'inspectionJobProductionMain') {
setSearchParams({
/** 初始化 **/
onMounted(async () => {
console.log(11,route.name)
if (route.name == 'inspectionJobProductionMain') {
tableObject.params = {
available: true,
inspectionType: '4'
})
}
} else if (route.name == 'inspectionJobPurchaseMain') {
setSearchParams({
tableObject.params = {
available: true,
inspectionType: '1'
})
}
} else {
setSearchParams({
tableObject.params = {
available: true,
excludeInspectionType: '1,4'
})
}
}
}
/** 初始化 **/
onMounted(async () => {
console.log(11,route.name)
getList()
// importTemplateData.templateUrl = await InspectionJobMainApi.importTemplate()
})
onActivated(() => {
if (route.name == 'inspectionJobProductionMain') {
tableObject.params = {
available: true,
@ -516,6 +519,5 @@ onMounted(async () => {
}
getList()
// importTemplateData.templateUrl = await InspectionJobMainApi.importTemplate()
})
</script>

27
src/views/qms/inspectionRecord/index.vue

@ -4,7 +4,7 @@
<Search
:schema="InspectionRecordMain.allSchemas.searchSchema"
@search="setSearchParams"
@reset="resetSearch"
@reset="setSearchParams"
/>
</ContentWrap>
@ -464,26 +464,29 @@ const searchFormClick = (searchData) => {
}
getList() //
}
const resetSearch = () => {
if (route.name == 'inspectionRecordPurchaseMain') {
setSearchParams({
/** 初始化 **/
onMounted(async () => {
if (route.name == 'inspectionRecordPurchaseMain') {
tableObject.params = {
available: true,
inspectionType: '1'
})
}
} else if (route.name == 'inspectionRecordProductionMain') {
setSearchParams({
tableObject.params = {
available: true,
inspectionType: '4'
})
}
} else {
setSearchParams({
tableObject.params = {
available: true,
excludeInspectionType: '1,4,11'
})
}
}
}
/** 初始化 **/
onMounted(async () => {
getList()
})
onActivated(() => {
if (route.name == 'inspectionRecordPurchaseMain') {
tableObject.params = {
available: true,

3
src/views/wms/purchasereceiptManage/inspect/inspectJobMain/index.vue

@ -73,6 +73,7 @@ import * as InspectJobMainApi from '@/api/wms/inspectJobMain'
import * as InspectJobDetailApi from '@/api/wms/inspectJobDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'InspectJobMain' })
@ -233,7 +234,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await InspectJobMainApi.exportInspectJobMain(tableObject.params)
download.excel(data, '检验任务主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false

3
src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/index.vue

@ -72,6 +72,7 @@ import * as InspectRecordDetailApi from '@/api/wms/inspectRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import Preview from '@/components/UploadFile/src/Preview.vue'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'InspectRecordMain' })
@ -179,7 +180,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await InspectRecordMainApi.exportInspectRecordMain(tableObject.params)
download.excel(data, '检验记录主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false

5
src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue

@ -53,6 +53,7 @@
import * as InspectRequestMainApi from '@/api/wms/inspectRequestMain'
import * as InspectRequestDetailApi from '@/api/wms/inspectRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'InspectRequestMain' })
@ -322,7 +323,7 @@
//
exportLoading.value = true
const data = await InspectRequestMainApi.exportInspectRequestMain(tableObject.params)
download.excel(data, '检验申请主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -385,7 +386,7 @@
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '检验申请主导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//

5
src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRecordSpareMain/index.vue

@ -70,6 +70,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { getAccessToken } from '@/utils/auth'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
// 退
defineOptions({ name: 'PurchasereturnRecordSpareMain' })
@ -170,10 +171,10 @@ const handleExport = async () => {
exportLoading.value = true
if(routeName.value.includes('SCP')){
const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMainSCP(tableObject.params)
download.excel(data, `${t('ts.采购退货记录主')}.xlsx`)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}.xlsx`)
}else{
const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMainSpare(tableObject.params)
download.excel(data, `维修备件退货记录主.xlsx`)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}.xlsx`)
}
} catch {

3
src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue

@ -141,6 +141,7 @@ import { getAccessToken } from '@/utils/auth'
import * as BalanceApi from '@/api/wms/balance'
import { async } from '@antv/x6/lib/registry/marker/async'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
// 退
defineOptions({ name: 'PurchasereturnRequestSpareMain' })
@ -708,7 +709,7 @@ const handleExport = async () => {
const data = await PurchasereturnRequestMainApi.exportPurchasereturnRequestMainSpare(
tableObject.params
)
download.excel(data, '维修备件退货申请主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false

3
src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue

@ -101,6 +101,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import {getAccessToken} from "@/utils/auth";
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'PutawayJobMain' })
@ -348,7 +349,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await PutawayJobMainApi.exportPutawayJobMain(tableObject.params)
download.excel(data, '上架任务主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false

3
src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/index.vue

@ -91,6 +91,7 @@ import * as PutawayRecordMainApi from '@/api/wms/putawayRecordMain'
import * as PutawayRecordDetailApi from '@/api/wms/putawayRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'PutawayRecordMain' })
@ -211,7 +212,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await PutawayRecordMainApi.exportPutawayRecordMain(tableObject.params)
download.excel(data, '上架记录主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false

5
src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue

@ -110,6 +110,7 @@ import { PutawayRequestMain,
import * as PutawayRequestMainApi from '@/api/wms/putawayRequestMain'
import * as PutawayRequestDetailApi from '@/api/wms/putawayRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'PutawayRequestMain' })
@ -406,7 +407,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await PutawayRequestMainApi.exportPutawayRequestMain(tableObject.params)
download.excel(data, '上架申请主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -475,7 +476,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '上架申请主导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//

3
src/views/wms/supplierManage/purchaseclaim/purchaseclaimRecordMain/index.vue

@ -68,6 +68,7 @@ import * as PurchaseclaimRecordMainApi from '@/api/wms/purchaseclaimRecordMain'
import * as PurchaseclaimRecordDetailApi from '@/api/wms/purchaseclaimRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'PurchaseclaimRecordMain' })
@ -156,7 +157,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await PurchaseclaimRecordMainApi.exportPurchaseclaimRecordMain(tableObject.params)
download.excel(data, '采购索赔记录主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false

5
src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue

@ -77,6 +77,7 @@
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'PurchaseclaimRequestMain' })
@ -414,7 +415,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam'
//
exportLoading.value = true
const data = await PurchaseclaimRequestMainApi.exportPurchaseclaimRequestMain(tableObject.params)
download.excel(data, '采购索赔申请主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -484,7 +485,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam'
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '采购索赔申请信息导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

Loading…
Cancel
Save