Commit f80d9177 by nanrui

infcur以及Dbecur静态交易优化。

parent 652ca280
......@@ -67,7 +67,7 @@ import Bctrad from "./Bctrad"
import Bctdor from "./Bctdor"
import Bctset from "./Bctset"
import Bctame from "./Bctame"
import Infcur from "../Statics/Infcur"
import Infcur from "./Infcur"
import Infbed from "./Infbed"
import Letcan from "./Letcan"
import Ordrel from "./Ordrel"
......
......@@ -42,6 +42,9 @@ export default {
};
},
methods: {
async goin(){
this.model = await curInfo(this.$route.params.inr);
},
commitEdit() {
this.model.inr = this.$route.params.inr
this.$refs.modelForm.validate((validated) => {
......@@ -64,6 +67,9 @@ export default {
this.$router.push({ name: "StaticsInfcur", params: { update } });
},
},
created () {
this.goin(this.$route.params.inr);
},
mounted() {
// this.$refs.cur.rules['ptaList'] = [
// { type: 'array', required: true, min: 1, message: '地址信息栏不能为空' }
......
......@@ -48,8 +48,8 @@ export default class Cur {
"maxamt": 9999999999.99,
"ver": "0001",
"etgextkey": "CEBGRP",
"pageSize": 0,
"pageNum": 0
"pageSize": 5,
"pageNum": 1
}
}
}
......
......@@ -103,38 +103,36 @@ export default {
console.log(this.model);
})
},
async onInfbutSearow() {
let rtnmsg = await this.executeRule("infbut.searow")
if (rtnmsg.respCode == SUCCESS) {
console.log(rtnmsg.data);
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
// async onInfbutSearow() {
// let rtnmsg = await this.executeRule("infbut.searow")
// if (rtnmsg.respCode == SUCCESS) {
// console.log(rtnmsg.data);
// //TODO 处理数据逻辑
// this.updateModel(rtnmsg.data);
// this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
// }
// else {
// this.$notify.error({ title: '错误', message: '服务请求失败!' });
// }
// },
queryFunc(pageNumber, pageSize) {
this.model.pageNum = pageNumber
this.model.pageSize = pageSize
// console.log(this.model);
this.onInfcurSearch()
},
curtypeChange(val) {
this.model.curtyp = val;
},
// curtypeChange(val) {
// this.model.curtyp = val;
// },
getCodesByKey(key) {
return codes[key] ?? [];
},
curAdd() {
this.$router.push(`/statics/dbacur`)
},
curInfo(index, row) {
// console.log(row);
this.$router.push(`/statics/dbicur/${row.inr}`)
},
curEdit(index, row) {
this.$router.push(`/statics/dbecur/${row.inr}`)
this.$router.push(`/statics/dbecur/${row.inr}`);
},
// curDelete(index, row) {
// this.$router.push(`/statics/dbdcur/${row.inr}`)
......@@ -148,13 +146,6 @@ export default {
.then(() => {
let paramsData = { };
paramsData.inr = row.inr;
// let result = deleteById(paramsData).then((d) => {return {data: d}});
// console.log(result);
// if(result == "true"){
// this.$message.success("删除成功!");
// }else{
// this.$message.error("删除失败!");
// }
deleteById(paramsData)
.then((res) => {
console.log(res);
......@@ -171,6 +162,7 @@ export default {
message: "已取消删除",
});
});
this.onInfcurSearch();
},
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
......
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