From 350d5d8b98ddfbca4149dc46e9c2c63c5e4ed1d9 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期三, 05 三月 2025 11:40:12 +0800 Subject: [PATCH] 下单传参修改 --- src/views/business/productOrder/components/add.vue | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/views/business/productOrder/components/add.vue b/src/views/business/productOrder/components/add.vue index 09deea7..6681783 100644 --- a/src/views/business/productOrder/components/add.vue +++ b/src/views/business/productOrder/components/add.vue @@ -28,9 +28,9 @@ <el-button v-if="active==1&&addObj.sampleType!=undefined&&addObj.sampleType.indexOf('鐢电紗')>-1" size="small" type="primary" @click="openAuxiliaryCore">杈呭姪绾胯姱閰嶇疆</el-button> <el-button v-show="active==1||(tabIndex==4&&active==2)" :loading="saveLoad" size="small" type="primary" @click="save">鎻愪氦</el-button> <!-- 瀹℃牳 --> - <el-button v-show="active==3&&addObj.companyId" :disabled="saveLoad" :loading="saveLoad" size="small" + <el-button v-show="active==3" :disabled="saveLoad" :loading="saveLoad" size="small" @click="upInsOrderOfState(2)">涓嶉�氳繃</el-button> - <el-button v-show="active==3&&addObj.companyId" :loading="saveLoad" size="small" type="primary" + <el-button v-show="active==3" :loading="saveLoad" size="small" type="primary" @click="upInsOrderOfState(1)">閫氳繃</el-button> <el-button size="small" @click="goBack"> <span style="color: #3A7BFA;">杩斿洖</span> @@ -798,9 +798,10 @@ this.getInfo() }, activated() { - if (this.active==1) { - this.getInfo(); - } + this.active = this.$route.query.active + this.tabIndex = this.$route.query.tabIndex + this.currentId = this.$route.query.currentId + this.getInfo(); }, methods: { getInfo() { @@ -1706,6 +1707,9 @@ this.productList = row.insProduct this.productList0 = JSON.parse(JSON.stringify(this.productList)) this.$refs.sampleTable.setCurrentRow(row) + this.$nextTick(() => { + this.$refs.productTable.doLayout(); + }); setTimeout(() => { this.productList.forEach(a => { if (a.state == 1) this.toggleSelection(a) -- Gitblit v1.9.3