Commit 883643dc by fukai
parents b2433b33 f898480e
......@@ -83,7 +83,7 @@
<el-col :span="8">
<el-form-item label="Extkey" prop="didgrp.apl.pts.extkey">
<c-input v-model="model.didgrp.apl.pts.extkey" maxlength="16" placeholder="请输入External Key of Address"></c-input>
<c-input v-model="model.didgrp.apl.pts.extkey" maxlength="16" placeholder="请输入External Key of Address" @keyup.enter.native="aplExtkeyEvent"></c-input>
</el-form-item>
</el-col>
<el-col :span="4">
......@@ -235,8 +235,8 @@
</el-col>
<el-col :span="8">
<el-form-item label="客户编号" prop="didgrp.ben.pts.extkey">
<c-input v-model="model.didgrp.ben.pts.extkey" maxlength="16" placeholder="请输入External Key of Address"></c-input>
<el-form-item label="Extkey" prop="didgrp.ben.pts.extkey">
<c-input v-model="model.didgrp.ben.pts.extkey" maxlength="16" placeholder="请输入External Key of Address" @keyup.enter.native="benExtkeyEvent"></c-input>
</el-form-item>
</el-col>
<el-col :span="4">
......@@ -388,6 +388,7 @@ import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditopn/Event"
import CommonProcess from "~/mixin/CommonProcess"
import Utils from "~/utils"
export default {
props:["model","codes"],
......@@ -397,7 +398,23 @@ export default {
declareParams:{"fileName":"ditopn.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/ditopn/getElcsRef"},
}
},
methods:{...Event},
methods:{
...Event,
aplExtkeyEvent() {
const data = Utils.flatObject(this.model)
Api.post("ditopn/executeRule/didgrp.apl.pts.extkey",data).then(res => {
const data = res.data;
this.model.didgrp.apl.namelc = data.didgrp_apl_namelc;
this.model.didgrp.apl.adrelc = data.didgrp_apl_adrelc;
})
},
benExtkeyEvent() {
const data = Utils.flatObject(this.model)
Api.post("ditopn/executeRule/didgrp.ben.pts.extkey",data).then(res => {
const data = res.data;
})
}
},
created:function(){
}
......
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