|
@@ -230,7 +230,9 @@
|
|
tidalGrainPrice: '',
|
|
tidalGrainPrice: '',
|
|
dryGrainPrice: '',
|
|
dryGrainPrice: '',
|
|
buckleMiscellaneous: '',
|
|
buckleMiscellaneous: '',
|
|
- carNumber:''
|
|
|
|
|
|
+ carNumber:'',
|
|
|
|
+ customerName:'',
|
|
|
|
+ customerPhone:''
|
|
},
|
|
},
|
|
typeList: ['潮粮', '干粮'],
|
|
typeList: ['潮粮', '干粮'],
|
|
managementType: '',
|
|
managementType: '',
|
|
@@ -314,23 +316,23 @@
|
|
this.managementType = options.managementType
|
|
this.managementType = options.managementType
|
|
let that = this
|
|
let that = this
|
|
this.purchasePriceList = uni.getStorageSync('purchasePriceList')
|
|
this.purchasePriceList = uni.getStorageSync('purchasePriceList')
|
|
- if (uni.getStorageSync('checkcustomer')) {
|
|
|
|
|
|
+ // 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
|
|
|
|
- }
|
|
|
|
|
|
+ // 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
|
|
|
|
- }
|
|
|
|
|
|
+ // this.gridList.customerNumberCard = _customerInfo.customerNumberCard
|
|
|
|
+ // }
|
|
this.gridList.grade = this.gradeList[0].value
|
|
this.gridList.grade = this.gradeList[0].value
|
|
this.gridList.gradeKey = this.gradeList[0].key
|
|
this.gridList.gradeKey = this.gradeList[0].key
|
|
this.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse', {
|
|
this.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse', {
|
|
@@ -363,6 +365,25 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ 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: {
|
|
methods: {
|
|
change(e){
|
|
change(e){
|
|
if(e){
|
|
if(e){
|