|
|
@@ -399,6 +399,7 @@
|
|
|
:total="totalSize"
|
|
|
></el-pagination>
|
|
|
</div>
|
|
|
+ <!--第一种 二维码 -->
|
|
|
<el-dialog
|
|
|
:visible.sync="codedialogVisible"
|
|
|
width="430px"
|
|
|
@@ -462,6 +463,38 @@
|
|
|
<el-button size="small" style="width:100px;border-color:#D42426;color:#D42426 " @click="codedialogVisible = false">关闭</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+ <!--第二种 二维码 -->
|
|
|
+ <el-dialog
|
|
|
+ :visible.sync="codedialogVisiblePro"
|
|
|
+ width="660px"
|
|
|
+ class="proSaomazhifucodeClass"
|
|
|
+ top="10vh"
|
|
|
+ title="扫码付款"
|
|
|
+ >
|
|
|
+ <div class="flex j-s" >
|
|
|
+ <div class="scan-code">
|
|
|
+ <div style="font-weight: bold;">总金额:<span style="color:#2D4D89 ">{{ sumpremium }}</span></div>
|
|
|
+ <div>交强险:{{ jqpremium }}</div>
|
|
|
+ <div>车船税:{{ taxamount }}</div>
|
|
|
+ <div>商业险:{{ sypremium }}</div>
|
|
|
+ <div>非车险:{{ jypremium }}</div>
|
|
|
+ </div>
|
|
|
+ <div >
|
|
|
+ <img v-if="['太平财险'].includes(inscompany)" :src="paycodeimg" alt="" style="width:100%">
|
|
|
+ <div v-else id="qrcode" ref="qrcode"></div>
|
|
|
+ </div>
|
|
|
+ <div class="scan-code">
|
|
|
+ <div>保险公司:{{ inscompany }}</div>
|
|
|
+ <div>车牌号:{{ licenseNo }}</div>
|
|
|
+ <div>投保人:{{ applyName }}</div>
|
|
|
+ <div>交强险起保日期:{{ jqstartdate }}</div>
|
|
|
+ <div>商业险起保日期:{{ systartdate }}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="small" style="width:100px;background: #EAEDF1;border-color:#EAEDF1;color:#2D4D89 " @click="codedialogVisiblePro = false">关闭</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
<!-- 车辆报价新页面 -->
|
|
|
<detailsDialog ref="detailsDialog" :orderInfo="orderInfo"></detailsDialog>
|
|
|
<!-- 订单轨迹 -->
|
|
|
@@ -630,6 +663,7 @@
|
|
|
</el-dialog>
|
|
|
<!-- 报价单 -->
|
|
|
<quotationDialog ref="quotationDialog" :queryOrders="queryOrders"></quotationDialog>
|
|
|
+ <quotationDialogPro ref="quotationDialogPro" :queryOrders="queryOrders"></quotationDialogPro>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -639,10 +673,13 @@ import CommonUtil from "@/utils/comutil.js";
|
|
|
import Cookies from "js-cookie";
|
|
|
import QRCode from "qrcodejs2";
|
|
|
import quotationDialog from './components/quotationDialog.vue'
|
|
|
+import quotationDialogPro from './components/quotationDialogPro.vue'
|
|
|
import detailsDialog from './components/detailsDialog.vue'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ qrcodeWidth:'180',
|
|
|
+ qrcodeHeight:'180',
|
|
|
ddgjdialogVisible: false,
|
|
|
trajectoryTable: [],
|
|
|
queryOrders: {
|
|
|
@@ -656,6 +693,7 @@ export default {
|
|
|
value2: "",
|
|
|
optionsStatus: [],
|
|
|
codedialogVisible: false,
|
|
|
+ codedialogVisiblePro: false,
|
|
|
loading: false,
|
|
|
pageNum: 1, //页数
|
|
|
pageSize: 20, //条数
|
|
|
@@ -728,7 +766,7 @@ export default {
|
|
|
natureOfVehicleUseoptions:[],
|
|
|
};
|
|
|
},
|
|
|
- components:{quotationDialog,detailsDialog},
|
|
|
+ components:{quotationDialog,detailsDialog,quotationDialogPro},
|
|
|
created() {
|
|
|
this.getDicType("natureOfVehicleUse");//车辆使用性质
|
|
|
this.$api.letter.gainTopList().then((res) => {
|
|
|
@@ -886,7 +924,12 @@ export default {
|
|
|
}
|
|
|
data.logoImg = this.iconfftter(res.data.inscompany);
|
|
|
this.queryOrders = data;
|
|
|
- this.$refs.quotationDialog.setBackupVisible(true)
|
|
|
+ if(this.$store.state.user.roles.managementSource&&this.$store.state.user.roles.managementSource=='3'){
|
|
|
+ this.$refs.quotationDialogPro.setBackupVisible(true)
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ this.$refs.quotationDialog.setBackupVisible(true)
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
@@ -953,8 +996,8 @@ export default {
|
|
|
} else {
|
|
|
this.qrcode = new QRCode("qrcode", {
|
|
|
text: text,
|
|
|
- width: 180,
|
|
|
- height: 180,
|
|
|
+ width: this.qrcodeWidth,
|
|
|
+ height: this.qrcodeHeight ,
|
|
|
colorDark: "#000000",
|
|
|
colorLight: "#ffffff",
|
|
|
correctLevel: QRCode.CorrectLevel.H,
|
|
|
@@ -1130,9 +1173,6 @@ export default {
|
|
|
},
|
|
|
//二维码
|
|
|
carcode(row, item) {
|
|
|
- let params = {
|
|
|
- companyId: item.id,
|
|
|
- };
|
|
|
this.$api.letter.getQrCode(item.id).then((res) => {
|
|
|
if (res.code == "200") {
|
|
|
this.inscompany = res.data.inscompany; //保险公司
|
|
|
@@ -1157,7 +1197,14 @@ export default {
|
|
|
this.creatQrCode(res.data.qrCodeUrl);
|
|
|
}
|
|
|
});
|
|
|
+ if(this.$store.state.user.roles.managementSource&&this.$store.state.user.roles.managementSource=='3'){
|
|
|
+ this.codedialogVisiblePro = true;
|
|
|
+ this.qrcodeWidth='154'
|
|
|
+ this.qrcodeHeight='154'
|
|
|
+ }
|
|
|
+ else{
|
|
|
this.codedialogVisible = true;
|
|
|
+ }
|
|
|
} else {
|
|
|
this.$message({ message: res.msg, type: "warning" });
|
|
|
}
|
|
|
@@ -2128,6 +2175,12 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
+.scan-code{
|
|
|
+ div{
|
|
|
+ margin-top: 10px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
.green_color{
|
|
|
color: #068069;
|
|
|
border: 1px solid #068069;
|
|
|
@@ -2151,6 +2204,13 @@ export default {
|
|
|
}
|
|
|
|
|
|
/deep/ {
|
|
|
+ .proSaomazhifucodeClass .el-dialog__header{
|
|
|
+ background: rgba(45,77,137,0.1);
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+ .proSaomazhifucodeClass .el-dialog__footer{
|
|
|
+ border-top:1px solid #EEF1F6 ;
|
|
|
+ }
|
|
|
.el-step__head {
|
|
|
min-height: 90px;
|
|
|
}
|