diff --git a/src/views/ysjl/1000/common/sz/gyscl.vue b/src/views/ysjl/1000/common/sz/gyscl.vue index 65f63c8..c319928 100644 --- a/src/views/ysjl/1000/common/sz/gyscl.vue +++ b/src/views/ysjl/1000/common/sz/gyscl.vue @@ -339,6 +339,17 @@ + + + + + @@ -434,6 +445,8 @@ import Sticky from '@/components/Sticky' import SignName from '@/views/common/SignName' import Utils from '@/utils/contact' import Bzz from '../../common/gysclJyxmBzz.js' +import { getDepartmentTreeList } from '@/api/common' + export default { name: 'GlGysclYsjl', components: { SignName, Sticky }, @@ -484,6 +497,7 @@ export default { } ], multipleSelection: [], + departmemtArr: [], ysjlId: this.$route.query.id, tableData: [] // 存储报告检验项目 } @@ -513,8 +527,17 @@ export default { this.getYsjl(this.ysjlId) this.getJyxmInfoByYsjl() } + this.getDepartmentArr() }, methods: { + getDepartmentArr() { + getDepartmentTreeList().then(res => { + this.departmemtArr = res + }) + }, + handleChange(v) { + this.ysjl.departmentId = v[1] + }, initYsjl() { this.api({ url: '/ysjl/initYsjl', @@ -530,6 +553,7 @@ export default { } }).then(data => { this.ysjl = data.ysjl + this.departmentId = this.ysjl.departmentId this.param = (data.param !== null && data.param !== undefined) ? data.param : {} this.ysjl.jianyanjieshuriqi = this.formatter.dateFormat('YYYY-MM-dd') this.getXcjyrq() @@ -558,6 +582,7 @@ export default { } }).then(data => { this.ysjl = data + this.departmentId = this.ysjl.departmentId if (this.ysjl.jianyanrenyuan) { this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan) } diff --git a/src/views/ysjl/1000/dj/nb/gynb.vue b/src/views/ysjl/1000/dj/nb/gynb.vue index 91d3897..bd5b10d 100644 --- a/src/views/ysjl/1000/dj/nb/gynb.vue +++ b/src/views/ysjl/1000/dj/nb/gynb.vue @@ -292,6 +292,7 @@ v-model="ysjl.departmentId" :options="departmemtArr" :props="{ value: 'id', label: 'name', checkStrictly: true }" + :show-all-levels="false" @change="handleChange" /> @@ -423,6 +424,9 @@ export default { this.departmemtArr = res }) }, + handleChange(v) { + this.ysjl.departmentId = v[1] + }, // 签名方法 singNameValue(data) { this.jianyanrenyuan = data.name @@ -461,6 +465,7 @@ export default { } }).then(data => { this.ysjl = data.ysjl + this.departmentId = this.ysjl.departmentId this.param = (data.param !== null && data.param !== undefined) ? data.param : {} this.ysjl.jianyanjieshuriqi = this.formatter.dateFormat('YYYY-MM-dd') this.getXcjyrq() @@ -488,6 +493,7 @@ export default { } }).then(data => { this.ysjl = data + this.departmentId = this.ysjl.departmentId if (this.ysjl.jianyanrenyuan !== null && this.ysjl.jianyanrenyuan.length > 0) { this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan) } diff --git a/src/views/ysjl/1000/dj/sy/sysy.vue b/src/views/ysjl/1000/dj/sy/sysy.vue index 4badb8b..07ee012 100644 --- a/src/views/ysjl/1000/dj/sy/sysy.vue +++ b/src/views/ysjl/1000/dj/sy/sysy.vue @@ -230,6 +230,19 @@ + + + + + + + @@ -267,6 +280,7 @@ import Sticky from '@/components/Sticky' import SignName from '@/views/common/SignName' import Utils from '@/utils/contact' import merge from 'webpack-merge' +import { getDepartmentTreeList } from '@/api/common' export default { name: 'GlSysyYsjl', components: { SignName, Sticky }, @@ -286,6 +300,7 @@ export default { state: this.$route.query.state, jianyanrenyuan: '', departmentId: this.$store.getters.departmentId, + departmemtArr: [], isRepeat: false, edit: false, checkedTab: 'first', @@ -337,11 +352,20 @@ export default { } this.getJyxm(1) this.getUserList() + this.getDepartmentArr() }, beforeDestroy() { window.removeEventListener('beforeunload', this.beforeunloadHandler, false) }, methods: { + getDepartmentArr() { + getDepartmentTreeList().then(res => { + this.departmemtArr = res + }) + }, + handleChange(v) { + this.ysjl.departmentId = v[1] + }, // 签名方法 singNameValue(data) { this.jianyanrenyuan = data.name @@ -388,6 +412,7 @@ export default { } }).then(data => { this.ysjl = data.ysjl + this.departmentId = this.ysjl.departmentId this.param = (data.param !== null && data.param !== undefined) ? data.param : {} this.ysjl.jilubianhao = this.jilubianhao this.ysjl.baogaobianhao = null // 避免从设备中取值导致信息错误 @@ -413,6 +438,7 @@ export default { } }).then(data => { this.ysjl = data + this.departmentId = this.ysjl.departmentId if (this.ysjl.jianyanrenyuan !== null && this.ysjl.jianyanrenyuan.length > 0) { this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan) } diff --git a/src/views/ysjl/1000/dj/wb/gywb.vue b/src/views/ysjl/1000/dj/wb/gywb.vue index 82ba80d..b691c8f 100644 --- a/src/views/ysjl/1000/dj/wb/gywb.vue +++ b/src/views/ysjl/1000/dj/wb/gywb.vue @@ -145,7 +145,7 @@ 性能参数 - + @@ -289,6 +289,19 @@ + + + + + + + @@ -327,6 +340,8 @@ import Sticky from '@/components/Sticky' import SignName from '@/views/common/SignName' import Utils from '@/utils/contact' import merge from 'webpack-merge' +import { getDepartmentTreeList } from '@/api/common.js' + export default { name: 'GlGywbYsjl', components: { SignName, Sticky }, @@ -347,6 +362,7 @@ export default { sybjSData: [], tableData: [], users: [], + tree: [], checkedTab: 'first', ysjlId: this.$route.query.id, // 表格合并相关 @@ -415,11 +431,20 @@ export default { this.getJyxm(1) } this.getUserList() + this.getDepartment() }, beforeDestroy() { window.removeEventListener('beforeunload', this.beforeunloadHandler, false) }, methods: { + getDepartment() { + getDepartmentTreeList().then(res => { + this.tree = res + }) + }, + handleChange(v) { + this.ysjl.departmentId = v[1] + }, // 签名方法 singNameValue(data) { this.jianyanrenyuan = data.name @@ -444,6 +469,7 @@ export default { } }).then(data => { this.ysjl = data.ysjl + this.departmentId = this.ysjl.departmentId this.param = (data.param !== null && data.param !== undefined) ? data.param : {} this.getXcjyrq() this.ysjl.jilubianhao = this.jilubianhao @@ -474,6 +500,7 @@ export default { } }).then(data => { this.ysjl = data + this.departmentId = this.ysjl.departmentId if (this.ysjl.jianyanrenyuan !== null && this.ysjl.jianyanrenyuan.length > 0) { this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan) } diff --git a/src/views/ysjl/2000/2100/zbg/dj/edit.vue b/src/views/ysjl/2000/2100/zbg/dj/edit.vue index dedb2e7..8b04ac6 100644 --- a/src/views/ysjl/2000/2100/zbg/dj/edit.vue +++ b/src/views/ysjl/2000/2100/zbg/dj/edit.vue @@ -343,6 +343,17 @@ + + + + + @@ -1043,6 +1054,8 @@ import Utils from '@/utils/contact' import pictureUpload from '@/components/Upload' import SliceUpload from '@/components/SliceUpload' import Symbols from '@/views/common/Symbols' +import { getDepartmentTreeList } from '@/api/common' + export default { name: 'RqDjYsjl', components: { SignName, Sticky, jyfa, pictureUpload, SliceUpload, Symbols }, @@ -1075,6 +1088,7 @@ export default { state: this.$route.query.state, ysjl: {}, departmentId: this.$route.query.departmentId, + departmemtArr: [], param: {}, checkedTab: 'third', // 表格合并相关 @@ -1144,6 +1158,7 @@ export default { } // 获取区划 this.getArea() + this.getDepartmentArr() }, mounted() { // 下面的监听事件的名字由于需要添加主原始记录的主键,所以暂不生成监听事件,保存后会刷新页面会执行下面的监听事件 @@ -1161,6 +1176,14 @@ export default { }) }, methods: { + getDepartmentArr() { + getDepartmentTreeList().then(res => { + this.departmemtArr = res + }) + }, + handleChange(v) { + this.ysjl.departmentId = v[1] + }, initYsjl() { this.api({ url: '/ysjl/initYsjl', @@ -1176,6 +1199,7 @@ export default { } }).then(data => { this.ysjl = data.ysjl + this.departmentId = this.ysjl.departmentId this.param = data.param ? data.param : {} // 设置初始值 const tempTime = new Date() @@ -1266,13 +1290,14 @@ export default { }, getYsjl() { this.api({ - url: '/ysjl/getYsjlById', + url: '/ysjl', method: 'get', params: { ysjlId: this.$route.query.id } }).then(data => { - this.ysjl = data.ysjl + this.ysjl = data + this.departmentId = this.ysjl.departmentId if (this.ysjl.jianyanrenyuan) { this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan) } @@ -1564,9 +1589,10 @@ export default { data: { ysjl: this.ysjl, param: this.param, - jyxm: jyxm, - bgjyxm: jyxm, - state: operation + cyJyxm:{ + jyxm: jyxm, + bgjyxm: jyxm, + } } }).then(data => { // 刷新任务列表,原始记录待办,原始记录已办,检验报告 diff --git a/src/views/ysjl/2000/2100/zbg/jj/dxgz.vue b/src/views/ysjl/2000/2100/zbg/jj/dxgz.vue deleted file mode 100644 index 13c34c6..0000000 --- a/src/views/ysjl/2000/2100/zbg/jj/dxgz.vue +++ /dev/null @@ -1,740 +0,0 @@ - - - diff --git a/src/views/ysjl/2000/2100/zbg/nd/edit.vue b/src/views/ysjl/2000/2100/zbg/nd/edit.vue index 426fad1..1d51cb2 100644 --- a/src/views/ysjl/2000/2100/zbg/nd/edit.vue +++ b/src/views/ysjl/2000/2100/zbg/nd/edit.vue @@ -206,7 +206,18 @@ - + + + + + + @@ -260,9 +271,9 @@ - + @@ -270,11 +281,11 @@ import Utils from '@/utils/contact.js' // 导入签名方法 import Sticky from '@/components/Sticky' import SignName from '@/views/common/SignName' -import SliceUpload from '@/components/SliceUpload' import Symbols from '@/views/common/Symbols' +import { getDepartmentTreeList } from '@/api/common' export default { name: 'RqNdYsjl', - components: { SignName, Sticky, SliceUpload, Symbols }, + components: { SignName, Sticky, Symbols }, data() { return { edit: false, // 页面编辑状态 @@ -313,7 +324,9 @@ export default { nblb: this.$route.query.neibuleibie, type: 'YSJL' }, - djjgs: ['无'] + djjgs: ['无'], + departmentId: '', + departmemtArr: [] } }, computed: { @@ -340,8 +353,17 @@ export default { // 年度检查检验项目 this.getJyxm(1) this.getArea() + this.getDepartmentArr() }, methods: { + getDepartmentArr() { + getDepartmentTreeList().then(res => { + this.departmemtArr = res + }) + }, + handleChange(v) { + this.ysjl.departmentId = v[1] + }, initYsjl() { this.api({ url: '/ysjl/initYsjl', @@ -357,6 +379,7 @@ export default { } }).then(data => { this.ysjl = data.ysjl + this.departmentId = this.ysjl.departmentId this.param = data.param ? data.param : {} const tempTime = new Date() this.ysjl.jianyanjieshuriqi = tempTime @@ -370,13 +393,14 @@ export default { }, getYsjl() { this.api({ - url: '/ysjl/getYsjlById', + url: '/ysjl', method: 'get', params: { ysjlId: this.$route.query.id } }).then(data => { - this.ysjl = data.ysjl + this.ysjl = data + this.departmentId = this.ysjl.departmentId if (this.ysjl.jianyanrenyuan) { this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan) } @@ -512,10 +536,10 @@ export default { data: { ysjl: this.ysjl, param: this.param, - jyxm: jyxm, - bgjyxm: jyxm, - flag: operation - } + cyJyxm: { + bgjyxm: jyxm, + jyxm: jyxm + }} }).then(data => { // 刷新任务列表,原始记录待办,原始记录已办,检验报告 Utils.$emit('task-list') diff --git a/src/views/ysjl/2000/2200/zbg/dj/edit.vue b/src/views/ysjl/2000/2200/zbg/dj/edit.vue index 04205f8..d8bce7c 100644 --- a/src/views/ysjl/2000/2200/zbg/dj/edit.vue +++ b/src/views/ysjl/2000/2200/zbg/dj/edit.vue @@ -360,6 +360,19 @@ + + + + + + + @@ -798,6 +811,7 @@ import Sticky from '@/components/Sticky' import SignName from '@/views/common/SignName' import Utils from '../../../../../../utils/contact.js' import jyfa from '@/views/ysjl/addJyfa' +import { getDepartmentTreeList } from '@/api/common' export default { name: 'RqDjGcYsjl', components: { SignName, Sticky, jyfa }, @@ -875,7 +889,8 @@ export default { value: '', similarVisible: false, similarTableData: [], - djjgs: ['无'] + djjgs: ['无'], + departmemtArr: [] } }, computed: { @@ -908,8 +923,17 @@ export default { this.getUserList(this.$route.query.departmentId) } this.getArea() + this.getDepartmentArr() }, methods: { + getDepartmentArr() { + getDepartmentTreeList().then(res => { + this.departmemtArr = res + }) + }, + handleChange(v) { + this.ysjl.departmentId = v[1] + }, initYsjl() { this.api({ url: '/ysjl/initYsjl', @@ -925,6 +949,7 @@ export default { } }).then(data => { this.ysjl = data.ysjl + this.templateId = this.ysjl.departmentId this.param = data.param ? data.param : {} const tempTime = new Date() this.$set(this.ysjl, 'jianyankaishiriqi', this.dateFormat(new Date())) @@ -955,6 +980,7 @@ export default { } }).then(data => { this.ysjl = data + this.templateId = this.ysjl.departmentId if (this.ysjl.jianyanrenyuan) { this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan) } @@ -1159,9 +1185,10 @@ export default { data: { ysjl: this.ysjl, param: this.param, + cyJyxm:{ jyxm: jyxm, bgjyxm: jyxm, - flag: operation + } } }).then(data => { Utils.$emit('bggl-daiban-list') diff --git a/src/views/ysjl/2000/2200/zbg/nd/tuoche.vue b/src/views/ysjl/2000/2200/zbg/nd/tuoche.vue index f08a23b..a461d1a 100644 --- a/src/views/ysjl/2000/2200/zbg/nd/tuoche.vue +++ b/src/views/ysjl/2000/2200/zbg/nd/tuoche.vue @@ -221,6 +221,19 @@ + + + + + + + @@ -280,6 +293,7 @@ import Sticky from '@/components/Sticky' import SignName from '@/views/common/SignName' import Utils from '../../../../../../utils/contact.js' +import { getDepartmentTreeList } from '@/api/common' export default { name: 'RqNdTuoche', @@ -344,7 +358,8 @@ export default { } } ], - djjgs: ['无'] + djjgs: ['无'], + departmemtArr: [] } }, computed: { @@ -372,8 +387,17 @@ export default { // 提取检验项目 this.getJyxm(1) this.getArea() + this.getDepartmentArr() }, methods: { + getDepartmentArr() { + getDepartmentTreeList().then(res => { + this.departmemtArr = res + }) + }, + handleChange(v) { + this.ysjl.departmentId = v[1] + }, initYsjl() { this.api({ url: '/ysjl/initYsjl', @@ -389,6 +413,7 @@ export default { } }).then(data => { this.ysjl = data.ysjl + this.departmentId = this.ysjl.departmentId this.param = data.param ? data.param : {} const tempTime = new Date() this.ysjl.createTime = tempTime @@ -415,6 +440,7 @@ export default { } }).then(data => { this.ysjl = data + this.departmentId = this.ysjl.departmentId if (this.ysjl.jianyanrenyuan) { this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan) } diff --git a/src/views/ysjl/2000/2300/zbg/jj/cyqp.vue b/src/views/ysjl/2000/2300/zbg/jj/cyqp.vue index 86d5706..0f43138 100644 --- a/src/views/ysjl/2000/2300/zbg/jj/cyqp.vue +++ b/src/views/ysjl/2000/2300/zbg/jj/cyqp.vue @@ -146,6 +146,19 @@ + + + + + + + @@ -220,6 +233,8 @@ import Sticky from '@/components/Sticky' import SignName from '@/views/common/SignName' import Utils from '@/utils/contact.js' +import { getDepartmentTreeList } from '@/api/common' + export default { name: 'CyqpAjYsjl', components: { SignName, Sticky }, @@ -273,7 +288,8 @@ export default { ], isRepeat: false, users: [], - djjgs: ['无'] + djjgs: ['无'], + departmemtArr: [] } }, // computed: { @@ -313,8 +329,17 @@ export default { if (!this.ysjl.jilubianhao) { this.getMaxBh() } + this.getDepartmentArr() }, methods: { + getDepartmentArr() { + getDepartmentTreeList().then(res => { + this.departmemtArr = res + }) + }, + handleChange(v) { + this.ysjl.departmentId = v[1] + }, initYsjl() { this.api({ url: '/ysjl/initYsjl', @@ -330,6 +355,7 @@ export default { } }).then(data => { this.ysjl = data.ysjl + this.departmentId = this.ysjl.departmentId this.param = data.param ? data.param : {} const tempTime = new Date() this.$set(this.ysjl, 'jianyanjielun', '符合') @@ -351,6 +377,7 @@ export default { } }).then(data => { this.ysjl = data + this.departmentId = this.ysjl.departmentId if (this.ysjl.jianyanrenyuan) { this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan) } diff --git a/src/views/ysjl/2000/2400/common/ycjl.vue b/src/views/ysjl/2000/2400/common/ycjl.vue index 55fcd85..cf2775f 100644 --- a/src/views/ysjl/2000/2400/common/ycjl.vue +++ b/src/views/ysjl/2000/2400/common/ycjl.vue @@ -502,9 +502,9 @@ - + @@ -547,11 +547,10 @@ import Sticky from '@/components/Sticky' import jyfa from '@/views/ysjl/addJyfa' import SignName from '@/views/common/SignName' import Utils from '@/utils/contact.js' -import SliceUpload from '@/components/SliceUpload' import Symbols from '@/views/common/Symbols' export default { name: 'Ycjl', - components: { SignName, Sticky, jyfa, SliceUpload, Symbols }, + components: { SignName, Sticky, jyfa, Symbols }, props: { neibuleibieparam: { type: String, diff --git a/src/views/ysjl/2000/2400/zbg/jj/edit.vue b/src/views/ysjl/2000/2400/zbg/jj/edit.vue index a024a27..a67f721 100644 --- a/src/views/ysjl/2000/2400/zbg/jj/edit.vue +++ b/src/views/ysjl/2000/2400/zbg/jj/edit.vue @@ -295,6 +295,19 @@ + + + + + + + @@ -446,6 +459,8 @@ import Utils from '@/utils/contact.js' import SliceUpload from '@/components/SliceUpload' import Symbols from '@/views/common/Symbols' import jyfa from '@/views/ysjl/addJyfa' +import { getDepartmentTreeList } from '@/api/common' + export default { name: 'YcJdYsjl', components: { SignName, Sticky, SliceUpload, Symbols, jyfa }, @@ -476,6 +491,7 @@ export default { state: this.$route.query.state, ysjl: {}, departmentId: this.$route.query.departmentId, + departmemtArr: [], param: {}, jyxm: 'ycjd', checkedTab: 'first', @@ -565,8 +581,17 @@ export default { this.getUserList(this.$route.query.departmentId) this.getJyxm() this.getArea() + this.getDepartmentArr() }, methods: { + getDepartmentArr() { + getDepartmentTreeList().then(res => { + this.departmemtArr = res + }) + }, + handleChange(v) { + this.ysjl.departmentId = v[1] + }, initYsjl() { this.api({ url: '/ysjl/initYsjl', @@ -582,6 +607,7 @@ export default { } }).then(data => { this.ysjl = data.ysjl + this.departmentId = this.ysjl.departmentId this.param = data.param ? data.param : {} // 设置初始值 const tempTime = new Date() @@ -606,6 +632,7 @@ export default { } }).then(data => { this.ysjl = data + this.departmentId = this.ysjl.departmentId if (this.ysjl.jianyanrenyuan) { this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan) } diff --git a/src/views/ysjl/3000/common/index.vue b/src/views/ysjl/3000/common/index.vue index 4b115af..fee7dda 100644 --- a/src/views/ysjl/3000/common/index.vue +++ b/src/views/ysjl/3000/common/index.vue @@ -659,6 +659,19 @@ + + + + + + +