Browse Source

Merge remote-tracking branch 'origin/hella_online_20240803' into hella_online_20240803

hella_online_20240819
gaojs 1 month ago
parent
commit
3ca480e2ad
  1. 3
      public/systemConfig.js
  2. 4
      src/api/wms/purchasereturnRequestMain/index.ts
  3. 1
      src/utils/dict.ts
  4. 29
      src/views/qms/inspectionRequest/index.vue
  5. 3
      src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/index.vue
  6. 3
      src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue
  7. 3
      src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue
  8. 3
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/index.vue
  9. 3
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue
  10. 3
      src/views/wms/deliversettlementManage/customersettle/customersettleRecordMain/index.vue
  11. 3
      src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/index.vue
  12. 3
      src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue
  13. 3
      src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue
  14. 5
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue
  15. 5
      src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue
  16. 3
      src/views/wms/deliversettlementManage/deliverplan/saleMain/index.vue
  17. 3
      src/views/wms/deliversettlementManage/saleShipmentMainRecord/index.vue
  18. 3
      src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue
  19. 3
      src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue
  20. 3
      src/views/wms/deliversettlementManage/stockup/stockupMainRecord/index.vue
  21. 3
      src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue
  22. 3
      src/views/wms/inventoryManage/balance/index.vue
  23. 3
      src/views/wms/inventoryManage/expectin/index.vue
  24. 3
      src/views/wms/inventoryManage/expectout/index.vue
  25. 3
      src/views/wms/inventoryManage/locationcapacity/index.vue
  26. 3
      src/views/wms/inventoryManage/package/index.vue
  27. 3
      src/views/wms/inventoryManage/transaction/index.vue
  28. 3
      src/views/wms/inventoryManage/transferlog/index.vue
  29. 29
      src/views/wms/inventoryjobManage/scrap/scrapJobMain/scrapJobMain.data.ts
  30. 27
      src/views/wms/inventoryjobManage/scrap/scrapRecordMain/scrapRecordMain.data.ts
  31. 69
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue
  32. 3
      src/views/wms/issueManage/issue/issueJobMain/index.vue
  33. 3
      src/views/wms/issueManage/issue/issueRecordMain/index.vue
  34. 3
      src/views/wms/issueManage/issue/issueRequestMain/index.vue
  35. 3
      src/views/wms/issueManage/onlinesettlement/onlinesettlementRecordMain/index.vue
  36. 3
      src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/index.vue
  37. 3
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue
  38. 3
      src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/index.vue
  39. 3
      src/views/wms/issueManage/productionreceipt/productionreceiptRecordMain/index.vue
  40. 3
      src/views/wms/issueManage/productionreturn/productionreturnJobMain/index.vue
  41. 3
      src/views/wms/issueManage/productionreturn/productionreturnRecordMain/index.vue
  42. 3
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
  43. 3
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue
  44. 3
      src/views/wms/issueManage/productionscrap/productionscrapRecordMain/index.vue
  45. 3
      src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue
  46. 3
      src/views/wms/issueManage/repleinsh/repleinshJobMain/index.vue
  47. 3
      src/views/wms/issueManage/repleinsh/repleinshRecordMain/index.vue
  48. 3
      src/views/wms/issueManage/repleinsh/repleinshRequestMain/index.vue
  49. 3
      src/views/wms/productionManage/offlinesettlement/offlinesettlementRecordMain/index.vue
  50. 3
      src/views/wms/productionManage/processproduction/processproductionRequest/index.vue
  51. 3
      src/views/wms/productionManage/productdismantle/productdismantleJobMain/index.vue
  52. 3
      src/views/wms/productionManage/productdismantle/productdismantleRecordMain/index.vue
  53. 3
      src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue
  54. 8
      src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts
  55. 3
      src/views/wms/productionManage/productionplan/productionMain/index.vue
  56. 3
      src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue
  57. 4
      src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue
  58. 3
      src/views/wms/productionManage/productionplan/productionMainPredictSparePart/index.vue
  59. 3
      src/views/wms/productionManage/productionplan/qadproductionplan/index.vue
  60. 3
      src/views/wms/productionManage/productputaway/productputawayJobMain/index.vue
  61. 3
      src/views/wms/productionManage/productputaway/productputawayRecordMain/index.vue
  62. 3
      src/views/wms/productionManage/productputaway/productputawayRequestMain/index.vue
  63. 3
      src/views/wms/productionManage/productputawayAssemble/productputawayAssembleJobMain/index.vue
  64. 3
      src/views/wms/productionManage/productputawayAssemble/productputawayAssembleRecordMain/index.vue
  65. 3
      src/views/wms/productionManage/productputawayAssemble/productputawayAssembleRequestMain/index.vue
  66. 3
      src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue
  67. 3
      src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue
  68. 3
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue
  69. 3
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/index.vue
  70. 3
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue
  71. 3
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue
  72. 3
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/index.vue
  73. 3
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRecordMain/index.vue
  74. 3
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue
  75. 3
      src/views/wms/productionManage/productredress/productredressJobMain/index.vue
  76. 26
      src/views/wms/productionManage/productredress/productredressJobMain/productredressJobMain.data.ts
  77. 3
      src/views/wms/productionManage/productredress/productredressRecordMain/index.vue
  78. 3
      src/views/wms/productionManage/productredress/productredressRequestMain/index.vue
  79. 31
      src/views/wms/productionManage/productredress/productredressRequestMain/productredressRequestMain.data.ts
  80. 3
      src/views/wms/productionManage/productrepair/productrepairRecordMain/index.vue
  81. 18
      src/views/wms/productionManage/productrepair/productrepairRecordMain/productrepairRecordMain.data.ts
  82. 3
      src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue
  83. 3
      src/views/wms/productionManage/productscrap/productscrapJobMain/index.vue
  84. 3
      src/views/wms/productionManage/productscrap/productscrapRecordMain/index.vue
  85. 3
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue
  86. 25
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/index.vue
  87. 1858
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/purchasereturnRequestMain.data.ts
  88. 3
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/purchasereturnRequestMainNew.data.ts
  89. 16
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts
  90. 8
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
  91. 23
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts
  92. 16
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMainDifference/supplierinvoiceRequestMainDifference.data.ts

3
public/systemConfig.js

@ -12,5 +12,6 @@ let systemConfig = {
// 租户配置 // 租户配置
tenant: '["成都"]', tenant: '["成都"]',
systermUpdateAlert: true, systermUpdateAlert: true,
systermUpdateUrl: 'https://scptest.faway-hella.com/' systermUpdateUrl: 'https://scptest.faway-hella.com/',
needCode:false
} }

4
src/api/wms/purchasereturnRequestMain/index.ts

@ -61,6 +61,10 @@ export const createPurchasereturnRequestMainNew = async (data: PurchasereturnReq
export const updatePurchasereturnRequestMain = async (data: PurchasereturnRequestMainVO) => { export const updatePurchasereturnRequestMain = async (data: PurchasereturnRequestMainVO) => {
return await request.put({ url: `/wms/purchasereturn-request-main/update`, data }) return await request.put({ url: `/wms/purchasereturn-request-main/update`, data })
} }
// 修改采购退货申请主 --新版
export const updatePurchasereturnRequestMainNew = async (data: PurchasereturnRequestMainVO) => {
return await request.post({ url: `/wms/purchasereturn-request-main/updateReturnNew`, data })
}
// 删除采购退货申请主 // 删除采购退货申请主
export const deletePurchasereturnRequestMain = async (id: number) => { export const deletePurchasereturnRequestMain = async (id: number) => {

1
src/utils/dict.ts

@ -399,4 +399,5 @@ export enum DICT_TYPE {
PURCHASE_JOB_STATUS = 'purchase_job_status', // 采购收货任务状态 PURCHASE_JOB_STATUS = 'purchase_job_status', // 采购收货任务状态
PUBLISHE_STATUS = 'publishe_status', // 采购收货任务状态 PUBLISHE_STATUS = 'publishe_status', // 采购收货任务状态
PUBLISHE_STATUS_FIRST_INSPECTION = 'publishe_status_first_inspection', // 首件检验记录发布状态 PUBLISHE_STATUS_FIRST_INSPECTION = 'publishe_status_first_inspection', // 首件检验记录发布状态
RETURN_REASON_TYPE = 'return_reason_type', // 采购退货原因类型
} }

29
src/views/qms/inspectionRequest/index.vue

@ -88,6 +88,17 @@
@ListTableSubmit="ListTableSubmit" @ListTableSubmit="ListTableSubmit"
/> />
</div> </div>
<el-dialog
v-model="showQualityReport"
:title="t('质检明细')"
:append-to-body="false"
destroy-on-close
fullscreen
>
<iframe :height="reportHeight" width="100%" :src="qualityReport" frameborder="0"></iframe>
</el-dialog>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@ -105,6 +116,7 @@ import ListTable from '@/components/ListTable/src/ListTable.vue'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
import { getReportUrl } from '@/utils/systemParam'
// import { InspectionJobPackage} from '../inspectionJob/inspectionJobMain.data' // import { InspectionJobPackage} from '../inspectionJob/inspectionJobMain.data'
defineOptions({ name: 'inspectionMain' }) defineOptions({ name: 'inspectionMain' })
@ -226,7 +238,8 @@ const butttondata = (row) => {
defaultButtons.mainListEditBtn({ defaultButtons.mainListEditBtn({
hide: isShowMainButton(row, ['1']), hide: isShowMainButton(row, ['1']),
hasPermi: 'qms:inspection-request-main:edit' hasPermi: 'qms:inspection-request-main:edit'
}) // }),//
defaultButtons.mainListPlanCheckQualityReportBtn({}) //
] ]
} }
const listTableRef = ref() const listTableRef = ref()
@ -263,7 +276,10 @@ const buttonTableClick = async (val, row) => {
'包装信息', '包装信息',
InspectionRequestPackage.allSchemas.tableColumns InspectionRequestPackage.allSchemas.tableColumns
) )
} }else if (val == 'mainPlanCheckQualityReport') {
//
checkQualityReport(row)
}
} }
/** 关闭按钮操作 */ /** 关闭按钮操作 */
@ -350,6 +366,15 @@ const handleSubmit = async (id: number) => {
} }
} }
//
const reportHeight = ref(window.innerHeight - 120)
const showQualityReport = ref(false)
const qualityReport = ref('')
const checkQualityReport = async (row) => {
showQualityReport.value = true
qualityReport.value = getReportUrl() + '/purchasereceiptReport?asnNumber=' + row.asnNumber
}
/** 添加/修改操作 */ /** 添加/修改操作 */
const formRef = ref() const formRef = ref()
const openForm = async (type: string, row?: number) => { const openForm = async (type: string, row?: number) => {

3
src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/index.vue

@ -156,8 +156,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await CustomerreceiptRecordMainApi.exportCustomerreceiptRecordMain(tableObject.params) const data = await CustomerreceiptRecordMainApi.exportCustomerreceiptRecordMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue

@ -326,8 +326,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await CustomerreceiptRequestMainApi.exportCustomerreceiptRequestMain(tableObject.params) const data = await CustomerreceiptRequestMainApi.exportCustomerreceiptRequestMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue

@ -365,8 +365,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await CustomerreturnJobMainApi.exportCustomerreturnJobMain(tableObject.params) const data = await CustomerreturnJobMainApi.exportCustomerreturnJobMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/index.vue

@ -162,8 +162,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await CustomerreturnRecordMainApi.exportCustomerreturnRecordMain(tableObject.params) const data = await CustomerreturnRecordMainApi.exportCustomerreturnRecordMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue

@ -653,8 +653,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await CustomerreturnRequestMainApi.exportCustomerreturnRequestMain(tableObject.params) const data = await CustomerreturnRequestMainApi.exportCustomerreturnRequestMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/deliversettlementManage/customersettle/customersettleRecordMain/index.vue

@ -156,8 +156,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await CustomersettleRecordMainApi.exportCustomersettleRecordMain(tableObject.params) const data = await CustomersettleRecordMainApi.exportCustomersettleRecordMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/index.vue

@ -337,8 +337,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await CustomersettleRequestMainApi.exportCustomersettleRequestMain(tableObject.params) const data = await CustomersettleRequestMainApi.exportCustomersettleRequestMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue

@ -350,8 +350,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await DeliverJobMainApi.exportDeliverJobMain(tableObject.params) const data = await DeliverJobMainApi.exportDeliverJobMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue

@ -184,8 +184,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await DeliverRecordMainApi.exportDeliverRecordMain(tableObject.params) const data = await DeliverRecordMainApi.exportDeliverRecordMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

5
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue

@ -474,12 +474,13 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
if(routeName.value == 'DeliverRequestMain'){ if(routeName.value == 'DeliverRequestMain'){
const data = await DeliverRequestMainApi.exportDeliverRequestMain(tableObject.params) const data = await DeliverRequestMainApi.exportDeliverRequestMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
}else{ }else{
const data = await DeliverRequestMainApi.exportZZBJDeliverRequestMain(tableObject.params) const data = await DeliverRequestMainApi.exportZZBJDeliverRequestMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} }
} catch { } catch {
} finally { } finally {

5
src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue

@ -433,12 +433,13 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
if(routeName.value == 'DeliverRequestMain'){ if(routeName.value == 'DeliverRequestMain'){
const data = await DeliverPlanMainApi.exportDeliverPlanMain(tableObject.params) const data = await DeliverPlanMainApi.exportDeliverPlanMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
}else{ }else{
const data = await DeliverPlanMainApi.exportZZBJDeliverPlanMain(tableObject.params) const data = await DeliverPlanMainApi.exportZZBJDeliverPlanMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} }
} catch { } catch {
} finally { } finally {

3
src/views/wms/deliversettlementManage/deliverplan/saleMain/index.vue

@ -253,8 +253,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await SaleMainApi.exportSaleMain(tableObject.params) const data = await SaleMainApi.exportSaleMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/deliversettlementManage/saleShipmentMainRecord/index.vue

@ -206,8 +206,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await SaleShipmentMainRecordApi.exportSaleShipmentMainRecord(tableObject.params) const data = await SaleShipmentMainRecordApi.exportSaleShipmentMainRecord(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue

@ -447,8 +447,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await SaleShipmentMainApi.exportSaleShipmentMain(tableObject.params) const data = await SaleShipmentMainApi.exportSaleShipmentMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue

@ -239,8 +239,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await StockupJobMainApi.exportStockupMainJob(tableObject.params) const data = await StockupJobMainApi.exportStockupMainJob(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/deliversettlementManage/stockup/stockupMainRecord/index.vue

@ -157,8 +157,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await StockupMainRecordApi.exportStockupMainRecord(tableObject.params) const data = await StockupMainRecordApi.exportStockupMainRecord(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue

@ -411,8 +411,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await StockupMainRequestApi.exportStockupMainRequest(tableObject.params) const data = await StockupMainRequestApi.exportStockupMainRequest(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/inventoryManage/balance/index.vue

@ -298,8 +298,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await BalanceApi.exportBalance(tableObject.params) const data = await BalanceApi.exportBalance(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/inventoryManage/expectin/index.vue

@ -226,8 +226,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ExpectinApi.exportExpectin(tableObject.params) const data = await ExpectinApi.exportExpectin(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/inventoryManage/expectout/index.vue

@ -225,8 +225,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ExpectoutApi.exportExpectout(tableObject.params) const data = await ExpectoutApi.exportExpectout(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/inventoryManage/locationcapacity/index.vue

@ -180,8 +180,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await LocationcapacityApi.exportLocationcapacity(tableObject.params) const data = await LocationcapacityApi.exportLocationcapacity(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/inventoryManage/package/index.vue

@ -250,8 +250,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await PackageApi.exportPackage(tableObject.params) const data = await PackageApi.exportPackage(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/inventoryManage/transaction/index.vue

@ -181,8 +181,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await TransactionApi.exportTransaction(tableObject.params) const data = await TransactionApi.exportTransaction(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/inventoryManage/transferlog/index.vue

@ -180,8 +180,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ExpectinApi.exportTransferlog(tableObject.params) const data = await ExpectinApi.exportTransferlog(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

29
src/views/wms/inventoryjobManage/scrap/scrapJobMain/scrapJobMain.data.ts

@ -26,6 +26,33 @@ export const ScrapJobMain = useCrudSchemas(
}, },
isSearch: true isSearch: true
}, },
{
label: 'Q1通知单号',
field: 'q1Number',
sort: 'custom',
table: {
width: 180
},
isSearch: false
},
{
label: 'Q2通知单号',
field: 'q2Number',
sort: 'custom',
table: {
width: 180
},
isSearch: false
},
{
label: 'Q3通知单号',
field: 'q3Number',
sort: 'custom',
table: {
width: 180
},
isSearch: false
},
{ {
label: '状态', label: '状态',
field: 'status', field: 'status',
@ -465,7 +492,7 @@ export const ScrapJobMain = useCrudSchemas(
type: 'daterange', type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
} }
}, }
}, },
{ {
label: '创建者', label: '创建者',

27
src/views/wms/inventoryjobManage/scrap/scrapRecordMain/scrapRecordMain.data.ts

@ -35,6 +35,33 @@ export const ScrapRecordMain = useCrudSchemas(
}, },
isSearch: true isSearch: true
}, },
{
label: 'Q1通知单号',
field: 'q1Number',
sort: 'custom',
table: {
width: 180
},
isSearch: false
},
{
label: 'Q2通知单号',
field: 'q2Number',
sort: 'custom',
table: {
width: 180
},
isSearch: false
},
{
label: 'Q3通知单号',
field: 'q3Number',
sort: 'custom',
table: {
width: 180
},
isSearch: false
},
{ {
label: '申请时间', label: '申请时间',
field: 'requestTime', field: 'requestTime',

69
src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue

@ -483,14 +483,69 @@ const handleHandle = async (id: number) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const formRef = ref() const formRef = ref()
const openForm = async (type: string, row?: number) => { const openForm = async (type: string, row?: any) => {
ScrapRequestMain.allSchemas.formSchema.forEach((item) => { if (type == 'create') {
if (item.field == 'q1Number' || item.field == 'q2Number' || item.field == 'q3Number') { ScrapRequestMain.allSchemas.formSchema.forEach((item) => {
item.componentProps.enterSearch = true if (item.field == 'q1Number' || item.field == 'q2Number' || item.field == 'q3Number') {
item.componentProps.isSearchList = true item.componentProps.enterSearch = true
item.componentProps.disabled = false item.componentProps.isSearchList = true
item.componentProps.disabled = false
}
})
} else {
if (row.q1Number) {
ScrapRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'q1Number') {
item.componentProps.enterSearch = true
item.componentProps.isSearchList = true
item.componentProps.disabled = false
}
if (item.field == 'q2Number' || item.field == 'q3Number') {
item.componentProps.enterSearch = false
item.componentProps.isSearchList = false
item.componentProps.disabled = true
}
})
} }
}) if (row.q2Number) {
ScrapRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'q2Number') {
item.componentProps.enterSearch = true
item.componentProps.isSearchList = true
item.componentProps.disabled = false
}
if (item.field == 'q1Number' || item.field == 'q3Number') {
item.componentProps.enterSearch = false
item.componentProps.isSearchList = false
item.componentProps.disabled = true
}
})
}
if (row.q3Number) {
ScrapRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'q3Number') {
item.componentProps.enterSearch = true
item.componentProps.isSearchList = true
item.componentProps.disabled = false
}
if (item.field == 'q1Number' || item.field == 'q2Number') {
item.componentProps.enterSearch = false
item.componentProps.isSearchList = false
item.componentProps.disabled = true
}
})
}
if (!row.q3Number && !row.q2Number && !row.q1Number) {
ScrapRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'q1Number' || item.field == 'q2Number' || item.field == 'q3Number') {
item.componentProps.enterSearch = true
item.componentProps.isSearchList = true
item.componentProps.disabled = false
}
})
}
}
tableData.value = [] // tableData.value = [] //
formRef.value.open(type, row) formRef.value.open(type, row)
} }

3
src/views/wms/issueManage/issue/issueJobMain/index.vue

@ -300,8 +300,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await IssueJobMainApi.exportIssueJobMain(tableObject.params) const data = await IssueJobMainApi.exportIssueJobMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/issueManage/issue/issueRecordMain/index.vue

@ -156,8 +156,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await IssueRecordMainApi.exportIssueRecordMain(tableObject.params) const data = await IssueRecordMainApi.exportIssueRecordMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/issueManage/issue/issueRequestMain/index.vue

@ -443,8 +443,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await IssueRequestMainApi.exportIssueRequestMain(tableObject.params) const data = await IssueRequestMainApi.exportIssueRequestMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/issueManage/onlinesettlement/onlinesettlementRecordMain/index.vue

@ -151,8 +151,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await OnlinesettlementRecordMainApi.exportOnlinesettlementRecordMain(tableObject.params) const data = await OnlinesettlementRecordMainApi.exportOnlinesettlementRecordMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/index.vue

@ -267,8 +267,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await OnlinesettlementRequestMainApi.exportOnlinesettlementRequestMain(tableObject.params) const data = await OnlinesettlementRequestMainApi.exportOnlinesettlementRequestMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

@ -458,8 +458,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await PreparetoissueMainApi.exportPreparetoissueMain(tableObject.params) const data = await PreparetoissueMainApi.exportPreparetoissueMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/index.vue

@ -300,8 +300,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductionreceiptJobMainApi.exportProductionreceiptJobMain(tableObject.params) const data = await ProductionreceiptJobMainApi.exportProductionreceiptJobMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/issueManage/productionreceipt/productionreceiptRecordMain/index.vue

@ -156,8 +156,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductionreceiptRecordMainApi.exportProductionreceiptRecordMain(tableObject.params) const data = await ProductionreceiptRecordMainApi.exportProductionreceiptRecordMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/issueManage/productionreturn/productionreturnJobMain/index.vue

@ -272,8 +272,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductionreturnJobMainApi.exportProductionreturnJobMain(tableObject.params) const data = await ProductionreturnJobMainApi.exportProductionreturnJobMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/issueManage/productionreturn/productionreturnRecordMain/index.vue

@ -157,8 +157,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductionreturnRecordMainApi.exportProductionreturnRecordMain(tableObject.params) const data = await ProductionreturnRecordMainApi.exportProductionreturnRecordMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue

@ -607,8 +607,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductionreturnRequestMainApi.exportProductionreturnRequestMain(tableObject.params) const data = await ProductionreturnRequestMainApi.exportProductionreturnRequestMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue

@ -551,8 +551,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductionreturnRequestMainNoApi.exportProductionreturnRequestMain(tableObject.params) const data = await ProductionreturnRequestMainNoApi.exportProductionreturnRequestMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/issueManage/productionscrap/productionscrapRecordMain/index.vue

@ -156,8 +156,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductionscrapRecordMainApi.exportProductionscrapRecordMain(tableObject.params) const data = await ProductionscrapRecordMainApi.exportProductionscrapRecordMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue

@ -607,8 +607,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductionscrapRequestMainApi.exportProductionscrapRequestMain(tableObject.params) const data = await ProductionscrapRequestMainApi.exportProductionscrapRequestMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/issueManage/repleinsh/repleinshJobMain/index.vue

@ -328,8 +328,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await RepleinshJobMainApi.exportRepleinshJobMain(tableObject.params) const data = await RepleinshJobMainApi.exportRepleinshJobMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/issueManage/repleinsh/repleinshRecordMain/index.vue

@ -153,8 +153,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await RepleinshRecordMainApi.exportRepleinshRecordMain(tableObject.params) const data = await RepleinshRecordMainApi.exportRepleinshRecordMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/issueManage/repleinsh/repleinshRequestMain/index.vue

@ -344,8 +344,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await RepleinshRequestMainApi.exportRepleinshRequestMain(tableObject.params) const data = await RepleinshRequestMainApi.exportRepleinshRequestMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/offlinesettlement/offlinesettlementRecordMain/index.vue

@ -156,8 +156,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await OfflinesettlementRecordMainApi.exportOfflinesettlementRecordMain(tableObject.params) const data = await OfflinesettlementRecordMainApi.exportOfflinesettlementRecordMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/processproduction/processproductionRequest/index.vue

@ -408,8 +408,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProcessproductionRequestMainApi.exportProcessproductionRequestMain(tableObject.params) const data = await ProcessproductionRequestMainApi.exportProcessproductionRequestMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productdismantle/productdismantleJobMain/index.vue

@ -223,8 +223,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductdismantleJobMainApi.exportProductdismantleJobMain(tableObject.params) const data = await ProductdismantleJobMainApi.exportProductdismantleJobMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productdismantle/productdismantleRecordMain/index.vue

@ -226,8 +226,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductdismantleRecordMainApi.exportProductdismantleRecordMain(tableObject.params) const data = await ProductdismantleRecordMainApi.exportProductdismantleRecordMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue

@ -541,8 +541,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductdismantleRequestMainApi.exportProductdismantleRequestMain(tableObject.params) const data = await ProductdismantleRequestMainApi.exportProductdismantleRequestMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

8
src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts

@ -992,7 +992,7 @@ export const ProductdismantleRequestDetaila = useCrudSchemas(reactive<CrudSchema
label: '备注', label: '备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
sortTableDefault:1002, sortTableDefault:1000,
table: { table: {
width: 150 width: 150
}, },
@ -1000,7 +1000,7 @@ export const ProductdismantleRequestDetaila = useCrudSchemas(reactive<CrudSchema
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
sortTableDefault:1000, sortTableDefault:1001,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -1018,6 +1018,7 @@ export const ProductdismantleRequestDetaila = useCrudSchemas(reactive<CrudSchema
valueFormat: 'x', valueFormat: 'x',
} }
}, },
hiddenInMain:false,
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
@ -1025,10 +1026,11 @@ export const ProductdismantleRequestDetaila = useCrudSchemas(reactive<CrudSchema
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
sort: 'custom', sort: 'custom',
sortTableDefault:1001, sortTableDefault:1002,
table: { table: {
width: 150 width: 150
}, },
hiddenInMain:false,
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },

3
src/views/wms/productionManage/productionplan/productionMain/index.vue

@ -549,8 +549,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductionMainApi.exportProductionMain(tableObject.params) const data = await ProductionMainApi.exportProductionMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue

@ -512,8 +512,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductionMainApi.exportProductionMainAssemble(tableObject.params) const data = await ProductionMainApi.exportProductionMainAssemble(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

4
src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue

@ -500,9 +500,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductionMainApi.exportProductionMainAssembleSparePart(tableObject.params) const data = await ProductionMainApi.exportProductionMainAssembleSparePart(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
} }

3
src/views/wms/productionManage/productionplan/productionMainPredictSparePart/index.vue

@ -502,8 +502,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductionMainApi.exportProductionMainPredictSparePart(tableObject.params) const data = await ProductionMainApi.exportProductionMainPredictSparePart(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productionplan/qadproductionplan/index.vue

@ -214,8 +214,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await QadProductionPlanMainApi.exportQadProductionPlanMain(tableObject.params) const data = await QadProductionPlanMainApi.exportQadProductionPlanMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productputaway/productputawayJobMain/index.vue

@ -246,8 +246,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductputawayJobMainApi.exportProductputawayJobMain(tableObject.params) const data = await ProductputawayJobMainApi.exportProductputawayJobMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productputaway/productputawayRecordMain/index.vue

@ -156,8 +156,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductputawayRecordMainApi.exportProductputawayRecordMain(tableObject.params) const data = await ProductputawayRecordMainApi.exportProductputawayRecordMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productputaway/productputawayRequestMain/index.vue

@ -342,8 +342,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductputawayRequestMainApi.exportProductputawayRequestMain(tableObject.params) const data = await ProductputawayRequestMainApi.exportProductputawayRequestMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productputawayAssemble/productputawayAssembleJobMain/index.vue

@ -249,8 +249,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductputawayJobMainApi.exportProductputawayJobMain(tableObject.params) const data = await ProductputawayJobMainApi.exportProductputawayJobMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productputawayAssemble/productputawayAssembleRecordMain/index.vue

@ -156,8 +156,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductputawayRecordMainApi.exportProductputawayRecordMain(tableObject.params) const data = await ProductputawayRecordMainApi.exportProductputawayRecordMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productputawayAssemble/productputawayAssembleRequestMain/index.vue

@ -344,8 +344,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductputawayRequestMainApi.exportProductputawayRequestMainAssemble(tableObject.params) const data = await ProductputawayRequestMainApi.exportProductputawayRequestMainAssemble(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue

@ -350,8 +350,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductreceiptJobMainApi.exportProductreceiptJobMain(tableObject.params) const data = await ProductreceiptJobMainApi.exportProductreceiptJobMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue

@ -294,8 +294,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductreceiptRecordMainApi.exportProductreceiptRecordMain(tableObject.params) const data = await ProductreceiptRecordMainApi.exportProductreceiptRecordMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue

@ -577,8 +577,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductreceiptRequestMainApi.exportProductreceiptRequestMain(tableObject.params) const data = await ProductreceiptRequestMainApi.exportProductreceiptRequestMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/index.vue

@ -290,8 +290,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductreceiptJobMainApi.exportProductreceiptJobMainAssemble(tableObject.params) const data = await ProductreceiptJobMainApi.exportProductreceiptJobMainAssemble(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue

@ -358,8 +358,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductreceiptRecordMainApi.exportProductreceiptRecordAssembleMain(tableObject.params) const data = await ProductreceiptRecordMainApi.exportProductreceiptRecordAssembleMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue

@ -576,8 +576,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductreceiptRequestMainApi.exportProductreceiptRequestMainAssemble(tableObject.params) const data = await ProductreceiptRequestMainApi.exportProductreceiptRequestMainAssemble(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/index.vue

@ -287,8 +287,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductreceiptJobMainApi.exportProductreceiptJobMain(tableObject.params) const data = await ProductreceiptJobMainApi.exportProductreceiptJobMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRecordMain/index.vue

@ -199,8 +199,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductreceiptRecordMainApi.exportProductreceiptRecordMain(tableObject.params) const data = await ProductreceiptRecordMainApi.exportProductreceiptRecordMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue

@ -554,8 +554,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductreceiptRequestMainApi.exportProductreceiptRequestMain(tableObject.params) const data = await ProductreceiptRequestMainApi.exportProductreceiptRequestMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productredress/productredressJobMain/index.vue

@ -195,8 +195,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductredressJobMainApi.exportProductredressJobMain(tableObject.params) const data = await ProductredressJobMainApi.exportProductredressJobMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

26
src/views/wms/productionManage/productredress/productredressJobMain/productredressJobMain.data.ts

@ -383,7 +383,7 @@ export const ProductredressJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable:true, isTable:false,
isForm: false, isForm: false,
}, },
{ {
@ -397,7 +397,7 @@ export const ProductredressJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable:true, isTable:false,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -668,16 +668,6 @@ export const ProductredressJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
isTable:false, isTable:false,
hiddenInMain:true, hiddenInMain:true,
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
isTable:true,
hiddenInMain:true,
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
@ -690,7 +680,7 @@ export const ProductredressJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
width: 180 width: 180
}, },
isTable:true, isTable:true,
hiddenInMain:true, hiddenInMain:false,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -702,6 +692,16 @@ export const ProductredressJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false isForm: false
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
isTable:true,
hiddenInMain:false,
},
{ {
label: '最后更新者', label: '最后更新者',
field: 'updater', field: 'updater',

3
src/views/wms/productionManage/productredress/productredressRecordMain/index.vue

@ -139,8 +139,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductredressRecordMainApi.exportProductredressRecordMain(tableObject.params) const data = await ProductredressRecordMainApi.exportProductredressRecordMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productredress/productredressRequestMain/index.vue

@ -382,8 +382,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductredressRequestMainApi.exportProductredressRequestMain(tableObject.params) const data = await ProductredressRequestMainApi.exportProductredressRequestMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

31
src/views/wms/productionManage/productredress/productredressRequestMain/productredressRequestMain.data.ts

@ -334,7 +334,7 @@ export const ProductredressRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'creator', field: 'creator',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
isTable: true, isTable: false,
table: { table: {
width: 150 width: 150
}, },
@ -350,7 +350,7 @@ export const ProductredressRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable: true, isTable: false,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -700,18 +700,7 @@ export const ProductredressRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
// isTable:false, // isTable:false,
// hiddenInMain:true // hiddenInMain:true
// }, // },
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
isTable:true,
hiddenInMain:true
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
@ -724,7 +713,7 @@ export const ProductredressRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
width: 180 width: 180
}, },
isTable:true, isTable:true,
hiddenInMain:true, hiddenInMain:false,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -737,6 +726,18 @@ export const ProductredressRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
isTable:true,
hiddenInMain:false
},
{ {
label: '最后更新者', label: '最后更新者',
field: 'updater', field: 'updater',

3
src/views/wms/productionManage/productrepair/productrepairRecordMain/index.vue

@ -265,8 +265,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductrepairRecordMainApi.exportProductrepairRecordMain(tableObject.params) const data = await ProductrepairRecordMainApi.exportProductrepairRecordMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

18
src/views/wms/productionManage/productrepair/productrepairRecordMain/productrepairRecordMain.data.ts

@ -197,15 +197,6 @@ export const ProductrepairRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isTable: false isTable: false
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
isTable: true
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
@ -236,6 +227,15 @@ export const ProductrepairRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
isTable: true
},
{ {
label: '最后更新时间', label: '最后更新时间',
field: 'updateTime', field: 'updateTime',

3
src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue

@ -575,8 +575,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductrepairRequestMainApi.exportProductrepairRequestMain(tableObject.params) const data = await ProductrepairRequestMainApi.exportProductrepairRequestMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productscrap/productscrapJobMain/index.vue

@ -223,8 +223,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductscrapJobMainApi.exportProductscrapJobMain(tableObject.params) const data = await ProductscrapJobMainApi.exportProductscrapJobMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productscrap/productscrapRecordMain/index.vue

@ -266,8 +266,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductscrapRecordMainApi.exportProductscrapRecordMain(tableObject.params) const data = await ProductscrapRecordMainApi.exportProductscrapRecordMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

3
src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

@ -728,8 +728,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await ProductscrapRequestMainApi.exportProductscrapRequestMain(tableObject.params) const data = await ProductscrapRequestMainApi.exportProductscrapRequestMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

25
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/index.vue

@ -99,6 +99,9 @@
<Detail <Detail
ref="detailRef" ref="detailRef"
:isBasic="false" :isBasic="false"
:detailButtonIsShowAdd="false"
:detailButtonIsShowEdit="false"
:detailButtonIsShowDelete="false"
:allSchemas="PurchasereturnRequestMain.allSchemas" :allSchemas="PurchasereturnRequestMain.allSchemas"
:detailAllSchemas="PurchasereturnRequestDetail.allSchemas" :detailAllSchemas="PurchasereturnRequestDetail.allSchemas"
:detailAllSchemasRules="PurchasereturnRequestDetailRules" :detailAllSchemasRules="PurchasereturnRequestDetailRules"
@ -154,7 +157,7 @@ import {
PurchasereturnRequestDetail, PurchasereturnRequestDetail,
PurchasereturnRequestDetailRules, PurchasereturnRequestDetailRules,
PurchasereReturnRequestDetailLabel PurchasereReturnRequestDetailLabel
} from '../purchasereturnRequestMain/purchasereturnRequestMain.data' } from './purchasereturnRequestMain.data'
import * as PurchasereturnRequestMainApi from '@/api/wms/purchasereturnRequestMain' import * as PurchasereturnRequestMainApi from '@/api/wms/purchasereturnRequestMain'
import * as PurchasereturnRequestDetailApi from '@/api/wms/purchasereturnRequestDetail' import * as PurchasereturnRequestDetailApi from '@/api/wms/purchasereturnRequestDetail'
import * as PurchasereceiptRecordDetailApi from '@/api/wms/purchasereceiptRecordDetail' import * as PurchasereceiptRecordDetailApi from '@/api/wms/purchasereceiptRecordDetail'
@ -807,12 +810,14 @@ const onChangeForm = async (field, cur, formRef)=>{
if(subList&&subList.length>0){ if(subList&&subList.length>0){
tableData.value = subList.map(item=>({ tableData.value = subList.map(item=>({
'batch':item['batch'], 'batch':item['batch'],
'status':item['inventoryStatus'], 'inventoryStatus':item['inventoryStatus'],
'inventoryBalance':item['qty'], 'inventoryBalance':item['qty'],
'qty':1, 'qty':0,
'reason_type':'', 'reason_type':'',
'reason':'' 'reason':''
})) }))
}else{
tableData.value = []
} }
} }
} }
@ -904,11 +909,19 @@ const submitForm = async (formType, submitData) => {
// message.warning("退") // message.warning("退")
// return; // return;
// } // }
if (tableData.value.find((item) => item['qty']> item['inventoryBalance'])) { if (tableData.value.find((item) => Number(item['qty'])> Number(item['inventoryBalance']))) {
message.warning('退货数量不能大于库存余额') message.warning('退货数量不能大于库存余额')
return return
} }
data.subList = tableData.value.filter(item=>item['qty']>0) // console.log(tableData.value)
data.subList = tableData.value.filter(item=>Number(item['qty'])>0) //
console.log('data.subList')
console.log(data.subList)
if(data.subList.length<1){
message.warning('至少有一条数据')
return
}
formRef.value.formLoading = true formRef.value.formLoading = true
try { try {
if (formType === 'create') { if (formType === 'create') {
@ -917,7 +930,7 @@ const submitForm = async (formType, submitData) => {
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
} else { } else {
data.returnSourceType='1' data.returnSourceType='1'
await PurchasereturnRequestMainApi.updatePurchasereturnRequestMain(data) await PurchasereturnRequestMainApi.updatePurchasereturnRequestMainNew(data)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
} }
formRef.value.dialogVisible = false formRef.value.dialogVisible = false

1858
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/purchasereturnRequestMain.data.ts

File diff suppressed because it is too large

3
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/purchasereturnRequestMainNew.data.ts

@ -254,6 +254,7 @@ export const PurchasereturnRequestMainNew = useCrudSchemas(
}, },
form: { form: {
component: 'Select', component: 'Select',
value:locationList[0]['value'],
componentProps: { componentProps: {
options: locationList options: locationList
} }
@ -546,7 +547,7 @@ export const PurchasereturnRequestDetailNew = useCrudSchemas(reactive<CrudSchema
{ {
label: '退货原因', label: '退货原因',
field: 'reasonType', field: 'reasonType',
dictType: DICT_TYPE.UOM, dictType: DICT_TYPE.RETURN_REASON_TYPE,
dictClass: 'string', dictClass: 'string',
// isSearch: true, // isSearch: true,
isTable: true, isTable: true,

16
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts

@ -1175,9 +1175,19 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive<CrudSchem
isTable: false, isTable: false,
isSearch: false, isSearch: false,
isDetail: true, isDetail: true,
detail:{ // detail:{
span:2 // span:2
} // }
},
{
label: '工厂地点',
field: 'siteId',
sort: 'custom',
sortTableDefault: 6,
isForm: false,
isTable: false,
isSearch: false,
isDetail: true,
}, },
{ {
label: '税额差异(税额-系统税额)', label: '税额差异(税额-系统税额)',

8
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -1401,6 +1401,14 @@ const getLoginUserRoleList = async () => {
/** 初始化 **/ /** 初始化 **/
onMounted(async () => { onMounted(async () => {
SupplierinvoiceRequestMain.allSchemas.formSchema.forEach(async item=>{
if(item.field == 'procurementCreator'){
//
const procurementCreators = await SupplierinvoiceRequestMainApi.queryUserInfoByRoleCode({ roleCode: 'purchase',pageSize: 1000,pageNo: 1,sort: '',by: 'ASC' })
item.componentProps.options = procurementCreators.list
}
})
getList() getList()
getDefaultSupplier() getDefaultSupplier()
getLoginUserRoleList() getLoginUserRoleList()

23
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

@ -29,7 +29,7 @@ const requestsettingData = data?.list[0] || {}
userDept.id = userDept.id.toString() userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
const procurementCreators = await SupplierinvoiceRequestMainApi.queryUserInfoByRoleCode({ roleCode: 'purchase',pageSize: 1000,pageNo: 1,sort: '',by: 'ASC' }) // const procurementCreators = await SupplierinvoiceRequestMainApi.queryUserInfoByRoleCode({ roleCode: 'purchase',pageSize: 1000,pageNo: 1,sort: '',by: 'ASC' })
/** /**
* @returns {Array} * @returns {Array}
*/ */
@ -809,8 +809,9 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
isDetail:false, isDetail:false,
form: { form: {
component: 'Select', component: 'Select',
api: () => procurementCreators.list, // api: () => procurementCreators.list,
componentProps: { componentProps: {
options:[],
optionsAlias: { optionsAlias: {
labelField: 'nickname', labelField: 'nickname',
valueField: 'id' valueField: 'id'
@ -1474,15 +1475,24 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche
label: '备注', label: '备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
sortTableDefault: 6, sortTableDefault: 6,
isForm: false, isForm: false,
isTable: false, isTable: false,
isSearch: false, isSearch: false,
isDetail: true, isDetail: true,
detail:{ // detail:{
span:2 // span:2
} // }
},
{
label: '工厂地点',
field: 'siteId',
sort: 'custom',
sortTableDefault: 6,
isForm: false,
isTable: false,
isSearch: false,
isDetail: true,
}, },
{ {
label: '税额差异(税额-系统税额)', label: '税额差异(税额-系统税额)',
@ -1495,6 +1505,7 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche
isSearch: false, isSearch: false,
isDetail: true, isDetail: true,
}, },
])) ]))

16
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMainDifference/supplierinvoiceRequestMainDifference.data.ts

@ -1496,9 +1496,19 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche
isTable: false, isTable: false,
isSearch: false, isSearch: false,
isDetail: true, isDetail: true,
detail:{ // detail:{
span:2 // span:2
} // }
},
{
label: '工厂地点',
field: 'siteId',
sort: 'custom',
sortTableDefault: 6,
isForm: false,
isTable: false,
isSearch: false,
isDetail: true,
}, },
{ {
label: '税额差异(税额-系统税额)', label: '税额差异(税额-系统税额)',

Loading…
Cancel
Save