|
|
@ -162,6 +162,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
next() {
|
|
|
|
next() {
|
|
|
|
if (this.active == 2) {
|
|
|
|
if (this.active == 2) {
|
|
|
|
|
|
|
|
debugger
|
|
|
|
if (!this.list.length) return this.$message({ message: '导入数据为空', type: 'warning' })
|
|
|
|
if (!this.list.length) return this.$message({ message: '导入数据为空', type: 'warning' })
|
|
|
|
this.btnLoading = true
|
|
|
|
this.btnLoading = true
|
|
|
|
// this.btnLoading = false
|
|
|
|
// this.btnLoading = false
|
|
|
@ -171,12 +172,14 @@ export default {
|
|
|
|
// this.active++
|
|
|
|
// this.active++
|
|
|
|
ImportData({ list: this.list }).then(res => {
|
|
|
|
ImportData({ list: this.list }).then(res => {
|
|
|
|
if (res.data.resultType == 0){
|
|
|
|
if (res.data.resultType == 0){
|
|
|
|
|
|
|
|
debugger
|
|
|
|
this.btnLoading = false
|
|
|
|
this.btnLoading = false
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$refs.JNPFForm.init2(res.data.poundlistEntityList)
|
|
|
|
this.$refs.JNPFForm.init2(res.data.poundlistEntityList)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.active++
|
|
|
|
this.active++
|
|
|
|
this.cancel()
|
|
|
|
// this.visible = false
|
|
|
|
|
|
|
|
// this.cancel()
|
|
|
|
}else if (res.data.resultType == 1) {
|
|
|
|
}else if (res.data.resultType == 1) {
|
|
|
|
this.result = res.data
|
|
|
|
this.result = res.data
|
|
|
|
this.resultList = res.data.failResult
|
|
|
|
this.resultList = res.data.failResult
|
|
|
|