Commit eeff2d5d by Wuyuqiu

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

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