|
|
@ -35,7 +35,7 @@ |
|
|
<CustomTable fieldItemLabel="template.common.operationSteps" :columns="jzjzColumns" @blur="operateBlur" |
|
|
<CustomTable fieldItemLabel="template.common.operationSteps" :columns="jzjzColumns" @blur="operateBlur" |
|
|
:ref="'jzjzTableRef'" @onRegentSubmit="(e) => onRegentSubmit(e)" :showOperation="fillType === 'actFill'" |
|
|
:ref="'jzjzTableRef'" @onRegentSubmit="(e) => onRegentSubmit(e)" :showOperation="fillType === 'actFill'" |
|
|
:showAddRow="fillType === 'actFill'" |
|
|
:showAddRow="fillType === 'actFill'" |
|
|
:formData="{ stepTableFormData: formData.stepTableFormData_1, headerSelectFields: {} }" |
|
|
|
|
|
|
|
|
:formData="{ stepTableFormData: formData.stepTableFormData_1, headerSelectFields: formData.headerSelectFields_1 }" |
|
|
:showHeaderSelect="fillType === 'actFill'" :prefixKey="`jzjzTable`"> |
|
|
:showHeaderSelect="fillType === 'actFill'" :prefixKey="`jzjzTable`"> |
|
|
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> |
|
|
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> |
|
|
<TableOpertaionDelete :row="row" :rowIndex="rowIndex" :columns="columns" |
|
|
<TableOpertaionDelete :row="row" :rowIndex="rowIndex" :columns="columns" |
|
|
@ -392,28 +392,33 @@ export default { |
|
|
yxzq: null, |
|
|
yxzq: null, |
|
|
yxzqdw: null, |
|
|
yxzqdw: null, |
|
|
}) |
|
|
}) |
|
|
//使用 1:试剂;3:给药制剂;5:麻精药;7:供试品 9:细胞;11:细菌 |
|
|
|
|
|
tmpResource.push({ |
|
|
|
|
|
mc: item.rtbhmc, |
|
|
|
|
|
bh: item.rtbh, |
|
|
|
|
|
ph: item.rtbhph, |
|
|
|
|
|
ndz: item.rtbhnd + item.rtbhnddw, |
|
|
|
|
|
nd: item.rtbhnd, |
|
|
|
|
|
nddw: item.rtbhnddw, |
|
|
|
|
|
ly: item.rtbhly, |
|
|
|
|
|
sxrq: item.rtbhsxrq, |
|
|
|
|
|
kc: null, |
|
|
|
|
|
kcdw: null, |
|
|
|
|
|
syl: item.rtbhkc, |
|
|
|
|
|
type: 1, //使用的时候传对应的值 |
|
|
|
|
|
elnType: null, //传null |
|
|
|
|
|
syldw: item.rtbhkcdw, |
|
|
|
|
|
yxzq: null, |
|
|
|
|
|
yxzqdw: null, |
|
|
|
|
|
|
|
|
//使用肉汤-试剂(如果已经添加了,就不在添加了) 1:试剂;3:给药制剂;5:麻精药;7:供试品 9:细胞;11:细菌 |
|
|
|
|
|
let _index = _.findIndex(tmpResource, function (a) { |
|
|
|
|
|
return a.bh == item.rtbh |
|
|
}) |
|
|
}) |
|
|
|
|
|
if (_index < 0) { |
|
|
|
|
|
tmpResource.push({ |
|
|
|
|
|
mc: null, |
|
|
|
|
|
bh: item.rtbh, |
|
|
|
|
|
ph: null, |
|
|
|
|
|
ndz: null, |
|
|
|
|
|
nd: null, |
|
|
|
|
|
nddw: null, |
|
|
|
|
|
ly: null, |
|
|
|
|
|
sxrq: null, |
|
|
|
|
|
kc: null, |
|
|
|
|
|
kcdw: null, |
|
|
|
|
|
syl: item.rtbhkc, |
|
|
|
|
|
type: 1, //使用的时候传对应的值 |
|
|
|
|
|
elnType: null, //传null |
|
|
|
|
|
syldw: item.rtbhkcdw, |
|
|
|
|
|
yxzq: null, |
|
|
|
|
|
yxzqdw: null, |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
//使用 1:试剂;3:给药制剂;5:麻精药;7:供试品 9:细胞;11:细菌 |
|
|
//使用 1:试剂;3:给药制剂;5:麻精药;7:供试品 9:细胞;11:细菌 |
|
|
tmpResource.push({ |
|
|
tmpResource.push({ |
|
|
mc: item.jzlymc, |
|
|
|
|
|
|
|
|
mc: null, |
|
|
bh: item.jzlybh, |
|
|
bh: item.jzlybh, |
|
|
ph: '', |
|
|
ph: '', |
|
|
ndz: '', |
|
|
ndz: '', |
|
|
@ -490,13 +495,10 @@ export default { |
|
|
this.$refs.czInfoRef.updateFormData('pyxjzrq', row.jzrq) |
|
|
this.$refs.czInfoRef.updateFormData('pyxjzrq', row.jzrq) |
|
|
} |
|
|
} |
|
|
if (key == 'rtbh') { |
|
|
if (key == 'rtbh') { |
|
|
this.$refs['jzjzTableRef'].updateDataSourceByRowIndex(rowIndex, { |
|
|
|
|
|
rtbhnd: row.nd, rtbhnddw: row.bddw, rtbhly: row.ly, rtbhsxrq: row.sxrq, |
|
|
|
|
|
rtbhph: row.ph, rtbhmc: row.mc, rtbhkc: row.kc, rtbhkcdw: row.kcdw |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
this.$refs['jzjzTableRef'].updateDataSourceByRowIndex(rowIndex, { rtbhkc: row.kc, rtbhkcdw: row.kcdw}) |
|
|
} |
|
|
} |
|
|
if (key == 'jzlybh') { |
|
|
if (key == 'jzlybh') { |
|
|
this.$refs['jzjzTableRef'].updateDataSourceByRowIndex(rowIndex, { jzlymc: row.mc, jzlytj: row.tj, jzlytjdw: row.tjdw }) |
|
|
|
|
|
|
|
|
this.$refs['jzjzTableRef'].updateDataSourceByRowIndex(rowIndex, { jzlytj: row.tj, jzlytjdw: row.tjdw }) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// 保存 |
|
|
// 保存 |
|
|
|