|
|
|
@ -359,9 +359,12 @@ export default { |
|
|
|
onTableRegentSubmit(data) { |
|
|
|
if (data.key === 'xbzbqbh') { |
|
|
|
const selectedRows = data.selectInfo?.selectedRows || [] |
|
|
|
const firstRow = selectedRows[0] || {} |
|
|
|
this.$refs.xbxxRef.updateFormData('xbzbqbh_tj', firstRow.tj) |
|
|
|
this.$refs.xbxxRef.updateFormData('xbzbqbh_dw', firstRow.tjdw) |
|
|
|
this.$refs.xbxxRef.updateFormData('xbzbqbh_count', selectedRows.length) |
|
|
|
for(let i=1; i<=selectedRows.length; i++){ |
|
|
|
const row = selectedRows[i-1] || {} |
|
|
|
this.$refs.xbxxRef.updateFormData(`xbzbqbh_bh_${i}`, row.bh) |
|
|
|
this.$refs.xbxxRef.updateFormData(`xbzbqbh_dw_${i}`, row.tjdw || '') |
|
|
|
} |
|
|
|
} |
|
|
|
if (data.key === 'pyxbh') { |
|
|
|
const row = data.selectInfo?.row || {} |
|
|
|
@ -426,24 +429,28 @@ export default { |
|
|
|
}) |
|
|
|
} |
|
|
|
//使用细胞 |
|
|
|
tmpResource.push({ |
|
|
|
mc: null, |
|
|
|
bh: content.xbzbqbh, |
|
|
|
ph: '', |
|
|
|
ndz: '', |
|
|
|
nd: '', |
|
|
|
nddw: '', |
|
|
|
ly: '', |
|
|
|
sxrq: null, |
|
|
|
kc: null, |
|
|
|
kcdw: null, |
|
|
|
syl: null, |
|
|
|
type: 9, //使用的时候传对应的值 |
|
|
|
elnType: null, //传null |
|
|
|
syldw: content.xbzbqbh_dw, |
|
|
|
yxzq: null, |
|
|
|
yxzqdw: null, |
|
|
|
}) |
|
|
|
let xbzbqbh_count = content.xbzbqbh_count || formData.xbzbqbh_count || 0; |
|
|
|
for(let i=1; i<=xbzbqbh_count; i++){ |
|
|
|
tmpResource.push({ |
|
|
|
mc: null, |
|
|
|
bh: content[`xbzbqbh_bh_${i}`] || formData[`xbzbqbh_bh_${i}`], |
|
|
|
ph: '', |
|
|
|
ndz: '', |
|
|
|
nd: '', |
|
|
|
nddw: '', |
|
|
|
ly: '', |
|
|
|
sxrq: null, |
|
|
|
kc: null, |
|
|
|
kcdw: null, |
|
|
|
syl: null, |
|
|
|
type: 9, //使用的时候传对应的值 |
|
|
|
elnType: null, //传null |
|
|
|
syldw: content[`xbzbqbh_dw_${i}`] || formData[`xbzbqbh_dw_${i}`], |
|
|
|
yxzq: null, |
|
|
|
yxzqdw: null, |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
//使用仪器 |
|
|
|
tmpYq.push({ |
|
|
|
mc: content.pyxbh_mc || formData.pyxbh_mc, |
|
|
|
|