Commit bcf0b96f by zhujiazhan

代码提交

parent f2fa50bc
...@@ -99,7 +99,10 @@ ...@@ -99,7 +99,10 @@
</div> </div>
</template> </template>
<script> <script>
import CodeTable from "~/config/CodeTable";
export default { export default {
props: { props: {
columns: { columns: {
...@@ -176,7 +179,11 @@ export default { ...@@ -176,7 +179,11 @@ export default {
pageSize: 10, pageSize: 10,
selectAll: true, selectAll: true,
columnGroup: [], columnGroup: [],
setColumnFlg: false setColumnFlg: false,
codes:{
...CodeTable
}
}; };
}, },
mounted() { mounted() {
...@@ -193,7 +200,7 @@ export default { ...@@ -193,7 +200,7 @@ export default {
if(typeof line === "object" ){ if(typeof line === "object" ){
//如果是对象,支持自定义处理 //如果是对象,支持自定义处理
//{width,position,index,label,pattern,render} //{width,position,index,label,pattern,render}
let {width,position,index,label,pattern,render,...rest} = line let {width,position,index,label,pattern,render,code,...rest} = line
position += '' position += ''
if (!obj[position]) { if (!obj[position]) {
obj[position] = []; obj[position] = [];
...@@ -205,6 +212,7 @@ export default { ...@@ -205,6 +212,7 @@ export default {
width:width === 'auto' ? width : width +'px', width:width === 'auto' ? width : width +'px',
pattern, pattern,
render, render,
code,
...rest ...rest
}) })
continue continue
...@@ -321,12 +329,14 @@ export default { ...@@ -321,12 +329,14 @@ export default {
}, },
//code映射 //code映射
code(item,scope){ code(item,scope){
console.log(this.codes);
let value = scope.row[item.prop] let value = scope.row[item.prop]
let code = item.code let code = item.code
if(!value || !code){ if(!value || !code){
return "" return ""
} }
let em = code.find(item=>item.value.trim() == value.trim()) let args=this.codes[code];
let em = args.find(item=>item.value.trim() == value.trim())
if(!em){ if(!em){
return value return value
} }
......
...@@ -27,8 +27,24 @@ export default { ...@@ -27,8 +27,24 @@ export default {
} }
}, },
async handleReset() { async handleReset() {
this.model.infcon.seaownref = "";
this.model.infcon.searef = "";
this.model.infcon.pty.extkey = "";
this.model.infcon.seapty = "";
this.model.infcon.opndatfrom = "";
this.model.infcon.opndatto = "";
this.model.infcon.seaamtfr = "";
this.model.infcon.seaamtto = "";
this.model.infcon.seasta = "";
this.model.infcon.usr.extkey = "";
this.model.infcon.nam = "";
this.model.infcon.hndtyp = "";
this.model.infcon.pty.nam = "";
this.model.infcon.searol = "";
this.model.infcon.seacur = "";
this.model.infcon.seasta = "";
this.stmData.data = "";
}, },
async onInfbutSearow(){ async onInfbutSearow(){
let rtnmsg = await this.executeRule("infbut.searow") let rtnmsg = await this.executeRule("infbut.searow")
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="单据状态" prop="brdgrp.rec.docsta"> <el-form-item label="单据状态" prop="brdgrp.rec.docsta">
<c-select v-model="model.brdgrp.rec.docsta" style="width:100%" placeholder="请选择单据状态" :code="codes.docsta" disabled> <c-select v-model="model.brdgrp.rec.docsta" style="width:100%" placeholder="请选择单据状态" :code="codes.docsta1" disabled>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
......
...@@ -200,6 +200,15 @@ export default { ...@@ -200,6 +200,15 @@ export default {
/** /**
* do it yourself * do it yourself
**/ **/
},
// 第二个表格
detail1(index, row) {
this.executeDefault("setfel/det").then(res=>{
this.dialogVisible = true;
this.dialog = row;
this.index = index;
})
} }
}, },
created:async function(){ created:async function(){
......
...@@ -120,11 +120,12 @@ ...@@ -120,11 +120,12 @@
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<el-form-item label="Status" prop="infcon.seasta"> <el-form-item label="Document Status" prop="infcon.seasta">
<c-select <c-select
v-model="model.infcon.seasta" v-model="model.infcon.seasta"
style="width: 100%" style="width: 100%"
placeholder="请选择Status" placeholder="请选择Status"
:code="codes.seasta"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -176,7 +177,7 @@ ...@@ -176,7 +177,7 @@
v-model="model.seadocflg" v-model="model.seadocflg"
style="width: 100%" style="width: 100%"
placeholder="请选择Document Type" placeholder="请选择Document Type"
> :code="codes.docflg">
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -187,6 +188,7 @@ ...@@ -187,6 +188,7 @@
v-model="model.seagodcod" v-model="model.seagodcod"
style="width: 100%" style="width: 100%"
placeholder="请选择Goods Code" placeholder="请选择Goods Code"
:code="codes.godcod"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -228,10 +230,8 @@ ...@@ -228,10 +230,8 @@
</c-col> --> </c-col> -->
<c-col :span="24"> <c-col :span="24">
<c-istream-table <c-istream-table :list="stmData.data"
:list="model.infbut.dspstm ? model.infbut.dspstm.rows : []" :columns="columns">
:columns="columns"
>
<el-table-column fixed="right" prop="op" label="操作" width="150px"> <el-table-column fixed="right" prop="op" label="操作" width="150px">
<template slot-scope="scope"> <template slot-scope="scope">
<el-popover <el-popover
...@@ -288,8 +288,7 @@ ...@@ -288,8 +288,7 @@
</el-table-column> </el-table-column>
</c-istream-table> </c-istream-table>
</c-col> </c-col>
<m-busbtn ref="childs" :ownref="ownref" trnCode="litsel" :model="litselModel" ownrefPath="brdgrp" tabIndex=3 @onChoose="onChoose" >11</m-busbtn>
<m-busbtn ref="childs" :ownref="ownref" trnCode="litsel" :model="litselModel" ownrefPath="brdgrp" tabIndex=3 @onChoose="onChoose" >11</m-busbtn>
</div> </div>
</template> </template>
...@@ -298,8 +297,9 @@ import Api from "~/service/Api"; ...@@ -298,8 +297,9 @@ import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infbrd/Event"; import Event from "~/model/Infbrd/Event";
import BusNavbar from "~/views/Public/BusNavbar";
import LitselModel from "~/model/Litsel" import LitselModel from "~/model/Litsel"
import BusNavbar from "~/views/Public/BusNavbar";
export default { export default {
inject: ["root"], inject: ["root"],
...@@ -309,6 +309,7 @@ export default { ...@@ -309,6 +309,7 @@ export default {
data() { data() {
return { return {
litselModel: new LitselModel().data, litselModel: new LitselModel().data,
initdialog:false,
ownref: "", ownref: "",
trnData: { trnData: {
columns: [ columns: [
...@@ -333,43 +334,45 @@ export default { ...@@ -333,43 +334,45 @@ export default {
columns: [ columns: [
'1 1 "Reference" 140', '1 1 "Reference" 140',
'2 2 "Resp. User" 100', '2 2 "Resp. User" 100',
'3 3 "Goods Code" 100 1 0 1 GODCOD', //'3 3 "Goods Code" 100 1 0 1 GODCOD',
// '4 4 "Opened" 500 4 7', { index: 3, position: 3, width: 100, pattern: "code", label: "Goods Code" ,"code":"godcod"},
// '5 5 "Closed" 500 4 7', '7 4 "Party Number1" 133',
{ index: 4, position: 4, width: 100, pattern: "date", label: "Opened" }, '8 5 "Applicant" 160',
{ index: 5, position: 5, width: 100, pattern: "date", label: "Closed" }, '9 6 "Applicant CN" 133',
'6 6 "PTA NO." 100', '10 7 "Party Number2" 133',
'7 7 "Party Number" 133', '11 8 "Beneficiary" 150',
'8 8 "Applicant" 160', '6 9 "PTA NO." 100',
'9 9 "Applicant CN" 133', '12 10 "Party Number3" 140',
'10 10 "Party Number" 133', '13 11 "Presenting Bank" 220',
'11 11 "Beneficiary" 150', { index: 4, position: 12, width: 100, pattern: "date", label: "Opened" },
'12 12 "Party Number" 140', { index: 5, position: 13, width: 100, pattern: "date", label: "Closed" },
'13 13 "Presenting Bank" 220',
'14 14 "Doc.Amount Cur" 120', '14 14 "Doc.Amount Cur" 120',
'15 15 "Doc.Amount" 120 2 8 1 14', '15 15 "Doc.Amount" 120 2 8 1 14',
'16 16 "Open Amount Cur" 130', '16 16 "Open Amount Cur" 130',
'17 17 "Open Amount" 120 2 8 1 16', '17 17 "Open Amount" 120 2 8 1 16',
], ],
stmData: {
data: [],
},
}; };
}, },
methods: { methods: {
...Event, ...Event,
async getButtons(ownref){ async getButtons(ownref){
this.ownref = ownref this.ownref = ownref
this.$refs.childs.initdialog = true this.$refs.childs.initdialog = true
console.log("ownref:" +ownref); console.log("ownref:" +ownref);
}, },
async onChoose(code){ async onChoose(code){
//跳转交易 //跳转交易
this.$router.history.push("/business/" + code) this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false this.$refs.childs.initdialog = false
} , } ,
async getDitSelInfo(code){ async getDitSelInfo(code){
//跳转交易 //跳转交易
this.$router.history.push("/business/" + code) this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false this.$refs.childs.initdialog = false
}, },
async getTrnInfo(idx, row) { async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"]; this.model.infcon.objinr = row["INR"];
this.model.brdgrp.rec.inr = row["INR"]; this.model.brdgrp.rec.inr = row["INR"];
......
...@@ -153,9 +153,10 @@ export default { ...@@ -153,9 +153,10 @@ export default {
rules: null, rules: null,
codes: { codes: {
codeSet: { codeSet: {
"infcon.seacur": [], "infcon.seacur": [],
"infcon.searol": [] "infcon.searol": [],
} },
...CodeTable
}, },
} }
}, },
......
...@@ -955,6 +955,7 @@ export default { ...@@ -955,6 +955,7 @@ export default {
} }
}, },
}, },
ogiamt:{},
}; };
}, },
methods: { methods: {
......
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