From bf15135228cbb9ac186cc8cc39e9da32d3f1d90f Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期三, 19 六月 2024 15:51:19 +0800 Subject: [PATCH] 提交一把 --- company/src/components/business/OperaInsuranceApplyWindow.vue | 22 ++++++++++++++++------ 1 files changed, 16 insertions(+), 6 deletions(-) diff --git a/company/src/components/business/OperaInsuranceApplyWindow.vue b/company/src/components/business/OperaInsuranceApplyWindow.vue index 46c2341..543a23e 100644 --- a/company/src/components/business/OperaInsuranceApplyWindow.vue +++ b/company/src/components/business/OperaInsuranceApplyWindow.vue @@ -11,7 +11,7 @@ <div class="desc_item_label" v-if="userInfo.type === 1 &&(model.statusCollect === 2 || model.statusCollect === 3)"> <div class="desc_item_label_left"> <span>淇濋櫓鍒版湡杩樻湁 <b style="color: #F95601;">{{model.loseEfficacyDays ? model.loseEfficacyDays : '-'}}</b> 澶�</span> - <el-button type="primary" v-if="model.statusCollect === 2 || model.statusCollect === 3" @click="$refs.OperaInsuranceApplyAddWindow.open('缁繚', {id: dataId,type: 1 })">涓�閿画淇�</el-button> + <el-button type="primary" v-if="model.statusCollect === 2 || model.statusCollect === 3" @click="goYjxb">涓�閿画淇�</el-button> <el-button type="primary" v-if="model.statusCollect === 2" @click="$refs.additionSubtractionApplication.open('鍔犲噺淇濈敵璇�', { id: dataId })">鍔犲噺淇濈敵璇�</el-button> <el-button type="primary" v-if="model.statusCollect === 2" @click="$refs.factoryChange.open('鏇存崲娲鹃仯鍗曚綅鐢宠', { id: dataId })">鏇存崲娲鹃仯鍗曚綅鐢宠</el-button> </div> @@ -29,7 +29,7 @@ <!-- $refs.operaverifyPhoneNumberWindew.open('楠岃瘉鎵嬫満鍙�')--> <el-button v-if="model.status == 2" type="primary" :disabled="loading" :loading="loading" @click="goSign()">绛剧讲鎶曚繚鍗�</el-button> <el-button v-if="model.status == 5" type="primary" @click="viewBaoxiandan">鏌ョ湅淇濋櫓鍗�</el-button> - <el-button v-if="model.status == 4" type="primary" @click="$refs.OperaInsuranceApplyAddWindow.open('鎶曚繚鐢宠', {id: dataId})">鍐嶆鎶曚繚</el-button> + <el-button v-if="model.status == 4" type="primary" @click="$refs.operaInsuranceApplyAddWindow.open('鎶曚繚鐢宠', {id: dataId})">鍐嶆鎶曚繚</el-button> <el-button v-if="[0, 2, 3, 10].includes(model.status)" type="danger" @click="$refs.applyReturn.open('鐢宠閫�鍥�', {id: dataId})">鐢宠閫�鍥�</el-button> <el-button v-if="model.status == 4" type="primary" @click="closeOrder">鍏抽棴璁㈠崟</el-button> </template> @@ -455,7 +455,7 @@ <!-- 浼佷笟鐢宠閫�鍥� --> <applyReturn ref="applyReturn" @success="successEvent" /> <!-- 鏂板鎶曚繚 --> - <OperaInsuranceApplyAddWindow ref="OperaInsuranceApplyAddWindow" @success="successEvent" /> + <OperaInsuranceApplyAddWindow ref="operaInsuranceApplyAddWindow" @success="result" /> <!-- 鍔犲噺淇濈敵璇� --> <additionSubtractionApplication ref="additionSubtractionApplication" @success="successEvent" /> <!-- 鏇存崲娲鹃仯鍗曚綅鐢宠 --> @@ -485,13 +485,12 @@ import OperaApplyChangeUnitDetailWindow from '@/components/business/OperaApplyChangeUnitDetailWindow' import applyReturn from '@/components/enterprise/applyReturn' -import { getDetail, getSignLink, applyDetailPage, applyChagneDetailPage, exportExcel, applyChagneDetailExcel, applyOpt } from '@/api/business/insuranceApply' +import { getDetail, getSignLink, applyDetailPage, exportExcel, applyChagneDetailExcel, applyOpt } from '@/api/business/insuranceApply' import { findListByDTO } from '@/api/business/dispatchUnit' import { fetchList } from '@/api/business/applyChange' import { findListByDTO as worktypeFindListByDTO } from '@/api/business/worktype' import OperaInsuranceApplyAddWindow from '@/components/enterprise/OperaInsuranceApplyAddWindow' import { mapState } from 'vuex' - import OperaPdfViewerWindow from '@/components/business/OperaPdfViewerWindow' export default { name: 'OperaInsuranceApplyWindow1', @@ -502,11 +501,11 @@ InsuranceDetails, OperaInsuranceApplyCheckWindow, applyReturn, - OperaInsuranceApplyAddWindow, additionSubtractionApplication, factoryChange, OperaApplyChangeDetailWindow, OperaApplyChangeUnitDetailWindow, + OperaInsuranceApplyAddWindow, operaverifyPhoneNumberWindew }, data () { @@ -587,6 +586,17 @@ this.getDW() this.getGZ() }, + result(flag,param){ + console.log(flag,param) + if(param && param.godetail && param.id){ + this.open('濮旀墭淇濊鎯�',{id:param.id}) + }else{ + this.successEvent() + } + }, + goYjxb(){ + this.$refs.operaInsuranceApplyAddWindow.open('缁繚', {id: this.dataId,type: 1 }) + }, // 鍏抽棴璁㈠崟 closeOrder () { this.$confirm('纭鍏抽棴姝よ鍗曞悧?', '鎻愮ず', { -- Gitblit v1.9.3