diff --git a/.env.dev b/.env.dev index 962b91c1..1da25e71 100644 --- a/.env.dev +++ b/.env.dev @@ -16,7 +16,7 @@ VUE_APP_TITLE = MES系统 VUE_APP_BASE_API = 'http://192.168.0.33:48082' # VUE_APP_BASE_API = 'http://192.168.4.173:48080' # VUE_APP_BASE_API = 'http://192.168.2.173:48080' -# VUE_APP_BASE_API = 'http://192.168.1.49:48080' +# VUE_APP_BASE_API = 'http://192.168.1.49:48082' # VUE_APP_BASE_API = 'http://192.168.1.8:48082' # VUE_APP_BASE_API = 'http://192.168.4.159:48080' # VUE_APP_BASE_API = 'http://192.168.1.56:48082' @@ -31,9 +31,6 @@ VUE_CLI_BABEL_TRANSPILE_MODULES = true # 多租户的开关 VUE_APP_TENANT_ENABLE = true -# 验证码的开关 -VUE_APP_CAPTCHA_ENABLE = true - # 文档的开关 VUE_APP_DOC_ENABLE = true diff --git a/.env.front b/.env.front index 743152e3..d1645075 100644 --- a/.env.front +++ b/.env.front @@ -14,9 +14,6 @@ VUE_CLI_BABEL_TRANSPILE_MODULES = true # 多租户的开关 VUE_APP_TENANT_ENABLE = true -# 验证码的开关 -VUE_APP_CAPTCHA_ENABLE = true - # 文档的开关 VUE_APP_DOC_ENABLE = true diff --git a/.env.prod b/.env.prod index 922ccff9..085ca647 100644 --- a/.env.prod +++ b/.env.prod @@ -27,9 +27,6 @@ PUBLIC_PATH = 'http://10.70.2.32' # 多租户的开关 VUE_APP_TENANT_ENABLE = true -# 验证码的开关 -VUE_APP_CAPTCHA_ENABLE = true - # 文档的开关 VUE_APP_DOC_ENABLE = false diff --git a/.env.stage b/.env.stage index c609d811..b44437a1 100644 --- a/.env.stage +++ b/.env.stage @@ -20,9 +20,6 @@ PUBLIC_PATH = 'http://192.168.0.33:8889/' # 多租户的开关 VUE_APP_TENANT_ENABLE = true -# 验证码的开关 -VUE_APP_CAPTCHA_ENABLE = true - # 文档的开关 VUE_APP_DOC_ENABLE = false diff --git a/.env.static b/.env.static index 35e7a28e..bdb29f8f 100644 --- a/.env.static +++ b/.env.static @@ -17,9 +17,6 @@ VUE_APP_APP_NAME ='/admin-ui-vue2/' # 多租户的开关 VUE_APP_TENANT_ENABLE = true -# 验证码的开关 -VUE_APP_CAPTCHA_ENABLE = true - # 文档的开关 VUE_APP_DOC_ENABLE = true diff --git a/src/api/base/delivery.js b/src/api/base/delivery.js index 82c371c3..d04fd210 100644 --- a/src/api/base/delivery.js +++ b/src/api/base/delivery.js @@ -18,6 +18,15 @@ export function deliveryProgressPage(data) { }) } +// 获取订单列表 +export function listOrderList(query) { + return request({ + url: '/extend/delivery-log/listOrderList', + method: 'get', + params: query + }) +} + // 获取发货进度分页 export function deliveryLogDetPage(data) { return request({ diff --git a/src/api/quality/processTraceability.js b/src/api/quality/processTraceability.js index d2152584..5faac726 100644 --- a/src/api/quality/processTraceability.js +++ b/src/api/quality/processTraceability.js @@ -1,7 +1,7 @@ /* * @Author: zhp * @Date: 2023-10-31 15:05:06 - * @LastEditTime: 2023-11-03 09:05:50 + * @LastEditTime: 2023-11-28 09:28:05 * @LastEditors: zhp * @Description: */ @@ -24,6 +24,14 @@ export function getWorkOrderList(query) { params: query, }) } + +export function getCoreProduct(id) { + return request({ + url: '/base/core-product/get?id=' + id, + method: 'get' + }) +} + // 导出物料信息 // export function exportEnergyPlcExcel(query) { // return request({ diff --git a/src/styles/index.scss b/src/styles/index.scss index 6b3ebaee..d162abed 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -196,4 +196,8 @@ input, textarea{ margin-right: 8px; vertical-align: middle; } -// 抽屉head区域---end \ No newline at end of file +// 抽屉head区域---end +// 弹出框,上下分布,去掉label的padding-bottom +.el-form--label-top .el-form-item__label { + padding: 0; +} \ No newline at end of file diff --git a/src/utils/ruoyi.js b/src/utils/ruoyi.js index fd5d1095..3b4e5256 100644 --- a/src/utils/ruoyi.js +++ b/src/utils/ruoyi.js @@ -187,19 +187,6 @@ export function getTenantEnable() { return process.env.VUE_APP_TENANT_ENABLE || true; } -/** - * 获得验证码功能是否开启 - */ -export function getCaptchaEnable() { - if (process.env.VUE_APP_CAPTCHA_ENABLE === "true") { - return true; - } - if (process.env.VUE_APP_CAPTCHA_ENABLE === "false") { - return false; - } - return process.env.VUE_APP_CAPTCHA_ENABLE || true; -} - /** * 获得文档是否开启 */ diff --git a/src/views/base/coreWorkOrder/add-or-updata.vue b/src/views/base/coreWorkOrder/add-or-updata.vue index 621469d4..0ba46ebd 100644 --- a/src/views/base/coreWorkOrder/add-or-updata.vue +++ b/src/views/base/coreWorkOrder/add-or-updata.vue @@ -2,23 +2,23 @@ * @Author: zwq * @Date: 2021-11-18 14:16:25 * @LastEditors: DY - * @LastEditTime: 2023-11-24 18:20:26 + * @LastEditTime: 2023-11-28 14:09:09 * @Description: --> @@ -102,7 +112,9 @@ export default { input: true, label: '工序名称', prop: 'name', - rules: [{ required: true, message: '工序名称不能为空', trigger: 'blur' }], + rules: [ + { required: true, message: '工序名称不能为空', trigger: 'blur' }, + ], }, ], [ @@ -111,7 +123,9 @@ export default { label: '工段', prop: 'sectionId', url: '/base/core-workshop-section/listAll', - rules: [{ required: true, message: '工段不能为空', trigger: 'blur' }], + rules: [ + { required: true, message: '工段不能为空', trigger: 'blur' }, + ], bind: { filterable: true, }, @@ -139,6 +153,7 @@ export default { }, currentDet: null, currentNode: null, + btnLoading: false }; }, watch: { @@ -221,7 +236,7 @@ export default { node.attr('container/stroke', '#0b58ff'); const { detId, detName, detDesc, processId, sectionId, sectionName } = node.attrs; - console.log('node clicked!', node) + console.log('node clicked!', node); this.currentDet = {}; this.$set(this.currentDet, 'detId', detId?.text); this.$set(this.currentDet, 'sectionId', sectionId?.text); @@ -354,6 +369,7 @@ export default { }, handleEdit() { + console.log('edit: ', this.currentDet); this.form.name = this.currentDet.detName; this.form.sectionId = this.currentDet.sectionId; this.form.remark = this.currentDet.detDesc; @@ -379,6 +395,7 @@ export default { if (!valid) { return; } + this.btnLoading = true; // 修改的提交 if (this.form.id != null) { this.updateProcess() @@ -392,9 +409,20 @@ export default { sectionName: { text: sectionName }, detDesc: { text: remark }, }); + // 修改currentDet + this.currentDet = { + ...this.currentDet, + detName: name, + sectionId: sectionId, + sectionName: sectionName, + detDesc: remark, + }; + this.btnLoading = false; }); }) - .catch((err) => {}); + .catch((err) => { + this.btnLoading = false; + }); return; } @@ -412,11 +440,14 @@ export default { .then((node) => { if (!node) { this.$modal.msgError('创建节点失败'); + this.btnLoading = false; return; } + this.btnLoading = false; this.graph.addNode(node); }) .catch((err) => { + this.btnLoading = false; return; }); }); diff --git a/src/views/extend/processFlowView/components/ProcessInfo.vue b/src/views/extend/processFlowView/components/ProcessInfo.vue index 705fefba..af64dc8c 100644 --- a/src/views/extend/processFlowView/components/ProcessInfo.vue +++ b/src/views/extend/processFlowView/components/ProcessInfo.vue @@ -21,12 +21,12 @@ - + - + @@ -39,11 +39,12 @@ diff --git a/src/views/extend/processTraceability/index.vue b/src/views/extend/processTraceability/index.vue index c11054a0..d3b9f026 100644 --- a/src/views/extend/processTraceability/index.vue +++ b/src/views/extend/processTraceability/index.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2023-08-01 14:55:51 * @LastEditors: zhp - * @LastEditTime: 2023-11-22 14:23:40 + * @LastEditTime: 2023-11-28 10:34:24 * @Description: -->