diff --git a/src/api/infra/outerApiHis/index.ts b/src/api/infra/outerApiHis/index.ts new file mode 100644 index 000000000..b786bdcd7 --- /dev/null +++ b/src/api/infra/outerApiHis/index.ts @@ -0,0 +1,58 @@ +import request from '@/config/axios' + +export interface OuterApiHisVO { + id: number + number: string + type: string + times: number + content: string + result: string +} + +// 查询第三方接口调用记录列表 +export const getOuterApiHisPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/infra/outer-api-his/senior', data }) + } else { + return await request.get({ url: `/infra/outer-api-his/page`, params }) + } +} + +// 查询第三方接口调用记录详情 +export const getOuterApiHis = async (id: number) => { + return await request.get({ url: `/infra/outer-api-his/get?id=` + id }) +} + +// 新增第三方接口调用记录 +export const createOuterApiHis = async (data: OuterApiHisVO) => { + return await request.post({ url: `/infra/outer-api-his/create`, data }) +} + +// 修改第三方接口调用记录 +export const updateOuterApiHis = async (data: OuterApiHisVO) => { + return await request.put({ url: `/infra/outer-api-his/update`, data }) +} + +// 删除第三方接口调用记录 +export const deleteOuterApiHis = async (id: number) => { + return await request.delete({ url: `/infra/outer-api-his/delete?id=` + id }) +} + +// 导出第三方接口调用记录 Excel +export const exportOuterApiHis = async (params) => { + return await request.download({ url: `/infra/outer-api-his/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/infra/outer-api-his/get-import-template' }) +} + +//重试 +export const retry = (id: number) => { + return request.get({ + url: '/wms/outer/retry?id=' + id + }) +} diff --git a/src/api/wms/switch/index.ts b/src/api/wms/switch/index.ts index 7319202db..b9fdb8370 100644 --- a/src/api/wms/switch/index.ts +++ b/src/api/wms/switch/index.ts @@ -57,5 +57,5 @@ export const importTemplate = () => { // 获取开关详情 export const getSwitchByCode = async (code) => { - // return await request.get({ url: '/wms/switch/getByCode?code=' + code }) + return await request.get({ url: '/wms/switch/getByCode?code=' + code }) } \ No newline at end of file diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index 6c05afbc7..73eb16870 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -480,6 +480,7 @@ const props = defineProps({ const allSchemas = ref(props.allSchemas) const detailAllSchemasRef = ref(props.detailAllSchemas) const detailAllSchemasRules = ref(props.detailAllSchemasRules) +console.log(222,wsCache.get('ShowPackingNumber')) if (!wsCache.get('ShowPackingNumber')) { if (allSchemas.value) { allSchemas.value.detailSchema = props.allSchemas.detailSchema.filter(item => item.field != 'packingNumber') diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 59e2c45b9..1db5931f7 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -127,6 +127,7 @@ export enum DICT_TYPE { INFRA_CODEGEN_FRONT_TYPE = 'infra_codegen_front_type', INFRA_CODEGEN_SCENE = 'infra_codegen_scene', INFRA_FILE_STORAGE = 'infra_file_storage', + INFRA_OUTER_API_TYPE = 'outer_api_type', // ========== BPM 模块 ========== BPM_MODEL_CATEGORY = 'bpm_model_category', diff --git a/src/views/infra/apiMqHis/apiMqHis.data.ts b/src/views/infra/apiMqHis/apiMqHis.data.ts index 0e42019b5..52fcd7c3d 100644 --- a/src/views/infra/apiMqHis/apiMqHis.data.ts +++ b/src/views/infra/apiMqHis/apiMqHis.data.ts @@ -26,9 +26,9 @@ export const ApiMqHis = useCrudSchemas(reactive([ field: 'type', sort: 'custom', isSearch: true, - form: { - component: 'SelectV2' - } + form: { + component: 'SelectV2' + } }, { label: '执行次数', diff --git a/src/views/infra/outerApiHis/index.vue b/src/views/infra/outerApiHis/index.vue new file mode 100644 index 000000000..2751182d7 --- /dev/null +++ b/src/views/infra/outerApiHis/index.vue @@ -0,0 +1,254 @@ + + + diff --git a/src/views/infra/outerApiHis/outerApiHis.data.ts b/src/views/infra/outerApiHis/outerApiHis.data.ts new file mode 100644 index 000000000..c9867f7d8 --- /dev/null +++ b/src/views/infra/outerApiHis/outerApiHis.data.ts @@ -0,0 +1,82 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const OuterApiHisRules = reactive({ + type: [required], + times: [required], +}) + +export const OuterApiHis = useCrudSchemas(reactive([ + { + label: 'ID', + field: 'id', + sort: 'custom', + isForm: false, + }, + { + label: '编号', + field: 'number', + sort: 'custom', + isSearch: true, + }, + { + label: '类型', + field: 'type', + sort: 'custom', + isSearch: true, + dictType: DICT_TYPE.INFRA_OUTER_API_TYPE, + dictClass: 'string', + form: { + component: 'SelectV2' + }, + }, + { + label: '执行次数', + field: 'times', + sort: 'custom', + form: { + component: 'InputNumber', + value: 1 + }, + search: { + component: 'InputNumber', + value: 1 + } + }, + { + label: '内容', + field: 'content', + sort: 'custom', + }, + { + label: '结果', + field: 'result', + sort: 'custom', + isSearch: true, + }, + { + label: '是否成功', + field: 'success', + sort: 'custom', + isSearch: true, + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isForm: false, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue index 8486e9be3..849c8a15c 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue @@ -530,8 +530,8 @@ const formData = ref({ { ParamCode: 'InventoryStatus', Operator: 'IN', Value: [] }, // 存储类型 { ParamCode: 'StorageType', Operator: 'IN', Value: [] }, - // 库存事务 - { ParamCode: 'TransactionType', Operator: 'IN', Value: '' } + // 生产线 + { ParamCode: 'Productionline', Operator: 'IN', Value: '' } ], configuration: { // 仓库代码 @@ -626,10 +626,10 @@ const options = reactive({ ], //仓库列表 warehouseTypeOptions: [ - { value: 'WarehouseCode', label: '仓库' }, - { value: 'AreaCode', label: '库区' }, - { value: 'LocationGroupCode', label: '库位组' }, - { value: 'LocationCode', label: '库位' } + { value: 'WarehouseCode', label: '从仓库' }, + { value: 'AreaCode', label: '从库区' }, + { value: 'LocationGroupCode', label: '从库位组' }, + { value: 'LocationCode', label: '从库位' } ], warehouseList: [], originWarehouseList: [], @@ -837,7 +837,7 @@ const searchTransactionType = ()=>{ '请选择生产线', Productionline.allSchemas, ProductionlineApi.getProductionlinePage, - 'TransactionType', + 'Productionline', 'code', true, undefined, @@ -923,8 +923,8 @@ const searchWarehouse = ()=>{ } const searchTableSuccess = (formField, searchField, val, type, row) => { - if(formField=='TransactionType'){ - let transactionType = formData.value.condition.find(item=>item['ParamCode']=='TransactionType') + if(formField=='Productionline'){ + let transactionType = formData.value.condition.find(item=>item['ParamCode']=='Productionline') if(transactionType){ transactionType.Value = val.map(item=>(item['code'])).join(',') } @@ -1130,8 +1130,8 @@ const resetForm = () => { { ParamCode: 'InventoryStatus', Operator: 'IN', Value: [] }, // 存储类型 { ParamCode: 'StorageType', Operator: 'IN', Value: [] }, - // 库存事务 - { ParamCode: 'TransactionType', Operator: 'IN', Value: '' } + // 生产线 + { ParamCode: 'Productionline', Operator: 'IN', Value: '' } ], configuration: { diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue index 78c1e6b1c..14d13770a 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue @@ -804,10 +804,10 @@ const options = reactive({ ], //仓库列表 warehouseTypeOptions: [ - { value: 'WarehouseCode', label: '仓库' }, - { value: 'AreaCode', label: '库区' }, - { value: 'LocationGroupCode', label: '库位组' }, - { value: 'LocationCode', label: '库位' } + { value: 'WarehouseCode', label: '从仓库' }, + { value: 'AreaCode', label: '从库区' }, + { value: 'LocationGroupCode', label: '从库位组' }, + { value: 'LocationCode', label: '从库位' } ], warehouseList: [], originWarehouseList: [], diff --git a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts index b9166ec84..3519636e7 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts +++ b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts @@ -1834,53 +1834,53 @@ export const ProductreceiptRequestLabel = useCrudSchemas(reactive( isTable: false, tableForm: { disabled: true, - isInpuFocusShow: true, - searchListPlaceholder: '请选择生产线代码', - searchField: 'code', - searchTitle: '生产线信息', - searchAllSchemas: Productionline.allSchemas, - searchPage: ProductionlineApi.getProductionlinePage, - searchCondition: [{ - key: 'available', - value: 'TRUE', - isMainValue: false - }, { - key: 'workshopCode', - value: 'workshopCode', - message: '请填写车间代码!', - isMainValue: true - }] - }, - form: { - // labelMessage: '信息提示说明!!!', - componentProps: { - enterSearch: true, - isSearchList: true, - searchListPlaceholder: '请选择生产线代码', - searchField: 'code', - searchTitle: '生产线信息', - searchAllSchemas: Productionline.allSchemas, - searchPage: ProductionlineApi.getProductionlinePage, - searchCondition: [{ - key: 'available', - value: 'TRUE', - isMainValue: false - }, { - key: 'workshopCode', - value: 'workshopCode', - message: '请填写车间代码!', - isMainValue: true - }], - verificationParams: [{ - key: 'code', - action: '==', - value: '', - isMainValue: false, - isSearch: true, - isFormModel: true, - }], // 失去焦点校验参数 - } - } + // isInpuFocusShow: true, + // searchListPlaceholder: '请选择生产线代码', + // searchField: 'code', + // searchTitle: '生产线信息', + // searchAllSchemas: Productionline.allSchemas, + // searchPage: ProductionlineApi.getProductionlinePage, + // searchCondition: [{ + // key: 'available', + // value: 'TRUE', + // isMainValue: false + // }, { + // key: 'workshopCode', + // value: 'workshopCode', + // message: '请填写车间代码!', + // isMainValue: true + // }] + }, + // form: { + // // labelMessage: '信息提示说明!!!', + // componentProps: { + // enterSearch: true, + // isSearchList: true, + // searchListPlaceholder: '请选择生产线代码', + // searchField: 'code', + // searchTitle: '生产线信息', + // searchAllSchemas: Productionline.allSchemas, + // searchPage: ProductionlineApi.getProductionlinePage, + // searchCondition: [{ + // key: 'available', + // value: 'TRUE', + // isMainValue: false + // }, { + // key: 'workshopCode', + // value: 'workshopCode', + // message: '请填写车间代码!', + // isMainValue: true + // }], + // verificationParams: [{ + // key: 'code', + // action: '==', + // value: '', + // isMainValue: false, + // isSearch: true, + // isFormModel: true, + // }], // 失去焦点校验参数 + // } + // } }, { label: '供应商代码',