临时提交 - 分单问题

szh_zidingyibiaoti
lilu 2 years ago
parent 95d04b9ac5
commit 095de290c2

@ -209,29 +209,29 @@ export default {
parSedOrderList: { parSedOrderList: {
handler(nval, oval) { handler(nval, oval) {
// this.inLoading = true // this.inLoading = true
if (this.id !== this.details.id) { return false } // if (this.id !== this.details.id) { return false }
// console.log('== ==', nval, this.id, this.details.id, nval.length > 0 ? nval[0].hblno : '== ==') // // console.log('== ==', nval, this.id, this.details.id, nval.length > 0 ? nval[0].hblno : '== ==')
this.inSecLoad = true // this.inSecLoad = true
const _data = JSON.parse(JSON.stringify(nval)) // const _data = JSON.parse(JSON.stringify(nval))
if (_data.length > 0) { // if (_data.length > 0) {
if (!_data[this.editIndex].bookingEDIExt) { // if (!_data[this.editIndex].bookingEDIExt) {
_data[this.editIndex].bookingEDIExt = { // _data[this.editIndex].bookingEDIExt = {
weiTuoFang: '', // weiTuoFang: '',
ediAttn: '', // ediAttn: '',
ediAttnTel: '', // ediAttnTel: '',
ediAttnMail: '' // ediAttnMail: ''
} // }
} // }
this.editDetails = _data[this.editIndex] // this.editDetails = _data[this.editIndex]
setTimeout(() => { // setTimeout(() => {
this.inSecLoad = false // this.inSecLoad = false
}, 1500) // }, 1500)
} else { // } else {
this.editDetails = null // this.editDetails = null
setTimeout(() => { // setTimeout(() => {
this.inSecLoad = false // this.inSecLoad = false
}, 1500) // }, 1500)
} // }
}, },
deep: true deep: true
}, },
@ -277,10 +277,15 @@ export default {
}, },
methods: { methods: {
init(data = {}) { init(data = {}) {
// console.log('== ==', data) console.log('== 分单初始化 ==', data)
let _this = this let _this = this
if (this.parSedOrderList.length > 0) { if (Object.keys(data).length > 0) {
this.sedOrderList = JSON.parse(JSON.stringify(data))
} else if (this.parSedOrderList.length > 0) {
this.sedOrderList = JSON.parse(JSON.stringify(this.parSedOrderList)) this.sedOrderList = JSON.parse(JSON.stringify(this.parSedOrderList))
}
if (this.sedOrderList.length > 0) {
// this.sedOrderList = JSON.parse(JSON.stringify(this.parSedOrderList))
this.sedOrderList.map((item, index) => { this.sedOrderList.map((item, index) => {
item.isNoSave = false item.isNoSave = false
// console.log('', index, item.isNoSave) // console.log('', index, item.isNoSave)
@ -303,7 +308,7 @@ export default {
setTimeout(() => { setTimeout(() => {
_this.$refs.goodsTable.init() _this.$refs.goodsTable.init()
}, 2000) }, 2000)
// console.log('', this.inSecLoad) console.log('分单加载完成', this.inSecLoad)
}, 200) }, 200)
} }
}, },

@ -459,7 +459,9 @@ export default {
setTimeout(() => { setTimeout(() => {
if (this.bookingDetails.hbList && this.bookingDetails.hbList.length > 0) { if (this.bookingDetails.hbList && this.bookingDetails.hbList.length > 0) {
this.Showtabs = true this.Showtabs = true
this.$refs.sedOrder.init(this.bookingDetails.hbList) // if (this.$refs.sedOrder) {
// this.$refs.sedOrder.init(this.bookingDetails.hbList)
// }
} else { } else {
this.Showtabs = false this.Showtabs = false
} }
@ -491,7 +493,9 @@ export default {
setTimeout(() => { setTimeout(() => {
if (this.bookingDetails.hbList && this.bookingDetails.hbList.length > 0) { if (this.bookingDetails.hbList && this.bookingDetails.hbList.length > 0) {
this.Showtabs = true this.Showtabs = true
this.$refs.sedOrder.init(this.bookingDetails.hbList) // if (this.$refs.sedOrder) {
// this.$refs.sedOrder.init(this.bookingDetails.hbList)
// }
} else { } else {
this.Showtabs = false this.Showtabs = false
} }
@ -517,7 +521,9 @@ export default {
setTimeout(() => { setTimeout(() => {
if (this.bookingDetails.hbList && this.bookingDetails.hbList.length > 0) { if (this.bookingDetails.hbList && this.bookingDetails.hbList.length > 0) {
this.Showtabs = true this.Showtabs = true
this.$refs.sedOrder.init(this.bookingDetails.hbList) // if (this.$refs.sedOrder) {
// this.$refs.sedOrder.init(this.bookingDetails.hbList)
// }
} else { } else {
this.Showtabs = false this.Showtabs = false
} }
@ -961,9 +967,13 @@ export default {
changeTab(e) { changeTab(e) {
console.log('== 切换主单分单 ==', e) console.log('== 切换主单分单 ==', e)
const _this = this
this.tabActiveKey = e this.tabActiveKey = e
console.log(_this.bookingDetails)
setTimeout(() => {
// debugger // debugger
this.$refs.sedOrder.init() _this.$refs.sedOrder.init(_this.bookingDetails.hbList)
}, 1200)
}, },
changeMainTab(e) { changeMainTab(e) {
@ -1068,10 +1078,8 @@ export default {
this.bookingDetails.hbList = [data] this.bookingDetails.hbList = [data]
this.tabActiveKey = '2' this.tabActiveKey = '2'
this.Showtabs = true this.Showtabs = true
setTimeout(() => {
// debugger // debugger
this.$refs.sedOrder.init() this.$refs.sedOrder.init(data.hbList)
}, 800)
}, },
changeHBFun(data) { changeHBFun(data) {
const arr = [] const arr = []

@ -286,7 +286,7 @@
<a-date-picker <a-date-picker
style="min-width:100px" style="min-width:100px"
show-time show-time
format="YYYY-MM-DD HH" format="YYYY-MM-DD HH:00"
v-model="details.closingdate" v-model="details.closingdate"
@change="closingdateChange" @change="closingdateChange"
> >
@ -306,7 +306,7 @@
<a-date-picker <a-date-picker
style="min-width:100px" style="min-width:100px"
show-time show-time
format="YYYY-MM-DD HH" format="YYYY-MM-DD HH:00"
v-model="details.closedocdate" v-model="details.closedocdate"
@change="closedocdateChange" @change="closedocdateChange"
> >
@ -326,7 +326,7 @@
<a-date-picker <a-date-picker
style="min-width:100px" style="min-width:100px"
show-time show-time
format="YYYY-MM-DD HH" format="YYYY-MM-DD HH:00"
v-model="details.closevgmdate" v-model="details.closevgmdate"
@change="closevgmdateChange" @change="closevgmdateChange"
> >

Loading…
Cancel
Save