From 8867a4415e7e7ad06f30fa2a7f7112c26ce45105 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期四, 26 十二月 2024 14:33:10 +0800 Subject: [PATCH] 样品接受bug修改 --- src/components/view/a7-sample-registration.vue | 10 ++++++---- src/components/view/a8-periodic-document-review-records.vue | 4 ++-- src/components/view/a7-sample-disposal.vue | 6 ++++-- src/components/view/a8-external-document-confirmation-records.vue | 2 +- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/components/view/a7-sample-disposal.vue b/src/components/view/a7-sample-disposal.vue index 4ea1d07..daec7df 100644 --- a/src/components/view/a7-sample-disposal.vue +++ b/src/components/view/a7-sample-disposal.vue @@ -32,7 +32,7 @@ <el-button size="small" type="primary" @click="refreshTable()">鏌� 璇�</el-button> </div> </div> - <div class="table"> + <div class="table" v-if="activeName=='鍘嗗彶璁板綍'"> <ValueTable ref="ValueTable" :url="$api.processTotaldeal.pageProcessTotaldeal" :componentData="componentData" :key="upIndex"/> </div> @@ -480,7 +480,9 @@ // this.commonFun(row) this.activeName = '濉啓' this.componentData0.entity.totaldealId = row.id - this.$refs['ValueTable0'].selectList() + this.$nextTick(()=>{ + this.$refs['ValueTable0'].selectList() + }) }, commonFun(row,callbanck){ this.currentInfo = row diff --git a/src/components/view/a7-sample-registration.vue b/src/components/view/a7-sample-registration.vue index ed9380b..3c308b3 100644 --- a/src/components/view/a7-sample-registration.vue +++ b/src/components/view/a7-sample-registration.vue @@ -6,7 +6,7 @@ <el-tabs type="border-card" v-model="activeName" style="height: 100%;" @tab-click="componentData0.entity.totalSampleId=''"> <el-tab-pane label="濉啓" name="濉啓" style="height: 100%;" :key="1"> <el-button size="small" type="primary" @click="handleAdd0" style="margin-left: 20px;" v-if="addPower">鏂板</el-button> - <div class="table" style="height: calc(100% - 200px)" v-if="activeName=='濉啓'"> + <div class="table" style="height: calc(100% - 200px)" F> <ValueTable ref="ValueTable0" :url="$api.processSample.pageProcessSample" :componentData="componentData0" :key="upIndex0" :delUrl="$api.processSample.delProcessSample" /> </div> @@ -30,7 +30,7 @@ </div> </div> <div class="table"> - <ValueTable ref="ValueTable" :url="$api.processSample.pageProcessTotalSample" + <ValueTable ref="ValueTable" v-if="activeName=='鍘嗗彶璁板綍'" :url="$api.processSample.pageProcessTotalSample" :componentData="componentData" :key="upIndex"/> </div> </el-tab-pane> @@ -416,7 +416,7 @@ }).catch(err=>{}); }, refreshTable() { - this.$refs['ValueTable'].selectList() + this.$refs['ValueTable']&&this.$refs['ValueTable'].selectList() }, refresh() { this.componentData.entity = this.HaveJson(this.entityCopy) @@ -505,7 +505,9 @@ // this.commonFun(row) this.activeName = '濉啓' this.componentData0.entity.totalSampleId = row.id - this.$refs['ValueTable0'].selectList() + this.$nextTick(()=>{ + this.$refs['ValueTable0'].selectList() + }) }, commonFun(row,callbanck){ this.currentInfo = row diff --git a/src/components/view/a8-external-document-confirmation-records.vue b/src/components/view/a8-external-document-confirmation-records.vue index 9eeb31b..9ca85f3 100644 --- a/src/components/view/a8-external-document-confirmation-records.vue +++ b/src/components/view/a8-external-document-confirmation-records.vue @@ -14,7 +14,7 @@ :on-error="onError" ref='upload' v-if="upPower" :on-success="handleSuccessUp" style="display:inline-block;margin-left: 20px;"> <el-button size="small" type="primary" :loading="upLoading">瀵煎叆</el-button></el-upload> </div> - <div class="table" style="height: calc(100% - 200px)"> + <div class="table" style="height: calc(100% - 200px)" v-if="activeName=='鍘嗗彶璁板綍'"> <ValueTable ref="ValueTable0" :url="$api.manageRecordTotal.pageManageRecordVerify" :componentData="componentData0" :key="upIndex0" :delUrl="$api.manageRecordTotal.delManageRecordVerify" :upUrl="$api.manageRecordTotal.doManageRecordVerify" /> </div> diff --git a/src/components/view/a8-periodic-document-review-records.vue b/src/components/view/a8-periodic-document-review-records.vue index 6c89fda..129b328 100644 --- a/src/components/view/a8-periodic-document-review-records.vue +++ b/src/components/view/a8-periodic-document-review-records.vue @@ -40,7 +40,7 @@ <el-button type="primary" size="medium">瀵煎叆</el-button></el-upload> </div> </div> - <div class="table"> + <div class="table" v-if="activeName=='濉啓'"> <ValueTable ref="ValueTable" :url="$api.manageRecordIntervals.pageManageRecordIntervals" :delUrl="$api.manageRecordIntervals.delManageRecordIntervals" :componentData="componentData" :upUrl="$api.manageRecordIssueRecycle.doManageRecordIssueRecycle" :key="upIndex"/> @@ -64,7 +64,7 @@ <el-button size="small" type="primary" @click="refreshTable(1)">鏌� 璇�</el-button> </div> </div> - <div class="table"> + <div class="table" v-if="activeName=='鍘嗗彶璁板綍'"> <ValueTable ref="ValueTable0" :url="$api.manageRecordIntervals.pageManageRecordIntervalsTotal" :componentData="componentData0" :key="upIndex"/> </div> -- Gitblit v1.9.3