From 9d3b355061393f9dd031c1d8aaf124564d9c0d19 Mon Sep 17 00:00:00 2001 From: qushaowei <qushaowei@163.com> Date: 星期二, 24 十月 2023 17:06:17 +0800 Subject: [PATCH] 编码生成 --- src/views/eam/modules/dailyInspectionStandard/DailylnspectionStandardModal.vue | 44 +++++++++++++++++++++++++++----------------- 1 files changed, 27 insertions(+), 17 deletions(-) diff --git a/src/views/eam/modules/dailyInspectionStandard/DailylnspectionStandardModal.vue b/src/views/eam/modules/dailyInspectionStandard/DailylnspectionStandardModal.vue index 4c933fc..f4cdf85 100644 --- a/src/views/eam/modules/dailyInspectionStandard/DailylnspectionStandardModal.vue +++ b/src/views/eam/modules/dailyInspectionStandard/DailylnspectionStandardModal.vue @@ -31,7 +31,7 @@ </a-col> <a-col :span="12"> <a-form-item - label="瀵硅薄閮ㄩ棬" + label="浣跨敤閮ㄩ棬" :labelCol="labelCol" :wrapperCol="wrapperCol" > @@ -47,7 +47,7 @@ style="width: 100%" :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" :tree-data="treeData" - placeholder="璇烽�夋嫨瀵硅薄閮ㄩ棬" + placeholder="璇烽�夋嫨浣跨敤閮ㄩ棬" tree-default-expand-all v-decorator="['useId', validatorRules.useId ]" /> @@ -320,21 +320,21 @@ align: 'center', dataIndex: 'detectionStandard' }, - { - title: '鍚堟牸鑼冨洿', - align: 'center', - dataIndex: 'acceptabilityLimit' - }, - { - title: '鏂规硶', - align: 'center', - dataIndex: 'inspectionMethodName' - }, - { - title: '宸ュ叿', - align: 'center', - dataIndex: 'inspectionTool' - }, + // { + // title: '鍚堟牸鑼冨洿', + // align: 'center', + // dataIndex: 'acceptabilityLimit' + // }, + // { + // title: '鏂规硶', + // align: 'center', + // dataIndex: 'inspectionMethodName' + // }, + // { + // title: '宸ュ叿', + // align: 'center', + // dataIndex: 'inspectionTool' + // }, { title: '鍛ㄦ湡', align: 'center', @@ -418,6 +418,7 @@ revise: '/eam/inspectionStandard/revise', getReviseVersion: "/eam/inspectionStandard/getReviseVersion", loadOptions: '/sys/sysDepart/loadDepartTreeOptions', + getNum: '/eam/sysIdentity/getNumNew' }, dataSource: [], @@ -458,6 +459,7 @@ add() { this.edit({ dailyInspectionStandardDetaillist: [] }) + this.getSeq() }, edit(record) { @@ -494,6 +496,14 @@ } }, + getSeq() { + getAction(this.url.getNum, { type: 'DailylnspectionStandard', length: 4 }).then(res => { + if (res.success) { + this.form.setFieldsValue({ "num": res.result }) + } + }) + }, + initOptions() { getAction(this.url.loadOptions).then(res => { if (res.success) { -- Gitblit v1.9.3