Commit 0da3d2bd by hulei

add sptsel.del

parent fd6ba00b
......@@ -104,7 +104,8 @@ export default {
setTimeout(() => {
this.$router.back()
}, 500)
} else {
}
else {
setTimeout(() => {
this.$router.push('/home')
}, 500)
......
......@@ -22,14 +22,15 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onDelete() {
let rtnmsg = await this.executeRule("delete")
async onDelete(idx,row) {
let params = {selDst:"sptstm",selIds:[idx+1]}
let rtnmsg = await this.executeRule("del",params)
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.stmData.data = rtnmsg.data.sptstm.rows;
this.$notify({ title: '成功', message: '删除成功!' });
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({ title: '错误', message: '删除失败!' });
}
},
async onRouting() {
......@@ -62,16 +63,6 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onDelete() {
let rtnmsg = await this.executeRule("delete")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async continueEdit(row) {
//let rtnmsg = await Api.post("getPendingData",{params:{'selsptinr':row[0]}})
//if (rtnmsg.respCode == SUCCESS) {
......
......@@ -2,7 +2,11 @@
<c-page title="信用证修改">
<div class="eContainer">
<!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
<c-function-btn></c-function-btn>
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
></c-function-btn>
<el-form
:model="model"
:rules="rules"
......@@ -133,19 +137,20 @@ import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Ditame from "~/model/Ditame";
import CommonProcess from "~/mixin/CommonProcess";
import CommonFuncs from "~/mixin/CommonFuncs";
import Pattern from "~/model/Ditame/Pattern";
import Amep from "./Amep";
import Ovwp from "./Ovwp";
import Detp from "./Detp";
import Tk from "./Tk";
import Mt799 from "./Mt799";
import Detp1 from "./Detp1";
import Ovwp from "../Ditopn/Ovwp";
import Detp from "../Ditopn/Detp";
import Tk from "../Ditopn/Tk";
import Mt799 from "../Ditopn/Mt799";
import Detp1 from "../Ditopn/Detp1";
import Addbcb from "../Ditopn/Addbcb";
import Narp from "./Narp";
import Dogpame from "./Dogpame";
import Dorpame from "./Dorpame";
import Adcpame from "./Adcpame";
import Inspame from "./Inspame";
import Addbcb from "./Addbcb";
import Doctre from "./Doctre";
import Stament from "./Stament";
......@@ -185,7 +190,7 @@ export default {
root: this,
};
},
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
mixins: [CommonProcess,CommonFuncs], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "amep",
......@@ -211,16 +216,7 @@ export default {
// consume: "0",
// produce: "0",
// },
// checkAll: {
// uri: "/ditame/checkAll",
// fileName: "ditame.json",
// method: "post",
// basePath: "{{basePath}}",
// scheme: "{{schemes}}",
// host: "{{host}}",
// consume: "0",
// produce: "0",
// },
saveData: {
uri: "/ditame/saveData",
fileName: "ditame.json",
......
......@@ -295,7 +295,7 @@
style="margin-left: 0"
size="small"
type="primary"
@click="onDelete"
@click="onDelete(scope.$index,scope.row)"
>
删除
</c-button>
......
......@@ -66,12 +66,12 @@
</c-col>
<c-col :span="11">
<el-form-item label="执行日期" prop="mtabut.coninf.conexedat">
<el-date-picker
<c-date-picker
type="date"
v-model="model.mtabut.coninf.conexedat"
style="width: 50%"
placeholder="请选择执行日期"
></el-date-picker>
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="7" :offset="5">
......
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