Commit 68ddbf94 by 潘际乾

pty 静态交易中model内字段空串赋值为空格

parent ef1e6c31
...@@ -48,8 +48,27 @@ export default class Pty { ...@@ -48,8 +48,27 @@ export default class Pty {
adrelc: "", adrelc: "",
dtgcid: "", dtgcid: "",
// pat // pat
usgpat: '', inrpat: "",
adrstapat: '' ptyinrpat: "",
nampat: "",
pripat: "",
enopat: "",
objtyppat: "",
objinrpat: "",
objkeypat: "",
usgpat: "",
verpat: "",
bicpat: "",
adrstapat: "",
ptytyppat: "",
ptyextkeypat: "",
tidpat: "",
etgextkeypat: "",
branchinrpat: "",
bchkeyinrpat: "",
nam1pat: "",
issbchinfpat: "",
opnflgpat: "",
} }
} }
} }
......
...@@ -186,6 +186,14 @@ export default { ...@@ -186,6 +186,14 @@ export default {
* 2. pty的修改界面下,可直接新增 ; * 2. pty的修改界面下,可直接新增 ;
*/ */
saveAdr() { saveAdr() {
for (const key in this.adr) {
if (Object.hasOwnProperty.call(this.adr, key)) {
const v = this.adr[key];
if (typeof v === 'string' && v === '') {
this.adr[key] = " "
}
}
}
if (this.root.type === "add") { if (this.root.type === "add") {
this.model.ptaList.push(this.adr); this.model.ptaList.push(this.adr);
this.handleClose(); this.handleClose();
......
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