|
|
|
@ -213,7 +213,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-dialog :close-on-click-modal="false" append-to-body :title="templateFillType == 'actFill' ? '回复意见' : '复核意见'" |
|
|
|
<el-dialog :close-on-click-modal="false" append-to-body :title="(templateFillType == 'actFill' || templateFillType == 'blxjsh') ? '回复意见' : '复核意见'" |
|
|
|
:visible.sync="visible" width="30%"> |
|
|
|
<el-input v-model="replyContent" type="textarea" show-word-limit resize="none" rows="8" placeholder="输入内容" |
|
|
|
maxlength="500" /> |
|
|
|
@ -744,6 +744,7 @@ export default { |
|
|
|
const filterType = ["attachment", "checkboxTag", "fqyq", "checkboxTree","radio"] |
|
|
|
const typeObj = { |
|
|
|
actFill: "orange-border",//实际填写的边框颜色 |
|
|
|
blxjsh: "orange-border",//实际填写的边框颜色 |
|
|
|
green: "green-border", |
|
|
|
preFill: "blue-border",//预填写的边框颜色 |
|
|
|
} |
|
|
|
@ -765,10 +766,10 @@ export default { |
|
|
|
const baseInfo = this.getCommonRecordInfo(); |
|
|
|
const record = { |
|
|
|
...baseInfo, |
|
|
|
title: this.templateFillType == 'actFill' ? "回复意见" : "复核意见", |
|
|
|
title: (this.templateFillType == 'actFill' || this.templateFillType == 'blxjsh') ? "回复意见" : "复核意见", |
|
|
|
time: moment().format("YYYY-MM-DD HH:mm:ss"), |
|
|
|
} |
|
|
|
if (this.templateFillType == 'actFill') { |
|
|
|
if (this.templateFillType == 'actFill' || this.templateFillType == 'blxjsh') { |
|
|
|
record.reply = this.replyContent; |
|
|
|
const deepList = deepClone(this.getFhyjjl());//实际填报应该是修改指定的字段 |
|
|
|
const item = deepList.find(o => o.key == record.key); |
|
|
|
@ -798,7 +799,7 @@ export default { |
|
|
|
} |
|
|
|
const params = { |
|
|
|
//reply:回复,content:复核 |
|
|
|
type: this.templateFillType == 'actFill' ? "reply" : "content", |
|
|
|
type: (this.templateFillType == 'actFill' || this.templateFillType == 'blxjsh') ? "reply" : "content", |
|
|
|
newRecord: [record], |
|
|
|
resourceList: this.getFhyjjl(), |
|
|
|
} |
|
|
|
@ -1066,7 +1067,7 @@ export default { |
|
|
|
// 点击question图标 |
|
|
|
onClickQuestion() { |
|
|
|
const { templateFillType } = this; |
|
|
|
if (templateFillType == 'actFill' || templateFillType == 'qc') { |
|
|
|
if (templateFillType == 'actFill' || templateFillType == 'qc' || templateFillType == 'blxjsh') { |
|
|
|
if (templateFillType == 'qc') { |
|
|
|
const field = this.getFieldCheckObj()[this.fieldKey]; |
|
|
|
if (field && field.checked) { |
|
|
|
@ -1083,7 +1084,7 @@ export default { |
|
|
|
const o = records[0]; |
|
|
|
if (!o.reply && templateFillType == 'qc') {//如果填报人员没有回复,qc点击的时候需要回填上次填报的信息 |
|
|
|
content = o.content; |
|
|
|
} else if (templateFillType == 'actFill') {//如果qc没有复核,填报点击的时候需要回填上次填报的信息 |
|
|
|
} else if (templateFillType == 'actFill' || templateFillType == 'blxjsh') {//如果qc没有复核,填报点击的时候需要回填上次填报的信息 |
|
|
|
content = o.reply; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1197,7 +1198,7 @@ export default { |
|
|
|
if (isSame) { |
|
|
|
return; |
|
|
|
} |
|
|
|
if (!isOldValueEmpty && !(isSame) && this.templateFillType === "actFill") { |
|
|
|
if (!isOldValueEmpty && !(isSame) && (this.templateFillType === "actFill" || this.templateFillType === "blxjsh")) { |
|
|
|
// 通过EventBus触发电子签名弹窗 |
|
|
|
EventBus.$emit('showEditSignDialog', { uuid: this.uuid }); |
|
|
|
} else {//如果是第一次填写,不需要密码验证 |
|
|
|
@ -1336,7 +1337,7 @@ export default { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
if (this.templateFillType === "actFill") {//只有实际填报的时候才记录修改记录 |
|
|
|
if (this.templateFillType === "actFill" || this.templateFillType === "blxjsh") {//只有实际填报的时候才记录修改记录 |
|
|
|
this.updateZdxgjl(record); |
|
|
|
this.updateSubmittedCodes(finallyKey); |
|
|
|
} |
|
|
|
@ -1398,7 +1399,7 @@ export default { |
|
|
|
isShowHandle() { |
|
|
|
const { fillType } = this.item; |
|
|
|
//只有当模板状态不是预填时,才显示操作按钮 |
|
|
|
return this.templateFillType !== "preFill" && fillType === "actFill" && this.type !== "button" |
|
|
|
return this.templateFillType !== "preFill" && (fillType === "actFill" || fillType === "blxjsh") && this.type !== "button" |
|
|
|
}, |
|
|
|
//判断是否禁用 |
|
|
|
getDisabled() { |
|
|
|
@ -1411,7 +1412,9 @@ export default { |
|
|
|
return this.templateFillType !== "actFill" |
|
|
|
} else if (fillType === "preFill") {//当模板状态是预填写时,只有当fillType是preFill才能填写 |
|
|
|
return this.templateFillType !== "preFill" |
|
|
|
} else { |
|
|
|
} else if (fillType === "blxjsh") {//当模板状态是预填写时,只有当fillType是blxjsh才能填写 |
|
|
|
return this.templateFillType !== "blxjsh" |
|
|
|
}else { |
|
|
|
return true |
|
|
|
} |
|
|
|
} |
|
|
|
|