Browse Source

生物样品分析方法学样品制备表(基质效应)

lkf
memorylkf 3 months ago
parent
commit
169e22caa6
5 changed files with 13 additions and 25 deletions
  1. +9
    -21
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/JZXY.vue
  2. +1
    -1
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/RXJZXY.vue
  3. +1
    -1
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue
  4. +1
    -1
      src/views/business/comps/template/formConfig/SWYPFXFFXYPZBBTableConfig.js
  5. +1
    -1
      src/views/business/comps/template/mixins/templateMixin.js

+ 9
- 21
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/JZXY.vue View File

@ -16,9 +16,7 @@
:formConfig="storageFormConfig" :formData="formData" /> :formConfig="storageFormConfig" :formData="formData" />
<LineLabel label="template.common.operationSteps" /> <LineLabel label="template.common.operationSteps" />
<div class="template-form-item"> <div class="template-form-item">
<!-- <BaseInfoFormPcakge fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" :formConfig="stepFormConfig"
:formData="formData" @clickable="handleJzClickable" /> -->
<CustomTable <CustomTable
@blur="onHandleTableBlur" @blur="onHandleTableBlur"
:ref="`tableRef`" :ref="`tableRef`"
@ -67,7 +65,7 @@ import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue"
import SelectReagentDialog from '../../../dialog/SelectReagentDialog.vue'; import SelectReagentDialog from '../../../dialog/SelectReagentDialog.vue';
export default { export default {
name: "SWYPFXRYPZB",
name: "JZXY",
components: { BaseInfoFormPcakge, LineLabel, TableList, Step, CustomTable,TableOpertaion,SelectReagentDialog }, components: { BaseInfoFormPcakge, LineLabel, TableList, Step, CustomTable,TableOpertaion,SelectReagentDialog },
mixins: [templateMixin], mixins: [templateMixin],
props: { props: {
@ -221,7 +219,7 @@ export default {
] ]
}, },
tableStepColumns() { tableStepColumns() {
return getSWYPFXFFXYPZBBTableConfig(this,'business_sp_rxjzxy',true,true);
return getSWYPFXFFXYPZBBTableConfig(this,'business_sp_jzxy',false,true);
}, },
}, },
data() { data() {
@ -263,21 +261,11 @@ export default {
} }
}, },
methods: { methods: {
//
handleJzClickable(obj){
this.reagentType = 1//
this.currentSubKey = obj.subKey;
this.$refs.selectReagentDialogRef.show()
},
// //
onSelectReagentSubmit(code,row){ onSelectReagentSubmit(code,row){
if(this.reagentType===1){
this.$refs.stepFormPackageRef.updateFormData(this.currentSubKey, code);
}else{
this.$refs.tableRef.updateDataSourceByRowIndex(this.rowIndex,{
[this.currentSubKey]: code,
})
}
this.$refs.tableRef.updateDataSourceByRowIndex(this.rowIndex,{
[this.currentSubKey]: code,
})
this.$refs.selectReagentDialogRef.onCancel() this.$refs.selectReagentDialogRef.onCancel()
}, },
// //
@ -288,7 +276,7 @@ export default {
this.rowIndex = rowIndex this.rowIndex = rowIndex
this.currentSubKey = col.prop; this.currentSubKey = col.prop;
console.log("clickable",rowIndex, col) console.log("clickable",rowIndex, col)
if(col.prop === "sjry"){
if(col.prop === "sjry" || col.prop === "kbjzbh"){
//- //-
this.$refs.selectReagentDialogRef.show() this.$refs.selectReagentDialogRef.show()
} }
@ -317,10 +305,10 @@ export default {
}, },
// //
getFilledFormData(){ getFilledFormData(){
return this.getFilledFormDataByRefs(["baseInfoRef", "storageConditionRef", "stepFormPackageRef", "tableRef","stepRef", "remarkRef"])
return this.getFilledFormDataByRefs(["baseInfoRef", "storageConditionRef", "tableRef","stepRef", "remarkRef"])
}, },
async getFormData() { async getFormData() {
let content = await this.validFormFields(["baseInfoRef", "storageConditionRef", "stepFormPackageRef","tableRef" ,"stepRef", "remarkRef"]);
let content = await this.validFormFields(["baseInfoRef", "storageConditionRef","tableRef" ,"stepRef", "remarkRef"]);
//resource //resource
let tmpResource = [] let tmpResource = []

+ 1
- 1
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/RXJZXY.vue View File

@ -67,7 +67,7 @@ import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue"
import SelectReagentDialog from '../../../dialog/SelectReagentDialog.vue'; import SelectReagentDialog from '../../../dialog/SelectReagentDialog.vue';
export default { export default {
name: "SWYPFXRYPZB",
name: "RXJZXY",
components: { BaseInfoFormPcakge, LineLabel, TableList, Step, CustomTable,TableOpertaion,SelectReagentDialog }, components: { BaseInfoFormPcakge, LineLabel, TableList, Step, CustomTable,TableOpertaion,SelectReagentDialog },
mixins: [templateMixin], mixins: [templateMixin],
props: { props: {

+ 1
- 1
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue View File

@ -67,7 +67,7 @@ import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue"
import SelectReagentDialog from '../../../dialog/SelectReagentDialog.vue'; import SelectReagentDialog from '../../../dialog/SelectReagentDialog.vue';
export default { export default {
name: "SWYPFXRYPZB",
name: "ZQDYJMD",
components: { BaseInfoFormPcakge, LineLabel, TableList, Step, CustomTable,TableOpertaion,SelectReagentDialog }, components: { BaseInfoFormPcakge, LineLabel, TableList, Step, CustomTable,TableOpertaion,SelectReagentDialog },
mixins: [templateMixin], mixins: [templateMixin],
props: { props: {

+ 1
- 1
src/views/business/comps/template/formConfig/SWYPFXFFXYPZBBTableConfig.js View File

@ -94,7 +94,7 @@ export const getSWYPFXFFXYPZBBTableConfig = (
} }
] ]
if (showKbjz) { if (showKbjz) {
arr.splice(4, 0, {
arr.splice(5, 0, {
label: 'template.sp.sp013.kbjzbh', label: 'template.sp.sp013.kbjzbh',
prop: 'kbjzbh', prop: 'kbjzbh',
bodyType: 'clickable', bodyType: 'clickable',

+ 1
- 1
src/views/business/comps/template/mixins/templateMixin.js View File

@ -61,7 +61,7 @@ export default {
bdmc, bdmc,
endDate endDate
} }
}else{
} else {
this.formData = { this.formData = {
studyMc, studyMc,
studySn, studySn,

Loading…
Cancel
Save