diff --git a/.env.development b/.env.development index 4da1b6eb0..5e128bc34 100644 --- a/.env.development +++ b/.env.development @@ -4,10 +4,10 @@ NODE_ENV=development VITE_DEV=false # 请求路径 -# VITE_BASE_URL='http://localhost:12080' +VITE_BASE_URL='http://localhost:12080' # VITE_BASE_URL='http://192.168.1.49:12080' # VITE_BASE_URL='http://192.168.1.254:12080' -VITE_BASE_URL='http://127.0.0.1:90' +# VITE_BASE_URL='http://127.0.0.1:90' # VITE_BASE_URL='http://dev.ccwin-in.com:28040/api' # VITE_BASE_URL='http://192.168.1.254:12080' diff --git a/src/api/wms/countJobMain/index.ts b/src/api/wms/countJobMain/index.ts index d851c3104..43e70a492 100644 --- a/src/api/wms/countJobMain/index.ts +++ b/src/api/wms/countJobMain/index.ts @@ -86,7 +86,10 @@ export const exportCountJobMain = async (params) => { export const importTemplate = () => { return request.download({ url: '/wms/count-job-main/get-import-template' }) } - +// 下载用户导入模板 +export const lineTypeImportTemplate = () => { + return request.download({ url: '/wms/count-job-main/get-lineTypeImport-template' }) +} // 关闭盘点任务主 export const closeCountJobMain = (id: number) => { return request.put({ url: '/wms/count-job-main/close?id=' + id }) diff --git a/src/api/wms/countadjustRequestMain/index.ts b/src/api/wms/countadjustRequestMain/index.ts index d1612bd5e..903e29a00 100644 --- a/src/api/wms/countadjustRequestMain/index.ts +++ b/src/api/wms/countadjustRequestMain/index.ts @@ -94,6 +94,6 @@ export const refused = async (id) => { } // 处理盘点申请主 Excel -export const handle = async (id) => { - return await request.put({ url: `/wms/countadjust-request-main/handle?id=` + id }) +export const handle = async ({id,remark}) => { + return await request.put({ url: `/wms/countadjust-request-main/handle?id=` + id + '&remark='+remark }) } diff --git a/src/views/wms/countManage/count/countJobMain/countJobMain.data.ts b/src/views/wms/countManage/count/countJobMain/countJobMain.data.ts index ca36c315d..173a7c2d1 100644 --- a/src/views/wms/countManage/count/countJobMain/countJobMain.data.ts +++ b/src/views/wms/countManage/count/countJobMain/countJobMain.data.ts @@ -541,7 +541,7 @@ export const CountJobMain = useCrudSchemas(reactive([ isDetail: false, isForm: false, table: { - width: 250, + width: 320, fixed: 'right' }, } @@ -612,7 +612,7 @@ export const CountJobDetail = useCrudSchemas(reactive([ }, }, { - label: '品番', + label: '物料代码', field: 'itemCode', sort: 'custom', table: { @@ -620,22 +620,13 @@ export const CountJobDetail = useCrudSchemas(reactive([ }, }, { - label: '品名', + label: '物料名称', field: 'itemName', sort: 'custom', table: { width: 200 }, }, - { - label: '背番', - field: 'itemDesc1', - sort: 'custom', - hiddenSearchHigh:true, - table: { - width: 150 - }, - }, { label: '批次', field: 'batch', @@ -694,7 +685,15 @@ export const CountJobDetail = useCrudSchemas(reactive([ }, }, { - label: '描述', + label: '物料描述1', + field: 'itemDesc1', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '物料描述2', field: 'itemDesc2', sort: 'custom', table: { diff --git a/src/views/wms/countManage/count/countJobMain/index.vue b/src/views/wms/countManage/count/countJobMain/index.vue index 694748be6..cb744daa7 100644 --- a/src/views/wms/countManage/count/countJobMain/index.vue +++ b/src/views/wms/countManage/count/countJobMain/index.vue @@ -38,7 +38,7 @@ diff --git a/src/views/wms/countManage/count/countRequestMain/countRequestMain.data.ts b/src/views/wms/countManage/count/countRequestMain/countRequestMain.data.ts index e68425b7b..4d5aa8a54 100644 --- a/src/views/wms/countManage/count/countRequestMain/countRequestMain.data.ts +++ b/src/views/wms/countManage/count/countRequestMain/countRequestMain.data.ts @@ -183,6 +183,30 @@ export const CountRequestMain = useCrudSchemas(([ width: 150 }, }, + { + label: '部门', + field: 'departmentCode', + sort: 'custom', + isForm: false, + table: { + width: 150 + }, + formatter: (_: Recordable, __: TableColumn, cellValue: number) => { + return userDeptArray.find((account) => account.id == cellValue)?.name + }, + form: { + value: userDept.id, + component: 'Select', + api: () => userDeptArray, + componentProps: { + disabled: true, + optionsAlias: { + labelField: 'name', + valueField: 'id' + } + } + } + }, { label: '备注', field: 'remark', @@ -322,7 +346,7 @@ export const CountRequestMain = useCrudSchemas(([ isDetail: false, isForm: false, table: { - width: 250, + width: 300, fixed: 'right' }, } @@ -390,7 +414,7 @@ export const CountRequestDetail = useCrudSchemas(reactive([ }, }, { - label: '品番', + label: '物料代码', field: 'itemCode', sort: 'custom', table: { @@ -398,7 +422,7 @@ export const CountRequestDetail = useCrudSchemas(reactive([ }, }, { - label: '品名', + label: '物料名称', field: 'itemName', sort: 'custom', table: { @@ -408,10 +432,9 @@ export const CountRequestDetail = useCrudSchemas(reactive([ isForm: false, }, { - label: '背番', + label: '物料描述1', field: 'itemDesc1', sort: 'custom', - hiddenSearchHigh:true, table: { width: 150 }, @@ -419,7 +442,7 @@ export const CountRequestDetail = useCrudSchemas(reactive([ isForm: false, }, { - label: '描述', + label: '物料描述2', field: 'itemDesc2', sort: 'custom', table: { @@ -533,6 +556,24 @@ export const CountRequestDetail = useCrudSchemas(reactive([ type: 'Select' } }, + { + label: '货主代码', + field: 'ownerCode', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '项目代码', + field: 'projectCode', + sort: 'custom', + table: { + width: 150 + }, + isTableForm: false, + isForm: false, + }, { label: '备注', field: 'remark', diff --git a/src/views/wms/countManage/count/countRequestMain/index.vue b/src/views/wms/countManage/count/countRequestMain/index.vue index b785e34a2..9c4a60078 100644 --- a/src/views/wms/countManage/count/countRequestMain/index.vue +++ b/src/views/wms/countManage/count/countRequestMain/index.vue @@ -37,7 +37,7 @@ diff --git a/src/views/wms/countManage/countadjust/countadjustRequestMain/countadjustRequestMain.data.ts b/src/views/wms/countManage/countadjust/countadjustRequestMain/countadjustRequestMain.data.ts index 2e0425e8a..ef8cbceb1 100644 --- a/src/views/wms/countManage/countadjust/countadjustRequestMain/countadjustRequestMain.data.ts +++ b/src/views/wms/countManage/countadjust/countadjustRequestMain/countadjustRequestMain.data.ts @@ -171,6 +171,30 @@ export const CountadjustRequestMain = useCrudSchemas(([ }, isForm: false, }, + { + label: '部门', + field: 'departmentCode', + sort: 'custom', + isForm: false, + table: { + width: 150 + }, + formatter: (_: Recordable, __: TableColumn, cellValue: number) => { + return userDeptArray.find((account) => account.id == cellValue)?.name + }, + form: { + value: userDept.id, + component: 'Select', + api: () => userDeptArray, + componentProps: { + disabled: true, + optionsAlias: { + labelField: 'name', + valueField: 'id' + } + } + } + }, { label: '备注', field: 'remark', @@ -310,7 +334,7 @@ export const CountadjustRequestMain = useCrudSchemas(([ isDetail: false, isForm: false, table: { - width: 250, + width: 300, fixed: 'right' }, } @@ -368,7 +392,7 @@ export const CountadjustRequestDetail = useCrudSchemas(reactive([ }, }, { - label: '品番', + label: '物料代码', field: 'itemCode', sort: 'custom', table: { @@ -376,7 +400,7 @@ export const CountadjustRequestDetail = useCrudSchemas(reactive([ }, }, { - label: '品名', + label: '物料名称', field: 'itemName', sort: 'custom', table: { @@ -386,10 +410,9 @@ export const CountadjustRequestDetail = useCrudSchemas(reactive([ isForm: false, }, { - label: '背番', + label: '物料描述1', field: 'itemDesc1', sort: 'custom', - hiddenSearchHigh:true, table: { width: 150 }, @@ -397,7 +420,7 @@ export const CountadjustRequestDetail = useCrudSchemas(reactive([ isForm: false, }, { - label: '描述', + label: '物料描述2', field: 'itemDesc2', sort: 'custom', table: { @@ -550,6 +573,24 @@ export const CountadjustRequestDetail = useCrudSchemas(reactive([ type: 'Select' } }, + { + label: '项目代码', + field: 'projectCode', + sort: 'custom', + table: { + width: 150 + }, + isTableForm: false, + isForm: false, + }, + { + label: '货主代码', + field: 'ownerCode', + sort: 'custom', + table: { + width: 150 + }, + }, { label: '备注', field: 'remark', @@ -596,7 +637,7 @@ export const CountadjustRequestDetail = useCrudSchemas(reactive([ field: 'action', isDetail: false, isForm: false , - isTable:false, + isTable:true, table: { width: 150, fixed: 'right' @@ -635,6 +676,27 @@ export const CountadjustRequestDetailRules = reactive({ // { required: true, message: '请输入单据号', trigger: 'blur' } // ], itemCode: [ - { required: true, message: '请选择品番', trigger: 'change' } + { required: true, message: '请选择物料代码', trigger: 'change' } ], }) + +export const CountadjustHandle = useCrudSchemas(reactive([ + { + label: '备注', + field: 'remark', + sort: 'custom', + isTable:false, + form: { + component: 'Input', + componentProps:{ + type: 'textarea' + } + }, + }, +])) + +export const CountadjustHandleRules = reactive({ + // remark: [ + // { max: 50, message: '不得超过50个字符', trigger: 'blur' } + // ], +}) \ No newline at end of file diff --git a/src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue b/src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue index b8ac83533..562e6723a 100644 --- a/src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue +++ b/src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue @@ -33,7 +33,7 @@ @@ -71,10 +71,23 @@ :apiDelete="CountadjustRequestDetailApi.deleteCountadjustRequestDetail" fromeWhere="countadjustRequest" :detailButtonIsShowAdd="false" + :detailButtonIsShowEdit="false" + :detailButtonIsShowDelete="true" + :detailButtonIsShowAddStatusArray="['1','2','3','4','6','7']" :Echo="Echo" @searchTableSuccessDetail="searchTableSuccessDetail" /> + + + @@ -83,7 +96,7 @@