表单修改

product
杨世强 1 year ago
parent f8192ca17b
commit 1c5305f796

@ -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

@ -1093,6 +1093,7 @@
this.$store.commit('generator/UPDATE_RELATION_DATA', {}) this.$store.commit('generator/UPDATE_RELATION_DATA', {})
}, },
init2(list) { init2(list) {
debugger
this.visible = true this.visible = true
this.dataForm.salesorder_item0List = list this.dataForm.salesorder_item0List = list
this.dataForm.documentNo = list[0].documentNo this.dataForm.documentNo = list[0].documentNo
@ -1103,7 +1104,7 @@
this.dataForm.customerName = list[0].customerName this.dataForm.customerName = list[0].customerName
this.dataForm.isTransfer = list.isTransfer this.dataForm.isTransfer = list.isTransfer
this.dataForm.purchaseOrderId = list.purchaseOrderId this.dataForm.purchaseOrderId = list.purchaseOrderId
this.dataForm.businessDate = new Date() this.dataForm.businessDate = new Date().getTime()
var num = 0 var num = 0
var amount = 0 var amount = 0
var advance = 0 var advance = 0

Loading…
Cancel
Save