2 Commits

4 changed files with 34 additions and 7 deletions
Split View
  1. +2
    -2
      src/components/Template/CustomTable.vue
  2. +30
    -3
      src/views/business/comps/template/comps/sp/SWYPBQGZYZBB.vue
  3. +1
    -1
      src/views/business/comps/template/comps/sp/SWYPFXCBYPZB.vue
  4. +1
    -1
      src/views/business/comps/template/comps/sp/SWYPNBGZYZBB.vue

+ 2
- 2
src/components/Template/CustomTable.vue View File

@ -21,7 +21,7 @@
</div>
<!-- 默认操作栏 -->
<div class="custom-table-cell header-cell" :style="{ width: '180px' }" v-if="showOperation">
<div class="custom-table-cell header-cell" :style="{ width: '245px' }" v-if="showOperation">
<div class="header-cell-content">
<div>操作</div>
</div>
@ -80,7 +80,7 @@
</div>
<!-- 默认操作栏 -->
<div class="custom-table-cell body-cell" :style="{ width: '180px' }" v-if="showOperation">
<div class="custom-table-cell body-cell" :style="{ width: '245px' }" v-if="showOperation">
<div class="inner-table-cell">
<slot name="operation" :row="row" :rowIndex="rowIndex"></slot>
</div>

+ 30
- 3
src/views/business/comps/template/comps/sp/SWYPBQGZYZBB.vue View File

@ -2,7 +2,7 @@
<template>
<div>
<div class="detail-container">
<div class="detail-title"><img src="@/assets/images/detail-title.png">{{formData.templateMc || $t('template.common.pageTitle')}}<img
<div class="detail-title"><img src="@/assets/images/detail-title.png">{{formData.templateMc || "生物样品标曲工作液制备表"}}<img
src="@/assets/images/detail-title.png" /></div>
<div class="detail-content">
<div class="content">
@ -16,7 +16,7 @@
<div class="template-form-item">
<BaseInfoFormPcakge @clickable="handleClickable" ref="stepFormPackageRef" :formConfig="stepFormConfig" @blur="onHandleBlur"
:formData="formData" />
<CustomTable :showAddRow="false" @blur="onHandleTableBlur" :showOperation="fillType === 'actFillill'" ref="stepTableRef" :columns="stepColumns"
<CustomTable :showAddRow="fillType === 'actFill'" @blur="onHandleTableBlur" :showOperation="fillType === 'actFill'" ref="stepTableRef" :columns="stepColumns"
:formData="formData" >
<template slot="operation" slot-scope="{ row, rowIndex}">
<TableOpertaion :fillType="fillType" :row="row" :rowIndex="rowIndex" @deleteRow="deleteRow"></TableOpertaion>
@ -445,10 +445,37 @@ export default {
}
},
//
onSelectReagentSubmit(code){
onSelectReagentSubmit(code,row){
if(this.currentSubKey === "subStartSolution"){//
this.$refs.stepFormPackageRef.updateFormData("targetAcSolution", row.vol);
this.updateStepTableData(row);
}
this.$refs.stepFormPackageRef.updateFormData(this.currentSubKey, code);
this.selectReagentVisible = false;
},
//table
updateStepTableData(row){
const {stepTableFormData = []} = this.formData;
//
const newStepTableData = JSON.parse(JSON.stringify(stepTableFormData));
//
for (let i = 0; i < newStepTableData.length; i++) {
if (i === 0) {
// row.code
newStepTableData[i].startSolutionCode = row.code;
} else {
// targetSolutionCode
// targetSolutionCode
newStepTableData[i].startSolutionCode = newStepTableData[i - 1].targetSolutionCode;
}
}
// stepTableRef
this.$refs.stepTableRef.updateDataSource(newStepTableData);
},
async getFormData() {
return await this.validFormFields(["baseInfoRef", "storageConditionRef","stepFormPackageRef","stepTableRef","stepRef","remarkRef"]);
},

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

@ -2,7 +2,7 @@
<template>
<div>
<div class="detail-container">
<div class="detail-title"><img src="@/assets/images/detail-title.png">{{formData.templateMc || $t('template.common.pageTitle')}}<img
<div class="detail-title"><img src="@/assets/images/detail-title.png">{{formData.templateMc || "生物样品分析储备液配制表"}}<img
src="@/assets/images/detail-title.png" /></div>
<div class="detail-content">
<div class="content">

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

@ -2,7 +2,7 @@
<template>
<div>
<div class="detail-container">
<div class="detail-title"><img src="@/assets/images/detail-title.png">{{formData.templateMc || $t('template.common.pageTitle')}}<img
<div class="detail-title"><img src="@/assets/images/detail-title.png">{{formData.templateMc || "生物样品内标工作液制备表"}}<img
src="@/assets/images/detail-title.png" /></div>
<div class="detail-content">
<div class="content">

Loading…
Cancel
Save