Commit f019d5ba authored by 黄奎's avatar 黄奎

页面修改

parent 6763e52f
...@@ -266,14 +266,17 @@ ...@@ -266,14 +266,17 @@
if (offerObj.AssistantList && offerObj.AssistantList.length > 0) { if (offerObj.AssistantList && offerObj.AssistantList.length > 0) {
this.postData.Assistantlist = offerObj.AssistantList; this.postData.Assistantlist = offerObj.AssistantList;
} }
if (offerObj.OfferPayType) {
this.postData.OfferPayType = offerObj.OfferPayType;
}
if (offerObj.SaleOfferPayType) {
this.postData.SaleOfferPayType = offerObj.SaleOfferPayType;
}
} }
} }
this.postData.CustomerName = tempData.CustomerName; this.postData.CustomerName = tempData.CustomerName;
this.postData.OutBranchId = tempData.OutBranchId; this.postData.OutBranchId = tempData.OutBranchId;
this.postData.OutDateTime = tempData.OutDateTime; this.postData.OutDateTime = tempData.OutDateTime;
this.postData.OfferPayType = tempData.OfferPayType;
this.postData.SaleOfferPayType = tempData.SaleOfferPayType;
this.LineList = tempData.LineList;
this.postData.LineName = tempData.LineName; this.postData.LineName = tempData.LineName;
this.postData.LtName = tempData.LtName; this.postData.LtName = tempData.LtName;
this.postData.OutBranchName = tempData.OutBranchName; this.postData.OutBranchName = tempData.OutBranchName;
......
...@@ -195,6 +195,8 @@ ...@@ -195,6 +195,8 @@
item.OutDateTime = this.postData.OutDateTime; item.OutDateTime = this.postData.OutDateTime;
item.OPId = this.postData.OPId; item.OPId = this.postData.OPId;
item.AssistantId = this.postData.AssistantId; item.AssistantId = this.postData.AssistantId;
item.OfferPayType = this.postData.OfferPayType;
item.SaleOfferPayType = this.postData.SaleOfferPayType;
}) })
var nObj = { var nObj = {
config: this.postData, config: this.postData,
...@@ -289,21 +291,27 @@ ...@@ -289,21 +291,27 @@
this.postData.OutBranchId = Number(tempData.OutBranchId); this.postData.OutBranchId = Number(tempData.OutBranchId);
} }
this.postData.TeamType = tempData.TeamType; this.postData.TeamType = tempData.TeamType;
this.postData.OfferPayType = tempData.OfferPayType;
this.postData.SaleOfferPayType = tempData.SaleOfferPayType;
this.postData.TravelState = tempData.TravelState; this.postData.TravelState = tempData.TravelState;
this.LineList = tempData.LineList; this.LineList = tempData.LineList;
if (tempData.OfferArray && tempData.OfferArray.length > 0) { if (tempData.OfferArray && tempData.OfferArray.length > 0) {
var offerObj = tempData.OfferArray[0]; var offerObj = tempData.OfferArray[0];
if (offerObj && offerObj.OPName && offerObj.OPName != '') { if (offerObj) {
this.postData.OPId = offerObj.OPId; if (offerObj.OPName && offerObj.OPName != '') {
} this.postData.OPId = offerObj.OPId;
if (offerObj && offerObj.AssistantList && offerObj.AssistantList.length > 0) { }
var tempArray = []; if (offerObj.AssistantList && offerObj.AssistantList.length > 0) {
offerObj.AssistantList.forEach(subItem => { var tempArray = [];
tempArray.push(subItem.Id) offerObj.AssistantList.forEach(subItem => {
}); tempArray.push(subItem.Id)
this.postData.Assistantlist = tempArray; });
this.postData.Assistantlist = tempArray;
}
if (offerObj.OfferPayType) {
this.postData.OfferPayType = offerObj.OfferPayType;
}
if (offerObj.SaleOfferPayType) {
this.postData.SaleOfferPayType = offerObj.SaleOfferPayType;
}
} }
tempData.OfferArray.forEach(item => { tempData.OfferArray.forEach(item => {
this.OfferArray.push(item) this.OfferArray.push(item)
......
...@@ -311,8 +311,6 @@ ...@@ -311,8 +311,6 @@
this.postData.CustomerName = tempData.CustomerName; this.postData.CustomerName = tempData.CustomerName;
this.postData.OutBranchId = tempData.OutBranchId; this.postData.OutBranchId = tempData.OutBranchId;
this.postData.OutDateTime = tempData.OutDateTime; this.postData.OutDateTime = tempData.OutDateTime;
this.postData.OfferPayType = tempData.OfferPayType;
this.postData.SaleOfferPayType = tempData.SaleOfferPayType;
this.postData.TeamTypeName = tempData.TeamTypeName; this.postData.TeamTypeName = tempData.TeamTypeName;
this.LineList = tempData.LineList; this.LineList = tempData.LineList;
if (tempData.OfferArray && tempData.OfferArray.length > 0) { if (tempData.OfferArray && tempData.OfferArray.length > 0) {
...@@ -348,8 +346,13 @@ ...@@ -348,8 +346,13 @@
if (offerObj.AssistantList && offerObj.AssistantList.length > 0) { if (offerObj.AssistantList && offerObj.AssistantList.length > 0) {
this.postData.Assistantlist = offerObj.AssistantList; this.postData.Assistantlist = offerObj.AssistantList;
} }
if (offerObj.OfferPayType) {
this.postData.OfferPayType = offerObj.OfferPayType;
}
if (offerObj.SaleOfferPayType) {
this.postData.SaleOfferPayType = offerObj.SaleOfferPayType;
}
} }
this.currentData = tempData.OfferArray.find(item => item.IsDefault); this.currentData = tempData.OfferArray.find(item => item.IsDefault);
if (this.currentData) { if (this.currentData) {
if (this.currentData.otherPrice) { if (this.currentData.otherPrice) {
......
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