|
@@ -17,7 +17,9 @@
|
|
|
<view class="c-row ">
|
|
|
<view class="title">客户</view>
|
|
|
<view class="con-list">
|
|
|
- {{gridList.customerName}}({{gridList.customerPhone}})
|
|
|
+ <view @click='gocustomer'>
|
|
|
+ {{gridList.customerName}}({{gridList.customerPhone}})
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="c-row ">
|
|
@@ -359,9 +361,30 @@
|
|
|
this.gridList.gradeKey = this.gradeList[0].key
|
|
|
},
|
|
|
onShow() {
|
|
|
-
|
|
|
+ if (uni.getStorageSync('checkcustomer')) {
|
|
|
+
|
|
|
+ let _customerInfo = uni.getStorageSync('checkcustomer')
|
|
|
+ if (_customerInfo.shipperName) {
|
|
|
+ this.gridList.identityId = _customerInfo.id
|
|
|
+ //点击登记客户
|
|
|
+ this.gridList.customerName = _customerInfo.shipperName
|
|
|
+ this.gridList.customerPhone = _customerInfo.shipperPhone
|
|
|
+ this.gridList.carNumber=_customerInfo.carNo
|
|
|
+ } else {
|
|
|
+ //点击搜索客户
|
|
|
+ this.gridList.customerName = _customerInfo.customerName
|
|
|
+ this.gridList.customerPhone = _customerInfo.customerPhone
|
|
|
+ }
|
|
|
+
|
|
|
+ this.gridList.customerNumberCard = _customerInfo.customerNumberCard
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
+ gocustomer() {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/erpbusiness/customer?cangid=' + this.cangid + '&warehouseName=' + this.gridList.warehouseName + '&goodsName=' + this.gridList.goodsName+'&status=edit'
|
|
|
+ })
|
|
|
+ },
|
|
|
print() {
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/erpbusiness/bleConnect'
|