|
|
@@ -1511,6 +1511,17 @@
|
|
|
style="background: #2D4D89;color: #fff;border-color: #2D4D89;">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <el-dialog title="验证码登录" :visible.sync="codedialogVisible" width="15%" >
|
|
|
+ <div style="padding:20px;display: flex;justify-content: center;align-items: center">
|
|
|
+ <el-input v-model="smscode" placeholder="验证码" style="width: 70%;text-align: center;"></el-input>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="small" @click="codedialogVisible = false">取 消</el-button>
|
|
|
+ <el-button size="small" type="primary" @click="login">登录</el-button>
|
|
|
+ </span>
|
|
|
+
|
|
|
+ </el-dialog>
|
|
|
<el-drawer :visible.sync="drawer" :direction="'rtl'" size="100%" :before-close="handleClose" :destroy-on-close="true">
|
|
|
|
|
|
<div class="drawer-main">
|
|
|
@@ -1540,6 +1551,7 @@ import agreementHistoryRecord from "./AgreementHistoryRecord.vue"
|
|
|
import agreementUnderwritingRule from "./AgreementUnderwritingRule.vue"
|
|
|
import agreementNonVehicleConfig from "./AgreementNonVehicleConfig.vue"
|
|
|
import { updateFeeFile } from "../../../http/moudules/insCompany";
|
|
|
+import {crawlerlogin1} from "../../../http/moudules/sys";
|
|
|
export default {
|
|
|
components: {
|
|
|
tree,
|
|
|
@@ -2201,6 +2213,7 @@ export default {
|
|
|
serialNumber: 0, //序号
|
|
|
auditType: "",
|
|
|
productsCode: "",//险种匹配
|
|
|
+ smsCode:"",
|
|
|
},
|
|
|
//产品费用
|
|
|
productCostForm: {
|
|
|
@@ -2557,6 +2570,9 @@ export default {
|
|
|
selectedLengthList: [], // 保存每页已选择的的数据的条数,用与selectedLength计算
|
|
|
hasSelectedList: [], // 保存每页已选择的数据,用与回显
|
|
|
hadSelectedList: [], // 保存每页已选择的数据,用与回显(因切换分页时已选中的数据会清零,所以要单独再保存一次)
|
|
|
+ codedialogVisible: false,//验证码弹窗
|
|
|
+ codeLoginVisible: false,//验证码弹窗
|
|
|
+ smscode: "",//验证码
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -4235,8 +4251,40 @@ export default {
|
|
|
this.agreement.custodianId = ''
|
|
|
this.custodianIdData = ''
|
|
|
},
|
|
|
+
|
|
|
+ login() {
|
|
|
+ this.agreement.smsCode = this.smscode
|
|
|
+ let params = {
|
|
|
+ agreement: this.agreement,
|
|
|
+ attribution: this.attributionform,
|
|
|
+ dept: this.dept,
|
|
|
+ };
|
|
|
+ this.$api.sys.crawlerlogin1(params).then((res) => {
|
|
|
+ if (res.code == '200') {
|
|
|
+ this.codedialogVisible=false;
|
|
|
+ this.codeLoginVisible = true;
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'error',
|
|
|
+ message: res.msg,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
//提交
|
|
|
submitForm() {
|
|
|
+ let code = this.agreement.partnerCompaniesId.substring(0,4);
|
|
|
+ let apiType = this.attributionform.apiType;
|
|
|
+ if(code == 'TSBX' && apiType == '2' && !this.codeLoginVisible){
|
|
|
+ this.$api.sys.taiShanCode1(this.attributionform).then((res) => {
|
|
|
+ if (res.code != '200') {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.codedialogVisible = true
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
let agreementCheckFlag = true; //协议信息校验标志
|
|
|
this.$refs["addAgreementRef"].validate((valid) => {
|
|
|
if (!valid) {
|
|
|
@@ -4265,6 +4313,7 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
//如果校验通过,则进行提交
|
|
|
if (agreementCheckFlag && accountCheckFlag) {
|
|
|
if (this.operType == "ADD") {
|