Commit 59764b4c authored by lixy's avatar lixy

设置会员信息-租车订单片区与公司联动

parent 8540d13f
...@@ -30,7 +30,7 @@ function loadFromServer(type) { ...@@ -30,7 +30,7 @@ function loadFromServer(type) {
$.ajax({ $.ajax({
type: 'get', type: 'get',
// url: process.env.BASE_API + '/vehicle/constant/type/' + type, // url: process.env.BASE_API + '/vehicle/constant/type/' + type,
url: process.env.BASE_API + '/vehicle/area/findAll', url: process.env.BASE_API + 'vehicle/area/findAll',
async: false, async: false,
headers: { headers: {
Authorization: headerAuthorization Authorization: headerAuthorization
......
...@@ -591,6 +591,7 @@ ...@@ -591,6 +591,7 @@
getProvinceRegions(item) { getProvinceRegions(item) {
this.listQuery.zoneId = item this.listQuery.zoneId = item
this.baranchQuery.zoneId = item this.baranchQuery.zoneId = item
this.listQuery.startCompanyId = undefined;
getAllBranchCompanyByZoneId(this.baranchQuery) getAllBranchCompanyByZoneId(this.baranchQuery)
.then(response => { .then(response => {
this.allBranchCompany = response.data; this.allBranchCompany = response.data;
......
...@@ -869,7 +869,6 @@ ...@@ -869,7 +869,6 @@
* @param row * @param row
*/ */
setMember(row) { setMember(row) {
this.userMembershipInformation = { this.userMembershipInformation = {
memberLevel: undefined, memberLevel: undefined,
validTime: '', validTime: '',
...@@ -878,7 +877,7 @@ ...@@ -878,7 +877,7 @@
rentFreeDays: undefined, rentFreeDays: undefined,
id: undefined, id: undefined,
userId: row.userId userId: row.userId
} };
this.saveUserId = row.userId this.saveUserId = row.userId
getUserMemberByUserId(row.userId).then(response => { getUserMemberByUserId(row.userId).then(response => {
...@@ -891,8 +890,13 @@ ...@@ -891,8 +890,13 @@
} else { } else {
this.validityType = '无' this.validityType = '无'
} }
this.validTime = response.data.validTime this.validTime = response.data.validTime;
this.userMembershipInformation = response.data this.userMembershipInformation.memberLevel = response.data.memberLevel;
this.userMembershipInformation.validTime = response.data.validTime;
this.userMembershipInformation.totalNumber = response.data.totalNumber;
this.userMembershipInformation.rentFreeDays = response.data.rentFreeDays;
this.userMembershipInformation.buyCount = response.data.buyCount;
this.userMembershipInformation.id = response.data.id;
// this.userMembershipInformation.memberLevel= this.userMembershipInformation.memberLevel?this.userMembershipInformation.memberLevel:undefined // this.userMembershipInformation.memberLevel= this.userMembershipInformation.memberLevel?this.userMembershipInformation.memberLevel:undefined
} }
this.setMemberArea = true this.setMemberArea = true
......
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