Browse Source

Merge branch 'intex' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into intex

intex_online20241111
宋国强 4 months ago
parent
commit
0f2c7e3e4b
  1. 16
      src/api/wms/productreceiptJobMain/index.ts
  2. 10
      src/api/wms/productreceiptRequestMain/index.ts
  3. 4
      src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue
  4. 4
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/index.vue
  5. 3
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue
  6. 4
      src/views/wms/inventoryjobManage/scrap/scrapJobMain/index.vue
  7. 4
      src/views/wms/inventoryjobManage/scrap/scrapRecordMain/index.vue
  8. 3
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue
  9. 3
      src/views/wms/issueManage/productionscrap/productionscrapRecordMain/index.vue
  10. 3
      src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue
  11. 3
      src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue
  12. 3
      src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue
  13. 3
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue
  14. 7
      src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue
  15. 12
      src/views/wms/productionManage/productscrap/productscrapRecordMain/index.vue
  16. 7
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue
  17. 3
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue
  18. 3
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue
  19. 6
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/index.vue

16
src/api/wms/productreceiptJobMain/index.ts

@ -116,6 +116,22 @@ export const exportProductreceiptJobMain = async (params) => {
}
}
export const exportProductreceiptJobMainPredict = async (params) => {
params.type = 'predict'
if (params.isSearch) {
const cmd = {
'column':'type',
'action':'==',
'value':'predict'
}
params.filters.push(cmd)
const data = {...params}
return await request.downloadPost({ url: `/wms/productreceipt-job-main/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/productreceipt-job-main/export-excel`, params })
}
}
// 导出装配收货任务主 Excel
export const exportProductreceiptJobMainAssemble = async (params) => {

10
src/api/wms/productreceiptRequestMain/index.ts

@ -93,6 +93,16 @@ export const exportProductreceiptRequestMain = async (params) => {
}
}
export const exportProductreceiptRequestMainPredict = async (params) => {
params.type = 'predict'
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/productreceipt-request-main/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/productreceipt-request-main/export-excel`, params })
}
}
// 导出制品收货申请主 Excel
export const exportProductreceiptRequestMainAssemble = async (params) => {
params.type = 'assemble'

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

@ -76,6 +76,7 @@ import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
import { getSwitchByCode } from '@/api/wms/switch'
import { cloneDeep } from 'lodash-es'
const { loadStart, loadDone } = usePageLoading()
// 退
defineOptions({ name: 'CustomerreturnJobMain' })
@ -87,8 +88,7 @@ const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
const tableColumns = ref([...CustomerreturnJobMain.allSchemas.tableColumns,...CustomerreturnJobDetail.allSchemas.tableMainColumns])
const CustomerreturnJobMainAllSchema =ref(JSON.parse(JSON.stringify(CustomerreturnJobMain)))
const CustomerreturnJobMainAllSchema = ref(cloneDeep(CustomerreturnJobMain))
// QMSq1q2q3
const EnableQms = ref(true)
const updateKey = ref(0)

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

@ -73,6 +73,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
import { getSwitchByCode } from '@/api/wms/switch'
import { cloneDeep } from 'lodash-es'
const { loadStart, loadDone } = usePageLoading()
// 退
defineOptions({ name: 'CustomerreturnRecordMain' })
@ -84,8 +85,7 @@ const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
const tableColumns = ref([...CustomerreturnRecordMain.allSchemas.tableColumns,...CustomerreturnRecordDetail.allSchemas.tableMainColumns])
const CustomerreturnRecordMainAllSchema =ref(JSON.parse(JSON.stringify(CustomerreturnRecordMain)))
const CustomerreturnRecordMainAllSchema = ref(cloneDeep(CustomerreturnRecordMain))
// QMSq1q2q3
const EnableQms = ref(true)
const updateKey = ref(0)

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

@ -121,6 +121,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
import { getSwitchByCode } from '@/api/wms/switch'
import { cloneDeep } from 'lodash-es'
const { loadStart, loadDone } = usePageLoading()
// 退
defineOptions({ name: 'CustomerreturnRequestMain' })
@ -133,7 +134,7 @@ const routeName = ref()
const customerCode = ref()
const genLabelId = ref(); //ID
routeName.value = route.name
const CustomerreturnRequestMainAllSchema =ref(JSON.parse(JSON.stringify(CustomerreturnRequestMain)))
const CustomerreturnRequestMainAllSchema = ref(cloneDeep(CustomerreturnRequestMain))
const tableColumns = ref([...CustomerreturnRequestMain.allSchemas.tableColumns, ...CustomerreturnRequestDetail.allSchemas.tableMainColumns])
// QMSq1q2q3

4
src/views/wms/inventoryjobManage/scrap/scrapJobMain/index.vue

@ -76,6 +76,7 @@ import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
import { getSwitchByCode } from '@/api/wms/switch'
import { cloneDeep } from 'lodash-es'
const { loadStart, loadDone } = usePageLoading()
//
defineOptions({ name: 'ScrapJobMain' })
@ -87,8 +88,7 @@ const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
const tableColumns = ref([...ScrapJobMain.allSchemas.tableColumns,...ScrapJobDetail.allSchemas.tableMainColumns])
const ScrapJobMainAllSchema =ref(JSON.parse(JSON.stringify(ScrapJobMain)))
const ScrapJobMainAllSchema = ref(cloneDeep(ScrapJobMain))
// QMSq1q2q3
const EnableQms = ref(true)
const updateKey = ref(0)

4
src/views/wms/inventoryjobManage/scrap/scrapRecordMain/index.vue

@ -71,6 +71,7 @@ import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
import { getSwitchByCode } from '@/api/wms/switch'
import { cloneDeep } from 'lodash-es'
const { loadStart, loadDone } = usePageLoading()
//
defineOptions({ name: 'ScrapRecordMain' })
@ -82,8 +83,7 @@ const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
const tableColumns = ref([...ScrapRecordMain.allSchemas.tableColumns,...ScrapRecordDetail.allSchemas.tableMainColumns])
const ScrapRecordMainAllSchema =ref(JSON.parse(JSON.stringify(ScrapRecordMain)))
const ScrapRecordMainAllSchema = ref(cloneDeep(ScrapRecordMain))
// QMSq1q2q3
const EnableQms = ref(true)
const updateKey = ref(0)

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

@ -122,6 +122,7 @@ import * as StdcostpriceApi from '@/api/wms/stdcostprice'
import { getSwitchByCode } from '@/api/wms/switch'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
import { cloneDeep } from 'lodash-es'
const { loadStart, loadDone } = usePageLoading()
//
defineOptions({ name: 'ScrapRequestMain' })
@ -136,7 +137,7 @@ const tableColumns = ref([
...ScrapRequestMain.allSchemas.tableColumns,
...ScrapRequestDetail.allSchemas.tableMainColumns
])
const ScrapRequestMainAllSchema =ref(JSON.parse(JSON.stringify(ScrapRequestMain)))
const ScrapRequestMainAllSchema = ref(cloneDeep(ScrapRequestMain))
// QMSq1q2q3
const EnableQms = ref(true)
const updateKey = ref(0)

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

@ -78,6 +78,7 @@ import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
import { getSwitchByCode } from '@/api/wms/switch'
import { cloneDeep } from 'lodash-es'
const { loadStart, loadDone } = usePageLoading()
// 退
defineOptions({ name: 'ProductionscrapRecordMain' })
@ -89,7 +90,7 @@ const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
const tableColumns = ref([...ProductionscrapRecordMain.allSchemas.tableColumns,...ProductionscrapRecordDetail.allSchemas.tableMainColumns])
const ProductionscrapRecordMainAllSchema =ref(JSON.parse(JSON.stringify(ProductionscrapRecordMain)))
const ProductionscrapRecordMainAllSchema = ref(cloneDeep(ProductionscrapRecordMain))
// QMSq1q2q3
const EnableQms = ref(true)
const updateKey = ref(0)

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

@ -127,6 +127,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
import { getSwitchByCode } from '@/api/wms/switch'
import { cloneDeep } from 'lodash-es'
const { loadStart, loadDone } = usePageLoading()
// 线
defineOptions({ name: 'ProductionscrapRequestMain' })
@ -138,7 +139,7 @@ const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
const tableColumns = ref([...ProductionscrapRequestMain.allSchemas.tableColumns,...ProductionscrapRequestDetail.allSchemas.tableMainColumns])
const ProductionscrapRequestMainAllSchema =ref(JSON.parse(JSON.stringify(ProductionscrapRequestMain)))
const ProductionscrapRequestMainAllSchema = ref(cloneDeep(ProductionscrapRequestMain))
// QMSq1q2q3
const EnableQms = ref(true)
const updateKey = ref(0)

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

@ -300,6 +300,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}
} else {
const setV = {}
if(formField == 'workshopCode'){
tableData.value = []
}
setV[formField] = val[0][searchField]
formRef.setValues(setV)
}

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

@ -106,6 +106,7 @@ import {
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
import {exportProductreceiptJobMainPredict} from "@/api/wms/productreceiptJobMain";
const { loadStart, loadDone } = usePageLoading()
//
//
@ -352,7 +353,7 @@ const handleExport = async () => {
//
loadStart()
const excelTitle = ref(route.meta.title)
const data = await ProductreceiptJobMainApi.exportProductreceiptJobMain(tableObject.params)
const data = await ProductreceiptJobMainApi.exportProductreceiptJobMainPredict(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {

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

@ -189,6 +189,7 @@ import { formatDate } from '@/utils/formatTime'
import * as WorkshopApi from '@/api/wms/workshop'
import * as ConfigApi from '@/api/infra/config'
import { usePageLoading } from '@/hooks/web/usePageLoading'
import {exportProductreceiptRequestMainPredict} from "@/api/wms/productreceiptRequestMain";
const { loadStart, loadDone } = usePageLoading()
//
//
@ -687,7 +688,7 @@ const handleExport = async () => {
//
loadStart()
const excelTitle = ref(route.meta.title)
const data = await ProductreceiptRequestMainApi.exportProductreceiptRequestMain(
const data = await ProductreceiptRequestMainApi.exportProductreceiptRequestMainPredict(
tableObject.params
)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)

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

@ -284,6 +284,13 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}
} else {
const setV = {}
if(formField == 'workshopCode'){
setV['productionLineCode'] = ''
tableData.value = []
}
if(formField == 'productionLineCode'){
tableData.value = []
}
setV[formField] = val[0][searchField]
formRef.setValues(setV)
}

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

@ -33,9 +33,6 @@
<span>{{ row.number }}</span>
</el-button>
</template>
<template #revokeFlag="{row}">
<el-tag :type="getTag(row.revokeFlag).colorType">{{ getTag(row.revokeFlag).label}}</el-tag>
</template>
<template #action="{ row,$index }">
<ButtonBase :Butttondata="butttondata(row,$index)" @button-base-click="buttonTableClick($event,row)" />
</template>
@ -101,8 +98,7 @@ import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
import { getSwitchByCode } from '@/api/wms/switch'
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
const dictOptions= ref(getStrDictOptions(DICT_TYPE.TRUE_FALSE))
import { cloneDeep } from 'lodash-es'
const { loadStart, loadDone } = usePageLoading()
//
defineOptions({ name: 'ProductscrapRecordMain' })
@ -114,7 +110,7 @@ const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
const tableColumns = ref([...ProductscrapRecordMain.allSchemas.tableColumns,...ProductscrapRecordDetail.allSchemas.tableMainColumns])
const ProductscrapRecordMainAllSchema =ref(JSON.parse(JSON.stringify(ProductscrapRecordMain)))
const ProductscrapRecordMainAllSchema = ref(cloneDeep(ProductscrapRecordMain))
// QMSq1q2q3
const EnableQms = ref(true)
const updateKey = ref(0)
@ -136,10 +132,6 @@ const getSwitchByCode1 =async () => {
}
getSwitchByCode1()
const getTag = (value) => {
return dictOptions.value.find(item=>item.value === value)
}
// table
const buttondataTable = ref([{
label: 'Bom',

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

@ -145,6 +145,7 @@ import * as BalanceApi from "@/api/wms/balance";
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
import { getSwitchByCode } from '@/api/wms/switch'
import { cloneDeep } from 'lodash-es'
const { loadStart, loadDone } = usePageLoading()
//
defineOptions({ name: 'ProductscrapRequestMain' })
@ -156,7 +157,7 @@ const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
const tableColumns = ref([...ProductscrapRequestMain.allSchemas.tableColumns,...ProductscrapRequestDetail.allSchemas.tableMainColumns])
const ProductscrapRequestMainAllSchema =ref(JSON.parse(JSON.stringify(ProductscrapRequestMain)))
const ProductscrapRequestMainAllSchema = ref(cloneDeep(ProductscrapRequestMain))
// QMSq1q2q3
const EnableQms = ref(true)
const updateKey = ref(0)
@ -166,7 +167,7 @@ const getSwitchByCode1 =async () => {
if (EnableQms.value) {
ProductscrapRequestMain.allSchemas = ProductscrapRequestMainAllSchema.value.allSchemas
} else {
ProductscrapRequestMain.allSchemas.formSchema = ProductscrapRequestMainAllSchema.value.allSchemas.formSchema.filter(item =>item.field != 'q3Number')
ProductscrapRequestMain.allSchemas.formSchema = ProductscrapRequestMainAllSchema.value.allSchemas.formSchema.filter(item => item.field != 'q3Number')
ProductscrapRequestMain.allSchemas.tableColumns = ProductscrapRequestMainAllSchema.value.allSchemas.tableColumns.filter(item => item.field != 'q3Number')
ProductscrapRequestMain.allSchemas.tableFormColumns = ProductscrapRequestMainAllSchema.value.allSchemas.tableFormColumns.filter(item => item.field != 'q3Number')
ProductscrapRequestMain.allSchemas.tableMainColumns = ProductscrapRequestMainAllSchema.value.allSchemas.tableMainColumns.filter(item => item.field != 'q3Number')
@ -541,6 +542,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
setV['costCenterType'] = val[0]['costcentreType']
}else if(formField == 'productionLineCode'){
tableData.value = []
} else if(formField == 'workshopCode'){
tableData.value = []
}
formRef.setValues(setV)
}

3
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue

@ -76,6 +76,7 @@ import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
import { getSwitchByCode } from '@/api/wms/switch'
import { cloneDeep } from 'lodash-es'
const { loadStart, loadDone } = usePageLoading()
// 退
defineOptions({ name: 'PurchasereturnJobMain' })
@ -87,7 +88,7 @@ const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
const tableColumns = ref([...PurchasereturnJobMain.allSchemas.tableColumns,...PurchasereturnJobDetail.allSchemas.tableColumns])
const PurchasereturnJobMainAllSchema =ref(JSON.parse(JSON.stringify(PurchasereturnJobMain)))
const PurchasereturnJobMainAllSchema = ref(cloneDeep(PurchasereturnJobMain))
// QMSq1q2q3
const EnableQms = ref(true)

3
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue

@ -73,6 +73,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
import { getSwitchByCode } from '@/api/wms/switch'
import { cloneDeep } from 'lodash-es'
const { loadStart, loadDone } = usePageLoading()
// 退
defineOptions({ name: 'PurchasereturnRecordMain' })
@ -84,7 +85,7 @@ const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
const tableColumns = ref([...PurchasereturnRecordMain.allSchemas.tableColumns,...PurchasereturnRecordDetail.allSchemas.tableMainColumns])
const PurchasereturnRecordMainAllSchema =ref(JSON.parse(JSON.stringify(PurchasereturnRecordMain)))
const PurchasereturnRecordMainAllSchema = ref(cloneDeep(PurchasereturnRecordMain))
// QMSq1q2q3
const EnableQms = ref(true)

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

@ -187,6 +187,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
import { getSwitchByCode } from '@/api/wms/switch'
import { cloneDeep } from 'lodash-es'
const { loadStart, loadDone } = usePageLoading()
// 退
defineOptions({ name: 'PurchasereturnRequestMainNew' })
@ -204,9 +205,8 @@ const tableColumns = ref([
const isShowButton = ref(true)
const PurchasereturnRequestMainNewAllSchema =ref(JSON.parse(JSON.stringify(PurchasereturnRequestMainNew)))
const PurchasereturnRequestMainAllSchema =ref(JSON.parse(JSON.stringify(PurchasereturnRequestMain)))
const PurchasereturnRequestMainNewAllSchema = ref(cloneDeep(PurchasereturnRequestMainNew))
const PurchasereturnRequestMainAllSchema = ref(cloneDeep(PurchasereturnRequestMain))
// QMSq1q2q3
const EnableQms = ref(true)
const updateKey = ref(0)

Loading…
Cancel
Save