|
|
|
@ -18,6 +18,7 @@ |
|
|
|
|
|
|
|
<LineLabel label="template.dj.dj003.ypyjxx" /> |
|
|
|
<CustomTable |
|
|
|
operationWidth = "100px" |
|
|
|
fieldItemLabel="template.dj.dj003.ypyjxx" |
|
|
|
:columns="ypyjColumns" |
|
|
|
:ref="'ypyjTableRef'" |
|
|
|
@ -188,12 +189,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' |
|
|
|
}, |
|
|
|
{ |
|
|
|
@ -205,6 +208,7 @@ export default { |
|
|
|
bodySubKey: 'cysjButton', |
|
|
|
bodySubyDisabled: this.fillType !== 'actFill', |
|
|
|
bodyDisabled: true, |
|
|
|
width: 300, |
|
|
|
bodySubFillType: 'actFill', |
|
|
|
bodyFillType: 'actFill' |
|
|
|
}, |
|
|
|
@ -212,9 +216,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' |
|
|
|
}, |
|
|
|
@ -222,6 +227,7 @@ export default { |
|
|
|
label: 'template.dj.dj003.yps', |
|
|
|
prop: "yps", |
|
|
|
bodyType: 'inputNumber', |
|
|
|
width: 250, |
|
|
|
bodyFillType: 'actFill' |
|
|
|
}, |
|
|
|
] |
|
|
|
@ -293,14 +299,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 } |
|
|
|
) |
|
|
|
} |
|
|
|
}, |
|
|
|
|