diff --git a/src/components/Template/CustomTable.vue b/src/components/Template/CustomTable.vue index aa3e4f2..f3bbf45 100644 --- a/src/components/Template/CustomTable.vue +++ b/src/components/Template/CustomTable.vue @@ -1,147 +1,159 @@ \ No newline at end of file diff --git a/src/components/Template/DecimalInput.vue b/src/components/Template/DecimalInput.vue index 1023504..cc8e23a 100644 --- a/src/components/Template/DecimalInput.vue +++ b/src/components/Template/DecimalInput.vue @@ -41,7 +41,6 @@ export default { watch: { value(newVal) { // 外部值变化时同步到内部(但不做格式化,避免干扰用户输入) - console.log(newVal,"newVal") if (newVal === '' || newVal == null) { this.internalValue = ''; } else { @@ -51,7 +50,6 @@ export default { }, methods: { handleInput(val) { - console.log(val,"val") if (val === '') { this.internalValue = ''; this.$emit('input', ''); diff --git a/src/components/Template/HandleFormItem.vue b/src/components/Template/HandleFormItem.vue index 27cb6d4..7553d9d 100644 --- a/src/components/Template/HandleFormItem.vue +++ b/src/components/Template/HandleFormItem.vue @@ -325,7 +325,6 @@ export default { // 下拉框失去焦点处理 onSelectBlur(visible) { if (!visible) { - console.log(this.inputValue, "onSelectBlur") this.onCommonHandleSaveRecord(this.inputValue); } }, @@ -382,18 +381,19 @@ export default { } else if (!this.error && isEmpty) { this.$emit('update:error', true); } + if(!this.isFieldsRecord){//是否需要记录修改记录 + this.$emit("blur", this.inputValue); + this.$emit('input', this.inputValue); + this.$emit("change", this.inputValue); + return; + } // 值发生了变化,需要弹出密码输入框 const isSame = this.isEqual(this.oldValue, this.inputValue); if(isSame){ return; } if (this.oldValue && !isSame && this.templateFillType === "actFill") { - if(!this.isFieldsRecord){//是否需要记录修改记录 - this.$emit("blur", this.inputValue); - this.$emit('input', this.inputValue); - this.$emit("change", this.inputValue); - return; - } + this.$refs.editSignRef.show() // this.handleUpdateRecord(); }else{//如果是第一次填写,不需要密码验证 diff --git a/src/components/Template/mixins/formPackageMixins.js b/src/components/Template/mixins/formPackageMixins.js index 30e4fc8..6bc3191 100644 --- a/src/components/Template/mixins/formPackageMixins.js +++ b/src/components/Template/mixins/formPackageMixins.js @@ -343,7 +343,8 @@ export default { } }, resetRecord(key){ - this.formFields = {...this.formFields, ...this.oldFormFields} + this.formFields = {...this.formFields, ...this.oldFormFields}; + this.$emit("resetRecord"); }, } } \ No newline at end of file diff --git a/src/components/Template/operation/TableOpertaion.vue b/src/components/Template/operation/TableOpertaion.vue index 3b7b0dc..1491a75 100644 --- a/src/components/Template/operation/TableOpertaion.vue +++ b/src/components/Template/operation/TableOpertaion.vue @@ -19,6 +19,7 @@