Browse Source

feat:[模板管理][优化]

lkf
luojie 3 months ago
parent
commit
af1dd33f8a
2 changed files with 4 additions and 19 deletions
  1. +1
    -2
      src/components/Template/HandleFormItem.vue
  2. +3
    -17
      src/views/business/comps/template/TemplateTable.vue

+ 1
- 2
src/components/Template/HandleFormItem.vue View File

@ -101,7 +101,7 @@ import DecimalInput from "./DecimalInput.vue";
import { EventBus } from "@/utils/eventBus";
import moment from "moment";
import { deepClone } from "@/utils/index";
import EditSign from "@/views/business/comps/template/dialog/EditSign.vue"
import EditSign from "@/views/business/comps/template/dialog/EditSign.vue";
export default {
inject: ['templateFillType', "getZdxgjl", "getFhyjjl", "updateZdxgjl", "replaceFhyjjl", "updateFhyjjl", "getFieldCheckObj", "updateFieldCheckObj"],
components: {
@ -174,7 +174,6 @@ export default {
},
mounted() {
// console.log(this.$i18n.t(this.fieldItemLabel,"en"), this.$i18n.t('template.common.storageCondition',"en-US"), this.fieldKey)
},
methods: {
onEditSignSave(data){

+ 3
- 17
src/views/business/comps/template/TemplateTable.vue View File

@ -89,23 +89,9 @@ export default {
return {
//fillType
templateFillType: this.fillType,
getZdxgjl: () => (this.zdxgjl || [
{ key: "versionNum", title: '提交', filed: '试验基本信息-其他信息', value: '新值', oldValue: '', reason: '修改原因', userName: '签名人', time: '2026-01-01 14:22:22' },
{ key: "versionNum", title: '修改记录', filed: '试验基本信息-其他信息', value: '新值', oldValue: '原值3', reason: '修改原因', userName: '签名人', time: '2026-01-01 14:22:22' },
{ key: "act", title: '修改记录', filed: '试验基本信息-其他信息', value: 'ss', oldValue: 'old1', reason: '修改原因1', userName: '签名人', time: '2026-01-01 14:22:22' },
{ key: "startSolutionCode_0", title: '修改记录', filed: '试验基本信息-其他信息', value: 'ss', oldValue: 'old1', reason: '修改原因1', userName: '签名人', time: '2026-01-01 14:22:22' },
]),
getFhyjjl: () => (
this.fhyjjl || [
{ key: "versionNum", title: '复核意见', field: '试验基本信息-其他信息', content: '复核意见内容', replay: '', userName: '签名人', time: '2026-01-01 14:22:22', sfhf: '1' }
]
),
getFieldCheckObj: () => (
this.fieldCheckObj || {
versionNum: { checked: true },
act: { checked: true },
}
),
getZdxgjl: () => this.zdxgjl ,
getFhyjjl: () => this.fhyjjl,
getFieldCheckObj: () => this.fieldCheckObj,
//
updateZdxgjl: (data) => {
this.zdxgjl.unshift(data);

Loading…
Cancel
Save