|
@ -666,7 +666,7 @@ |
|
|
<Table ref="table2" :tabel-header="arrayGroup[1].header" :table-data.sync="fubiao2" /> |
|
|
<Table ref="table2" :tabel-header="arrayGroup[1].header" :table-data.sync="fubiao2" /> |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
<el-tab-pane v-if="fromType === 1 || fromType === 3" label="附表3" name="six"> |
|
|
<el-tab-pane v-if="fromType === 1 || fromType === 3" label="附表3" name="six"> |
|
|
<phxsb ref="table3" :table-data.sync="fubiao3" :pic="pic" :ysjl-param.sync="param" /> |
|
|
<phxsb ref="table3" :table-data.sync="fubiao3" :ysjl-param.sync="param" @loadPhxsImage="loadPhxsImage" /> |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
</template> |
|
|
</template> |
|
|
</el-tabs> |
|
|
</el-tabs> |
|
@ -950,6 +950,13 @@ export default { |
|
|
this.signNameValue(data) |
|
|
this.signNameValue(data) |
|
|
}, |
|
|
}, |
|
|
saveYsjl(operation) { |
|
|
saveYsjl(operation) { |
|
|
|
|
|
if (operation !== 'add' && this.pic) { |
|
|
|
|
|
this.uploadPhxsBase64File(operation) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.buildSaveData(operation) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
buildSaveData(operation) { |
|
|
const tableData = [] |
|
|
const tableData = [] |
|
|
let fubiao |
|
|
let fubiao |
|
|
if (this.fromType === 5) { |
|
|
if (this.fromType === 5) { |
|
@ -975,20 +982,14 @@ export default { |
|
|
this.save(operation, 'post', tableData, fubiao) |
|
|
this.save(operation, 'post', tableData, fubiao) |
|
|
} else if (operation === 'build') { |
|
|
} else if (operation === 'build') { |
|
|
this.ysjl.baogaobianhao = this.ysjl.jilubianhao |
|
|
this.ysjl.baogaobianhao = this.ysjl.jilubianhao |
|
|
if ( |
|
|
if (this.ysjl.jilubianhao && this.ysjl.jilubianhao.indexOf('COPY') > -1) { |
|
|
this.ysjl.jilubianhao && |
|
|
|
|
|
this.ysjl.jilubianhao.indexOf('COPY') > -1 |
|
|
|
|
|
) { |
|
|
|
|
|
this.$message({ |
|
|
this.$message({ |
|
|
type: 'error', |
|
|
type: 'error', |
|
|
message: '请先修改报告编号,不允许携带COPY标志生成报告!' |
|
|
message: '请先修改报告编号,不允许携带COPY标志生成报告!' |
|
|
}) |
|
|
}) |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
if ( |
|
|
if (this.ysjl.jianyanrenyuan === null || this.ysjl.jianyanrenyuan === '') { |
|
|
this.ysjl.jianyanrenyuan === null || |
|
|
|
|
|
this.ysjl.jianyanrenyuan === '' |
|
|
|
|
|
) { |
|
|
|
|
|
this.$message({ |
|
|
this.$message({ |
|
|
type: 'error', |
|
|
type: 'error', |
|
|
message: '请先签名再生成报告!' |
|
|
message: '请先签名再生成报告!' |
|
@ -997,9 +998,7 @@ export default { |
|
|
} |
|
|
} |
|
|
for (let i = 0; i < this.bgfyData.length; i++) { |
|
|
for (let i = 0; i < this.bgfyData.length; i++) { |
|
|
if (!this.bgfyData[i].jianjianyuan || !this.bgfyData[i].querenriqi) { |
|
|
if (!this.bgfyData[i].jianjianyuan || !this.bgfyData[i].querenriqi) { |
|
|
this.$message.error( |
|
|
this.$message.error('请将检验项目中的监检人员及监检日期填写完毕,再生成报告!') |
|
|
'请将检验项目中的监检人员及监检日期填写完毕,再生成报告!' |
|
|
|
|
|
) |
|
|
|
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -1008,7 +1007,6 @@ export default { |
|
|
this.save(operation, 'put', tableData, fubiao) |
|
|
this.save(operation, 'put', tableData, fubiao) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
save(operation, type, jyxm, fubiao) { |
|
|
save(operation, type, jyxm, fubiao) { |
|
|
if (this.fromType !== 5) this.ysjl.imagePath = this.$refs.table1.imgPath |
|
|
if (this.fromType !== 5) this.ysjl.imagePath = this.$refs.table1.imgPath |
|
|
|
|
|
|
|
@ -1043,6 +1041,7 @@ export default { |
|
|
this.ysjl.id = data |
|
|
this.ysjl.id = data |
|
|
this.param.ysjlId = data |
|
|
this.param.ysjlId = data |
|
|
this.$message({ message: '保存成功', type: 'success' }) |
|
|
this.$message({ message: '保存成功', type: 'success' }) |
|
|
|
|
|
this.uploadPhxsBase64File() |
|
|
// 刷新路由网址 |
|
|
// 刷新路由网址 |
|
|
this.common.reloadViewToUpdateYsjl(this.ysjl) |
|
|
this.common.reloadViewToUpdateYsjl(this.ysjl) |
|
|
} else if (operation === 'upd') { |
|
|
} else if (operation === 'upd') { |
|
@ -1070,6 +1069,23 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 上传平衡系数表 |
|
|
|
|
|
*/ |
|
|
|
|
|
uploadPhxsBase64File(operation) { |
|
|
|
|
|
if (!this.pic) { |
|
|
|
|
|
return false |
|
|
|
|
|
} |
|
|
|
|
|
this.uploadService.uploadPhxsBase64File({ |
|
|
|
|
|
ysjlId: this.ysjl.id, |
|
|
|
|
|
base64File: this.pic |
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
if (operation !== 'add') { |
|
|
|
|
|
this.buildSaveData(operation) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 格式化监检员 |
|
|
* 格式化监检员 |
|
|
*/ |
|
|
*/ |
|
@ -1175,6 +1191,9 @@ export default { |
|
|
}, |
|
|
}, |
|
|
querySearchGzjz: function(queryString, cb, $index) { |
|
|
querySearchGzjz: function(queryString, cb, $index) { |
|
|
cb([this.dicGzjz[$index]]) |
|
|
cb([this.dicGzjz[$index]]) |
|
|
|
|
|
}, |
|
|
|
|
|
loadPhxsImage(data) { |
|
|
|
|
|
this.pic = data |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|