From 6bf3dda64be0aeef5c999818075facb41988f7bd Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期一, 09 九月 2024 16:05:52 +0800 Subject: [PATCH] 新增订单-生成报告功能 --- src/components/view/b1-report-preparation.vue | 19 ++++++++++++++----- 1 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/components/view/b1-report-preparation.vue b/src/components/view/b1-report-preparation.vue index a99b5f8..9b5d017 100644 --- a/src/components/view/b1-report-preparation.vue +++ b/src/components/view/b1-report-preparation.vue @@ -87,10 +87,15 @@ <div style="width: 100%;height: 100%;"> <div> <el-row class="title"> - <el-col :span="12" style="padding-left: 20px;text-align: left;">鎶ュ憡缂栧埗</el-col> + <el-col :span="12" style="text-align: left;"> + <el-radio-group v-model="radio"size="medium" fill="#3A7BFA"> + <el-radio-button label="0">鎶ュ憡缂栧埗</el-radio-button> + <el-radio-button label="1">璁㈠崟</el-radio-button> + </el-radio-group> + </el-col> </el-row> </div> - <div class="search" style="position: relative;"> + <div class="search" style="position: relative;" v-if="radio==0"> <div class="search_thing"> <div class="search_label">鎶ュ憡缂栧彿锛�</div> <div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable @@ -124,13 +129,13 @@ </el-upload> </div> </div> - <!-- <input id="input" type="file" accept=".doc,.docx"></input> --> - <div class="table"> + <div class="table" v-if="radio==0"> <ValueTable ref="ValueTable" :url="$api.insReport.pageInsReport" :isColumnWidth="true" :componentData="componentData" :key="upIndex" /> </div> + <Order v-if="radio==1"/> </div> <el-dialog title="鍦ㄧ嚎缂栧埗" :visible.sync="claimVisible" width="22cm" :modal-append-to-body="false" :fullscreen="fullscreen"> @@ -213,13 +218,16 @@ <script> import ValueTable from '../tool/value-table.vue' import onlyoffice from '../tool/onlyoffice.vue' + import Order from '../do/b1-report-preparation/order.vue' export default { components: { ValueTable, - onlyoffice + onlyoffice, + Order }, data() { return { + radio:0, componentData: { entity: { entrustCode: null, @@ -486,6 +494,7 @@ refresh() { this.componentData.entity = this.HaveJson(this.entityCopy) this.upIndex++ + this.$refs['ValueTable'].selectList(e) }, async handleWeave(row) { let fileName = (row.urlS===null||row.urlS==='')?row.url:row.urlS -- Gitblit v1.9.3