Commit 6db14eef by wangna

Getamc修改(#604)

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