From 71c28190591e784f27115cb1378fa71b01fb81c8 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Fri, 11 Apr 2025 15:07:56 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-ui/src/utils/request.js | 2 +- sgzb-ui/src/views/base/comeAndGo/index.vue | 4 +- .../return/receive/component/handlePage.vue | 2 +- .../views/repairTest/repair/dialogOneForm.vue | 8 + sgzb-ui/src/views/repairTest/repair/index.vue | 1 + .../views/repairTest/repair/selectTree.vue | 188 +++++++----------- sgzb-ui/src/views/system/role/index.vue | 10 +- .../component/addCompleteTools.vue | 7 +- .../warehouseManage/machinery/parts/index.vue | 12 +- .../warehouseManage/tagBind/bind/index.vue | 5 +- .../warehouseManage/tagBind/history/index.vue | 7 + 11 files changed, 116 insertions(+), 130 deletions(-) diff --git a/sgzb-ui/src/utils/request.js b/sgzb-ui/src/utils/request.js index d8cd2c18..0c0873c6 100644 --- a/sgzb-ui/src/utils/request.js +++ b/sgzb-ui/src/utils/request.js @@ -17,7 +17,7 @@ const service = axios.create({ // axios中请求配置有baseURL选项,表示请求URL公共部分 baseURL: process.env.VUE_APP_BASE_API, // 超时 - timeout: 10000 + timeout: 30000 }) // request拦截器 diff --git a/sgzb-ui/src/views/base/comeAndGo/index.vue b/sgzb-ui/src/views/base/comeAndGo/index.vue index 9f85bcc0..e9098171 100644 --- a/sgzb-ui/src/views/base/comeAndGo/index.vue +++ b/sgzb-ui/src/views/base/comeAndGo/index.vue @@ -190,8 +190,8 @@ - 内部单位 - 外部单位 + 内部单位 + 外部单位 + @@ -272,10 +272,11 @@ export default { } }, // 数量输入框校验 - deviceNumChange(val) { + deviceNumChange(row) { let reg = /^[1-9]\d*$/ - if (!reg.test(val)) { + if (!reg.test(row.deviceNum)) { this.$message.error('请输入大于0的正整数!') + row.deviceNum = '' } }, // 保存按钮 diff --git a/sgzb-ui/src/views/warehouseManage/machinery/parts/index.vue b/sgzb-ui/src/views/warehouseManage/machinery/parts/index.vue index 7a147a2a..a293dc22 100644 --- a/sgzb-ui/src/views/warehouseManage/machinery/parts/index.vue +++ b/sgzb-ui/src/views/warehouseManage/machinery/parts/index.vue @@ -277,7 +277,7 @@ export default { parentId: [ { required: true, - message: '上级部门不能为空', + message: '上级名称不能为空', trigger: 'blur', }, ], @@ -389,7 +389,7 @@ export default { handleUpdate(row) { this.reset() this.open = true - this.title = '修改部门' + this.title = '修改配件' this.isEdit = true this.initGetPartType(row) }, @@ -496,8 +496,14 @@ export default { 'children', ) this.form = JSON.parse(JSON.stringify(row)) + // this.form.currentId = + // currentItem && currentItem.reverse().map((ele) => ele.paId) this.form.currentId = - currentItem && currentItem.reverse().map((ele) => ele.paId) + currentItem && + currentItem + .reverse() + .map((ele) => ele.parentId) + .filter((id) => id !== 0) // 过滤掉 0 this.initApiGetPartTree() }, }, diff --git a/sgzb-ui/src/views/warehouseManage/tagBind/bind/index.vue b/sgzb-ui/src/views/warehouseManage/tagBind/bind/index.vue index 5d24b5e6..75df0499 100644 --- a/sgzb-ui/src/views/warehouseManage/tagBind/bind/index.vue +++ b/sgzb-ui/src/views/warehouseManage/tagBind/bind/index.vue @@ -645,7 +645,10 @@ export default { //选择设备类型 selectDevice(id) { console.log(id) - getListByMaType({ typeId: id }).then((response) => { + // getListByMaType({ typeId: id }).then((response) => { + // this.modelList = response.data + // }) + getTypeList({ level: '4', typeId: id }).then((response) => { this.modelList = response.data }) }, diff --git a/sgzb-ui/src/views/warehouseManage/tagBind/history/index.vue b/sgzb-ui/src/views/warehouseManage/tagBind/history/index.vue index c9f83cbb..bb09e728 100644 --- a/sgzb-ui/src/views/warehouseManage/tagBind/history/index.vue +++ b/sgzb-ui/src/views/warehouseManage/tagBind/history/index.vue @@ -26,6 +26,7 @@ clearable filterable style="width: 240px" + @change="changeType" > { + this.modelList = response.data + }) + }, // 多选框选中数据 handleSelectionChange(selection) {