|
|
@@ -282,6 +282,42 @@ export default {
|
|
|
this.showAndHide(val)
|
|
|
},
|
|
|
immediate: true
|
|
|
+ },
|
|
|
+ reagentData: {
|
|
|
+ handler(value, old) {
|
|
|
+ if (value.length > 0) {
|
|
|
+ const filteredArray = value
|
|
|
+ .map((item) => {
|
|
|
+ if (item.jyxm && item.fhl && item.jl) {
|
|
|
+ return item
|
|
|
+ }
|
|
|
+ return null
|
|
|
+ })
|
|
|
+ .filter((item) => item !== null)
|
|
|
+ filteredArray.forEach((item) => {
|
|
|
+ value.forEach((el) => {
|
|
|
+ if (el.jyxm === item.jyxm) {
|
|
|
+ el.fhl = item.fhl
|
|
|
+ el.jl = item.jl
|
|
|
+ el.xmfhl = item.xmfhl
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ this.disabled = false
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.reagent && this.$refs.reagent.$forceUpdate()
|
|
|
+ })
|
|
|
+ })
|
|
|
+ this.importTableDialogVisible = false
|
|
|
+ this.$emit(
|
|
|
+ 'change-data',
|
|
|
+ 'zuJianShuJu',
|
|
|
+ JSON.stringify([value, this.copyDialogData.length, this.disabled])
|
|
|
+ )
|
|
|
+ }
|
|
|
+ },
|
|
|
+ deep: true
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|