Commit 0eeca270 by wangna

cup静态交易修改

parent 6e181155
......@@ -4,8 +4,8 @@ export function queryByPage(data) {
return Api.post("/manager/bopcur/queryByPage", data)
}
export function queryById(inr) {
return Api.post(`/manager/bopcur/queryById?inr=${inr}`)
export function queryById(data) {
return Api.post(`/manager/bopcur/queryById`, data)
}
export function add(data) {
......@@ -16,6 +16,6 @@ export function edit(data) {
return Api.post("/manager/bopcur/edit", data)
}
export function deleteById(inr) {
return Api.post(`/manager/bopcur/deleteById?inr=${inr}`)
export function deleteById(data) {
return Api.post(`/manager/bopcur/deleteById`, data)
}
\ No newline at end of file
......@@ -353,6 +353,12 @@ import Dbafee from "~/views/Statics/Dbafee";
import Dbefee from "~/views/Statics/Dbefee";
import Dbdfee from "~/views/Statics/Dbdfee";
import Infcup from "~/views/Statics/Infcup";
import Dbicup from "~/views/Statics/Dbicup";
import Dbacup from "~/views/Statics/Dbacup";
import Dbecup from "~/views/Statics/Dbecup";
import Dbdcup from "~/views/Statics/Dbdcup";
import Inftxm2 from "~/views/Statics/Inftxm";
import Infdia from "~/views/Statics/Infdia";
......@@ -731,5 +737,11 @@ const BusRouter = [
{ path: 'dbidia/:inr', component: Dbiact, name: 'StaticsDbiact', meta: { title: (tag) => { return '交易备忘录详情: ' + tag.params.inr } } },
{ path: 'dbedia/:inr', component: Dbeact, name: 'StaticsDbeact', meta: { title: (tag) => { return '交易备忘录修改: ' + tag.params.inr } } },
{ path: 'dbddia/:inr', component: Dbdact, name: 'StaticsDbdact', meta: { title: (tag) => { return '交易备忘录删除: ' + tag.params.inr } } },
{ path: 'infcup', component: Infcup, name: 'StaticsInfcup', meta: { title: '查询申报币种信息' } },
{ path: 'dbacup', component: Dbacup, name: 'StaticsDbacup', meta: { title: '新增申报币别信息' } },
{ path: 'dbicup/:inr', component: Dbicup, name: 'StaticsDbicup', meta: { title: (tag) => { return '查看申报币种详情信息: ' + tag.params.inr } } },
{ path: 'dbecup/:inr', component: Dbecup, name: 'StaticsDbecup', meta: { title: (tag) => { return '修改申报币别信息: ' + tag.params.inr } } },
{ path: 'dbdcup/:inr', component: Dbdcup, name: 'StaticsDbdcup', meta: { title: (tag) => { return '删除申报币别信息: ' + tag.params.inr } } },
]
export default BusRouter
\ No newline at end of file
......@@ -203,6 +203,7 @@ export default {
{ inifrm: "infusr", ininam: "柜员信息查询", pntmiu: "10" },
{ inifrm: "infdia", ininam: "交易备忘录查询", pntmiu: "10" },
{ inifrm: "inftxm2", ininam: "固定格式文本查询", pntmiu: "10"},
{ inifrm: "infcup", ininam: "查询申报币种信息", pntmiu: "10"},
// { inifrm: "gitset", ininam: "进口保函赔付", pntmiu: "13" },
// { inifrm: "gitcrq", ininam: "进口保函索赔登记", pntmiu: "13" },
{ inifrm: "14", ininam: "服务管理", pntmiu: "" },
......
......@@ -91,7 +91,8 @@ export default {
created() {
if (this.type !== "add") {
const inr = this.$route.params.inr;
queryById(inr).then((res) => {
const data = {"inr":inr}
queryById(data).then((res) => {
if (res.inr) {
this.model = res;
} else {
......@@ -140,7 +141,8 @@ export default {
type: "warning",
})
.then(() => {
deleteById(this.model.inr)
const data = {"inr":this.model.inr}
deleteById(data)
.then((res) => {
this.$message.success("删除成功!");
this.goBack(true)
......
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