Commit 6db14eef by wangna

Getamc修改(#604)

parent 38417b33
......@@ -234,7 +234,8 @@ export default class Getamc{
},
},
reqdat:"", // Confir. Requested on .reqdat
pageId: "", // ctx的key
pageId:"", // ctx的key
roldsc:"",
liaall: new Pub().data.Liaall,
setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut,
......
......@@ -17,6 +17,7 @@
size="small"
type="primary"
@click="onSeainf"
disabled
>
<span style="font-family: '宋体'; font-weight: bold">i</span>
</c-button>
......
<template>
<div class="eibs-tab">
<c-row>
<c-col :span="24">
<c-col :span="24">
<c-col :span="11">
<c-col :span="24">
<el-form-item
......@@ -46,15 +46,20 @@
v-model="model.gidgrp.rec.sndto"
style="width: 100%"
placeholder="请选择Undertaking Send to"
disabled
:disabled="
model.gidgrp.rec.hndtyp == 'OC' ||
model.gidgrp.rec.hndtyp == 'FR' ||
model.gidgrp.rec.hndtyp == 'FG'
"
:code="sndto"
>
<el-option
<!-- <el-option
v-for="item in codes.rolall"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-option> -->
</c-select>
</el-form-item>
</c-col>
......@@ -87,9 +92,9 @@
>
<c-input
:disabled="
model.gidgrp.rec.delto == 'APPL' ||
model.gidgrp.rec.delto == 'BENE'
"
model.gidgrp.rec.delto == 'APPL' ||
model.gidgrp.rec.delto == 'BENE'
"
type="textarea"
:rows="4"
v-model="model.gidgrp.blk.deltoadr"
......@@ -148,7 +153,7 @@
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="Additional Details to Code for Charges"
......@@ -182,7 +187,7 @@
<c-col :span="20">
<el-form-item label="Presentation Instr." prop="gidgrp.blk.preper">
<c-input
:disabled="model.gitp.prepermodflg==''"
:disabled="model.gitp.prepermodflg == ''"
type="textarea"
:rows="5"
v-model="model.gidgrp.blk.preper"
......@@ -330,7 +335,7 @@ import Event from "~/model/Getamc/Event";
export default {
inject: ["root"],
props: ["model"],
props: ["model", "sndto"],
mixins: [commonProcess],
data() {
return {
......
......@@ -43,7 +43,7 @@
name="preperp"
>
<c-content>
<m-preperp :model="model" :codes="codes" />
<m-preperp :model="model" :codes="codes" :sndto="sndto" />
</c-content>
</el-tab-pane>
......@@ -161,6 +161,7 @@ export default {
},
bookings: false,
attachments: false,
sndto: [],
};
},
methods: {
......@@ -173,12 +174,27 @@ export default {
* do it yourself
**/
},
buildSndto(data){
var result = [];
for(let i = 0; i < data.length; i++){
var temp = data[i].split('\t');
let newList = {
value: temp[0],
label: temp[1],
}
result.push(newList);
}
this.sndto = result;
console.log(this.sndto)
},
},
created: async function () {
console.log("进入getamc交易");
let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
console.log(rtnmsg.codeSet['gidgrp.rec.sndto'])
this.buildSndto(rtnmsg.codeSet['gidgrp.rec.sndto'] || []);
//TODO 处理数据逻辑
if (this.isInDisplay) {
this.restoreDisplay();
......
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