From 7f3c482ea6b4742532957891a14cae012ffd2cbc Mon Sep 17 00:00:00 2001 From: xiaobai <857694115@qq.com> Date: Fri, 13 Aug 2021 21:51:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E9=83=A8=E5=88=86=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E4=BB=A5=E5=8F=8A=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/allot/components/chengya_list.vue | 8 +- src/views/ysjl/3000/common/index.vue | 146 ++++++++++++++++---- src/views/ysjl/3000/dj/common/table.vue | 5 +- src/views/ysjl/3000/dj/common/table2.vue | 82 +++++++++++ src/views/ysjl/3000/dj/zdft/index.vue | 108 +++++++++++++++ 5 files changed, 319 insertions(+), 30 deletions(-) create mode 100644 src/views/ysjl/3000/dj/common/table2.vue create mode 100644 src/views/ysjl/3000/dj/zdft/index.vue diff --git a/src/views/allot/components/chengya_list.vue b/src/views/allot/components/chengya_list.vue index 2005b29..05799a2 100644 --- a/src/views/allot/components/chengya_list.vue +++ b/src/views/allot/components/chengya_list.vue @@ -187,9 +187,9 @@ export default { pageNum: 1, // 页码 pageSize: 20, // 每页条数 orderBy: 'shouliriqi desc', - shiyongdanwei: undefined, - shebeizhongleidaima: '', - bjState: '2' + shiyongdanwei: undefined, + shebeizhongleidaima: '', + bjState: '2' }, renwudan: { teamId: '', @@ -452,7 +452,7 @@ export default { }) }, clearSearch() { - this.listQuery.bjState="2" + this.listQuery.bjState = '2' this.getList() }, // 表格单击选中行 getAllotListByBjdId diff --git a/src/views/ysjl/3000/common/index.vue b/src/views/ysjl/3000/common/index.vue index 2ef778c..d555c7f 100644 --- a/src/views/ysjl/3000/common/index.vue +++ b/src/views/ysjl/3000/common/index.vue @@ -188,7 +188,7 @@ - + - + - + - + - + - + - + - + - + + + + + + + + + + 符合 + + + 不符合 + + + + + -
+
设备技术参数 @@ -416,7 +437,15 @@ - + + + m/s + + + m/s + + + m/s @@ -449,6 +478,72 @@ + + + + + + + + + + + + +
+
+ 设备技术参数 + + + + + m/s + + + + + + + mm + + + + + + + + + ° + + + + + + + p/h + + + + + + + + + m + + + + + + + m + + + +
@@ -511,7 +606,7 @@ /> - + + + + - + @@ -662,10 +762,11 @@ import Enclosure from '@/views/common/Enclosure' import Inspection from '@/views/ysjl/3000/common/inspection-items' import Table from '@/views/ysjl/3000/dj/common/table' import Table1 from '@/views/ysjl/3000/dj/common/table1' +import Table2 from '@/views/ysjl/3000/dj/common/table2' export default { name: 'BaseInfo', - components: { SignName, Sticky, Enclosure, Inspection, Table, Table1 }, + components: { SignName, Sticky, Enclosure, Inspection, Table, Table1, Table2 }, props: { arrayGroup: { require: true, @@ -766,7 +867,6 @@ export default { }, methods: { addfn(item) { - console.log('哈哈哈哈哈') const length = item.data.length item.data.push({ id: parseInt(length), @@ -778,7 +878,6 @@ export default { D6: '', D7: '' }) - console.log(item) }, initYsjl() { this.ysjlController.init(this.$route.query).then((data) => { @@ -807,7 +906,6 @@ export default { }) }, getFbList() { - console.log(this.ysjlId) this.ysjlController.getYsjlFb(this.ysjlId).then((data) => { console.log(data) // this.param = data @@ -833,12 +931,10 @@ export default { }) }, getParam() { - console.log(this.ysjlId) const id = this.ysjlId || this.$route.query.templateId this.ysjlController .getParam(id, this.$route.query.sbzldm) .then((data) => { - console.log(data) this.param = data }) }, @@ -862,13 +958,11 @@ export default { if (this.$route.query.state === 'update') { this.jyxmController.getJdCyJyxm(this.ysjlId, this.$route.query.templateId, sort).then((data) => { this.bgfyData = data - console.log(data, 5685) this.tableJs.mergeColRows(this.cols, this.rows, data) }) } else { this.jyxmController.getCyJyxm(this.$route.query.templateId, sort).then((data) => { this.bgfyData = data - console.log(data, 5685) this.tableJs.mergeColRows(this.cols, this.rows, data) }) } @@ -1012,6 +1106,9 @@ export default { saveYsjl(operation) { const tableData = [] const arr = [] + if(this.fromType=='5'){ + arr.push(this.$refs.table2.tableData) + } else{ this.arrayGroup.map((item) => { item.data.forEach(k => { delete k.id @@ -1023,7 +1120,7 @@ export default { delete item.name }) arr.push(arr1) - console.log(arr, 333333333) + } this.bgfyData.forEach((row) => { tableData.push({ ysjlId: this.ysjlId, @@ -1078,9 +1175,8 @@ export default { }, save(operation, type, jyxm, fb) { - console.log(JSON.stringify(fb), jyxm, 222222222222222) - console.log(this.ysjl.imagePath, this.$refs.table1, 55555555) - this.ysjl.imagePath = this.$refs.table1.imgPath + if(this.fromType!=='5')this.ysjl.imagePath = this.$refs.table1.imgPath + // 判断报告编号是否重复 if (this.isRepeat) { this.$message({ diff --git a/src/views/ysjl/3000/dj/common/table.vue b/src/views/ysjl/3000/dj/common/table.vue index c2c93c0..84d6c72 100644 --- a/src/views/ysjl/3000/dj/common/table.vue +++ b/src/views/ysjl/3000/dj/common/table.vue @@ -60,6 +60,10 @@ export default { return [] } }, + fromType: { + type: String, + default: '' + }, tableData: { type: Array, require: true, @@ -70,7 +74,6 @@ export default { }, data() { return { - type: '1', options: [ { value: '√', diff --git a/src/views/ysjl/3000/dj/common/table2.vue b/src/views/ysjl/3000/dj/common/table2.vue new file mode 100644 index 0000000..d3fc83d --- /dev/null +++ b/src/views/ysjl/3000/dj/common/table2.vue @@ -0,0 +1,82 @@ + + + + diff --git a/src/views/ysjl/3000/dj/zdft/index.vue b/src/views/ysjl/3000/dj/zdft/index.vue new file mode 100644 index 0000000..75ed9db --- /dev/null +++ b/src/views/ysjl/3000/dj/zdft/index.vue @@ -0,0 +1,108 @@ + + + +