Browse Source

物流主页及功能,开单选择物流

master
wangfukang 3 years ago
parent
commit
200a618119
  1. 49
      pages/index/peopleList.vue
  2. 9
      pages/inventory/goodsList1.vue
  3. 3
      pages/other/logisticsAddress.vue

49
pages/index/peopleList.vue

@ -29,10 +29,11 @@
<view class="list-1" :style="{height:popleType == 'kdName'?'75rpx':'120rpx'}" style="display: flex;position: relative;" @tap="clickList(item)" v-for="item in popleList" :key="item">
<view class="name-tel">
<text style="line-height: 75rpx;">{{item.companyName}}</text>
<text style="line-height: 75rpx;">{{item.shippingMethod}}</text>
<text style="line-height: 75rpx;">{{item.workerName}}</text>
</view>
<view class="phone-btn" @tap.stop="clickPhone(item.mobile)" v-if="popleType != 'kdName'">拨打电话</view>
<view class="standard-box" @tap.stop="toggle('center',item.remark)">
<view class="standard-box" @tap.stop="toggle('center',item.remark || item.chargingStandard)">
收费标准<uni-icons type="info" color='#088FEB' size="16"
style="line-height: 75rpx;padding-right:40rpx;"></uni-icons>
</view>
@ -70,7 +71,8 @@
radioType: '', //选择的是快递还是物流
companyType: '', //运输公司类型 快递公司有值 物流公司直接传空
modelShow:false,
remark:''
remark:'',
khName:{}
}
},
onShow(){
@ -81,7 +83,9 @@
},
onLoad(options) {
this.popleType = options.popleType
this.companyType = options.companyType || ''
this.companyType = options.companyType || ''
this.khName = JSON.parse(options.khName) || ''
console.log(this.khName)
// this.radioType = options.radioType
if (options.popleType == 'khName' || options.popleType == 'gysName') { //供应商或者客户
this.khOrGysList();
@ -115,18 +119,37 @@
}
},
//物流或者快递列表
wlOrKdList(e) {
wlOrKdList(e) {
let url,
data = {},
isTrue
//物流:1 快递:2 发车3
if (e == 'wlName') {
this.signCompany = 1;
} else if (e == 'kdName') {
this.signCompany = 2
} else if (e == 'fcName') {
this.signCompany = 3
if (e == 'wlName') {
url = '/app/operatingArea/getByArea'
isTrue = true
data = {
province:this.khName.province,
city:this.khName.city,
area:this.khName.area,
shippingType:0
}
} else if (e == 'kdName') {
isTrue = false
url = '/app/logitics/getAll'
data = {
signCompany:1
}
} else if (e == 'fcName') {
isTrue = true
data = {
province:this.khName.province,
city:this.khName.city,
area:this.khName.area,
shippingType:4
}
url = '/app/operatingArea/getByArea'
}
this.tui.request("/app/logitics/getAll", "post", {
signCompany: this.signCompany
}, false, false).then((res) => {
this.tui.request(url, "post", data, false, isTrue).then((res) => {
if (res.code == 200) {
this.popleList = res.result;
}else{

9
pages/inventory/goodsList1.vue

@ -862,11 +862,18 @@
icon: 'error'
})
return
}
if((popleType == 'wlName' || popleType == 'fcName') && this.khName == ''){
uni.showToast({
title: "先选择客户",
icon: 'error'
})
return
}
let companyType = this.radioType == 1 ? this.wlName.id : ''
uni.navigateTo({
url: '/pages/index/peopleList?popleType=' + popleType + '&companyType=' + companyType
url: '/pages/index/peopleList?popleType=' + popleType + '&companyType=' + companyType + '&khName=' + JSON.stringify(this.khName)
})
},
//弹窗选择规格后,点击弹窗中选好了按钮

3
pages/other/logisticsAddress.vue

@ -95,7 +95,8 @@
url: that.tui.interfaceUrl() + '/app/operatingArea/getOperatingAreaList',
data: {
pageNum:this.pages,
pageSize:10
pageSize:10,
shippingMethodId:uni.getStorageSync("transCompany")
},
header: {
'content-type': 'application/json',

Loading…
Cancel
Save