|
@@ -85,26 +85,6 @@
|
|
|
|
|
|
}
|
|
|
},
|
|
|
- // #ifndef MP
|
|
|
- onNavigationBarButtonTap(e) {
|
|
|
- const index = e.index;
|
|
|
- if (index === 0) {
|
|
|
- this.navTo('/pages/set/set');
|
|
|
- } else if (index === 1) {
|
|
|
- // #ifdef APP-PLUS
|
|
|
- const pages = getCurrentPages();
|
|
|
- const page = pages[pages.length - 1];
|
|
|
- const currentWebview = page.$getAppWebview();
|
|
|
- currentWebview.hideTitleNViewButtonRedDot({
|
|
|
- index
|
|
|
- });
|
|
|
- // #endif
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/notice/notice'
|
|
|
- })
|
|
|
- }
|
|
|
- },
|
|
|
- // #endif
|
|
|
computed: {
|
|
|
...mapState(['hasLogin', 'userInfo']),
|
|
|
// 手机号中间4位加*
|
|
@@ -168,6 +148,8 @@
|
|
|
searchContent:item.customerName+'('+item.customerPhone+')',
|
|
|
functionType:3
|
|
|
}).then(res => {
|
|
|
+
|
|
|
+ uni.setStorageSync('checkcustomer',item)
|
|
|
that.$api.doRequest('get', '/qualityInspectionManagement/api/settledCount',{
|
|
|
compId:'',
|
|
|
customerName: item.customerName,
|
|
@@ -180,7 +162,6 @@
|
|
|
customerName: item.customerName,
|
|
|
goodsName: uni.getStorageSync('goodsName'),
|
|
|
}).then(res => {
|
|
|
- uni.hideLoading()
|
|
|
for (let i = 0; i < that.purchasePriceList.length; i++) {
|
|
|
var data = res.data.data/1000
|
|
|
if(that.purchasePriceList[i].goodsName== uni.getStorageSync('goodsName')){
|
|
@@ -189,12 +170,12 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ that.show=false
|
|
|
+ uni.hideLoading()
|
|
|
+ uni.navigateBack()
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
- uni.setStorageSync('checkcustomer',item)
|
|
|
- that.show=false
|
|
|
- uni.navigateBack()
|
|
|
})
|
|
|
.catch(res => {
|
|
|
uni.showToast({
|
|
@@ -216,17 +197,19 @@
|
|
|
var count=''
|
|
|
var that = this
|
|
|
var name=item.searchContent.split('(')[0]
|
|
|
+ var phone=item.searchContent.split('(')[1]
|
|
|
+ phone = phone.substring(0,phone.length-1)
|
|
|
for(var i=0;i<this.customerList.length;i++){
|
|
|
// console.log(name,this.customerList[i].customerName,name==this.customerList[i].customerName)
|
|
|
- if(this.customerList[i].customerName==name){
|
|
|
+ if(this.customerList[i].customerPhone==phone){
|
|
|
var tmpName = this.customerList[i].customerName
|
|
|
+ uni.setStorageSync('checkcustomer',this.customerList[i])
|
|
|
uni.showLoading({title: '加载中'})
|
|
|
that.$api.doRequest('post', '/searchRecordsInfo/api/addInfo',{
|
|
|
commonId:that.userInfo.id,
|
|
|
searchContent:this.customerList[i].customerName+'('+this.customerList[i].customerPhone+')',
|
|
|
functionType:3
|
|
|
}).then(res => {
|
|
|
- uni.setStorageSync('checkcustomer',tmpName)
|
|
|
that.$api.doRequest('get', '/qualityInspectionManagement/api/settledCount',{
|
|
|
compId:'',
|
|
|
customerName: tmpName,
|
|
@@ -238,7 +221,7 @@
|
|
|
compId:'',
|
|
|
customerName: tmpName,
|
|
|
goodsName: uni.getStorageSync('goodsName'),
|
|
|
- }).then(res => {
|
|
|
+ }).then(res => {
|
|
|
for (let i = 0; i < that.purchasePriceList.length; i++) {
|
|
|
if(that.purchasePriceList[i].goodsName== uni.getStorageSync('goodsName')){
|
|
|
var data = res.data.data/1000
|
|
@@ -247,12 +230,12 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ that.show=false
|
|
|
+ uni.hideLoading()
|
|
|
+ uni.navigateBack()
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
- that.show=false
|
|
|
- uni.hideLoading()
|
|
|
- uni.navigateBack()
|
|
|
})
|
|
|
.catch(res => {
|
|
|
uni.showToast({
|