d164eca5 by renchao@pashanhoo.com

style:企业银行

1 parent 96ea988b
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-01-17 09:02:49
* @LastEditTime: 2024-01-17 09:04:11
-->
<template>
<div class="from-clues">
......@@ -106,7 +106,7 @@
* @author: renchao
*/
handleAdd () {
this.$popupDialog("添加企业", "xxba/components/addDialog", { isAdd: 1, QyYh: 1 }, "75%")
this.$popupDialog("添加企业", "xxba/qyxxba/components/addDialog", { isAdd: 1, QyYh: 1 }, "75%")
},
/**
* @description: handleDelete
......
......@@ -99,7 +99,7 @@
}
};
import store from '@/store/index.js'
import { addQy, update } from "@/api/xxba.js"
import { addQy, update, addYh } from "@/api/xxba.js"
import clxx from './clxx/index.vue'
export default {
props: {
......@@ -149,7 +149,7 @@
],
rules: {
qymc: [
{ required: true, message: '企业名称不能为空', trigger: 'blur' }
{ required: true, message: '银行名称不能为空', trigger: 'blur' }
],
dh: [
{ required: true, validator: checkPhone, trigger: ["blur"] },
......@@ -215,19 +215,36 @@
that.$refs['ruleForm'].validate((valid) => {
if (valid) {
store.dispatch("user/refreshPage", false);
addQy(this.ruleForm).then(res => {
if (res.code == 200) {
that.$message.success('保存成功')
that.$emit("input", false);
that.$refs['ruleForm'].resetFields();
that.resetTableFields();
that.closeDialog();
//刷新列表
store.dispatch("user/refreshPage", true);
} else {
that.$message.error(res.message);
}
})
if (this.formData.QyYh == 1) {
addQy(this.ruleForm).then(res => {
if (res.code == 200) {
that.$message.success('保存成功')
that.$emit("input", false);
that.$refs['ruleForm'].resetFields();
that.resetTableFields();
that.closeDialog();
//刷新列表
store.dispatch("user/refreshPage", true);
} else {
that.$message.error(res.message);
}
})
} else {
addYh(this.ruleForm).then(res => {
if (res.code == 200) {
that.$message.success('保存成功')
that.$emit("input", false);
that.$refs['ruleForm'].resetFields();
that.resetTableFields();
that.closeDialog();
//刷新列表
store.dispatch("user/refreshPage", true);
} else {
that.$message.error(res.message);
}
})
}
} else {
this.$message.error('请完善表单');
return false;
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-01-17 09:02:55
* @LastEditTime: 2024-01-17 09:03:56
-->
<template>
<div class="from-clues">
......@@ -106,7 +106,7 @@
* @author: renchao
*/
handleAdd () {
this.$popupDialog("添加银行", "xxba/components/addDialog", { isAdd: 1, QyYh: 2 }, "75%")
this.$popupDialog("添加银行", "xxba/yhjgba/components/addDialog", { isAdd: 1, QyYh: 2 }, "75%")
},
/**
* @description: handleDelete
......