|
|
@ -68,6 +68,7 @@ |
|
|
class="mt20" |
|
|
class="mt20" |
|
|
fieldItemLabel="template.dl.dl006.czxx" |
|
|
fieldItemLabel="template.dl.dl006.czxx" |
|
|
ref="czFormRef" |
|
|
ref="czFormRef" |
|
|
|
|
|
@onRegentSubmit="onRegentSubmit" |
|
|
:formConfig="czFormConfig" |
|
|
:formConfig="czFormConfig" |
|
|
:formData="formData" |
|
|
:formData="formData" |
|
|
/> |
|
|
/> |
|
|
@ -96,6 +97,7 @@ import TableList from '@/components/Template/Table' |
|
|
import Step from '@/components/Template/Step' |
|
|
import Step from '@/components/Template/Step' |
|
|
import templateMixin from '../../mixins/templateMixin' |
|
|
import templateMixin from '../../mixins/templateMixin' |
|
|
import { formatNumberByDigits,justUpdateFilledFormData } from '@/utils/index.js' |
|
|
import { formatNumberByDigits,justUpdateFilledFormData } from '@/utils/index.js' |
|
|
|
|
|
import { uniqeYqOne, uniqeResourceOne } from "@/utils/calUnitTools"; |
|
|
|
|
|
|
|
|
const refConf = { |
|
|
const refConf = { |
|
|
base: 'baseInfoRef', |
|
|
base: 'baseInfoRef', |
|
|
@ -140,6 +142,7 @@ export default { |
|
|
if(stepTableFormData_1.length>0){ |
|
|
if(stepTableFormData_1.length>0){ |
|
|
this.clickFinish() |
|
|
this.clickFinish() |
|
|
} |
|
|
} |
|
|
|
|
|
console.log(this.getFilledFormData()) |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
czxxColumns: { |
|
|
czxxColumns: { |
|
|
@ -287,7 +290,7 @@ export default { |
|
|
fillType: 'preFill', |
|
|
fillType: 'preFill', |
|
|
subType: 'button', |
|
|
subType: 'button', |
|
|
isClearForm: true, |
|
|
isClearForm: true, |
|
|
subKey: 'jlzsl', |
|
|
|
|
|
|
|
|
subKey: 'jlzslButton', |
|
|
buttonName: 'form.saveConfirm', |
|
|
buttonName: 'form.saveConfirm', |
|
|
maxlength: 2, |
|
|
maxlength: 2, |
|
|
}, |
|
|
}, |
|
|
@ -472,17 +475,101 @@ export default { |
|
|
return await this.validFormFields(refNames) |
|
|
return await this.validFormFields(refNames) |
|
|
}, |
|
|
}, |
|
|
getResource() { |
|
|
getResource() { |
|
|
|
|
|
let content = this.getFilledFormData(); |
|
|
|
|
|
let tmpResource = [] |
|
|
|
|
|
let tmpYq = [] |
|
|
|
|
|
let addYq = [] |
|
|
|
|
|
let addResource = [] |
|
|
|
|
|
if (this.fillType === "actFill") { |
|
|
|
|
|
let header1 = content.headerSelectFields |
|
|
|
|
|
let table1 = content.stepTableFormData |
|
|
|
|
|
|
|
|
|
|
|
// 如果添加了S9混合液,提取S9混合液编号 |
|
|
|
|
|
if (content.sftjs9 === 1 && content.s9hhybh) { |
|
|
|
|
|
console.log('sbdhau1') |
|
|
|
|
|
tmpResource.push({ |
|
|
|
|
|
mc: 'S9混合液', |
|
|
|
|
|
bh: content.s9hhybh, |
|
|
|
|
|
ph: null, |
|
|
|
|
|
nd: null, |
|
|
|
|
|
nddw: null, |
|
|
|
|
|
ndz: null, |
|
|
|
|
|
ly: null, |
|
|
|
|
|
sxrq: null, |
|
|
|
|
|
kc: null, |
|
|
|
|
|
kcdw: null, |
|
|
|
|
|
type: 1, |
|
|
|
|
|
syl: content.s9hhyyjjrl || null, |
|
|
|
|
|
syldw: content.s9hhyyjjrldw || null, |
|
|
|
|
|
yxzq: null, |
|
|
|
|
|
yxzqdw: null |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
//如果添加了PBS,提取PBS混合液编号 |
|
|
|
|
|
if (content.sftjs9 === 0 && content.pbsbh) { |
|
|
|
|
|
tmpResource.push({ |
|
|
|
|
|
mc: 'PBS', |
|
|
|
|
|
bh: content.pbsbh, |
|
|
|
|
|
ph: null, |
|
|
|
|
|
nd: null, |
|
|
|
|
|
nddw: null, |
|
|
|
|
|
ndz: null, |
|
|
|
|
|
ly: null, |
|
|
|
|
|
sxrq: null, |
|
|
|
|
|
kc: null, |
|
|
|
|
|
kcdw: null, |
|
|
|
|
|
type: 1, |
|
|
|
|
|
syl: content.pbsryyjrl || null, |
|
|
|
|
|
syldw: content.pbsryyjrldw || null, |
|
|
|
|
|
yxzq: null, |
|
|
|
|
|
yxzqdw: null |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (table1 && table1.length > 0) { |
|
|
|
|
|
for (let i = 0; i < table1.length; i++) { |
|
|
|
|
|
tmpResource.push({ |
|
|
|
|
|
mc: '加液编号', |
|
|
|
|
|
bh: table1[i].jybh, |
|
|
|
|
|
ph: null, |
|
|
|
|
|
nd: null, |
|
|
|
|
|
nddw: null, |
|
|
|
|
|
ndz: null, |
|
|
|
|
|
ly: null, |
|
|
|
|
|
sxrq: null, |
|
|
|
|
|
kc: null, |
|
|
|
|
|
kcdw: null, |
|
|
|
|
|
type: 1, |
|
|
|
|
|
syl: table1[i].ysjytj || null, |
|
|
|
|
|
syldw: header1.ysjytjDw || null, |
|
|
|
|
|
yxzq: null, |
|
|
|
|
|
yxzqdw: null |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
tmpYq.push({ |
|
|
|
|
|
mc: content.pyxbhmc, |
|
|
|
|
|
xh: content.pyxbhxh, |
|
|
|
|
|
bh: content.pyxbh, |
|
|
|
|
|
jzrq: content.pyxbhjzrq, |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
const stepResource = this.$refs.stepRef.getStepResource() |
|
|
const stepResource = this.$refs.stepRef.getStepResource() |
|
|
// 使用的试剂、仪器 |
|
|
// 使用的试剂、仪器 |
|
|
this.resourceTmp = stepResource.sjResource || [] |
|
|
|
|
|
this.yqResourceTmp = stepResource.yqResource || [] |
|
|
|
|
|
|
|
|
addYq = [...stepResource.yqResource,...tmpYq] |
|
|
|
|
|
addResource = [...stepResource.sjResource,...tmpResource] |
|
|
|
|
|
this.resourceTmp = uniqeResourceOne(addResource) || [] |
|
|
|
|
|
this.yqResourceTmp = uniqeYqOne(addYq) || [] |
|
|
return this.resourceTmp |
|
|
return this.resourceTmp |
|
|
}, |
|
|
}, |
|
|
onRegentSubmit(e) { |
|
|
onRegentSubmit(e) { |
|
|
console.log(e,909090) |
|
|
|
|
|
const { selectInfo, key, rowIndex } = e |
|
|
const { selectInfo, key, rowIndex } = e |
|
|
const { row } = selectInfo |
|
|
const { row } = selectInfo |
|
|
|
|
|
|
|
|
|
|
|
if (key == 'pyxbh') { |
|
|
|
|
|
this.$refs.czFormRef.updateFormData('pyxbhmc', row.mc) |
|
|
|
|
|
this.$refs.czFormRef.updateFormData('pyxbhxh', row.xh) |
|
|
|
|
|
this.$refs.czFormRef.updateFormData('pyxbhjzrq', row.jzrq) |
|
|
|
|
|
} |
|
|
if (key === 'qxbd') { |
|
|
if (key === 'qxbd') { |
|
|
this.$refs.czInfoRef.updateFormData('pykssj', row.startDate) |
|
|
this.$refs.czInfoRef.updateFormData('pykssj', row.startDate) |
|
|
} |
|
|
} |
|
|
|