Commit eeff2d5d by Wuyuqiu

申报交易检核、提交功能完善

parent 75362606
......@@ -88,10 +88,10 @@ export default {
// },
start: async function() {
this.handleSubmit && (await this.handleSubmit());
this.handleSubmit && (await this.handleSubmit('bopbut.sav'));
},
check: async function() {
this.handleCheck && (await this.handleCheck());
this.handleCheck && (await this.handleCheck('bopbut.chk'));
},
save: async function() {
this.handleStash && (await this.handleStash());
......
......@@ -3,8 +3,14 @@ import Utils from "~/utils";
export default {
methods: {
// 表单提交
async handleSubmit() {
let result = await this.save();
async handleSubmit(rulePath) {
let result;
if(rulePath==""){
result = await this.save();
}else{
result = await this.executeRule(rulePath);
}
// let result = await this.save();
if (result.respCode == SUCCESS && Object.keys(result.fieldErrors).length == 0) {
this.$notify({
title: "成功",
......@@ -111,8 +117,14 @@ export default {
}
},
// 表单校验
async handleCheck() {
let result = await this.checkAll();
async handleCheck(rulePath) {
let result;
if(rulePath==""){
result = await this.checkAll();
}else{
result = await this.executeRule(rulePath);
}
// let result = await this.checkAll();
if (result.respCode == SUCCESS) {
const fieldErrors = result.fieldErrors;
this.updateModel(result.data);
......
......@@ -19,7 +19,6 @@
style="width: 100%"
placeholder="请选择操作类型"
:code="codes.actiontype"
disabled
>
</c-select>
</el-form-item>
......@@ -214,7 +213,6 @@
v-model="model.recgrp.bas.custcod"
maxlength="18"
placeholder="请输入组织机构代码"
disabled
></c-input>
<template slot="footer">
<c-checkbox
......
......@@ -35,6 +35,7 @@
:handleCheck="handleCheck"
:handleStash="handleStash"
>
<!-- ('bopbut.chk') -->
</c-function-btn>
</c-page>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment