Browse Source

fix: [模板管理] dl024

luojie
memorylkf 3 weeks ago
parent
commit
b649326cc8
2 changed files with 10 additions and 7 deletions
  1. +1
    -1
      src/lang/en/template/dl.js
  2. +9
    -6
      src/views/business/comps/template/comps/dl/DL024.vue

+ 1
- 1
src/lang/en/template/dl.js View File

@ -391,7 +391,7 @@ export default {
qxbd: '前序表单', qxbd: '前序表单',
pykssj: '培养开始时间', pykssj: '培养开始时间',
pyjssj: '培养结束时间', pyjssj: '培养结束时间',
jsButton: '培养结束时间',
jsButton: '结束',
xbbh: '细胞编号' xbbh: '细胞编号'
} }
} }

+ 9
- 6
src/views/business/comps/template/comps/dl/DL024.vue View File

@ -160,17 +160,17 @@ export default {
label: 'template.dl.dl024.pykssj', label: 'template.dl.dl024.pykssj',
type: 'input', type: 'input',
fillType: 'actFill', fillType: 'actFill',
subType: 'button',
subKey: 'pykssj',
buttonName: 'template.dl.dl024.jsButton',
disabled:true
}, },
pyjssj: { pyjssj: {
label: 'template.dl.dl024.pyjssj', label: 'template.dl.dl024.pyjssj',
type: 'input', type: 'input',
fillType: 'actFill', fillType: 'actFill',
subType: 'button', subType: 'button',
subKey: 'pyjssj',
subKey: 'pyjssjbtn',
buttonName: 'template.dl.dl024.jsButton', buttonName: 'template.dl.dl024.jsButton',
disabled: true,
subDisabled: this.fillType !== 'actFill'
}, },
} }
} }
@ -201,7 +201,7 @@ export default {
handleClickButton(item,signData) { handleClickButton(item,signData) {
const arrStr = item.subKey; const arrStr = item.subKey;
const value = moment().format('YYYY/MM/DD HH:mm'); const value = moment().format('YYYY/MM/DD HH:mm');
this.$refs.swypyjInfoRef.updateFormData(arrStr, value,{isUpdateRecord:true,signData});
this.$refs.swypyjInfoRef.updateFormData('pyjssj', value,{isUpdateRecord:true,signData});
// console.log(this.getFilledFormData()) // console.log(this.getFilledFormData())
}, },
// //
@ -222,11 +222,14 @@ export default {
} }
// //
const itemData = stepTableFormData.map(item => ({ const itemData = stepTableFormData.map(item => ({
xbbh: item.targetSolutionCode+'-'+item.subTargetSolutionCode, //
xbbh: item.targetSolutionCode+item.subTargetSolutionCode, //
})) }))
// 使 $set formData CustomTable // 使 $set formData CustomTable
this.$set(this.formData, 'stepTableFormData', itemData) this.$set(this.formData, 'stepTableFormData', itemData)
this.$refs.swypyjInfoRef.updateFormData('pykssj', bdnr.pykssj);
this.$message.success(`已从前序表单加载 ${itemData.length} 条细胞编号数据`) this.$message.success(`已从前序表单加载 ${itemData.length} 条细胞编号数据`)
} catch (error) { } catch (error) {
this.$set(this.formData, 'stepTableFormData', []) this.$set(this.formData, 'stepTableFormData', [])

Loading…
Cancel
Save