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) {