2 Commits

4 changed files with 34 additions and 7 deletions
Unified 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>
<!-- 默认操作栏 --> <!-- 默认操作栏 -->
<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 class="header-cell-content">
<div>操作</div> <div>操作</div>
</div> </div>
@ -80,7 +80,7 @@
</div> </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"> <div class="inner-table-cell">
<slot name="operation" :row="row" :rowIndex="rowIndex"></slot> <slot name="operation" :row="row" :rowIndex="rowIndex"></slot>
</div> </div>

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

@ -2,7 +2,7 @@
<template> <template>
<div> <div>
<div class="detail-container"> <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> src="@/assets/images/detail-title.png" /></div>
<div class="detail-content"> <div class="detail-content">
<div class="content"> <div class="content">
@ -16,7 +16,7 @@
<div class="template-form-item"> <div class="template-form-item">
<BaseInfoFormPcakge @clickable="handleClickable" ref="stepFormPackageRef" :formConfig="stepFormConfig" @blur="onHandleBlur" <BaseInfoFormPcakge @clickable="handleClickable" ref="stepFormPackageRef" :formConfig="stepFormConfig" @blur="onHandleBlur"
:formData="formData" /> :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" > :formData="formData" >
<template slot="operation" slot-scope="{ row, rowIndex}"> <template slot="operation" slot-scope="{ row, rowIndex}">
<TableOpertaion :fillType="fillType" :row="row" :rowIndex="rowIndex" @deleteRow="deleteRow"></TableOpertaion> <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.$refs.stepFormPackageRef.updateFormData(this.currentSubKey, code);
this.selectReagentVisible = false; 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() { async getFormData() {
return await this.validFormFields(["baseInfoRef", "storageConditionRef","stepFormPackageRef","stepTableRef","stepRef","remarkRef"]); 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> <template>
<div> <div>
<div class="detail-container"> <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> src="@/assets/images/detail-title.png" /></div>
<div class="detail-content"> <div class="detail-content">
<div class="content"> <div class="content">

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

@ -2,7 +2,7 @@
<template> <template>
<div> <div>
<div class="detail-container"> <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> src="@/assets/images/detail-title.png" /></div>
<div class="detail-content"> <div class="detail-content">
<div class="content"> <div class="content">

Loading…
Cancel
Save