|
|
@@ -630,42 +630,37 @@ export default {
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
|
submitForm() {
|
|
|
- this.$refs["form"].validate((valid) => {
|
|
|
- if (valid) {
|
|
|
- const loading = this.$loading({
|
|
|
- lock: true,
|
|
|
- text: "Loading",
|
|
|
- spinner: "el-icon-loading",
|
|
|
- background: "rgba(0, 0, 0, 0.7)",
|
|
|
- });
|
|
|
- listCompanyHandler().then((response) => {
|
|
|
- var self = this;
|
|
|
- if (response.data == true) {
|
|
|
- this.form.zfrId = this.zfrId;
|
|
|
- addRecord(this.form)
|
|
|
- .then((response) => {
|
|
|
- console.log(response);
|
|
|
- loading.close();
|
|
|
- this.zfrId = response.data.zfrId;
|
|
|
- this.isOpenApproval();
|
|
|
- // this.msgSuccess("融资申请成功");
|
|
|
- // this.$store.dispatch("tagsView/delView", this.$route);
|
|
|
- // this.$router.go(-1);
|
|
|
- })
|
|
|
- .catch((response) => {
|
|
|
- loading.close();
|
|
|
- });
|
|
|
- } else {
|
|
|
- self.$message({
|
|
|
- message: "此操作需经办人权限,请确认您是否是经办人",
|
|
|
- type: "warning",
|
|
|
- });
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: "Loading",
|
|
|
+ spinner: "el-icon-loading",
|
|
|
+ background: "rgba(0, 0, 0, 0.7)",
|
|
|
+ });
|
|
|
+ listCompanyHandler().then((response) => {
|
|
|
+ var self = this;
|
|
|
+ if (response.data == true) {
|
|
|
+ this.form.zfrId = this.zfrId;
|
|
|
+ addRecord(this.form)
|
|
|
+ .then((response) => {
|
|
|
+ console.log(response);
|
|
|
loading.close();
|
|
|
- }
|
|
|
+ this.zfrId = response.data.zfrId;
|
|
|
+ this.isOpenApproval();
|
|
|
+ // this.msgSuccess("融资申请成功");
|
|
|
+ // this.$store.dispatch("tagsView/delView", this.$route);
|
|
|
+ // this.$router.go(-1);
|
|
|
+ })
|
|
|
+ .catch((response) => {
|
|
|
+ loading.close();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ self.$message({
|
|
|
+ message: "此操作需经办人权限,请确认您是否是经办人",
|
|
|
+ type: "warning",
|
|
|
});
|
|
|
+ loading.close();
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
},
|
|
|
/* 清空 */
|
|
|
clearBoth() {
|