Commit 8e4c173f by niewei

oftsel前端界面及调用方法

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