c7921cf7 by 杨威

户编辑组件的scyclx字段动态变化,完善层户的scyclx数据监听

1 parent 67dd7292
......@@ -134,7 +134,7 @@ export default {
ljzbsm: "",
zdybsm: "",
zrzbsm: "",
scyclx: "0",
scyclx: this.scyclx,
qsc: "",
jsc: "",
hs: "",
......@@ -169,7 +169,7 @@ export default {
immediate: true,
deep: true,
},
dialogVisible:{
scyclx:{
handler(n){
this.$nextTick(()=>{
this.formData.scyclx = this.scyclx;
......
......@@ -411,7 +411,11 @@
Qlxz,
},
props:{
bsm:String //户标识码
bsm:String, //户标识码
scyclx:{
type: String,
default: "1",
},
},
data () {
return {
......@@ -792,6 +796,15 @@
this.form.bdcdyh=res.result;
})
},
},
watch: {
scyclx:{
handler(n){
this.$nextTick(()=>{
this.form.scyclx = this.scyclx;
})
}
}
}
}
</script>
......
......@@ -249,7 +249,7 @@
></h-cxlz>
<!-- 双击户的弹出框 -->
<el-dialog title="户编辑" class="hbjDialog" :visible.sync="hbjVisible" width="70%" center>
<hbj ref="hbj" :bsm="hbsm"></hbj>
<hbj ref="hbj" :bsm="hbsm" :scyclx="scyclx"></hbj>
<div class="btnGroup">
<el-button type="primary" @click="hbjSaveInfo">保存</el-button>
<el-button type="primary" @click="hbjResetInfo">重置</el-button>
......@@ -573,7 +573,7 @@ export default {
plScYcChange() {
let data = {
zrzbsm: this.$store.state.zrzbsm,
scyclx: "0",
scyclx: this.scyclx,
};
batchScYcChange(data).then((res) => {
if (res.code === 200) {
......@@ -607,7 +607,7 @@ export default {
getDyztBsmList() {
let data = {
zrzbsm: this.$store.state.zrzbsm,
scyclx: "0",
scyclx: this.scyclx,
};
getLpbTj(data).then((res) => {
if (res.code === 200) {
......@@ -664,7 +664,7 @@ export default {
getLpbFwytAndQlxz(){
let data = {
zrzbsm: this.$store.state.zrzbsm,
scyclx: "0",
scyclx: this.scyclx,
};
getLpbFwytAndQlxz(data).then((res) => {
if (res.code === 200) {
......