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

9
pages/inventory/goodsList1.vue

@ -862,11 +862,18 @@
icon: 'error' icon: 'error'
}) })
return return
}
if((popleType == 'wlName' || popleType == 'fcName') && this.khName == ''){
uni.showToast({
title: "先选择客户",
icon: 'error'
})
return
} }
let companyType = this.radioType == 1 ? this.wlName.id : '' let companyType = this.radioType == 1 ? this.wlName.id : ''
uni.navigateTo({ 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', url: that.tui.interfaceUrl() + '/app/operatingArea/getOperatingAreaList',
data: { data: {
pageNum:this.pages, pageNum:this.pages,
pageSize:10 pageSize:10,
shippingMethodId:uni.getStorageSync("transCompany")
}, },
header: { header: {
'content-type': 'application/json', 'content-type': 'application/json',

Loading…
Cancel
Save