|
@@ -9,7 +9,7 @@
|
|
|
<div class="details-body flex">
|
|
<div class="details-body flex">
|
|
|
<div style="background-color: #fff;">
|
|
<div style="background-color: #fff;">
|
|
|
<ul class="tabLeft">
|
|
<ul class="tabLeft">
|
|
|
- <li :class="{ 'li-selected': selectedItem === 'gsxx' }" @click="selectItem('gsxx')">归属信息</li>
|
|
|
|
|
|
|
+ <li :class="{ 'li-selected': selectedItem === 'gsxx' }" @click="selectItem('gsxx')">归属信息</li>
|
|
|
<li :class="{ 'li-selected': selectedItem === 'cjxx' }" @click="selectItem('cjxx')">投保信息</li>
|
|
<li :class="{ 'li-selected': selectedItem === 'cjxx' }" @click="selectItem('cjxx')">投保信息</li>
|
|
|
<li :class="{ 'li-selected': selectedItem === 'bfys' }" @click="selectItem('bfys')">保费因素</li>
|
|
<li :class="{ 'li-selected': selectedItem === 'bfys' }" @click="selectItem('bfys')">保费因素</li>
|
|
|
<li :class="{ 'li-selected': selectedItem === 'clxx' }" @click="selectItem('clxx')">车辆信息</li>
|
|
<li :class="{ 'li-selected': selectedItem === 'clxx' }" @click="selectItem('clxx')">车辆信息</li>
|
|
@@ -38,25 +38,25 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div style="margin:20px;height: 60vh;overflow-y: auto;width: 100%;">
|
|
<div style="margin:20px;height: 60vh;overflow-y: auto;width: 100%;">
|
|
|
<OpenCloseBox id="gsxx">
|
|
<OpenCloseBox id="gsxx">
|
|
|
- <span slot="title">归属信息</span>
|
|
|
|
|
- <div slot="boby">
|
|
|
|
|
- <el-row class="premium-style " :gutter="20">
|
|
|
|
|
- <el-col :span="24"><span>归属机构:</span>{{ orderInfo.deptAreaInfo }}</el-col>
|
|
|
|
|
- <el-col :span="6"><span>本人工号:</span>{{ orderInfo.userid }}</el-col>
|
|
|
|
|
- <el-col :span="6"><span>本人姓名:</span>{{ orderInfo.username }}</el-col>
|
|
|
|
|
- <el-col :span="6"><span>联系方式:</span>{{ orderInfo.mobile }}</el-col>
|
|
|
|
|
- <el-col :span="6"><span>性别:</span>{{ orderInfo.sex }}</el-col>
|
|
|
|
|
- </el-row>
|
|
|
|
|
- <el-row class="premium-style " :gutter="20">
|
|
|
|
|
- <el-col v-if="orderInfo.referrerDeptAreaInfo" :span="24"><span>推荐人归属机构:</span>{{
|
|
|
|
|
- orderInfo.referrerDeptAreaInfo }}</el-col>
|
|
|
|
|
- <el-col :span="6"><span>推荐人工号:</span>{{ orderInfo.userid }}</el-col>
|
|
|
|
|
- <el-col :span="6"><span>推荐人姓名:</span>{{ orderInfo.username }}</el-col>
|
|
|
|
|
- <el-col :span="6"><span>联系方式:</span>{{ orderInfo.referrerMobile }}</el-col>
|
|
|
|
|
- <el-col :span="6"><span>性别:</span>{{ orderInfo.referrerSex }}</el-col>
|
|
|
|
|
- </el-row>
|
|
|
|
|
- </div>
|
|
|
|
|
- </OpenCloseBox>
|
|
|
|
|
|
|
+ <span slot="title">归属信息</span>
|
|
|
|
|
+ <div slot="boby">
|
|
|
|
|
+ <el-row class="premium-style " :gutter="20">
|
|
|
|
|
+ <el-col :span="24"><span>归属机构:</span>{{ orderInfo.deptAreaInfo }}</el-col>
|
|
|
|
|
+ <el-col :span="6"><span>本人工号:</span>{{ orderInfo.userid }}</el-col>
|
|
|
|
|
+ <el-col :span="6"><span>本人姓名:</span>{{ orderInfo.username }}</el-col>
|
|
|
|
|
+ <el-col :span="6"><span>联系方式:</span>{{ orderInfo.mobile }}</el-col>
|
|
|
|
|
+ <el-col :span="6"><span>性别:</span>{{ orderInfo.sex }}</el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row class="premium-style " :gutter="20">
|
|
|
|
|
+ <el-col v-if="orderInfo.referrerDeptAreaInfo" :span="24"><span>推荐人归属机构:</span>{{
|
|
|
|
|
+ orderInfo.referrerDeptAreaInfo }}</el-col>
|
|
|
|
|
+ <el-col :span="6"><span>推荐人工号:</span>{{ orderInfo.userid }}</el-col>
|
|
|
|
|
+ <el-col :span="6"><span>推荐人姓名:</span>{{ orderInfo.username }}</el-col>
|
|
|
|
|
+ <el-col :span="6"><span>联系方式:</span>{{ orderInfo.referrerMobile }}</el-col>
|
|
|
|
|
+ <el-col :span="6"><span>性别:</span>{{ orderInfo.referrerSex }}</el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </OpenCloseBox>
|
|
|
<OpenCloseBox id="cjxx">
|
|
<OpenCloseBox id="cjxx">
|
|
|
<span slot="title">投保信息</span>
|
|
<span slot="title">投保信息</span>
|
|
|
<div slot="boby">
|
|
<div slot="boby">
|
|
@@ -259,37 +259,24 @@
|
|
|
<OpenCloseBox id="jyx" v-if="orderInfo.accidentInfo && orderInfo.accidentInfo.length > 0">
|
|
<OpenCloseBox id="jyx" v-if="orderInfo.accidentInfo && orderInfo.accidentInfo.length > 0">
|
|
|
<span slot="title">驾意险</span>
|
|
<span slot="title">驾意险</span>
|
|
|
<div slot="boby">
|
|
<div slot="boby">
|
|
|
- <el-table
|
|
|
|
|
- :data="orderInfo.accidentInfo"
|
|
|
|
|
- stripe
|
|
|
|
|
- border
|
|
|
|
|
- :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '500', color: '#333333' }"
|
|
|
|
|
- style="width: 100%">
|
|
|
|
|
- <el-table-column
|
|
|
|
|
- prop="name"
|
|
|
|
|
- align="center"
|
|
|
|
|
- label="驾意险名称">
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
|
+ <el-table :data="orderInfo.accidentInfo" stripe border
|
|
|
|
|
+ :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '500', color: '#333333' }" style="width: 100%">
|
|
|
|
|
+ <el-table-column prop="name" align="center" label="驾意险名称">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
<span style="color: #D42426;">{{ scope.row.name }}</span>
|
|
<span style="color: #D42426;">{{ scope.row.name }}</span>
|
|
|
- </template>
|
|
|
|
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
|
|
- prop="amount"
|
|
|
|
|
- align="center"
|
|
|
|
|
- label="保险金额">
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- <span >¥{{ scope.row.amount ?scope.row.amount:'-' }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ <el-table-column prop="amount" align="center" label="保险金额">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span>¥{{ scope.row.amount ? scope.row.amount : '-' }}</span>
|
|
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
|
|
- align="center"
|
|
|
|
|
- prop="premium"
|
|
|
|
|
- label="保费">
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- <span >¥{{ scope.row.premium?scope.row.premium:'-' }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ <el-table-column align="center" prop="premium" label="保费">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span>¥{{ scope.row.premium ? scope.row.premium : '-' }}</span>
|
|
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- </el-table>
|
|
|
|
|
|
|
+ </el-table>
|
|
|
<!-- <div class="quotation-style driving-style">
|
|
<!-- <div class="quotation-style driving-style">
|
|
|
<b>产品</b>
|
|
<b>产品</b>
|
|
|
<b>份数</b>
|
|
<b>份数</b>
|
|
@@ -384,8 +371,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</OpenCloseBox>
|
|
</OpenCloseBox>
|
|
|
|
|
|
|
|
- <OpenCloseBox id="jgglf"
|
|
|
|
|
- v-if="isAuditing && orderInfo.feeOrderNewVo && orderInfo.feeOrderNewVo.deptManagerFee">
|
|
|
|
|
|
|
+ <OpenCloseBox id="jgglf" v-if="isAuditing && orderInfo.feeOrderNewVo && orderInfo.feeOrderNewVo.deptManagerFee">
|
|
|
<span slot="title">机构管理费</span>
|
|
<span slot="title">机构管理费</span>
|
|
|
<div slot="boby" style="font-size:12px;width: 100%" class="FeeEnclosure">
|
|
<div slot="boby" style="font-size:12px;width: 100%" class="FeeEnclosure">
|
|
|
<el-table :data="orderInfo.feeOrderNewVo.deptManagerFee" :border="true" width="100%" :stripe="true"
|
|
<el-table :data="orderInfo.feeOrderNewVo.deptManagerFee" :border="true" width="100%" :stripe="true"
|
|
@@ -426,34 +412,34 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="deptPremiumsLevelOne" label="一级管理费">
|
|
<el-table-column prop="deptPremiumsLevelOne" label="一级管理费">
|
|
|
- <template slot-scope="scope" >
|
|
|
|
|
- <span >¥{{ scope.row.deptPremiumsLevelOne }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="deptPremiumsLevelTwo" label="二级管理费">
|
|
|
|
|
- <template slot-scope="scope" >
|
|
|
|
|
- <span >¥{{ scope.row.deptPremiumsLevelTwo }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="deptPremiumsLevelThree" label="三级管理费">
|
|
|
|
|
- <template slot-scope="scope" >
|
|
|
|
|
- <span >¥{{ scope.row.deptPremiumsLevelThree }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="deptPremiumsLevelFoure" label="四级管理费">
|
|
|
|
|
- <template slot-scope="scope" >
|
|
|
|
|
- <span >¥{{ scope.row.deptPremiumsLevelFoure }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="deptPremiumsLevelFive" label="五级管理费">
|
|
|
|
|
- <template slot-scope="scope" >
|
|
|
|
|
- <span >¥{{ scope.row.deptPremiumsLevelFive }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="profitMarginPremiums" label="利润差值">
|
|
|
|
|
- <template slot-scope="scope" >
|
|
|
|
|
- <span >¥{{ scope.row.profitMarginPremiums }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span>¥{{ scope.row.deptPremiumsLevelOne }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="deptPremiumsLevelTwo" label="二级管理费">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span>¥{{ scope.row.deptPremiumsLevelTwo }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="deptPremiumsLevelThree" label="三级管理费">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span>¥{{ scope.row.deptPremiumsLevelThree }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="deptPremiumsLevelFoure" label="四级管理费">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span>¥{{ scope.row.deptPremiumsLevelFoure }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="deptPremiumsLevelFive" label="五级管理费">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span>¥{{ scope.row.deptPremiumsLevelFive }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="profitMarginPremiums" label="利润差值">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span>¥{{ scope.row.profitMarginPremiums }}</span>
|
|
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
</div>
|
|
</div>
|
|
@@ -501,54 +487,54 @@
|
|
|
@click="agreementProductCostsSaveFun()">匹配费用信息</el-button></span>
|
|
@click="agreementProductCostsSaveFun()">匹配费用信息</el-button></span>
|
|
|
<div slot="boby" style="font-size:12px;width: 100%" class="FeeEnclosure">
|
|
<div slot="boby" style="font-size:12px;width: 100%" class="FeeEnclosure">
|
|
|
<el-table :data="feeOrderNewVoList.list" :span-method="feeOrderNewVomergeRows" :border="true" width="100%"
|
|
<el-table :data="feeOrderNewVoList.list" :span-method="feeOrderNewVomergeRows" :border="true" width="100%"
|
|
|
- :stripe="true" size="mini" :header-cell-style="{
|
|
|
|
|
- background: '#F7F7F9',
|
|
|
|
|
- fontWeight: '700',
|
|
|
|
|
- color: '#606266',
|
|
|
|
|
- }">
|
|
|
|
|
- <el-table-column prop="type" label="">
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="insuranceType" label="险种">
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="premium" label="保费">
|
|
|
|
|
- <template slot-scope="scope" >
|
|
|
|
|
- <span >¥{{ scope.row.premium }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="otherCostsProportion" label="跟单比例">
|
|
|
|
|
- <template slot-scope="scope" >
|
|
|
|
|
- <span v-if="isAuditing || scope.row.type !== '入口费用'">{{ scope.row.otherCostsProportion }}% </span>
|
|
|
|
|
- <el-input v-else v-model="scope.row.otherCostsProportion" size="mini"></el-input>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="superviseCosts" label="手续费比例">
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- <span v-if="isAuditing || scope.row.type !== '入口费用'">{{ scope.row.superviseCosts }}% </span>
|
|
|
|
|
- <el-input v-else v-model="scope.row.superviseCosts" size="mini"></el-input>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="totalProportion" label="总比例">
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- <span v-if="isAuditing || scope.row.type !== '入口费用'">{{ scope.row.totalProportion }}%</span>
|
|
|
|
|
- <el-input v-else v-model="scope.row.totalProportion" size="mini"></el-input>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="otherCostsPremiums" label="跟单费">
|
|
|
|
|
- <template slot-scope="scope" >
|
|
|
|
|
- <span >¥{{ scope.row.otherCostsPremiums }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="superviseCostsPremiums" label="手续费">
|
|
|
|
|
- <template slot-scope="scope" >
|
|
|
|
|
- <span >¥{{ scope.row.superviseCostsPremiums }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="totalAmount" label="总费用">
|
|
|
|
|
- <template slot-scope="scope" >
|
|
|
|
|
- <span >¥{{ scope.row.totalAmount }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- </el-table>
|
|
|
|
|
|
|
+ :stripe="true" size="mini" :header-cell-style="{
|
|
|
|
|
+ background: '#F7F7F9',
|
|
|
|
|
+ fontWeight: '700',
|
|
|
|
|
+ color: '#606266',
|
|
|
|
|
+ }">
|
|
|
|
|
+ <el-table-column prop="type" label="">
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="insuranceType" label="险种">
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="premium" label="保费">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span>¥{{ scope.row.premium }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="otherCostsProportion" label="跟单比例">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span v-if="isAuditing || scope.row.type !== '入口费用'">{{ scope.row.otherCostsProportion }}% </span>
|
|
|
|
|
+ <el-input v-else v-model="scope.row.otherCostsProportion" size="mini"></el-input>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="superviseCosts" label="手续费比例">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span v-if="isAuditing || scope.row.type !== '入口费用'">{{ scope.row.superviseCosts }}% </span>
|
|
|
|
|
+ <el-input v-else v-model="scope.row.superviseCosts" size="mini"></el-input>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="totalProportion" label="总比例">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span v-if="isAuditing || scope.row.type !== '入口费用'">{{ scope.row.totalProportion }}%</span>
|
|
|
|
|
+ <el-input v-else v-model="scope.row.totalProportion" size="mini"></el-input>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="otherCostsPremiums" label="跟单费">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span>¥{{ scope.row.otherCostsPremiums }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="superviseCostsPremiums" label="手续费">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span>¥{{ scope.row.superviseCostsPremiums }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="totalAmount" label="总费用">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span>¥{{ scope.row.totalAmount }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ </el-table>
|
|
|
</div>
|
|
</div>
|
|
|
</OpenCloseBox>
|
|
</OpenCloseBox>
|
|
|
<OpenCloseBox id="fxmx1" v-if="orderInfo.feeOrderNewVo && orderInfo.distributionLevelVoList && Feepermissions">
|
|
<OpenCloseBox id="fxmx1" v-if="orderInfo.feeOrderNewVo && orderInfo.distributionLevelVoList && Feepermissions">
|
|
@@ -563,15 +549,15 @@
|
|
|
<el-table-column prop="distributionLevel" label="等级"></el-table-column>
|
|
<el-table-column prop="distributionLevel" label="等级"></el-table-column>
|
|
|
<el-table-column prop="userName" label="接收人"></el-table-column>
|
|
<el-table-column prop="userName" label="接收人"></el-table-column>
|
|
|
<el-table-column prop="distributionRatio" label="比例">
|
|
<el-table-column prop="distributionRatio" label="比例">
|
|
|
- <template slot-scope="scope" >
|
|
|
|
|
- <span>{{ scope.row.distributionRatio }}%</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="amount" label="金额">
|
|
|
|
|
- <template slot-scope="scope" >
|
|
|
|
|
- <span>¥{{ scope.row.amount }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span>{{ scope.row.distributionRatio }}%</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="amount" label="金额">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span>¥{{ scope.row.amount }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
</div>
|
|
</div>
|
|
|
</OpenCloseBox>
|
|
</OpenCloseBox>
|
|
@@ -959,22 +945,39 @@ export default {
|
|
|
phoneDial(type) {
|
|
phoneDial(type) {
|
|
|
this.$api.letter.getMobileByOrderNo(this.orderInfo.orderno, type).then((res) => {
|
|
this.$api.letter.getMobileByOrderNo(this.orderInfo.orderno, type).then((res) => {
|
|
|
if (res.code == '200') {
|
|
if (res.code == '200') {
|
|
|
- // 定义请求的URL和数据
|
|
|
|
|
- const url = 'https://172.168.1.66/call';
|
|
|
|
|
- const data = {
|
|
|
|
|
- 'username': res.data.username,
|
|
|
|
|
- 'password': res.data.password,
|
|
|
|
|
- 'number': res.data.phone
|
|
|
|
|
- };
|
|
|
|
|
|
|
+ const url = `http://172.168.1.66/call?username=${res.data.username}&password=${res.data.password}&number=${res.data.phone}`;
|
|
|
|
|
+ // 获取屏幕的宽度和高度
|
|
|
|
|
+ const screenWidth = window.screen.width;
|
|
|
|
|
+ const screenHeight = window.screen.height;
|
|
|
|
|
+
|
|
|
|
|
+ // 计算窗口的位置,使其位于右上角
|
|
|
|
|
+ const windowWidth = 600;
|
|
|
|
|
+ const windowHeight = 550;
|
|
|
|
|
+ const windowLeft = screenWidth - windowWidth;
|
|
|
|
|
+ const windowTop = 0; // 顶部位置始终为0,因为我们要放在右上角
|
|
|
|
|
+
|
|
|
|
|
+ // 打开新窗口
|
|
|
|
|
+ window.open(
|
|
|
|
|
+ url,
|
|
|
|
|
+ 'newwindow',
|
|
|
|
|
+ `width=${windowWidth},height=${windowHeight},left=${windowLeft},top=${windowTop},menubar=no,toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes`
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
|
|
+ // const url = 'https://172.168.1.66/call';
|
|
|
|
|
+ // const params = {
|
|
|
|
|
+ // username: res.data.username,
|
|
|
|
|
+ // password: res.data.password,
|
|
|
|
|
+ // number: res.data.phone
|
|
|
|
|
+ // };
|
|
|
|
|
|
|
|
- // 发送POST请求
|
|
|
|
|
- axios.post(url, data)
|
|
|
|
|
- .then(response => {
|
|
|
|
|
- console.log(response.data); // 输出响应内容
|
|
|
|
|
- })
|
|
|
|
|
- .catch(error => {
|
|
|
|
|
- console.error('Error:', error); // 处理错误
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ // // 发送GET请求
|
|
|
|
|
+ // axios.get(url, { params })
|
|
|
|
|
+ // .then(response => {
|
|
|
|
|
+ // console.log(response.data); // 输出响应内容
|
|
|
|
|
+ // })
|
|
|
|
|
+ // .catch(error => {
|
|
|
|
|
+ // console.error('Error:', error); // 处理错误
|
|
|
|
|
+ // });
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|