From 46090bad32a075bbac02fbd4879337d9d2d611ac Mon Sep 17 00:00:00 2001 From: xiaobai <857694115@qq.com> Date: Tue, 17 Aug 2021 14:36:51 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=AE=8C=E6=88=90=E7=94=B5=E6=A2=AF?= =?UTF-8?q?=E5=8E=9F=E5=A7=8B=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/task/list.vue | 4 +- src/views/ysjl/3000/common/index.vue | 40 ++++++---- src/views/ysjl/3000/dj/xfdt/index.vue | 30 ++++---- src/views/ysjl/3000/dj/zw/index.vue | 103 ++++++++++++++++++++++++++ src/views/ysjl/3000/jj/xfdt/index.vue | 2 +- src/views/ysjl/3000/jj/zw/index.vue | 103 ++++++++++++++++++++++++++ 6 files changed, 250 insertions(+), 32 deletions(-) create mode 100644 src/views/ysjl/3000/dj/zw/index.vue create mode 100644 src/views/ysjl/3000/jj/zw/index.vue diff --git a/src/views/task/list.vue b/src/views/task/list.vue index 63be94a..577a9ed 100644 --- a/src/views/task/list.vue +++ b/src/views/task/list.vue @@ -295,7 +295,7 @@ export default { currentRenwuId: 0, dialogEnclosureVisible: false, isSysUser: this.$store.getters.clientType === 'System', - searchNblist:[] + searchNblist: [] } }, computed: { @@ -305,7 +305,7 @@ export default { allCategory: { handler(n, o) { console.log(n.filter(item => item.parentId)) - this.searchNblist = n.filter(item => item.parentId) + this.searchNblist = n.filter(item => item.parentId) }, deep: true } diff --git a/src/views/ysjl/3000/common/index.vue b/src/views/ysjl/3000/common/index.vue index 4a9b128..0df4de5 100644 --- a/src/views/ysjl/3000/common/index.vue +++ b/src/views/ysjl/3000/common/index.vue @@ -189,7 +189,7 @@ @@ -202,7 +202,7 @@ - + - + - + - + - + - + - + - + - + - + - + + + + + + + + @@ -728,7 +740,7 @@ /> diff --git a/src/views/ysjl/3000/dj/xfdt/index.vue b/src/views/ysjl/3000/dj/xfdt/index.vue index f06b096..7a2c301 100644 --- a/src/views/ysjl/3000/dj/xfdt/index.vue +++ b/src/views/ysjl/3000/dj/xfdt/index.vue @@ -11,7 +11,7 @@ export default { components: { baseInfo }, data() { return { - type: 1, + type: 9, arrayGroup: [ { header: [ @@ -21,7 +21,7 @@ export default { type: 1 }, { - label: '3.7 轿厢与井道壁距离单位:m)', + label: '4.7 轿厢与井道壁距离单位:m)', prop: 'D6', type: 1 }, @@ -30,27 +30,27 @@ export default { type: 2, child: [ { - label: '6.6门的运行和导向', + label: '7.5门的运行和导向', prop: 'D5', type: 1 }, { - label: '6.7自动关闭层门装置', + label: '7.6自动关闭层门装置', prop: 'D4', type: 1 }, { - label: '6.8紧急开锁装置', + label: '7.7紧急开锁装置', prop: 'D3', type: 1 }, { - label: '6.9 门的锁紧', + label: '7.8 门的锁紧', prop: 'D2', type: 1 }, { - label: '6.10门的闭合', + label: '7.9门的闭合', prop: 'D1', type: 1 } @@ -67,42 +67,42 @@ export default { type: 1 }, { - label: '6.3施力层门间隙', + label: '7.3.1施力层门间隙', prop: 'D8', type: 1 }, { - label: '6.3门扇与门扇', + label: '7.3.1门扇与门扇', prop: 'D7', type: 1 }, { - label: '6.3门扇与立柱', + label: '7.3.1门扇与立柱', prop: 'D6', type: 1 }, { - label: '6.3门扇与门楣', + label: '7.3.1门扇与门楣', prop: 'D5', type: 1 }, { - label: '6.3门扇与地坎', + label: '7.3.1门扇与地坎', prop: 'D4', type: 1 }, { - label: '6.9门锁啮合长度', + label: '7.8.1门锁啮合长度', prop: 'D3', type: 1 }, { - label: '6.12门刀与层门地坎间距', + label: '7.10门刀与层门地坎间距', prop: 'D2', type: 1 }, { - label: '6.12门锁滚轮与轿门地坎间距', + label: '7.10门锁滚轮与轿门地坎间距', prop: 'D1', type: 1 } diff --git a/src/views/ysjl/3000/dj/zw/index.vue b/src/views/ysjl/3000/dj/zw/index.vue new file mode 100644 index 0000000..5843600 --- /dev/null +++ b/src/views/ysjl/3000/dj/zw/index.vue @@ -0,0 +1,103 @@ + + + + + + + + diff --git a/src/views/ysjl/3000/jj/xfdt/index.vue b/src/views/ysjl/3000/jj/xfdt/index.vue index f06b096..d287b0c 100644 --- a/src/views/ysjl/3000/jj/xfdt/index.vue +++ b/src/views/ysjl/3000/jj/xfdt/index.vue @@ -11,7 +11,7 @@ export default { components: { baseInfo }, data() { return { - type: 1, + type: 10, arrayGroup: [ { header: [ diff --git a/src/views/ysjl/3000/jj/zw/index.vue b/src/views/ysjl/3000/jj/zw/index.vue new file mode 100644 index 0000000..1481f45 --- /dev/null +++ b/src/views/ysjl/3000/jj/zw/index.vue @@ -0,0 +1,103 @@ + + + + + + + + From 77d0472d7c43cbcc43464f9558087f22bc474f18 Mon Sep 17 00:00:00 2001 From: xiaobai <857694115@qq.com> Date: Tue, 17 Aug 2021 20:39:39 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9C=BA=E5=8A=A8?= =?UTF-8?q?=E8=BD=A6=E5=8E=9F=E5=A7=8B=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ysjl/3000/common/index.vue | 2 +- src/views/ysjl/5000/dj/jdgy-cl/index.vue | 731 +++++++++++++++++++++++ src/views/ysjl/5000/dj/lygg-cl/index.vue | 698 ++++++++++++++++++++++ 3 files changed, 1430 insertions(+), 1 deletion(-) create mode 100644 src/views/ysjl/5000/dj/jdgy-cl/index.vue create mode 100644 src/views/ysjl/5000/dj/lygg-cl/index.vue diff --git a/src/views/ysjl/3000/common/index.vue b/src/views/ysjl/3000/common/index.vue index 0df4de5..75c748f 100644 --- a/src/views/ysjl/3000/common/index.vue +++ b/src/views/ysjl/3000/common/index.vue @@ -271,7 +271,7 @@ - + + + + + + + 保存 + + + 更新 + + + 生成报告 + + + 预览 + + + + + + + + 基本信息 + + + + + - + + + + + + + + + + 编号重复 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /kg + + + + + + + /kg + + + + + + + + + + + + + + mm + + + + + + + km/h + + + + + + + + + + 厂区 + + + 旅游景区 + + + 游乐场所 + + + + + + + + + + + 符合 + + + 不符合 + + + + + + + + + 检验信息 + + + + + + + + + + + 号检验专用工具箱 + + + + + + + + + 合格 + + + 不合格 + + + 复检合格 + + + 复检不合格 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/ysjl/5000/dj/lygg-cl/index.vue b/src/views/ysjl/5000/dj/lygg-cl/index.vue new file mode 100644 index 0000000..ac2725c --- /dev/null +++ b/src/views/ysjl/5000/dj/lygg-cl/index.vue @@ -0,0 +1,698 @@ + + + + + + + 保存 + + + 更新 + + + 生成报告 + + + 预览 + + + + + + + + 基本信息 + + + + + - + + + + + + + + + + 编号重复 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 厂区 + + + 旅游景区 + + + 游乐场所 + + + + + + + + 设备技术参数 + + + + + 人 + + + + + + + kg + + + + + + + + + km/h + + + + + + + 节 + + + + + + + + + % + + + + + + + + + + + + 检验信息 + + + + + + + + + + + 号检验专用工具箱 + + + + + + + + + 合格 + + + 不合格 + + + 复检合格 + + + 复检不合格 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 37d07cf2071e89c84778746468a1439497832c78 Mon Sep 17 00:00:00 2001 From: xiaobai <857694115@qq.com> Date: Tue, 17 Aug 2021 21:03:35 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ysjl/5000/dj/jdgy-cl/index.vue | 40 +++++++------- src/views/ysjl/5000/dj/lygg-cl/index.vue | 69 ++++++++++++++---------- 2 files changed, 62 insertions(+), 47 deletions(-) diff --git a/src/views/ysjl/5000/dj/jdgy-cl/index.vue b/src/views/ysjl/5000/dj/jdgy-cl/index.vue index f8759a5..5379139 100644 --- a/src/views/ysjl/5000/dj/jdgy-cl/index.vue +++ b/src/views/ysjl/5000/dj/jdgy-cl/index.vue @@ -333,6 +333,7 @@ + @@ -376,7 +377,6 @@ export default { edit: false, sybjSData: [], tableData: [], - users: [], checkedTab: 'first', ysjlId: this.$route.query.id, // 表格合并相关 @@ -387,9 +387,28 @@ export default { getValue(row) { // 该列用于比较的值的获取方法 return row.jianyanxiang } + }, + { + name: 'jianyanmu', // 参与计算的列名,必须和el-table-column prop=''值一致 + getValue(row) { // 该列用于比较的值的获取方法 + return row.jianyanmu + } } ], - departmemtArr: [] + rows: [ + { + name: 'jianyanxiang', + getValue(row) { + return row.jianyanxiang + } + }, + { + name: 'jianyanneirong', + getValue(row) { + return row.jianyanneirong + } + } + ] } }, computed: { @@ -418,18 +437,11 @@ export default { this.getYsjl(this.$route.query.id) this.getJyxm(1) } - this.getUserList() - this.getDepartmentArr() }, beforeDestroy() { window.removeEventListener('beforeunload', this.beforeunloadHandler, false) }, methods: { - getDepartmentArr() { - getDepartmentTreeList().then(res => { - this.departmemtArr = res - }) - }, /** * 签名方法 * @param data @@ -583,15 +595,7 @@ export default { }) }) } - this.tableJs.getData(this.cols, undefined, this.sybjSData) - }) - }, - getUserList() { - this.api({ - url: '/user/all', - method: 'get' - }).then(data => { - this.users = data + this.tableJs.getData(this.cols, this.rows, this.sybjSData) }) }, saveYsjl: function(operation) { diff --git a/src/views/ysjl/5000/dj/lygg-cl/index.vue b/src/views/ysjl/5000/dj/lygg-cl/index.vue index ac2725c..80b390c 100644 --- a/src/views/ysjl/5000/dj/lygg-cl/index.vue +++ b/src/views/ysjl/5000/dj/lygg-cl/index.vue @@ -164,6 +164,20 @@ + + + + + + 首次检验 + + + 定期检验 + + + + + 设备技术参数 @@ -329,6 +343,7 @@ + @@ -373,7 +388,6 @@ export default { edit: false, sybjSData: [], tableData: [], - users: [], checkedTab: 'first', ysjlId: this.$route.query.id, // 表格合并相关 @@ -384,9 +398,28 @@ export default { getValue(row) { // 该列用于比较的值的获取方法 return row.jianyanxiang } + }, + { + name: 'jianyanmu', // 参与计算的列名,必须和el-table-column prop=''值一致 + getValue(row) { // 该列用于比较的值的获取方法 + return row.jianyanmu + } } ], - departmemtArr: [] + rows: [ + { + name: 'jianyanxiang', + getValue(row) { + return row.jianyanxiang + } + }, + { + name: 'jianyanneirong', + getValue(row) { + return row.jianyanneirong + } + } + ] } }, computed: { @@ -415,18 +448,11 @@ export default { this.getYsjl(this.$route.query.id) this.getJyxm(1) } - this.getUserList() - this.getDepartmentArr() }, beforeDestroy() { window.removeEventListener('beforeunload', this.beforeunloadHandler, false) }, methods: { - getDepartmentArr() { - getDepartmentTreeList().then(res => { - this.departmemtArr = res - }) - }, /** * 签名方法 * @param data @@ -520,16 +546,9 @@ export default { this.getParam(this.ysjl.id, this.ysjl.shebeizhongleidaima) }) }, - getParam(ysjlId, sbzldm) { - // 根据原始记录id查询参数 - this.api({ - url: '/ysjl/getParamByYsjlId', - method: 'get', - params: { - ysjlId: ysjlId, - sbzldm: sbzldm - } - }).then(data => { + getParam() { + const id = this.ysjlId || this.$route.query.templateId + this.ysjlService.getParam(id, this.$route.query.sbzldm).then((data) => { this.param = data }) }, @@ -539,7 +558,7 @@ export default { .getJdCyJyxm(this.ysjlId, this.$route.query.templateId, sort) .then((data) => { this.sybjSData = data - this.tableJs.getData(this.cols, undefined, this.sybjSData) + this.tableJs.getData(this.cols, this.rows, this.sybjSData) }) } else { this.jyxmService @@ -549,18 +568,10 @@ export default { row.dicJyxmId = row.id }) this.sybjSData = data - this.tableJs.getData(this.cols, undefined, this.sybjSData) + this.tableJs.getData(this.cols, this.rows, this.sybjSData) }) } }, - getUserList() { - this.api({ - url: '/user/all', - method: 'get' - }).then(data => { - this.users = data - }) - }, saveYsjl: function(operation) { if (operation === 'add') { if (this.jlbh3.trim() === '') {