|
@ -548,21 +548,21 @@ |
|
|
<fieldset> |
|
|
<fieldset> |
|
|
<legend>检验信息</legend> |
|
|
<legend>检验信息</legend> |
|
|
<el-row :gutter="20"> |
|
|
<el-row :gutter="20"> |
|
|
<el-col :span="20"> |
|
|
<el-col :span="18"> |
|
|
<el-form-item label="检验依据" prop="jianyanyiju"> |
|
|
<el-form-item label="检验依据" prop="jianyanyiju"> |
|
|
<span>{{ ysjl.jianyanyiju }}</span> |
|
|
<el-input v-model="ysjl.jianyanyiju" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row :gutter="20"> |
|
|
<el-row :gutter="20"> |
|
|
<el-col :span="20"> |
|
|
<el-col :span="18"> |
|
|
<el-form-item label="主要检验仪器和设备" prop="gongjuxianghao"> |
|
|
<el-form-item label="主要检验仪器和设备" prop="gongjuxianghao"> |
|
|
<el-input v-model="param.gongjuxianghao" style="width: 100px" />号检验专用工具箱 |
|
|
<el-input v-model="param.gongjuxianghao" style="width: 100px" />号检验专用工具箱 |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row :gutter="20"> |
|
|
<el-row :gutter="20"> |
|
|
<el-col :span="20"> |
|
|
<el-col :span="18"> |
|
|
<el-form-item label="检验结论" prop="jianyanjielun"> |
|
|
<el-form-item label="检验结论" prop="jianyanjielun"> |
|
|
<el-radio-group v-model="ysjl.jianyanjielun"> |
|
|
<el-radio-group v-model="ysjl.jianyanjielun"> |
|
|
<el-radio label="合格"> |
|
|
<el-radio label="合格"> |
|
@ -785,7 +785,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
initYsjl() { |
|
|
initYsjl() { |
|
|
this.ysjlController.init(this.$route.query).then((data) => { |
|
|
this.ysjlService.init(this.$route.query).then((data) => { |
|
|
this.ysjl = data.ysjl |
|
|
this.ysjl = data.ysjl |
|
|
this.param = data.param ? data.param : {} |
|
|
this.param = data.param ? data.param : {} |
|
|
this.ysjl.jianyanjieshuriqi = this.formatter.dateFormat('YYYY-MM-dd') |
|
|
this.ysjl.jianyanjieshuriqi = this.formatter.dateFormat('YYYY-MM-dd') |
|
@ -810,7 +810,7 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
getJyxmInfoByYsjl() { |
|
|
getJyxmInfoByYsjl() { |
|
|
this.ysjlController.getJyxmInfoByYsjl(this.ysjlId).then((data) => { |
|
|
this.ysjlService.getJyxmInfoByYsjl(this.ysjlId).then((data) => { |
|
|
if (!data.fbjyxm) { |
|
|
if (!data.fbjyxm) { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
@ -833,7 +833,7 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
getYsjl() { |
|
|
getYsjl() { |
|
|
this.ysjlController.getYsjl(this.ysjlId).then((data) => { |
|
|
this.ysjlService.getYsjl(this.ysjlId).then((data) => { |
|
|
this.ysjl = data |
|
|
this.ysjl = data |
|
|
this.ysjl.imagePath = '' |
|
|
this.ysjl.imagePath = '' |
|
|
if ( |
|
|
if ( |
|
@ -844,7 +844,7 @@ export default { |
|
|
this.ysjl.jianyanrenyuan |
|
|
this.ysjl.jianyanrenyuan |
|
|
) |
|
|
) |
|
|
} |
|
|
} |
|
|
this.ysjlController |
|
|
this.ysjlService |
|
|
.judgeRepeat(this.ysjl.jilubianhao, this.ysjl.id) |
|
|
.judgeRepeat(this.ysjl.jilubianhao, this.ysjl.id) |
|
|
.then((data) => { |
|
|
.then((data) => { |
|
|
this.isRepeat = data |
|
|
this.isRepeat = data |
|
@ -853,7 +853,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
getParam() { |
|
|
getParam() { |
|
|
const id = this.ysjlId || this.$route.query.templateId |
|
|
const id = this.ysjlId || this.$route.query.templateId |
|
|
this.ysjlController |
|
|
this.ysjlService |
|
|
.getParam(id, this.$route.query.sbzldm) |
|
|
.getParam(id, this.$route.query.sbzldm) |
|
|
.then((data) => { |
|
|
.then((data) => { |
|
|
this.param = data |
|
|
this.param = data |
|
@ -877,19 +877,19 @@ export default { |
|
|
}, |
|
|
}, |
|
|
getJyxm(sort) { |
|
|
getJyxm(sort) { |
|
|
if (this.$route.query.state === 'update') { |
|
|
if (this.$route.query.state === 'update') { |
|
|
this.jyxmController.getJdCyJyxm(this.ysjlId, this.$route.query.templateId, sort).then((data) => { |
|
|
this.jyxmService.getJdCyJyxm(this.ysjlId, this.$route.query.templateId, sort).then((data) => { |
|
|
this.bgfyData = data |
|
|
this.bgfyData = data |
|
|
this.tableJs.getData(this.cols, this.rows, this.bgfyData) |
|
|
this.tableJs.getData(this.cols, this.rows, this.bgfyData) |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
this.jyxmController.getCyJyxm(this.$route.query.templateId, sort).then((data) => { |
|
|
this.jyxmService.getCyJyxm(this.$route.query.templateId, sort).then((data) => { |
|
|
this.bgfyData = data |
|
|
this.bgfyData = data |
|
|
this.tableJs.getData(this.cols, this.rows, this.bgfyData) |
|
|
this.tableJs.getData(this.cols, this.rows, this.bgfyData) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
getDicJyxm(sort) { |
|
|
getDicJyxm(sort) { |
|
|
this.jyxmController |
|
|
this.jyxmService |
|
|
.getCyJyxm(this.$route.query.templateId, sort) |
|
|
.getCyJyxm(this.$route.query.templateId, sort) |
|
|
.then((data) => { |
|
|
.then((data) => { |
|
|
this.dicGzjz = data.map((row) => { |
|
|
this.dicGzjz = data.map((row) => { |
|
@ -911,7 +911,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}).then((data) => { |
|
|
}).then((data) => { |
|
|
this.jlbh3 = data |
|
|
this.jlbh3 = data |
|
|
this.ysjlController |
|
|
this.ysjlService |
|
|
.judgeRepeat(this.ysjl.jilubianhao, this.ysjl.id) |
|
|
.judgeRepeat(this.ysjl.jilubianhao, this.ysjl.id) |
|
|
.then((data) => { |
|
|
.then((data) => { |
|
|
this.isRepeat = data |
|
|
this.isRepeat = data |
|
|