|
|
|
@ -20,6 +20,7 @@ |
|
|
|
<div class="template-form-item" > |
|
|
|
<span>{{ $t('template.dj.dj003.ypmc') }}</span> |
|
|
|
<CustomTable |
|
|
|
operationWidth = "100px" |
|
|
|
fieldItemLabel="template.dj.dj003.ypmc" |
|
|
|
:columns="ypmcColumns" |
|
|
|
:isBorder="false" |
|
|
|
@ -40,6 +41,7 @@ |
|
|
|
</CustomTable> |
|
|
|
|
|
|
|
<CustomTable |
|
|
|
operationWidth = "100px" |
|
|
|
@bodyTreeChange="changeTree" |
|
|
|
fieldItemLabel="template.dj.dj003.ypyjxx" |
|
|
|
:columns="ypyjColumns" |
|
|
|
@ -226,12 +228,14 @@ export default { |
|
|
|
label: 'template.dj.dj003.cyd', |
|
|
|
prop: "cyd", |
|
|
|
bodyType: 'input', |
|
|
|
width: 250, |
|
|
|
bodyFillType: 'actFill' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: 'template.dj.dj003.dwbh', |
|
|
|
prop: "dwbh", |
|
|
|
bodyType: 'input', |
|
|
|
width: 250, |
|
|
|
bodyFillType: 'actFill' |
|
|
|
}, |
|
|
|
{ |
|
|
|
@ -260,9 +264,10 @@ export default { |
|
|
|
label: 'template.dj.dj003.sjbd', |
|
|
|
prop: "sjbd", |
|
|
|
bodyType: 'select', |
|
|
|
width: 250, |
|
|
|
bodyOptions: [ |
|
|
|
{value:1,label:'正常'}, |
|
|
|
{value:0,label:'偏离'}, |
|
|
|
{value:'正常',label:'正常'}, |
|
|
|
{value:'偏离',label:'偏离'}, |
|
|
|
], |
|
|
|
bodyFillType: 'actFill' |
|
|
|
}, |
|
|
|
@ -271,6 +276,7 @@ export default { |
|
|
|
prop: "yps", |
|
|
|
bodyType: 'inputNumber', |
|
|
|
bodyFillType: 'actFill', |
|
|
|
width: 250, |
|
|
|
bodyDisabled: true, |
|
|
|
}, |
|
|
|
] |
|
|
|
@ -346,14 +352,14 @@ export default { |
|
|
|
console.log(formData, 'formData') |
|
|
|
}, |
|
|
|
// 点击按钮 |
|
|
|
handleClickButton(_item, signData) { |
|
|
|
if(_item === 'cysjButton'){ |
|
|
|
this.$refs.ypyjTableRef.updateDataSourceByRowIndex(signData, {cysj:moment().format('YYYY/MM/DD HH:mm')}) |
|
|
|
handleClickButton(key, rowIndex,colIndex,e,data) { |
|
|
|
if(key === 'cysjButton'){ |
|
|
|
this.$refs.ypyjTableRef.updateDataSourceByRowIndex(rowIndex,{cysj:moment().format('YYYY/MM/DD HH:mm')},{signData:data, updateFields:['cysj']}) |
|
|
|
}else{ |
|
|
|
this.$refs.yjczxxRef.updateFormData( |
|
|
|
_item?.subKey?.replace("Button", ""), |
|
|
|
key?.subKey?.replace("Button", ""), |
|
|
|
moment().format('YYYY/MM/DD HH:mm'), |
|
|
|
{ isUpdateRecord: true, signData } |
|
|
|
{ isUpdateRecord: true, signData:data } |
|
|
|
) |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -379,7 +385,7 @@ export default { |
|
|
|
changeTree(data){ |
|
|
|
let { rowIndex , value , row } = data |
|
|
|
let checkTree = value?.checkedValues?.filter(i=>i.checked) |
|
|
|
this.$refs.ypyjTableRef.updateDataSourceByRowIndex(rowIndex, {yps:checkTree?.length}) |
|
|
|
this.$refs.ypyjTableRef.updateDataSourceByRowIndex(rowIndex, {yps:checkTree?.length},{signData:data, updateFields:['yps']}) |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
|