Commit 0da3d2bd by hulei

add sptsel.del

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