Browse Source

feat:[模板管理][DJ001、DJ002bug修复]

luojie
ZHANGTENG\张腾 1 week ago
parent
commit
b789f6199f
3 changed files with 16 additions and 4 deletions
  1. +1
    -1
      src/utils/formPackageCommon.js
  2. +1
    -0
      src/views/business/comps/template/comps/dj/DJ001.vue
  3. +14
    -3
      src/views/business/comps/template/comps/dj/DJ002.vue

+ 1
- 1
src/utils/formPackageCommon.js View File

@ -21,7 +21,7 @@ export const isShowOtherByRadioAndOther = (v = '', col) => {
//checkboxTree判断是否显示其他输入框
export const isShowOtherByCheckboxTree = (v = "") => {
const otherArr = ['其他', '样品信息', '样品', '部分接受', '给药 ',
const otherArr = ['其他', '其它', '样品信息', '样品', '部分接受', '给药 ',
'样本采集',
'日常观察 ',
'皮肤评分',

+ 1
- 0
src/views/business/comps/template/comps/dj/DJ001.vue View File

@ -199,6 +199,7 @@ export default {
};
},
mounted() {
console.log(this.getFilledFormData())
this.getTableData()
},
methods: {

+ 14
- 3
src/views/business/comps/template/comps/dj/DJ002.vue View File

@ -40,6 +40,7 @@
</CustomTable>
<CustomTable
@bodyTreeChange="changeTree"
fieldItemLabel="template.dj.dj003.ypyjxx"
:columns="ypyjColumns"
:ref="'ypyjTableRef'"
@ -238,7 +239,9 @@ export default {
prop: "ypmcTa",
bodyType: 'checkboxTree',
bodyFillType: 'actFill',
bodyOptions: this.ypmcCheckOptions
bodyOptions: this.ypmcCheckOptions,
bodyLayout:'horizontal',
width: 300,
},
{
label: 'template.dj.dj003.cysj',
@ -250,7 +253,8 @@ export default {
bodySubyDisabled: this.fillType !== 'actFill',
bodyDisabled: true,
bodySubFillType: 'actFill',
bodyFillType: 'actFill'
bodyFillType: 'actFill',
width: 300,
},
{
label: 'template.dj.dj003.sjbd',
@ -266,7 +270,8 @@ export default {
label: 'template.dj.dj003.yps',
prop: "yps",
bodyType: 'inputNumber',
bodyFillType: 'actFill'
bodyFillType: 'actFill',
bodyDisabled: true,
},
]
@ -370,6 +375,12 @@ export default {
this.ypmcCheckOptions = firstList;
})
},
//
changeTree(data){
let { rowIndex , value , row } = data
let checkTree = value?.checkedValues?.filter(i=>i.checked)
this.$refs.ypyjTableRef.updateDataSourceByRowIndex(rowIndex, {yps:checkTree?.length})
},
}
}
</script>

Loading…
Cancel
Save