diff --git a/src/api/wms/bomDismantle/index.ts b/src/api/wms/bomDismantle/index.ts index 0e98ed159..d014b113f 100644 --- a/src/api/wms/bomDismantle/index.ts +++ b/src/api/wms/bomDismantle/index.ts @@ -3,4 +3,9 @@ import request from '@/config/axios' // 查询制品返修申请子列表 export const getBomDismantlePage = async (params) => { return await request.get({ url: `/wms/productrepair-request-main/bomPage`, params }) -} \ No newline at end of file +} + +// 查询制品返修记录子列表 +export const getBomDismantleRecordPage = async (params) => { + return await request.get({ url: `/wms/productrepair-record-main/bomPage`, params }) +} diff --git a/src/api/wms/countRecordMain/index.ts b/src/api/wms/countRecordMain/index.ts index ae6391533..e4b43a074 100644 --- a/src/api/wms/countRecordMain/index.ts +++ b/src/api/wms/countRecordMain/index.ts @@ -62,4 +62,9 @@ export const exportCountRecordMain = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/count-record-main/get-import-template' }) +} + +// 生成盘点调整 +export const generateCountRecordMain = async (id) => { + return await request.put({ url: `/wms/count-record-main/generate?id=` + id}) } \ No newline at end of file diff --git a/src/api/wms/countRequestMain/index.ts b/src/api/wms/countRequestMain/index.ts index 2f462c421..7c47d57c4 100644 --- a/src/api/wms/countRequestMain/index.ts +++ b/src/api/wms/countRequestMain/index.ts @@ -64,31 +64,31 @@ export const importTemplate = () => { } // 关闭盘点申请主 Excel -export const closeCountRequestMain = async (id) => { +export const close = async (id) => { return await request.put({ url: `/wms/count-request-main/close?id=` + id }) } // 重新添加盘点申请主 Excel -export const reAddCountRequestMain = async (id) => { +export const reAdd = async (id) => { return await request.put({ url: `/wms/count-request-main/reAdd?id=` + id }) } // 提交盘点申请主 Excel -export const submitCountRequestMain = async (id) => { +export const submit = async (id) => { return await request.put({ url: `/wms/count-request-main/submit?id=` + id }) } // 审批通过盘点申请主 Excel -export const agreeCountRequestMain = async (id) => { +export const agree = async (id) => { return await request.put({ url: `/wms/count-request-main/agree?id=` + id }) } // 审批驳回盘点申请主 Excel -export const refusedCountRequestMain = async (id) => { +export const refused = async (id) => { return await request.put({ url: `/wms/count-request-main/refused?id=` + id }) } // 处理盘点申请主 Excel -export const handleCountRequestMain = async (id) => { +export const handle = async (id) => { return await request.put({ url: `/wms/count-request-main/handle?id=` + id }) } diff --git a/src/api/wms/countadjustRequestMain/index.ts b/src/api/wms/countadjustRequestMain/index.ts index 390c8fe01..57ae5ee0e 100644 --- a/src/api/wms/countadjustRequestMain/index.ts +++ b/src/api/wms/countadjustRequestMain/index.ts @@ -60,4 +60,34 @@ export const exportCountadjustRequestMain = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/countadjust-request-main/get-import-template' }) -} \ No newline at end of file +} + +// 关闭盘点申请主 Excel +export const close = async (id) => { + return await request.put({ url: `/wms/countadjust-request-main/close?id=` + id }) +} + +// 重新添加盘点申请主 Excel +export const reAdd = async (id) => { + return await request.put({ url: `/wms/countadjust-request-main/reAdd?id=` + id }) +} + +// 提交盘点申请主 Excel +export const submit = async (id) => { + return await request.put({ url: `/wms/countadjust-request-main/submit?id=` + id }) +} + +// 审批通过盘点申请主 Excel +export const agree = async (id) => { + return await request.put({ url: `/wms/countadjust-request-main/agree?id=` + id }) +} + +// 审批驳回盘点申请主 Excel +export const refused = async (id) => { + return await request.put({ url: `/wms/countadjust-request-main/refused?id=` + id }) +} + +// 处理盘点申请主 Excel +export const handle = async (id) => { + return await request.put({ url: `/wms/countadjust-request-main/handle?id=` + id }) +} diff --git a/src/api/wms/productrepairRequestMain/index.ts b/src/api/wms/productrepairRequestMain/index.ts index 869860143..032fe2afa 100644 --- a/src/api/wms/productrepairRequestMain/index.ts +++ b/src/api/wms/productrepairRequestMain/index.ts @@ -63,4 +63,34 @@ export const exportProductrepairRequestMain = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/productrepair-request-main/get-import-template' }) -} \ No newline at end of file +} + +// 关闭-制品返修申请 +export const closeProductrepairRequestMain = async (id) => { + return await request.put({ url: `/wms/productrepair-request-main/close?id=` + id }) +} + +// 重新添加-制品返修申请 +export const reAddProductrepairRequestMain = async (id) => { + return await request.put({ url: `/wms/productrepair-request-main/reAdd?id=` + id }) +} + +// 提交审批-制品返修申请 +export const submitProductrepairRequestMain = async (id) => { + return await request.put({ url: `/wms/productrepair-request-main/submit?id=` + id }) +} + +// 审批驳回-制品返修申请 +export const refusedProductrepairRequestMain = async (id) => { + return await request.put({ url: `/wms/productrepair-request-main/refused?id=` + id }) +} + +// 审批通过-制品返修申请 +export const agreeProductrepairRequestMain = async (id) => { + return await request.put({ url: `/wms/productrepair-request-main/agree?id=` + id }) +} + +// 处理-制品返修申请 +export const handleProductrepairRequestMain = async (id) => { + return await request.put({ url: `/wms/productrepair-request-main/handle?id=` + id }) +} diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index 6513ba26d..2019e4db9 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -369,6 +369,12 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName: }) // 新增 ] } + //盘点计划详情筛选 + if (props.fromeWhere == 'putawayRequest') { + HeadButttondata.value = [ + defaultButtons.defaultFilterBtn(null) // 筛选 + ] + } } // 动态显示操作列按钮 diff --git a/src/components/UploadFile/src/UploadFile.vue b/src/components/UploadFile/src/UploadFile.vue index 4067be582..ed92c4c18 100644 --- a/src/components/UploadFile/src/UploadFile.vue +++ b/src/components/UploadFile/src/UploadFile.vue @@ -56,7 +56,7 @@ const props = defineProps({ title: propTypes.string.def('文件上传'), updateUrl: propTypes.string.def(import.meta.env.VITE_UPLOAD_URL), upData: propTypes.object.def(), - fileType: propTypes.array.def(['doc', 'xls', 'ppt', 'txt', 'pdf']), // 文件类型, 例如['png', 'jpg', 'jpeg'] + fileType: propTypes.array.def(['doc', 'xls', 'ppt', 'txt', 'pdf', 'pdf','png', 'jpg', 'jpeg']), // 文件类型, 例如['png', 'jpg', 'jpeg'] fileSize: propTypes.number.def(5), // 大小限制(MB) limit: propTypes.number.def(5), // 数量限制 autoUpload: propTypes.bool.def(true), // 自动上传 diff --git a/src/components/XButton/src/ButtonBase.vue b/src/components/XButton/src/ButtonBase.vue index 490bae618..15f997966 100644 --- a/src/components/XButton/src/ButtonBase.vue +++ b/src/components/XButton/src/ButtonBase.vue @@ -5,6 +5,7 @@ :type="item.type" :color="item.color" :link="item.link ? item.link : false" + :disabled="item.disabled" v-hasPermi="[item.hasPermi] || []" v-if="item.name != 'set'" @click="buttonBaseClick(item.name, item, $event)" @@ -32,6 +33,7 @@ v-show="!item.hide" :type="item.type" :color="item.color" + :disabled="item.disabled" :link="item.link ? item.link : false" v-hasPermi="[item.hasPermi] || []" @click="buttonBaseClick(item.name, item, $event)" diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts index 9f62970ac..2930263de 100644 --- a/src/utils/disposition/defaultButtons.ts +++ b/src/utils/disposition/defaultButtons.ts @@ -687,10 +687,23 @@ export function mainPutawayRequestBtn(option:any) { hasPermi: '' }) } +// 主列表-生成盘点调整申请 +export function mainCountAdjustRequesttBtn(option:any) { + return __defaultBtnOption(option,{ + label: '生成盘点调整申请', + name: 'countAdjustRequest', + hide: false, + type: 'primary', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} // 默认按钮规则 function __defaultBtnOption(option:any,specific:any){ return { type:option && option.type ? option.type : specific.type, + disabled:option && option.disabled ? option.disabled : specific.disabled, plain:option && option.plain ? option.plain : specific.plain, icon:option && option.icon ? option.icon : specific.icon, label:option && option.label ? option.label : specific.label, diff --git a/src/views/infra/apiAccessLog/index.vue b/src/views/infra/apiAccessLog/index.vue index 2306a3972..245f43334 100644 --- a/src/views/infra/apiAccessLog/index.vue +++ b/src/views/infra/apiAccessLog/index.vue @@ -153,7 +153,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await ApiAccessLogApi.exportApiAccessLog(queryParams) - download.excel(data, 'API 访问日志.xls') + download.excel(data, 'API 访问日志.xlsx') } catch { } finally { exportLoading.value = false diff --git a/src/views/infra/apiErrorLog/index.vue b/src/views/infra/apiErrorLog/index.vue index 4e6c41e4d..683675545 100644 --- a/src/views/infra/apiErrorLog/index.vue +++ b/src/views/infra/apiErrorLog/index.vue @@ -235,7 +235,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await ApiErrorLogApi.exportApiErrorLog(queryParams) - download.excel(data, '异常日志.xls') + download.excel(data, '异常日志.xlsx') } catch { } finally { exportLoading.value = false diff --git a/src/views/infra/config/index.vue b/src/views/infra/config/index.vue index 82554cbe8..85b4fc991 100644 --- a/src/views/infra/config/index.vue +++ b/src/views/infra/config/index.vue @@ -155,7 +155,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await ConfigApi.exportConfig(queryParams) - download.excel(data, '参数配置.xls') + download.excel(data, '参数配置.xlsx') } catch { } finally { exportLoading.value = false diff --git a/src/views/infra/job/index.vue b/src/views/infra/job/index.vue index 20b6220cc..d662abc17 100644 --- a/src/views/infra/job/index.vue +++ b/src/views/infra/job/index.vue @@ -155,7 +155,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await JobApi.exportJob(queryParams) - download.excel(data, '定时任务.xls') + download.excel(data, '定时任务.xlsx') } catch { } finally { exportLoading.value = false diff --git a/src/views/infra/job/logger/index.vue b/src/views/infra/job/logger/index.vue index afeb3c641..a9fb08f97 100644 --- a/src/views/infra/job/logger/index.vue +++ b/src/views/infra/job/logger/index.vue @@ -182,7 +182,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await JobLogApi.exportJobLog(queryParams) - download.excel(data, '定时任务执行日志.xls') + download.excel(data, '定时任务执行日志.xlsx') } catch { } finally { exportLoading.value = false diff --git a/src/views/system/dict/data/index.vue b/src/views/system/dict/data/index.vue index 2811f06aa..f07f1ae6a 100644 --- a/src/views/system/dict/data/index.vue +++ b/src/views/system/dict/data/index.vue @@ -194,7 +194,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await DictDataApi.exportDictData(queryParams) - download.excel(data, '字典数据.xls') + download.excel(data, '字典数据.xlsx') } catch { } finally { exportLoading.value = false diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index a89733519..f9a257af4 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -161,7 +161,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await DictTypeApi.exportDictType(queryParams) - download.excel(data, '字典类型.xls') + download.excel(data, '字典类型.xlsx') } catch { } finally { exportLoading.value = false diff --git a/src/views/system/errorCode/index.vue b/src/views/system/errorCode/index.vue index ade9c8fd2..dac5240a0 100644 --- a/src/views/system/errorCode/index.vue +++ b/src/views/system/errorCode/index.vue @@ -157,7 +157,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await ErrorCodeApi.excelErrorCode(queryParams) - download.excel(data, '错误码.xls') + download.excel(data, '错误码.xlsx') } catch { } finally { exportLoading.value = false diff --git a/src/views/system/loginlog/index.vue b/src/views/system/loginlog/index.vue index 9071915ef..997fcef9d 100644 --- a/src/views/system/loginlog/index.vue +++ b/src/views/system/loginlog/index.vue @@ -126,7 +126,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await LoginLogApi.exportLoginLog(queryParams) - download.excel(data, '登录日志.xls') + download.excel(data, '登录日志.xlsx') } catch { } finally { exportLoading.value = false diff --git a/src/views/system/operatelog/index.vue b/src/views/system/operatelog/index.vue index 09800d92a..3bfd3d20e 100644 --- a/src/views/system/operatelog/index.vue +++ b/src/views/system/operatelog/index.vue @@ -145,7 +145,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await OperateLogApi.exportOperateLog(queryParams) - download.excel(data, '操作日志.xls') + download.excel(data, '操作日志.xlsx') } catch { } finally { exportLoading.value = false diff --git a/src/views/system/post/index.vue b/src/views/system/post/index.vue index 59b454233..6c2ae14ce 100644 --- a/src/views/system/post/index.vue +++ b/src/views/system/post/index.vue @@ -143,7 +143,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await PostApi.exportPost(queryParams) - download.excel(data, '岗位列表.xls') + download.excel(data, '岗位列表.xlsx') } catch { } finally { exportLoading.value = false diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index 93dae9676..9a58903d9 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -250,7 +250,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await RoleApi.exportRole(queryParams) - download.excel(data, '角色列表.xls') + download.excel(data, '角色列表.xlsx') } catch { } finally { exportLoading.value = false diff --git a/src/views/system/sensitiveWord/index.vue b/src/views/system/sensitiveWord/index.vue index ce2a0b426..e01a3be2a 100644 --- a/src/views/system/sensitiveWord/index.vue +++ b/src/views/system/sensitiveWord/index.vue @@ -175,7 +175,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await SensitiveWordApi.exportSensitiveWord(queryParams) - download.excel(data, '敏感词.xls') + download.excel(data, '敏感词.xlsx') } catch { } finally { exportLoading.value = false diff --git a/src/views/system/serialNumber/index.vue b/src/views/system/serialNumber/index.vue index 2e7361408..0806906d5 100644 --- a/src/views/system/serialNumber/index.vue +++ b/src/views/system/serialNumber/index.vue @@ -168,7 +168,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await SerialNumberApi.exportSerialNumber(queryParams) - download.excel(data, '流水号规则.xls') + download.excel(data, '流水号规则.xlsx') } catch { } finally { exportLoading.value = false diff --git a/src/views/system/sms/log/index.vue b/src/views/system/sms/log/index.vue index 99be8508b..bc7c3ff60 100644 --- a/src/views/system/sms/log/index.vue +++ b/src/views/system/sms/log/index.vue @@ -171,7 +171,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await SmsLogApi.exportSmsLog(queryParams) - download.excel(data, '短信日志.xls') + download.excel(data, '短信日志.xlsx') } catch { } finally { exportLoading.value = false diff --git a/src/views/system/sms/template/index.vue b/src/views/system/sms/template/index.vue index 9bd0f9dd4..b9e478c60 100644 --- a/src/views/system/sms/template/index.vue +++ b/src/views/system/sms/template/index.vue @@ -197,7 +197,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await SmsTemplateApi.exportSmsTemplate(queryParams) - download.excel(data, '短信模板.xls') + download.excel(data, '短信模板.xlsx') } catch { } finally { exportLoading.value = false diff --git a/src/views/system/tenant/index.vue b/src/views/system/tenant/index.vue index 5de1ccc8f..e2650dbe4 100644 --- a/src/views/system/tenant/index.vue +++ b/src/views/system/tenant/index.vue @@ -177,7 +177,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await TenantApi.exportTenant(queryParams) - download.excel(data, '租户列表.xls') + download.excel(data, '租户列表.xlsx') } catch { } finally { exportLoading.value = false diff --git a/src/views/system/user/UserImportForm.vue b/src/views/system/user/UserImportForm.vue index 51b1702f9..b391087a9 100644 --- a/src/views/system/user/UserImportForm.vue +++ b/src/views/system/user/UserImportForm.vue @@ -130,6 +130,6 @@ const importTemplate = async () => { console.log(await UserApi.importUserTemplate()); const res = await UserApi.importUserTemplate() - download.excel(res, '用户导入模版.xls') + download.excel(res, '用户导入模版.xlsx') } diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 4d2d7e2d4..632aa0442 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -195,7 +195,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await UserApi.exportUser(queryParams) - download.excel(data, '用户数据.xls') + download.excel(data, '用户数据.xlsx') } catch { } finally { exportLoading.value = false diff --git a/src/views/wms/basicDataManage/labelManage/barbasic/index.vue b/src/views/wms/basicDataManage/labelManage/barbasic/index.vue index c75936594..bf430e928 100644 --- a/src/views/wms/basicDataManage/labelManage/barbasic/index.vue +++ b/src/views/wms/basicDataManage/labelManage/barbasic/index.vue @@ -191,7 +191,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await BarbasicApi.exportBarbasic(setSearchParams) - download.excel(data, '条码实体基类.xls') + download.excel(data, '条码实体基类.xlsx') } catch { } finally { exportLoading.value = false @@ -206,7 +206,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '条码实体基类导入模版.xls' + templateTitle: '条码实体基类导入模版.xlsx' }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/AddForm.vue index f2d9086a7..0aefc1529 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/AddForm.vue @@ -229,6 +229,22 @@ const options = reactive({ { value: 3, label: '供应商3' } ] }) +// 弹窗按钮 +const Butttondata = ref([ + defaultButtons.formSaveBtn(null), // 保存 + defaultButtons.formCloseBtn(null) // 关闭 +]) +// 按钮事件 +const buttonBaseClick = (val, item) => { + // 保存 + if (val == 'save') { + submitForm() + } + // 关闭 + else if (val == 'close') { + dialogVisible.value = false + } +} // 获取供应商列表的参数 const querySupplierParams = ref({ type: '' @@ -265,6 +281,17 @@ const open = async (type: string, strategyCode: string, id?: number) => { formData.value.description = data.description formData.value.priority = data.priority formData.value.status = data.status == 0 ? true : false + if (formData.value.priority == 0) { + Butttondata.value = [ + defaultButtons.formSaveBtn({disabled:true}), // 保存 + defaultButtons.formCloseBtn(null) // 关闭 + ] + } else { + Butttondata.value = [ + defaultButtons.formSaveBtn(null), // 保存 + defaultButtons.formCloseBtn(null) // 关闭 + ] + } if (data.condition) { formData.value.condition = JSON.parse(data.condition) } @@ -277,6 +304,11 @@ const open = async (type: string, strategyCode: string, id?: number) => { } finally { formLoading.value = false } + }else { + Butttondata.value = [ + defaultButtons.formSaveBtn(null), // 保存 + defaultButtons.formCloseBtn(null) // 关闭 + ] } } defineExpose({ open }) // 提供 open 方法,用于打开弹窗 @@ -288,6 +320,10 @@ const submitForm = async () => { if (!formRef) return const valid = await formRef.value.validate() if (!valid) return + if(formData.value.priority == 0){ + message.error('优先级不可以为0') + return + } let list = Object.values(formData.value.configuration) let onlyOne = list.filter((item) => { return item == 'TRUE' @@ -350,22 +386,7 @@ const resetForm = () => { } } -// 弹窗按钮 -const Butttondata = [ - defaultButtons.formSaveBtn(null), // 保存 - defaultButtons.formCloseBtn(null) // 关闭 -] -// 按钮事件 -const buttonBaseClick = (val, item) => { - // 保存 - if (val == 'save') { - submitForm() - } - // 关闭 - else if (val == 'close') { - dialogVisible.value = false - } -} +