Commit 95d75c17 authored by zhengyi's avatar zhengyi

复制、编辑报价单bug修复

parent 5a0f5484
......@@ -1087,10 +1087,12 @@ export default {
}
},
activated() {
if (this.$route.query.id && this.form.offerId !== this.$route.query.id) {
// if (this.$route.query.id && this.form.offerId !== this.$route.query.id) {
if (this.$route.query.id) {
this.getOffer()
}
if (this.$route.query.copyId && this.form.copyId !== this.$route.query.copyId) {
// if (this.$route.query.copyId && this.form.copyId !== this.$route.query.copyId) {
if (this.$route.query.copyId) {
this.getOffer()
}
},
......@@ -1148,10 +1150,11 @@ export default {
//加了是否从全部客户列表中报价按钮进来的判断
if (this.$route.query.type !== 1) {
getOffer(this.$route.query.id || this.$route.query.copyId).then((res) => {
console.log("报价单信息", res.data)
let formData = res.data
formData.serviceType = formData.serviceType ? formData.serviceType.split(",").filter((item) => item != "") : []
console.log(formData.serviceType)
console.log(formData)
formData.prodCreateReqVOList = []
if (formData.transportVO && formData.transportVO.packageType) {
formData.transportVO.packageTypeArr = formData.transportVO.packageType.split(",").filter((item) => item && item != "")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment