|
|
@ -3,11 +3,10 @@ |
|
|
<div class="flex" :class="getFlexClass()"> |
|
|
<div class="flex" :class="getFlexClass()"> |
|
|
<!-- @copy.native.capture.prevent="handleFalse" |
|
|
<!-- @copy.native.capture.prevent="handleFalse" |
|
|
@cut.native.capture.prevent="handleFalse" --> |
|
|
@cut.native.capture.prevent="handleFalse" --> |
|
|
<el-input |
|
|
|
|
|
v-if="type === 'input'" :maxlength="item.maxlength || 50" :disabled="getDisabled()" |
|
|
|
|
|
:class="getFillTypeStyle() + (orangeBg ? ' orange-bg' : '')" @blur="onBlur" |
|
|
|
|
|
type = "textarea" :autosize="{ minRows: 1, maxRows: 6 }" resize = "none" |
|
|
|
|
|
:placeholder="getPlaceholder()" v-model="inputValue" @input="onInputChange" @change="onInputChange" /> |
|
|
|
|
|
|
|
|
<el-input v-if="type === 'input'" :maxlength="item.maxlength || 50" :disabled="getDisabled()" |
|
|
|
|
|
:class="getFillTypeStyle() + (orangeBg ? ' orange-bg' : '')" @blur="onBlur" type="textarea" |
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 6 }" resize="none" :placeholder="getPlaceholder()" |
|
|
|
|
|
v-model="inputValue" @input="onInputChange" @change="onInputChange" /> |
|
|
<el-input v-else-if="type === 'textarea'" :maxlength="item.maxlength || 1000" :disabled="getDisabled()" |
|
|
<el-input v-else-if="type === 'textarea'" :maxlength="item.maxlength || 1000" :disabled="getDisabled()" |
|
|
:class="getFillTypeStyle() + (orangeBg ? ' orange-bg' : '')" type="textarea" show-word-limit |
|
|
:class="getFillTypeStyle() + (orangeBg ? ' orange-bg' : '')" type="textarea" show-word-limit |
|
|
resize="none" @blur="onBlur" :rows="item.rows || 3" :placeholder="getPlaceholder()" v-model="inputValue" |
|
|
resize="none" @blur="onBlur" :rows="item.rows || 3" :placeholder="getPlaceholder()" v-model="inputValue" |
|
|
@ -20,9 +19,8 @@ |
|
|
<el-select v-else-if="type === 'select'" class="flex1" :multiple="item.multiple" |
|
|
<el-select v-else-if="type === 'select'" class="flex1" :multiple="item.multiple" |
|
|
:class="getFillTypeStyle() + (orangeBg ? ' orange-bg' : '')" v-model="inputValue" |
|
|
:class="getFillTypeStyle() + (orangeBg ? ' orange-bg' : '')" v-model="inputValue" |
|
|
:disabled="getDisabled()" :placeholder="getPlaceholder()" @remove-tag="onRemoveTag" |
|
|
:disabled="getDisabled()" :placeholder="getPlaceholder()" @remove-tag="onRemoveTag" |
|
|
:remote = "item.selectRemote || false" |
|
|
|
|
|
:remote-method="remoteMethod" |
|
|
|
|
|
@visible-change="onSelectBlur" @change="onInputChange" filterable> |
|
|
|
|
|
|
|
|
:remote="item.selectRemote || false" :remote-method="remoteMethod" @visible-change="onSelectBlur" |
|
|
|
|
|
@change="onInputChange" filterable> |
|
|
<el-option v-for="op in item.options" :key="op.value" :label="op.label" :value="op.value"> |
|
|
<el-option v-for="op in item.options" :key="op.value" :label="op.label" :value="op.value"> |
|
|
</el-option> |
|
|
</el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
@ -79,16 +77,10 @@ |
|
|
:format="type === 'dateTime' ? 'yyyy/MM/dd HH:mm:ss' : 'yyyy/MM/dd'" :placeholder="getPlaceholder()" |
|
|
:format="type === 'dateTime' ? 'yyyy/MM/dd HH:mm:ss' : 'yyyy/MM/dd'" :placeholder="getPlaceholder()" |
|
|
@change="(val) => onDateChange(val, type === 'dateTime' ? 'yyyy/MM/DD HH:mm:ss' : 'yyyy/MM/DD')"> |
|
|
@change="(val) => onDateChange(val, type === 'dateTime' ? 'yyyy/MM/DD HH:mm:ss' : 'yyyy/MM/DD')"> |
|
|
</el-date-picker> |
|
|
</el-date-picker> |
|
|
<el-date-picker |
|
|
|
|
|
v-else-if="type === 'dateTimeRange'" |
|
|
|
|
|
v-model="inputValue" |
|
|
|
|
|
type="datetimerange" |
|
|
|
|
|
range-separator="至" |
|
|
|
|
|
:class="getFillTypeStyle() + (orangeBg ? ' orange-bg' : '')" |
|
|
|
|
|
:disabled="getDisabled()" |
|
|
|
|
|
:picker-options="pickerOptions" |
|
|
|
|
|
@change="(val) => onDateChange(val, 'yyyy/MM/DD HH:mm:ss')" |
|
|
|
|
|
start-placeholder="开始日期" |
|
|
|
|
|
|
|
|
<el-date-picker v-else-if="type === 'dateTimeRange'" v-model="inputValue" type="datetimerange" |
|
|
|
|
|
range-separator="至" :class="getFillTypeStyle() + (orangeBg ? ' orange-bg' : '')" |
|
|
|
|
|
:disabled="getDisabled()" :picker-options="pickerOptions" |
|
|
|
|
|
@change="(val) => onDateChange(val, 'yyyy/MM/DD HH:mm:ss')" start-placeholder="开始日期" |
|
|
end-placeholder="结束日期"> |
|
|
end-placeholder="结束日期"> |
|
|
</el-date-picker> |
|
|
</el-date-picker> |
|
|
<el-button v-else-if="type === 'button'" :class="getFillTypeStyle() + (orangeBg ? ' orange-bg' : '')" |
|
|
<el-button v-else-if="type === 'button'" :class="getFillTypeStyle() + (orangeBg ? ' orange-bg' : '')" |
|
|
@ -112,9 +104,8 @@ |
|
|
<template v-else-if="type === 'attachment'"> |
|
|
<template v-else-if="type === 'attachment'"> |
|
|
<el-upload ref="uploadRef" class="upload-demo" :action="uploadFileUrl" :on-preview="handlePreview" |
|
|
<el-upload ref="uploadRef" class="upload-demo" :action="uploadFileUrl" :on-preview="handlePreview" |
|
|
:headers="headers" :before-remove="beforeRemove" :on-remove="handleRemove" multiple :limit="10" |
|
|
:headers="headers" :before-remove="beforeRemove" :on-remove="handleRemove" multiple :limit="10" |
|
|
:disabled="getDisabled()" |
|
|
|
|
|
:on-success="handleSuccess" :on-change="handleChange" :on-exceed="handleExceed" |
|
|
|
|
|
:file-list="fileList" :auto-upload="false"> |
|
|
|
|
|
|
|
|
:disabled="getDisabled()" :on-success="handleSuccess" :on-change="handleChange" |
|
|
|
|
|
:on-exceed="handleExceed" :file-list="fileList" :auto-upload="false"> |
|
|
<el-button :disabled="getDisabled()" :class="getFillTypeStyle() + (orangeBg ? ' orange-bg' : '')" |
|
|
<el-button :disabled="getDisabled()" :class="getFillTypeStyle() + (orangeBg ? ' orange-bg' : '')" |
|
|
size="small" type="primary">点击上传</el-button> |
|
|
size="small" type="primary">点击上传</el-button> |
|
|
<span v-if="error" class="atta-tips">请上传附件</span> |
|
|
<span v-if="error" class="atta-tips">请上传附件</span> |
|
|
@ -215,7 +206,8 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<el-dialog :close-on-click-modal="false" append-to-body :title="(templateFillType == 'actFill' || templateFillType == 'blxjsh') ? '意见回复' : '复核意见'" |
|
|
|
|
|
|
|
|
<el-dialog :close-on-click-modal="false" append-to-body |
|
|
|
|
|
:title="(templateFillType == 'actFill' || templateFillType == 'blxjsh') ? '意见回复' : '复核意见'" |
|
|
:visible.sync="visible" width="30%"> |
|
|
:visible.sync="visible" width="30%"> |
|
|
<el-input v-model="replyContent" type="textarea" show-word-limit resize="none" rows="8" placeholder="输入内容" |
|
|
<el-input v-model="replyContent" type="textarea" show-word-limit resize="none" rows="8" placeholder="输入内容" |
|
|
maxlength="500" /> |
|
|
maxlength="500" /> |
|
|
@ -232,12 +224,12 @@ import Question from "./icons/Question.vue"; |
|
|
import DecimalInput from "./DecimalInput.vue"; |
|
|
import DecimalInput from "./DecimalInput.vue"; |
|
|
import { EventBus } from "@/utils/eventBus"; |
|
|
import { EventBus } from "@/utils/eventBus"; |
|
|
import moment from "moment"; |
|
|
import moment from "moment"; |
|
|
import { getuuid, isEqual, deepClone, getDefaultValueByOptions, isValueEmpty,isRegent } from "@/utils/index.js"; |
|
|
|
|
|
|
|
|
import { getuuid, isEqual, deepClone, getDefaultValueByOptions, isValueEmpty, isRegent } from "@/utils/index.js"; |
|
|
import { getToken } from "@/utils/auth"; |
|
|
import { getToken } from "@/utils/auth"; |
|
|
import { isShowOtherByCheckboxTree } from "@/utils/formPackageCommon"; |
|
|
import { isShowOtherByCheckboxTree } from "@/utils/formPackageCommon"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
inject: ['templateData', 'templateFillType',"getSubmittedCodes","updateSubmittedCodes", "getZdxgjl", "getFhyjjl", "updateZdxgjl", "replaceFhyjjl", "updateFhyjjl", "getFieldCheckObj", "updateFieldCheckObj"], |
|
|
|
|
|
|
|
|
inject: ['templateData', 'templateFillType', "getSubmittedCodes", "updateSubmittedCodes", "getZdxgjl", "getFhyjjl", "updateZdxgjl", "replaceFhyjjl", "updateFhyjjl", "getFieldCheckObj", "updateFieldCheckObj"], |
|
|
components: { |
|
|
components: { |
|
|
Question, |
|
|
Question, |
|
|
DecimalInput, |
|
|
DecimalInput, |
|
|
@ -307,7 +299,7 @@ export default { |
|
|
const defaultCheckedValue = getDefaultValueByOptions(this.item.options || []); |
|
|
const defaultCheckedValue = getDefaultValueByOptions(this.item.options || []); |
|
|
initialValue = { checkedValues: defaultCheckedValue, otherValues: {} }; |
|
|
initialValue = { checkedValues: defaultCheckedValue, otherValues: {} }; |
|
|
} |
|
|
} |
|
|
const {type} = this; |
|
|
|
|
|
|
|
|
const { type } = this; |
|
|
return { |
|
|
return { |
|
|
inputValue: initialValue, |
|
|
inputValue: initialValue, |
|
|
oldValue: typeof initialValue === 'object' ? JSON.parse(JSON.stringify(initialValue)) : initialValue, // 记录上一次的值 |
|
|
oldValue: typeof initialValue === 'object' ? JSON.parse(JSON.stringify(initialValue)) : initialValue, // 记录上一次的值 |
|
|
@ -343,7 +335,7 @@ export default { |
|
|
// disabledDate(time) { |
|
|
// disabledDate(time) { |
|
|
// return time.getTime() > Date.now(); |
|
|
// return time.getTime() > Date.now(); |
|
|
// }, |
|
|
// }, |
|
|
shortcuts: type === 'dateTimeRange' ? undefined:[{ |
|
|
|
|
|
|
|
|
shortcuts: type === 'dateTimeRange' ? undefined : [{ |
|
|
text: '今天', |
|
|
text: '今天', |
|
|
onClick(picker) { |
|
|
onClick(picker) { |
|
|
picker.$emit('pick', new Date()); |
|
|
picker.$emit('pick', new Date()); |
|
|
@ -354,7 +346,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
watch: { |
|
|
watch: { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
value(newVal) { |
|
|
value(newVal) { |
|
|
if (this.type === 'checkboxTag' && Array.isArray(newVal)) { |
|
|
if (this.type === 'checkboxTag' && Array.isArray(newVal)) { |
|
|
// checkboxTag类型,value是数组格式 |
|
|
// checkboxTag类型,value是数组格式 |
|
|
@ -412,7 +404,7 @@ export default { |
|
|
return false; |
|
|
return false; |
|
|
}, |
|
|
}, |
|
|
getFlexClass() { |
|
|
getFlexClass() { |
|
|
const noFlexArr = ["radio", "checkboxTag", "fqyq"] |
|
|
|
|
|
|
|
|
const noFlexArr = ["radio", "checkboxTag", "fqyq","button"] |
|
|
return noFlexArr.includes(this.type) ? '' : 'flex1' |
|
|
return noFlexArr.includes(this.type) ? '' : 'flex1' |
|
|
}, |
|
|
}, |
|
|
getDecimalDigits() { |
|
|
getDecimalDigits() { |
|
|
@ -524,7 +516,7 @@ export default { |
|
|
// 所有删除操作都需要验证电子签名 |
|
|
// 所有删除操作都需要验证电子签名 |
|
|
// 保存待删除的文件信息 |
|
|
// 保存待删除的文件信息 |
|
|
this.pendingRemoveFile = { file, fileList: this.fileList }; |
|
|
this.pendingRemoveFile = { file, fileList: this.fileList }; |
|
|
console.log("fillll") |
|
|
|
|
|
|
|
|
console.log("fillll") |
|
|
// 触发电子签名弹窗 |
|
|
// 触发电子签名弹窗 |
|
|
EventBus.$emit('showEditSignDialog', { uuid: this.uuid }); |
|
|
EventBus.$emit('showEditSignDialog', { uuid: this.uuid }); |
|
|
|
|
|
|
|
|
@ -611,8 +603,8 @@ console.log("fillll") |
|
|
this.inputValue = data.selectedId; |
|
|
this.inputValue = data.selectedId; |
|
|
const { filledCodes = [] } = this.item; |
|
|
const { filledCodes = [] } = this.item; |
|
|
console.log(filledCodes, "filledCodes") |
|
|
console.log(filledCodes, "filledCodes") |
|
|
const { selectInfo, row,checkType } = data; |
|
|
|
|
|
if (filledCodes.length > 0 && checkType !=="checkbox") { |
|
|
|
|
|
|
|
|
const { selectInfo, row, checkType } = data; |
|
|
|
|
|
if (filledCodes.length > 0 && checkType !== "checkbox") { |
|
|
this.inputValue = row[filledCodes[0]] + "(" + row[filledCodes[1]] + ")"; |
|
|
this.inputValue = row[filledCodes[0]] + "(" + row[filledCodes[1]] + ")"; |
|
|
} |
|
|
} |
|
|
this.selectRegentInfo = data; |
|
|
this.selectRegentInfo = data; |
|
|
@ -621,7 +613,7 @@ console.log("fillll") |
|
|
}, |
|
|
}, |
|
|
//统一处理试剂/供试品等弹窗 |
|
|
//统一处理试剂/供试品等弹窗 |
|
|
onCommonHandleRegent(item, type) { |
|
|
onCommonHandleRegent(item, type) { |
|
|
const {fillType = "actFill"} = item; |
|
|
|
|
|
|
|
|
const { fillType = "actFill" } = item; |
|
|
if (this.templateFillType !== fillType) { |
|
|
if (this.templateFillType !== fillType) { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
@ -651,10 +643,10 @@ console.log("fillll") |
|
|
}; |
|
|
}; |
|
|
if (type === "mix") { |
|
|
if (type === "mix") { |
|
|
params.mixType = true; |
|
|
params.mixType = true; |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
if (item.qxbdType) { |
|
|
if (item.qxbdType) { |
|
|
params.qxbdType = item.qxbdType; |
|
|
params.qxbdType = item.qxbdType; |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
if (item.checkType) { |
|
|
if (item.checkType) { |
|
|
params.checkType = item.checkType; |
|
|
params.checkType = item.checkType; |
|
|
} |
|
|
} |
|
|
@ -670,7 +662,7 @@ console.log("fillll") |
|
|
onDateChange(val, format) { |
|
|
onDateChange(val, format) { |
|
|
if (this.type === 'dateTimeRange') { |
|
|
if (this.type === 'dateTimeRange') { |
|
|
this.inputValue = [moment(val[0]).format(format), moment(val[1]).format(format)]; |
|
|
this.inputValue = [moment(val[0]).format(format), moment(val[1]).format(format)]; |
|
|
}else{ |
|
|
|
|
|
|
|
|
} else { |
|
|
this.inputValue = moment(val).format(format); |
|
|
this.inputValue = moment(val).format(format); |
|
|
} |
|
|
} |
|
|
this.onCommonHandleSaveRecord(this.inputValue); |
|
|
this.onCommonHandleSaveRecord(this.inputValue); |
|
|
@ -742,7 +734,7 @@ console.log("fillll") |
|
|
}, |
|
|
}, |
|
|
getFillTypeStyle(type) { |
|
|
getFillTypeStyle(type) { |
|
|
const { fillType } = this.item; |
|
|
const { fillType } = this.item; |
|
|
const filterType = ["attachment", "checkboxTag", "fqyq", "checkboxTree","radio"] |
|
|
|
|
|
|
|
|
const filterType = ["attachment", "checkboxTag", "fqyq", "checkboxTree", "radio"] |
|
|
const typeObj = { |
|
|
const typeObj = { |
|
|
actFill: "orange-border",//实际填写的边框颜色 |
|
|
actFill: "orange-border",//实际填写的边框颜色 |
|
|
blxjsh: "orange-border",//实际填写的边框颜色 |
|
|
blxjsh: "orange-border",//实际填写的边框颜色 |
|
|
@ -1098,10 +1090,10 @@ console.log("fillll") |
|
|
const { mainRadio: oldMainRadio, inputValue: oldInputValue, subRadio: oldSubRadio } = this.oldFqyqValue; |
|
|
const { mainRadio: oldMainRadio, inputValue: oldInputValue, subRadio: oldSubRadio } = this.oldFqyqValue; |
|
|
const o = { |
|
|
const o = { |
|
|
"mainRadio": { oldValue: oldMainRadio, newValue: mainRadio, des: "" }, |
|
|
"mainRadio": { oldValue: oldMainRadio, newValue: mainRadio, des: "" }, |
|
|
"inputValue": { oldValue: oldInputValue, newValue: inputValue, des: "",key: this.fieldKey+"_inputValue" }, |
|
|
|
|
|
|
|
|
"inputValue": { oldValue: oldInputValue, newValue: inputValue, des: "", key: this.fieldKey + "_inputValue" }, |
|
|
"subRadio": { oldValue: oldSubRadio, newValue: subRadio, des: "是否在规定时间完成:" } |
|
|
"subRadio": { oldValue: oldSubRadio, newValue: subRadio, des: "是否在规定时间完成:" } |
|
|
} |
|
|
} |
|
|
console.log(o, this.currentHandleType, this.fqyqValue,"fqyqValue") |
|
|
|
|
|
|
|
|
console.log(o, this.currentHandleType, this.fqyqValue, "fqyqValue") |
|
|
return o[this.currentHandleType]; |
|
|
return o[this.currentHandleType]; |
|
|
}, |
|
|
}, |
|
|
getCheckboxTreeInfo() { |
|
|
getCheckboxTreeInfo() { |
|
|
@ -1112,7 +1104,7 @@ console.log("fillll") |
|
|
const oldItem = oldCheckedValues.find(item => item.label === currentCheckboxTreeValue); |
|
|
const oldItem = oldCheckedValues.find(item => item.label === currentCheckboxTreeValue); |
|
|
const o = { |
|
|
const o = { |
|
|
"checkboxTreeCheckbox": { oldValue: oldItem, newValue: newItem, des: "" }, |
|
|
"checkboxTreeCheckbox": { oldValue: oldItem, newValue: newItem, des: "" }, |
|
|
"checkboxTreeOther": { oldValue: oldOtherValues[currentCheckboxTreeValue], newValue: otherValues[currentCheckboxTreeValue], des: `${currentCheckboxTreeValue}:`,key: this.fieldKey+"_"+currentCheckboxTreeValue }, |
|
|
|
|
|
|
|
|
"checkboxTreeOther": { oldValue: oldOtherValues[currentCheckboxTreeValue], newValue: otherValues[currentCheckboxTreeValue], des: `${currentCheckboxTreeValue}:`, key: this.fieldKey + "_" + currentCheckboxTreeValue }, |
|
|
} |
|
|
} |
|
|
return o[currentHandleType]; |
|
|
return o[currentHandleType]; |
|
|
}, |
|
|
}, |
|
|
@ -1171,9 +1163,9 @@ console.log("fillll") |
|
|
} else if (this.type === "fqyq") { |
|
|
} else if (this.type === "fqyq") { |
|
|
const current = this.getFqyqInfo(); |
|
|
const current = this.getFqyqInfo(); |
|
|
isSame = isEqual(current.oldValue, current.newValue); |
|
|
isSame = isEqual(current.oldValue, current.newValue); |
|
|
if(this.currentHandleType === "inputValue"){ |
|
|
|
|
|
isOldValueEmpty =this.isUnSubmitted(current.key); |
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
|
if (this.currentHandleType === "inputValue") { |
|
|
|
|
|
isOldValueEmpty = this.isUnSubmitted(current.key); |
|
|
|
|
|
} else { |
|
|
isOldValueEmpty = isValueEmpty(current.oldValue); |
|
|
isOldValueEmpty = isValueEmpty(current.oldValue); |
|
|
} |
|
|
} |
|
|
} else if (this.type === "checkboxTree") { |
|
|
} else if (this.type === "checkboxTree") { |
|
|
@ -1188,10 +1180,10 @@ console.log("fillll") |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if(this.type === "checkbox"){ |
|
|
|
|
|
|
|
|
} else if (this.type === "checkbox") { |
|
|
isSame = isEqual(this.oldValue, this.inputValue) |
|
|
isSame = isEqual(this.oldValue, this.inputValue) |
|
|
isOldValueEmpty =this.isUnSubmitted(); |
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
|
isOldValueEmpty = this.isUnSubmitted(); |
|
|
|
|
|
} else { |
|
|
isSame = isEqual(this.oldValue, this.inputValue) |
|
|
isSame = isEqual(this.oldValue, this.inputValue) |
|
|
isOldValueEmpty = this.isUnSubmitted(); |
|
|
isOldValueEmpty = this.isUnSubmitted(); |
|
|
} |
|
|
} |
|
|
@ -1199,7 +1191,7 @@ console.log("fillll") |
|
|
if (isSame) { |
|
|
if (isSame) { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
if (!isOldValueEmpty && !(isSame) && (this.templateFillType === "actFill" || this.templateFillType === "blxjsh")&&this.type !== "attachment") { |
|
|
|
|
|
|
|
|
if (!isOldValueEmpty && !(isSame) && (this.templateFillType === "actFill" || this.templateFillType === "blxjsh") && this.type !== "attachment") { |
|
|
console.log("需要电子签名") |
|
|
console.log("需要电子签名") |
|
|
// 通过EventBus触发电子签名弹窗 |
|
|
// 通过EventBus触发电子签名弹窗 |
|
|
EventBus.$emit('showEditSignDialog', { uuid: this.uuid }); |
|
|
EventBus.$emit('showEditSignDialog', { uuid: this.uuid }); |
|
|
@ -1209,9 +1201,9 @@ console.log("fillll") |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//是否提交过 |
|
|
//是否提交过 |
|
|
isUnSubmitted(key){ |
|
|
|
|
|
|
|
|
isUnSubmitted(key) { |
|
|
const finallyKey = key || this.fieldKey; |
|
|
const finallyKey = key || this.fieldKey; |
|
|
const has = this.getSubmittedCodes().includes(finallyKey) |
|
|
|
|
|
|
|
|
const has = this.getSubmittedCodes().includes(finallyKey) |
|
|
return !has; |
|
|
return !has; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -1265,7 +1257,7 @@ console.log("fillll") |
|
|
const current = this.getFqyqInfo(); |
|
|
const current = this.getFqyqInfo(); |
|
|
recordOldVlaue = `${current.des + current.oldValue}`; |
|
|
recordOldVlaue = `${current.des + current.oldValue}`; |
|
|
recordValue = `${current.des + current.newValue}`; |
|
|
recordValue = `${current.des + current.newValue}`; |
|
|
if(this.currentHandleType === "inputValue"){ |
|
|
|
|
|
|
|
|
if (this.currentHandleType === "inputValue") { |
|
|
finallyKey = current.key; |
|
|
finallyKey = current.key; |
|
|
} |
|
|
} |
|
|
isModify = !!this.oldFqyqValue.mainRadio |
|
|
isModify = !!this.oldFqyqValue.mainRadio |
|
|
@ -1283,11 +1275,11 @@ console.log("fillll") |
|
|
recordValue = `${current.des + (current.newValue || '')}`; |
|
|
recordValue = `${current.des + (current.newValue || '')}`; |
|
|
isModify = !!current.oldValue; |
|
|
isModify = !!current.oldValue; |
|
|
} |
|
|
} |
|
|
}else if(this.type === "checkbox"){ |
|
|
|
|
|
recordOldVlaue = `${this.item.checkboxLabel || ""}:${this.oldValue?'勾选':'未勾选'}`; |
|
|
|
|
|
recordValue = `${this.item.checkboxLabel||""}:${this.inputValue?'勾选':'未勾选'}`; |
|
|
|
|
|
|
|
|
} else if (this.type === "checkbox") { |
|
|
|
|
|
recordOldVlaue = `${this.item.checkboxLabel || ""}:${this.oldValue ? '勾选' : '未勾选'}`; |
|
|
|
|
|
recordValue = `${this.item.checkboxLabel || ""}:${this.inputValue ? '勾选' : '未勾选'}`; |
|
|
isModify = this.oldValue !== ''; |
|
|
isModify = this.oldValue !== ''; |
|
|
}else if(this.type === "attachment"){ |
|
|
|
|
|
|
|
|
} else if (this.type === "attachment") { |
|
|
const attList = JSON.parse(recordValue); |
|
|
const attList = JSON.parse(recordValue); |
|
|
const oldAttList = JSON.parse(recordOldVlaue || "[]"); |
|
|
const oldAttList = JSON.parse(recordOldVlaue || "[]"); |
|
|
recordValue = attList.map(item => item.name).join(";"); |
|
|
recordValue = attList.map(item => item.name).join(";"); |
|
|
@ -1423,7 +1415,7 @@ console.log("fillll") |
|
|
return this.templateFillType !== "preFill" |
|
|
return this.templateFillType !== "preFill" |
|
|
} else if (fillType === "blxjsh") {//当模板状态是预填写时,只有当fillType是blxjsh才能填写 |
|
|
} else if (fillType === "blxjsh") {//当模板状态是预填写时,只有当fillType是blxjsh才能填写 |
|
|
return this.templateFillType !== "blxjsh" |
|
|
return this.templateFillType !== "blxjsh" |
|
|
}else { |
|
|
|
|
|
|
|
|
} else { |
|
|
return true |
|
|
return true |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -1631,6 +1623,7 @@ console.log("fillll") |
|
|
.el-checkbox__inner { |
|
|
.el-checkbox__inner { |
|
|
border-color: #f9c588 !important; |
|
|
border-color: #f9c588 !important; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
&.is-checked { |
|
|
&.is-checked { |
|
|
.el-checkbox__label { |
|
|
.el-checkbox__label { |
|
|
color: #606266; |
|
|
color: #606266; |
|
|
@ -1859,6 +1852,7 @@ console.log("fillll") |
|
|
color: #606266; |
|
|
color: #606266; |
|
|
flex: 1; |
|
|
flex: 1; |
|
|
background-color: #fff; |
|
|
background-color: #fff; |
|
|
|
|
|
|
|
|
&.disabled { |
|
|
&.disabled { |
|
|
cursor: not-allowed; |
|
|
cursor: not-allowed; |
|
|
color: #c0c4cc; |
|
|
color: #c0c4cc; |
|
|
@ -2069,6 +2063,7 @@ console.log("fillll") |
|
|
border-radius: 4px; |
|
|
border-radius: 4px; |
|
|
border: 1px solid #ff5d5d; |
|
|
border: 1px solid #ff5d5d; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.no-border { |
|
|
.no-border { |
|
|
border: none; |
|
|
border: none; |
|
|
} |
|
|
} |