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

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

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

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

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

Loading…
Cancel
Save