|
@@ -267,7 +267,6 @@
|
|
|
|
|
|
getAccessToken(this.callbackToken)
|
|
getAccessToken(this.callbackToken)
|
|
window.addEventListener("message", e => {
|
|
window.addEventListener("message", e => {
|
|
- console.log(e);
|
|
|
|
if (e.data.data && e.data.data.arg.base64) {
|
|
if (e.data.data && e.data.data.arg.base64) {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
@@ -300,24 +299,34 @@
|
|
}
|
|
}
|
|
}, false)
|
|
}, false)
|
|
},
|
|
},
|
|
- methods: {
|
|
|
|
- mchntChange(mchnt) {
|
|
|
|
- if (mchnt) {
|
|
|
|
- getChildListByMchnt({ mchnt }).then(res => {
|
|
|
|
- if (res.code !== 200) return
|
|
|
|
- const { data } = res
|
|
|
|
|
|
+ watch: {
|
|
|
|
+ 'baseFormData.mchnt': {
|
|
|
|
+ immediate:true,
|
|
|
|
+ handler(newVal, oldVal) {
|
|
|
|
+ if (newVal) {
|
|
|
|
+ getChildListByMchnt({ mchnt: newVal }).then(res => {
|
|
|
|
+ if (res.code !== 200) return
|
|
|
|
+ const { data } = res
|
|
|
|
+ this.lrhjdzList = []
|
|
|
|
+ let str1 = JSON.stringify(data).replaceAll('code', 'value').replaceAll('label', 'text').replaceAll('null', '')
|
|
|
|
+ this.lrhjdzList = JSON.parse(str1)
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
this.lrhjdzList = []
|
|
this.lrhjdzList = []
|
|
- let str1 = JSON.stringify(data).replaceAll('code', 'value').replaceAll('label', 'text').replaceAll('null', '')
|
|
|
|
- this.lrhjdzList = JSON.parse(str1)
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- this.lrhjdzList = []
|
|
|
|
- this.baseFormData.lrHjdz = ''
|
|
|
|
|
|
+ this.baseFormData.lrHjdz = ''
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+ mchntChange(mchnt) {
|
|
|
|
+ // console.log(mchnt);
|
|
},
|
|
},
|
|
lrhjdzChange(e) {
|
|
lrhjdzChange(e) {
|
|
const { value } = e.detail
|
|
const { value } = e.detail
|
|
- this.baseFormData.lrHjdz = value[value.length - 1].value
|
|
|
|
|
|
+ if (value.length > 0) {
|
|
|
|
+ this.baseFormData.lrHjdz = value[value.length - 1].value
|
|
|
|
+ }
|
|
},
|
|
},
|
|
lrhjdzNodeClick(e) {
|
|
lrhjdzNodeClick(e) {
|
|
// console.log(e);
|
|
// console.log(e);
|