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 @@ - - - - - - - 编号:{{ ysjl.jilubianhao }} - - - 保存 - - - 更新 - - - 生成报告 - - - - 检验项目批量签名 - - - 批量清除签名 - - - 批量修改日期 - - - 预览 - - - - - - - - - 基本信息 - - - - - - - - - - - - - - - - 编号重复 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 检验信息 - - - - - - - - - 按照《中华人民共和国特种设备安全法》《特种设备安全监察条例》的规定,该台压力容器改造与重大修理经我机构实施监督检验,安全性能 - - - - 《固定式压力容器安全技术监察规程》(TSG21-2016)的要求,特发此证书。 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 取 消 - 确 定 - - - - - - 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 @@ + + + + + + + @@ -725,6 +738,7 @@ import Inspection from '@/views/ysjl/3000/common/inspection-items' import Table from '@/views/ysjl/3000/dj/common/table' import Phxsb from '@/views/ysjl/3000/dj/common/phxsb' import ZdftFb from '@/views/ysjl/3000/dj/common/zdftFb' +import { getDepartmentTreeList } from '@/api/common.js' export default { name: 'BaseInfo', @@ -813,7 +827,8 @@ export default { pic: '', fubiao1: [], fubiao2: [], - fubiao3: [] + fubiao3: [], + tree: [] } }, created() { @@ -842,12 +857,21 @@ export default { this.getJyxm(1) this.getJyxmInfoByYsjl() } + this.getDepartment() this.getDicJyxm(1) this.userList = this.$store.getters.allUser.filter( (user) => user.departmentId === 74 && user.clientType === 'System' ) }, methods: { + getDepartment() { + getDepartmentTreeList().then(res => { + this.tree = res + }) + }, + handleChange(v) { + this.ysjl.departmentId = v[1] + }, initYsjl() { this.ysjlService.init(this.$route.query).then((data) => { this.ysjl = data.ysjl @@ -856,6 +880,7 @@ export default { this.ysjl.bglx = 1 this.ysjl.cjState = 'ysjl' this.ysjl.xianchangjianyantiaojian = '符合' + this.departmentId = this.ysjl.departmentId this.getJyxm(1) this.getSbList() }) @@ -897,6 +922,7 @@ export default { getYsjl() { this.ysjlService.getYsjl(this.ysjlId).then((data) => { this.ysjl = data + this.departmentId = this.ysjl.departmentId this.ysjl.imagePath = '' if ( this.ysjl.jianyanrenyuan !== null && diff --git a/src/views/ysjl/4000/dj/common/index.vue b/src/views/ysjl/4000/dj/common/index.vue index 90ccb9e..d466cf5 100644 --- a/src/views/ysjl/4000/dj/common/index.vue +++ b/src/views/ysjl/4000/dj/common/index.vue @@ -1,88 +1,173 @@ - + - + 保存 - + 更新 - + 生成报告 - + 预览 - + 基本信息 - + - - - - + + - + - + - - 编号重复 + + 编号重复 - + - + - + - + - - + + - - + + - + @@ -95,7 +180,11 @@ - + @@ -127,78 +216,90 @@ - + - + - + - + - - 吊钩 + + 吊钩 - - 抓斗 + + 抓斗 - - 吸盘 + + 吸盘 - - 集装箱吊具 + + 集装箱吊具 - - 其他 + + 其他 - + - - 吊钩 + + 吊钩 - - 抓斗 + + 抓斗 - - 吸盘 + + 吸盘 - - 集装箱吊具 + + 集装箱吊具 - - 其他 + + 其他 - + - - 首次检验 + + 首次检验 - - 定期检验 + + 定期检验 @@ -207,28 +308,25 @@ - + - - 露天 + + 露天 - - 非露天 + + 非露天 - - 高温 + + 高温 - - 粉尘 + + 粉尘 - - 有毒 + + 有毒 - - 其他 + + 其他 @@ -242,18 +340,18 @@ prop="jianyanhuanjingtiaojian" > - - 符合 + + 符合 - - 不符合 + + 不符合 - + 技术参数 @@ -304,7 +402,7 @@ - + 技术参数 @@ -372,31 +470,31 @@ - + - - 吊钩 + + 吊钩 - - 抓斗 + + 抓斗 - - 吸盘 + + 吸盘 - - 集装箱吊具 + + 集装箱吊具 - - 其他 + + 其他 - + 技术参数 @@ -447,7 +545,7 @@ - + 技术参数 @@ -458,7 +556,10 @@ - + m @@ -499,39 +600,57 @@ - + - + - + - + 技术参数 - + t - - + + m @@ -571,8 +690,14 @@ - - + + @@ -586,7 +711,7 @@ 检验信息 - + @@ -607,17 +732,17 @@ - - 合格 + + 合格 - - 不合格 + + 不合格 - - 复检合格 + + 复检合格 - - 复检不合格 + + 复检不合格 @@ -632,7 +757,7 @@ :autosize="{ minRows: 2, maxRows: 5 }" :disabled="edit" /> - (需备注扶墙架道数) + (需备注扶墙架道数) @@ -658,6 +783,19 @@ + + + + + + + @@ -694,14 +832,30 @@ - + - + @@ -720,6 +874,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: 'GlGynbYsjl', components: { SignName, Sticky }, @@ -746,6 +902,7 @@ export default { edit: false, sybjSData: [], tableData: [], + tree: [], checkedTab: 'first', ysjlId: this.$route.query.id, // 表格合并相关 @@ -753,7 +910,8 @@ export default { cols: [ { name: 'jianyanxiang', // 参与计算的列名,必须和el-table-column prop=''值一致 - getValue(row) { // 该列用于比较的值的获取方法 + getValue(row) { + // 该列用于比较的值的获取方法 return row.jianyanxiang } } @@ -774,9 +932,7 @@ export default { ] } }, - computed: { - - }, + computed: {}, watch: { // jlbh3: function(val) { // this.ysjl.jilubianhao = this.jlbh1 + this.jlbh2 + '-' + val @@ -800,11 +956,21 @@ export default { this.getYsjl(this.$route.query.id) this.getJyxm(1) } + this.getDepartment() }, beforeDestroy() { window.removeEventListener('beforeunload', this.beforeunloadHandler, false) }, methods: { + getDepartment() { + getDepartmentTreeList().then((res) => { + console.log(res, 555) + this.tree = res + }) + }, + handleChange(v) { + this.ysjl.departmentId = v[1] + }, /** * 签名方法 * @param data @@ -846,7 +1012,7 @@ export default { aheadPart: aheadPart + '-', hinderPart: '' } - }).then(data => { + }).then((data) => { this.jlbh3 = data }) }, @@ -863,9 +1029,11 @@ export default { sbpzdm: this.$route.query.sbpzdm, sbpzmc: this.$route.query.sbpzmc } - }).then(data => { + }).then((data) => { this.ysjl = data.ysjl - this.param = (data.param !== null && data.param !== undefined) ? data.param : {} + 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() this.ysjl.jilubianhao = this.jilubianhao @@ -876,7 +1044,9 @@ export default { this.$set(this.param, 'qita', '/') // // 制造日期、投用日期、上次检验日期设置成正确的日期格式 // this.ysjl.zhizaoriqi = this.common.checkDateFormat(this.ysjl.zhizaoriqi) - this.ysjl.touyongriqi = this.common.checkDateFormat(this.ysjl.touyongriqi) + this.ysjl.touyongriqi = this.common.checkDateFormat( + this.ysjl.touyongriqi + ) // this.param.shangcijianyanriqi = this.common.checkDateFormat(this.param.shangcijianyanriqi) }) }, @@ -887,13 +1057,23 @@ export default { params: { ysjlId: id } - }).then(data => { + }).then((data) => { this.ysjl = data - if (this.ysjl.jianyanrenyuan !== null && this.ysjl.jianyanrenyuan.length > 0) { - this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan) + this.departmentId = this.ysjl.departmentId + if ( + this.ysjl.jianyanrenyuan !== null && + this.ysjl.jianyanrenyuan.length > 0 + ) { + this.jianyanrenyuan = this.common.convertCnName( + this.ysjl.jianyanrenyuan + ) } // 查询最大记录编号 - if (this.ysjl.jilubianhao === null || this.ysjl.jilubianhao === undefined || this.ysjl.jilubianhao === '') { + if ( + this.ysjl.jilubianhao === null || + this.ysjl.jilubianhao === undefined || + this.ysjl.jilubianhao === '' + ) { this.getMaxBh() } this.getParam(this.ysjl.id, this.ysjl.shebeizhongleidaima) @@ -908,7 +1088,7 @@ export default { ysjlId: ysjlId, sbzldm: sbzldm } - }).then(data => { + }).then((data) => { this.param = data }) }, @@ -936,7 +1116,10 @@ export default { saveYsjl: function(operation) { if (operation === 'add') { if (this.jlbh3.trim() === '') { - this.$message({ message: '请先确认记录编号是否完整!', type: 'warning' }) + this.$message({ + message: '请先确认记录编号是否完整!', + type: 'warning' + }) return false } } @@ -968,7 +1151,10 @@ export default { this.ysjl.jilubianhao = this.jlbh1 + this.jlbh2 + '-' + this.jlbh3 method = 'post' } else if (operation === 'build') { - if (this.ysjl.jianyanrenyuan === null || this.ysjl.jianyanrenyuan === '') { + if ( + this.ysjl.jianyanrenyuan === null || + this.ysjl.jianyanrenyuan === '' + ) { this.$message({ type: 'error', message: '请先签名再生成报告!' @@ -987,10 +1173,13 @@ export default { method = 'put' } if (this.isRepeat) { - this.$message({ message: '记录编号重复,请先修改记录编号再保存', type: 'error' }) + this.$message({ + message: '记录编号重复,请先修改记录编号再保存', + type: 'error' + }) return false } else { - this.$refs['ysjl'].validate(valid => { + this.$refs['ysjl'].validate((valid) => { if (valid) { const jyxm = tableData this.api({ @@ -1002,11 +1191,14 @@ export default { cyJyxm: {}, jdJyxm: jyxm } - }).then(data => { + }).then((data) => { Utils.$emit('task-list') Utils.$emit('ysjl-list') if (operation === 'add' && data !== '') { - this.$message({ message: '保存成功, 请前往待办记录中查看。', type: 'success' }) + this.$message({ + message: '保存成功, 请前往待办记录中查看。', + type: 'success' + }) this.ysjl.id = data this.param.ysjlId = data // 刷新路由网址 @@ -1018,7 +1210,9 @@ export default { this.$message({ message: '更新成功', type: 'success' }) // 替换路由中的参数 this.$router.push({ - query: merge(this.$route.query, { 'jianyanrenyuan': this.ysjl.jianyanrenyuan }) + query: merge(this.$route.query, { + jianyanrenyuan: this.ysjl.jianyanrenyuan + }) }) // this.$refs.bill.updateChargeBill() } else { @@ -1045,7 +1239,7 @@ export default { ysjlId: id, bianhao: bianhao } - }).then(data => { + }).then((data) => { if (data > 0) { this.isRepeat = true } else { @@ -1055,8 +1249,15 @@ export default { }, getXcjyrq() { const xcjyrq = new Date(this.ysjl.jianyanjieshuriqi) - xcjyrq.setFullYear(xcjyrq.getFullYear() + 2, xcjyrq.getMonth(), xcjyrq.getDate() - 1) - this.ysjl.xiacijianyanriqi = this.formatter.dateFormat('YYYY-MM-dd', xcjyrq) + xcjyrq.setFullYear( + xcjyrq.getFullYear() + 2, + xcjyrq.getMonth(), + xcjyrq.getDate() - 1 + ) + this.ysjl.xiacijianyanriqi = this.formatter.dateFormat( + 'YYYY-MM-dd', + xcjyrq + ) }, setYsjlData(data) { this.ysjl.sfdId = data diff --git a/src/views/ysjl/4000/jj/common/index.vue b/src/views/ysjl/4000/jj/common/index.vue index 36ca7dd..88343bb 100644 --- a/src/views/ysjl/4000/jj/common/index.vue +++ b/src/views/ysjl/4000/jj/common/index.vue @@ -1,74 +1,147 @@ - + - + 保存 - + 更新 - + 生成报告 - + 预览 - + 基本信息 - + - - - - + + - + - + - - 编号重复 + + 编号重复 - + - + - - + + - - + + - - + + @@ -88,32 +161,54 @@ - - + + - + - - + + - + - + @@ -126,7 +221,11 @@ - + @@ -165,12 +264,21 @@ - + - + @@ -179,11 +287,11 @@ - - 是 + + 是 - - 否 + + 否 @@ -198,56 +306,62 @@ - - 安装 + + 安装 - - 改造 + + 改造 - - 改造 + + 改造 - + - + - + - - 吊钩 + + 吊钩 - - 抓斗 + + 抓斗 - - 吸盘 + + 吸盘 - - 其他 + + 其他 - + - - 中心滑环式 + + 中心滑环式 - - 电缆 + + 电缆 - - 其它 + + 其它 @@ -255,28 +369,25 @@ - + - - 露天 + + 露天 - - 非露天 + + 非露天 - - 高温 + + 高温 - - 粉尘 + + 粉尘 - - 有毒 + + 有毒 - - 其他 + + 其他 @@ -290,18 +401,18 @@ prop="jianyananquanhuanjing" > - - 符合 + + 符合 - - 不符合 + + 不符合 - + 技术参数 @@ -352,10 +463,10 @@ - + 技术参数 - + t @@ -378,7 +489,7 @@ - + m/min @@ -391,7 +502,7 @@ t·m - + @@ -425,7 +536,7 @@ - + @@ -435,7 +546,7 @@ - + 技术参数 @@ -486,7 +597,7 @@ - + 技术参数 @@ -497,7 +608,10 @@ - + m @@ -545,39 +659,61 @@ - + - + - - + + - + 技术参数 - + t - - + + mm @@ -617,8 +753,14 @@ - - + + s @@ -627,7 +769,7 @@ 检验信息 - + @@ -648,17 +790,17 @@ - - 合格 + + 合格 - - 不合格 + + 不合格 - - 复检合格 + + 复检合格 - - 复检不合格 + + 复检不合格 @@ -673,7 +815,7 @@ :autosize="{ minRows: 2, maxRows: 5 }" :disabled="edit" /> - (需备注扶墙架道数) + (需备注扶墙架道数) @@ -699,6 +841,19 @@ + + + + + + + @@ -735,7 +890,14 @@ - + @@ -743,7 +905,16 @@ - + @@ -762,6 +933,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: 'GlGynbYsjl', components: { SignName, Sticky }, @@ -784,6 +957,7 @@ export default { state: this.$route.query.state, jianyanrenyuan: '', departmentId: this.$store.getters.departmentId, + tree: [], isRepeat: false, edit: false, sybjSData: [], @@ -795,13 +969,15 @@ export default { cols: [ { name: 'jianyanxiang', // 参与计算的列名,必须和el-table-column prop=''值一致 - getValue(row) { // 该列用于比较的值的获取方法 + getValue(row) { + // 该列用于比较的值的获取方法 return row.jianyanxiang } }, { name: 'jianyanmu', // 参与计算的列名,必须和el-table-column prop=''值一致 - getValue(row) { // 该列用于比较的值的获取方法 + getValue(row) { + // 该列用于比较的值的获取方法 return row.jianyanmu } } @@ -822,9 +998,7 @@ export default { ] } }, - computed: { - - }, + computed: {}, watch: { // jlbh3: function(val) { // this.ysjl.jilubianhao = this.jlbh1 + this.jlbh2 + '-' + val @@ -848,11 +1022,21 @@ export default { this.getYsjl(this.$route.query.id) this.getJyxm(1) } + this.getDepartment() }, beforeDestroy() { window.removeEventListener('beforeunload', this.beforeunloadHandler, false) }, methods: { + getDepartment() { + getDepartmentTreeList().then((res) => { + console.log(res, 555) + this.tree = res + }) + }, + handleChange(v) { + this.ysjl.departmentId = v[1] + }, /** * 签名方法 * @param data @@ -894,7 +1078,7 @@ export default { aheadPart: aheadPart + '-', hinderPart: '' } - }).then(data => { + }).then((data) => { this.jlbh3 = data }) }, @@ -911,9 +1095,11 @@ export default { sbpzdm: this.$route.query.sbpzdm, sbpzmc: this.$route.query.sbpzmc } - }).then(data => { + }).then((data) => { this.ysjl = data.ysjl - this.param = (data.param !== null && data.param !== undefined) ? data.param : {} + 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() this.ysjl.jilubianhao = this.jilubianhao @@ -926,9 +1112,15 @@ export default { this.ysjl.anzhuangdidian = this.ysjl.shiyongdanweiDizhi this.$set(this.param, 'qita', '/') // 制造日期、投用日期、上次检验日期设置成正确的日期格式 - this.ysjl.zhizaoriqi = this.common.checkDateFormat(this.ysjl.zhizaoriqi) - this.ysjl.touyongriqi = this.common.checkDateFormat(this.ysjl.touyongriqi) - this.param.shangcijianyanriqi = this.common.checkDateFormat(this.param.shangcijianyanriqi) + this.ysjl.zhizaoriqi = this.common.checkDateFormat( + this.ysjl.zhizaoriqi + ) + this.ysjl.touyongriqi = this.common.checkDateFormat( + this.ysjl.touyongriqi + ) + this.param.shangcijianyanriqi = this.common.checkDateFormat( + this.param.shangcijianyanriqi + ) }) }, getYsjl(id) { @@ -938,13 +1130,23 @@ export default { params: { ysjlId: id } - }).then(data => { + }).then((data) => { this.ysjl = data - if (this.ysjl.jianyanrenyuan !== null && this.ysjl.jianyanrenyuan.length > 0) { - this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan) + this.departmentId = this.ysjl.departmentId + if ( + this.ysjl.jianyanrenyuan !== null && + this.ysjl.jianyanrenyuan.length > 0 + ) { + this.jianyanrenyuan = this.common.convertCnName( + this.ysjl.jianyanrenyuan + ) } // 查询最大记录编号 - if (this.ysjl.jilubianhao === null || this.ysjl.jilubianhao === undefined || this.ysjl.jilubianhao === '') { + if ( + this.ysjl.jilubianhao === null || + this.ysjl.jilubianhao === undefined || + this.ysjl.jilubianhao === '' + ) { this.getMaxBh() } this.getParam(this.ysjl.id, this.ysjl.shebeizhongleidaima) @@ -959,7 +1161,7 @@ export default { ysjlId: ysjlId, sbzldm: sbzldm } - }).then(data => { + }).then((data) => { this.param = data }) }, @@ -988,7 +1190,10 @@ export default { saveYsjl: function(operation) { if (operation === 'add') { if (this.jlbh3.trim() === '') { - this.$message({ message: '请先确认记录编号是否完整!', type: 'warning' }) + this.$message({ + message: '请先确认记录编号是否完整!', + type: 'warning' + }) return false } } @@ -1020,7 +1225,10 @@ export default { this.ysjl.jilubianhao = this.jlbh1 + this.jlbh2 + '-' + this.jlbh3 method = 'post' } else if (operation === 'build') { - if (this.ysjl.jianyanrenyuan === null || this.ysjl.jianyanrenyuan === '') { + if ( + this.ysjl.jianyanrenyuan === null || + this.ysjl.jianyanrenyuan === '' + ) { this.$message({ type: 'error', message: '请先签名再生成报告!' @@ -1039,10 +1247,13 @@ export default { method = 'put' } if (this.isRepeat) { - this.$message({ message: '记录编号重复,请先修改记录编号再保存', type: 'error' }) + this.$message({ + message: '记录编号重复,请先修改记录编号再保存', + type: 'error' + }) return false } else { - this.$refs['ysjl'].validate(valid => { + this.$refs['ysjl'].validate((valid) => { if (valid) { const jyxm = tableData this.api({ @@ -1054,11 +1265,14 @@ export default { cyJyxm: {}, jdJyxm: jyxm } - }).then(data => { + }).then((data) => { Utils.$emit('task-list') Utils.$emit('ysjl-list') if (operation === 'add' && data !== '') { - this.$message({ message: '保存成功, 请前往待办记录中查看。', type: 'success' }) + this.$message({ + message: '保存成功, 请前往待办记录中查看。', + type: 'success' + }) this.ysjl.id = data this.param.ysjlId = data // 刷新路由网址 @@ -1070,7 +1284,9 @@ export default { this.$message({ message: '更新成功', type: 'success' }) // 替换路由中的参数 this.$router.push({ - query: merge(this.$route.query, { 'jianyanrenyuan': this.ysjl.jianyanrenyuan }) + query: merge(this.$route.query, { + jianyanrenyuan: this.ysjl.jianyanrenyuan + }) }) // this.$refs.bill.updateChargeBill() } else { @@ -1097,7 +1313,7 @@ export default { ysjlId: id, bianhao: bianhao } - }).then(data => { + }).then((data) => { if (data > 0) { this.isRepeat = true } else { @@ -1107,8 +1323,15 @@ export default { }, getXcjyrq() { const xcjyrq = new Date(this.ysjl.jianyanjieshuriqi) - xcjyrq.setFullYear(xcjyrq.getFullYear() + 2, xcjyrq.getMonth(), xcjyrq.getDate() - 1) - this.ysjl.xiacijianyanriqi = this.formatter.dateFormat('YYYY-MM-dd', xcjyrq) + xcjyrq.setFullYear( + xcjyrq.getFullYear() + 2, + xcjyrq.getMonth(), + xcjyrq.getDate() - 1 + ) + this.ysjl.xiacijianyanriqi = this.formatter.dateFormat( + 'YYYY-MM-dd', + xcjyrq + ) }, setYsjlData(data) { this.ysjl.sfdId = data diff --git a/src/views/ysjl/5000/dj/jdgy-cl/index.vue b/src/views/ysjl/5000/dj/jdgy-cl/index.vue index 76652d1..f462dae 100644 --- a/src/views/ysjl/5000/dj/jdgy-cl/index.vue +++ b/src/views/ysjl/5000/dj/jdgy-cl/index.vue @@ -52,7 +52,7 @@ - + @@ -311,6 +311,19 @@ + + + + + + + @@ -374,6 +387,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.js' export default { name: 'GlGynbYsjl', components: { SignName, Sticky }, @@ -393,6 +407,7 @@ export default { isRepeat: false, edit: false, sybjSData: [], + tree: [], tableData: [], checkedTab: 'first', ysjlId: this.$route.query.id, @@ -454,11 +469,18 @@ export default { this.getYsjl(this.$route.query.id) this.getJyxm(1) } + this.getDepartment() }, beforeDestroy() { window.removeEventListener('beforeunload', this.beforeunloadHandler, false) }, methods: { + getDepartment() { + getDepartmentTreeList().then(res => { + console.log(res, 555) + this.tree = res + }) + }, /** * 签名方法 * @param data @@ -531,12 +553,16 @@ export default { this.ysjl.xiacijianyanriqishuoming = '/' this.ysjl.anzhuangdidian = this.ysjl.shiyongdanweiDizhi this.$set(this.param, 'qita', '/') + this.departmentId = this.ysjl.departmentId // 制造日期、投用日期、上次检验日期设置成正确的日期格式 this.ysjl.zhizaoriqi = this.common.checkDateFormat(this.ysjl.zhizaoriqi) this.ysjl.touyongriqi = this.common.checkDateFormat(this.ysjl.touyongriqi) this.param.shangcijianyanriqi = this.common.checkDateFormat(this.param.shangcijianyanriqi) }) }, + handleChange(v) { + this.ysjl.departmentId = v[1] + }, getYsjl(id) { this.api({ url: '/ysjl', @@ -546,6 +572,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/5000/dj/lygg-cl/index.vue b/src/views/ysjl/5000/dj/lygg-cl/index.vue index 8221fdd..7485e96 100644 --- a/src/views/ysjl/5000/dj/lygg-cl/index.vue +++ b/src/views/ysjl/5000/dj/lygg-cl/index.vue @@ -304,6 +304,19 @@ + + + + + + + @@ -367,6 +380,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: 'GlGynbYsjl', components: { SignName, Sticky }, @@ -388,6 +403,8 @@ export default { tableData: [], checkedTab: 'first', ysjlId: this.$route.query.id, + departmentId: '', + tree: [], // 表格合并相关 // 参与列合并的字段,在这里增加即可 cols: [ @@ -446,11 +463,18 @@ export default { this.getYsjl(this.$route.query.id) this.getJyxm(1) } + this.getDepartment() }, beforeDestroy() { window.removeEventListener('beforeunload', this.beforeunloadHandler, false) }, methods: { + getDepartment() { + getDepartmentTreeList().then(res => { + console.log(res, 555) + this.tree = res + }) + }, /** * 签名方法 * @param data @@ -518,6 +542,7 @@ export default { this.ysjl.baogaobianhao = null // 避免从设备中取值导致信息错误 this.ysjl.jigouhezhunzhenghao = process.env.VUE_APP_HZZBH this.ysjl.beizhu = '/' + this.departmentId = this.ysjl.departmentId this.ysjl.anzhuangdidian = this.ysjl.shiyongdanweiDizhi this.$set(this.param, 'qita', '/') // 制造日期、投用日期、上次检验日期设置成正确的日期格式 @@ -534,6 +559,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) } @@ -544,6 +570,9 @@ export default { this.getParam(this.ysjl.id, this.ysjl.shebeizhongleidaima) }) }, + handleChange(v) { + this.ysjl.departmentId = v[1] + }, getParam() { const id = this.ysjlId || this.$route.query.templateId this.ysjlService.getParam(id, this.$route.query.sbzldm).then((data) => { diff --git a/src/views/ysjl/7000/jj/edit.vue b/src/views/ysjl/7000/jj/edit.vue index 0ee3d0a..5ad4623 100644 --- a/src/views/ysjl/7000/jj/edit.vue +++ b/src/views/ysjl/7000/jj/edit.vue @@ -164,6 +164,19 @@ + + + + + + + @@ -226,7 +239,7 @@ import SignName from '@/views/common/SignName' import Utils from '@/utils/contact' import merge from 'webpack-merge' import SliceUpload from '@/components/SliceUpload' - +import { getDepartmentTreeList } from '@/api/common' export default { name: 'YlgdyjYsjl', components: { SignName, Sticky, SliceUpload }, @@ -241,6 +254,7 @@ export default { state: this.$route.query.state, jianyanrenyuan: '', departmentId: this.$route.query.departmentId, + departmemtArr: [], isRepeat: false, edit: false, bgfyData: [], @@ -322,8 +336,17 @@ export default { this.getMaxBh() } this.getJyxm(1) + this.getDepartmentArr() }, methods: { + getDepartmentArr() { + getDepartmentTreeList().then(res => { + this.departmemtArr = res + }) + }, + handleChange(v) { + this.ysjl.departmentId = v[1] + }, init() { this.api({ url: '/ysjl/initYsjl', @@ -339,6 +362,7 @@ export default { } }).then(data => { this.ysjl = data.ysjl + this.templateId = this.ysjl.departmentId this.param = data.param this.ysjl.jianyanjieshuriqi = this.formatter.dateFormat('YYYY-MM-dd') this.ysjl.jianyanjielun = '符合' @@ -430,13 +454,14 @@ export default { }, getYsjl(id) { this.api({ - url: '/ysjl/getYsjlById', + url: '/ysjl', method: 'get', params: { ysjlId: id } }).then(data => { - this.ysjl = data.ysjl + this.ysjl = data + this.templateId = this.ysjl.departmentId this.complexShow = true if (this.ysjl.jianyanrenyuan !== null && this.ysjl.jianyanrenyuan.length > 0) { this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan) @@ -564,8 +589,9 @@ export default { data: { ysjl: this.ysjl, param: this.param, - jyxm: JSON.stringify(this.tableData), - flag: operation + cyJyxm:{ + jyxm: JSON.stringify(this.tableData), + } } }).then(data => { Utils.$emit('mission-list') diff --git a/src/views/ysjl/8000/dj/edit.vue b/src/views/ysjl/8000/dj/edit.vue index fcfedfa..c1959f7 100644 --- a/src/views/ysjl/8000/dj/edit.vue +++ b/src/views/ysjl/8000/dj/edit.vue @@ -392,6 +392,19 @@ + + + + + + + @@ -768,6 +781,7 @@ import Sticky from '@/components/Sticky' import jyfa from '../../addJyfa' import SignName from '@/views/common/SignName' import Utils from '../../../../utils/contact.js' +import { getDepartmentTreeList } from '@/api/common' export default { name: 'GdDjYsjl', components: { SignName, Sticky, jyfa }, @@ -793,6 +807,7 @@ export default { // 页面状态 {create=> 创建,update=> 更新} state: this.$route.params.state, ysjl: this.$route.query.ysjl, + departmemtArr: [], departmentId: this.$route.query.ysjl.departmentId, param: (this.$route.query.param === null || this.$route.query.param === undefined) ? Object.assign({}, this.defaultParam) : this.$route.query.param, checkedTab: 'first', @@ -908,6 +923,7 @@ export default { this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan) } }) + this.getDepartmentArr() }, mounted() { const that = this @@ -916,6 +932,14 @@ export default { }) }, methods: { + getDepartmentArr() { + getDepartmentTreeList().then(res => { + this.departmemtArr = res + }) + }, + handleChange(v) { + this.ysjl.departmentId = v[1] + }, // 签名方法 singNameValue(data) { this.jianyanrenyuan = data.name diff --git a/src/views/ysjl/F000/dj/edit.vue b/src/views/ysjl/F000/dj/edit.vue index 01cb1f8..6bf7fd7 100644 --- a/src/views/ysjl/F000/dj/edit.vue +++ b/src/views/ysjl/F000/dj/edit.vue @@ -505,13 +505,13 @@ 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.ysjl.xiacijianyanriqishuoming = '—' if (this.ysjl.jianyanrenyuan) { this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan)