|
@@ -161,7 +161,6 @@
|
|
|
|
|
|
var that = this
|
|
var that = this
|
|
var count=''
|
|
var count=''
|
|
-
|
|
|
|
if(item.authenticationStatus=='已认证'){
|
|
if(item.authenticationStatus=='已认证'){
|
|
uni.showLoading({title: '加载中'})
|
|
uni.showLoading({title: '加载中'})
|
|
that.$api.doRequest('post', '/searchRecordsInfo/api/addInfo',{
|
|
that.$api.doRequest('post', '/searchRecordsInfo/api/addInfo',{
|
|
@@ -217,27 +216,27 @@
|
|
var count=''
|
|
var count=''
|
|
var that = this
|
|
var that = this
|
|
var name=item.searchContent.split('(')[0]
|
|
var name=item.searchContent.split('(')[0]
|
|
-
|
|
|
|
for(var i=0;i<this.customerList.length;i++){
|
|
for(var i=0;i<this.customerList.length;i++){
|
|
// console.log(name,this.customerList[i].customerName,name==this.customerList[i].customerName)
|
|
// console.log(name,this.customerList[i].customerName,name==this.customerList[i].customerName)
|
|
if(this.customerList[i].customerName==name){
|
|
if(this.customerList[i].customerName==name){
|
|
|
|
+ var tmpName = this.customerList[i].customerName
|
|
uni.showLoading({title: '加载中'})
|
|
uni.showLoading({title: '加载中'})
|
|
that.$api.doRequest('post', '/searchRecordsInfo/api/addInfo',{
|
|
that.$api.doRequest('post', '/searchRecordsInfo/api/addInfo',{
|
|
commonId:that.userInfo.id,
|
|
commonId:that.userInfo.id,
|
|
searchContent:this.customerList[i].customerName+'('+this.customerList[i].customerPhone+')',
|
|
searchContent:this.customerList[i].customerName+'('+this.customerList[i].customerPhone+')',
|
|
functionType:3
|
|
functionType:3
|
|
}).then(res => {
|
|
}).then(res => {
|
|
- uni.setStorageSync('checkcustomer',this.customerList[i])
|
|
|
|
|
|
+ uni.setStorageSync('checkcustomer',tmpName)
|
|
that.$api.doRequest('get', '/qualityInspectionManagement/api/settledCount',{
|
|
that.$api.doRequest('get', '/qualityInspectionManagement/api/settledCount',{
|
|
compId:'',
|
|
compId:'',
|
|
- customerName: that.customerList[i].customerName,
|
|
|
|
|
|
+ customerName: tmpName,
|
|
goodsName: uni.getStorageSync('goodsName'),
|
|
goodsName: uni.getStorageSync('goodsName'),
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if(res.data.code==200){
|
|
if(res.data.code==200){
|
|
count=res.data.data
|
|
count=res.data.data
|
|
that.$api.doRequest('get', '/paymentManagement/cumulant',{
|
|
that.$api.doRequest('get', '/paymentManagement/cumulant',{
|
|
compId:'',
|
|
compId:'',
|
|
- customerName: that.customerList[i].customerName,
|
|
|
|
|
|
+ customerName: tmpName,
|
|
goodsName: uni.getStorageSync('goodsName'),
|
|
goodsName: uni.getStorageSync('goodsName'),
|
|
}).then(res => {
|
|
}).then(res => {
|
|
for (let i = 0; i < that.purchasePriceList.length; i++) {
|
|
for (let i = 0; i < that.purchasePriceList.length; i++) {
|
|
@@ -251,9 +250,9 @@
|
|
})
|
|
})
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- that.show=false
|
|
|
|
- uni.navigateBack()
|
|
|
|
- uni.hideLoading()
|
|
|
|
|
|
+ that.show=false
|
|
|
|
+ uni.hideLoading()
|
|
|
|
+ uni.navigateBack()
|
|
})
|
|
})
|
|
.catch(res => {
|
|
.catch(res => {
|
|
uni.showToast({
|
|
uni.showToast({
|