|
@ -164,6 +164,20 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
|
|
|
<el-row :gutter="20"> |
|
|
|
|
|
<el-col :span="18"> |
|
|
|
|
|
<el-form-item label="检验类别" prop="jianyanleibie" label-width="300px"> |
|
|
|
|
|
<el-radio-group v-model="ysjl.jianyanleibie"> |
|
|
|
|
|
<el-radio label="SC"> |
|
|
|
|
|
首次检验 |
|
|
|
|
|
</el-radio> |
|
|
|
|
|
<el-radio label="DQ"> |
|
|
|
|
|
定期检验 |
|
|
|
|
|
</el-radio> |
|
|
|
|
|
</el-radio-group> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
</fieldset> |
|
|
</fieldset> |
|
|
<fieldset> |
|
|
<fieldset> |
|
|
<legend>设备技术参数</legend> |
|
|
<legend>设备技术参数</legend> |
|
@ -329,6 +343,7 @@ |
|
|
<el-table ref="sybjSData" :data="sybjSData" :span-method="tableJs.mergeColRows" border stripe style="width:90%"> |
|
|
<el-table ref="sybjSData" :data="sybjSData" :span-method="tableJs.mergeColRows" border stripe style="width:90%"> |
|
|
<el-table-column align="center" label="检验项目"> |
|
|
<el-table-column align="center" label="检验项目"> |
|
|
<el-table-column align="center" prop="jianyanxiang" width="200" /> |
|
|
<el-table-column align="center" prop="jianyanxiang" width="200" /> |
|
|
|
|
|
<el-table-column align="center" prop="jianyanmu" width="200" /> |
|
|
<el-table-column align="left" prop="jianyanneirong" /> |
|
|
<el-table-column align="left" prop="jianyanneirong" /> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column align="center" prop="D1" label="检验结果"> |
|
|
<el-table-column align="center" prop="D1" label="检验结果"> |
|
@ -373,7 +388,6 @@ export default { |
|
|
edit: false, |
|
|
edit: false, |
|
|
sybjSData: [], |
|
|
sybjSData: [], |
|
|
tableData: [], |
|
|
tableData: [], |
|
|
users: [], |
|
|
|
|
|
checkedTab: 'first', |
|
|
checkedTab: 'first', |
|
|
ysjlId: this.$route.query.id, |
|
|
ysjlId: this.$route.query.id, |
|
|
// 表格合并相关 |
|
|
// 表格合并相关 |
|
@ -384,9 +398,28 @@ export default { |
|
|
getValue(row) { // 该列用于比较的值的获取方法 |
|
|
getValue(row) { // 该列用于比较的值的获取方法 |
|
|
return row.jianyanxiang |
|
|
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: { |
|
|
computed: { |
|
@ -415,18 +448,11 @@ export default { |
|
|
this.getYsjl(this.$route.query.id) |
|
|
this.getYsjl(this.$route.query.id) |
|
|
this.getJyxm(1) |
|
|
this.getJyxm(1) |
|
|
} |
|
|
} |
|
|
this.getUserList() |
|
|
|
|
|
this.getDepartmentArr() |
|
|
|
|
|
}, |
|
|
}, |
|
|
beforeDestroy() { |
|
|
beforeDestroy() { |
|
|
window.removeEventListener('beforeunload', this.beforeunloadHandler, false) |
|
|
window.removeEventListener('beforeunload', this.beforeunloadHandler, false) |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
getDepartmentArr() { |
|
|
|
|
|
getDepartmentTreeList().then(res => { |
|
|
|
|
|
this.departmemtArr = res |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
/** |
|
|
/** |
|
|
* 签名方法 |
|
|
* 签名方法 |
|
|
* @param data |
|
|
* @param data |
|
@ -520,16 +546,9 @@ export default { |
|
|
this.getParam(this.ysjl.id, this.ysjl.shebeizhongleidaima) |
|
|
this.getParam(this.ysjl.id, this.ysjl.shebeizhongleidaima) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
getParam(ysjlId, sbzldm) { |
|
|
getParam() { |
|
|
// 根据原始记录id查询参数 |
|
|
const id = this.ysjlId || this.$route.query.templateId |
|
|
this.api({ |
|
|
this.ysjlService.getParam(id, this.$route.query.sbzldm).then((data) => { |
|
|
url: '/ysjl/getParamByYsjlId', |
|
|
|
|
|
method: 'get', |
|
|
|
|
|
params: { |
|
|
|
|
|
ysjlId: ysjlId, |
|
|
|
|
|
sbzldm: sbzldm |
|
|
|
|
|
} |
|
|
|
|
|
}).then(data => { |
|
|
|
|
|
this.param = data |
|
|
this.param = data |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
@ -539,7 +558,7 @@ export default { |
|
|
.getJdCyJyxm(this.ysjlId, this.$route.query.templateId, sort) |
|
|
.getJdCyJyxm(this.ysjlId, this.$route.query.templateId, sort) |
|
|
.then((data) => { |
|
|
.then((data) => { |
|
|
this.sybjSData = data |
|
|
this.sybjSData = data |
|
|
this.tableJs.getData(this.cols, undefined, this.sybjSData) |
|
|
this.tableJs.getData(this.cols, this.rows, this.sybjSData) |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
this.jyxmService |
|
|
this.jyxmService |
|
@ -549,18 +568,10 @@ export default { |
|
|
row.dicJyxmId = row.id |
|
|
row.dicJyxmId = row.id |
|
|
}) |
|
|
}) |
|
|
this.sybjSData = data |
|
|
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) { |
|
|
saveYsjl: function(operation) { |
|
|
if (operation === 'add') { |
|
|
if (operation === 'add') { |
|
|
if (this.jlbh3.trim() === '') { |
|
|
if (this.jlbh3.trim() === '') { |
|
|