Commit 8e4c173f by niewei

oftsel前端界面及调用方法

parent b28a195d
......@@ -5,32 +5,36 @@ export default {
mixins: [commonFunctions],
methods: {
// 双击
async dbClickRow(row) {
let rtnmsg = await Api.post("/frontend/oftsel/dblclick", {
async dbClickRow (row) {
let rtnmsg = await Api.post("/frontend/batdis/dblclick", {
objtyp: row.objtyp,
smdinr: row.objinr,
objinr: row.objinr,
});
console.log(rtnmsg)
if (rtnmsg.respCode == SUCCESS) {
this.routerPush({
path: '/business/msgdtl',
query: {
mpsinr: rtnmsg.mpsinr
mpsinr: rtnmsg.data.mpsinr
}
})
}
},
// 详情
async toDetails(row) {
let rtnmsg = await Api.post("/frontend/oftsel/display", {
inr: row.inr
async toDetails () {
console.log(this.model.batgrp.dotlst)
console.log(this.model.batgrp.dotlst[0].inr)
let rtnmsg = await Api.post("/frontend/batdis/display", {
inr: this.model.batgrp.dotlst[0].inr
});
if (rtnmsg.respCode == SUCCESS) {
this.detailsInfo = rtnmsg.data;
this.detailsInfo = rtnmsg.data.batgrp.doelst;
this.$refs.infoShow.visible = true;
}
},
// 取消关联
toCancelRelate(row) {
toCancelRelate (row) {
console.log(row)
if (row.objtyp == 'smd') {
this.$notify.error({
title: '错误',
......@@ -45,6 +49,7 @@ export default {
});
return;
}
console.log("row:" + row.inr)
this.routerPush({
path: '/business/offrel',
query: {
......
......@@ -40,17 +40,17 @@
<c-col :span="12" style="padding-left: 20px">
<c-col :span="24">
<el-form-item label="状态" prop="batgrp.dot.sta">
<c-input type="text" v-model="model.batgrp.dot.sta"></c-input>
<c-select type="text" v-model="model.batgrp.dot.sta" :code="codes.zfqzsta"></c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="记帐状态" prop="batgrp.dot.recsta">
<c-input type="text" v-model="model.batgrp.dot.recsta"></c-input>
<c-select type="text" v-model="model.batgrp.dot.recsta" :code="codes.recsta"></c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="勾销标志" prop="batgrp.dot.offsta">
<c-input type="text" v-model="model.batgrp.dot.offsta"></c-input>
<c-select type="text" v-model="model.batgrp.dot.offsta" :code="codes.offsta"></c-select>
</el-form-item>
</c-col>
<c-col :span="24">
......@@ -66,6 +66,10 @@
</c-col>
</c-col>
<el-col :span="24" style="margin-top: 2px;margin-bottom: 1px;">
<c-button style="margin-left: 0" type='primary' size="medium" @click="toDetails()">详情</c-button>
</el-col>
<c-col :span="24">
<div class="e-table-wrapper">
<el-table
......@@ -131,7 +135,7 @@
</el-table-column>
<el-table-column fixed="right" label="操作" width="240px">
<template slot-scope="scope">
<c-button style="margin-left: 0" type='text' size="small" @click="toDetails(scope.row)">详情</c-button>
<!-- <c-button style="margin-left: 0" type='text' size="small" @click="toDetails(scope.row)">详情</c-button> -->
<c-button style="margin-left: 0" type='text' size="small" @click="toCancelRelate(scope.row)">取消关联</c-button>
</template>
</el-table-column>
......
......@@ -60,16 +60,19 @@ export default {
traname1: ''
};
const rtnmsg = await Api.post(`/${this.moduleRouter()}/${this.trnName}/init`, params);
console.log(rtnmsg);
console.log(rtnmsg.respCode === SUCCESS);
if (rtnmsg.respCode === SUCCESS) {
Utils.copyValueFromVoData(this.model.batgrp, rtnmsg.data);
Utils.copyValueFromVoData(this.model.batgrp, rtnmsg.data.batgrp);
console.log(this.model.batgrp)
}
this.model.batgrp.dotlst = [
{
rsptim: '1',
valdat: '1',
ownref: '1',
}
]
// this.model.batgrp.dotlst = [
// {
// rsptim: '1',
// valdat: '1',
// ownref: '1',
// }
// ]
}
}
</script>
......
......@@ -4,8 +4,8 @@ import Api from '~/service/Api';
export default {
mixins: [commonFunctions],
methods: {
async toSubmit() {
let rtnmsg = await Api.post("/frontend/oftsel/sav", this.model);
async toSubmit () {
let rtnmsg = await Api.post("/frontend/offrel/sav", this.model);
if (rtnmsg.respCode == SUCCESS) {
this.$notify.success({
title: '成功',
......
......@@ -37,12 +37,12 @@
</c-col>
<c-col :span="24">
<el-form-item label="状态" prop="oftgrp.dot.sta">
<c-input type="text" v-model="model.oftgrp.dot.sta"></c-input>
<c-select type="text" v-model="model.oftgrp.dot.sta" :code="codes.zfqzsta"></c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="勾销标志" prop="oftgrp.dot.offsta">
<c-input type="text" v-model="model.oftgrp.dot.offsta"></c-input>
<c-select type="text" v-model="model.oftgrp.dot.offsta" :code="codes.offsta" ></c-select>
</el-form-item>
</c-col>
</c-col>
......@@ -55,12 +55,12 @@
</c-col>
<c-col :span="24">
<el-form-item label="关联类型" prop="oftgrp.dot.objtyp">
<c-input type="text" v-model="model.oftgrp.dot.objtyp"></c-input>
<c-select type="text" v-model="model.oftgrp.dot.objtyp" :code="codes.dottyp"></c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="记帐状态" prop="oftgrp.dot.recsta">
<c-input type="text" v-model="model.oftgrp.dot.recsta"></c-input>
<c-select type="text" v-model="model.oftgrp.dot.recsta" :code="codes.recsta"></c-select>
</el-form-item>
</c-col>
<c-col :span="24">
......
......@@ -64,11 +64,13 @@ export default {
created: async function () {
console.log("进入offrel交易");
let params = {
inr: this.$route.query.inr || "",
dotinr: this.$route.query.inr || "",
};
console.log(params)
const rtnmsg = await Api.post(`/${this.moduleRouter()}/${this.trnName}/init`, params);
console.log(rtnmsg)
if (rtnmsg.respCode === SUCCESS) {
Utils.copyValueFromVoData(this.model.oftgrp, rtnmsg.data);
Utils.copyValueFromVoData(this.model.oftgrp, rtnmsg.data.oftgrp);
}
}
}
......
import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts"
export default class Oftopn {
export default class Oftdtl {
constructor() {
this.data = {
oftp: {
......
......@@ -53,24 +53,25 @@ export default {
async handleReset () {
this.model = new Oftsel().data;
},
async dbClickRow(row) {
// let rtnmsg = await Api.post("/frontend/oftsel/storeDate", {
// inr: row.inr
// });
// if (rtnmsg.respCode == SUCCESS) {
// this.routerPush({
// path: '/business/batdis',
// query: {
// inr: rtnmsg.data
// }
// })
// }
async dbClickRow (row) {
let rtnmsg = await Api.post("/frontend/oftsel/storeDate", {
inr: row.inr
});
if (rtnmsg.respCode == SUCCESS) {
this.routerPush({
path: '/business/batdis',
query: {
inr: '0000000000001594'
inr: rtnmsg.data.dotinr,
traname1: rtnmsg.data.traname1
}
})
}
// this.routerPush({
// path: '/business/batdis',
// query: {
// inr: '0000000000001594'
// }
// })
},
// pageSize改变
......
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