Commit a599e3ab authored by xiangzj's avatar xiangzj

bug修复

parent a26b8b53
......@@ -3,8 +3,8 @@
// "appid" : "__UNI__EDB6A1F",
"appid" : "__UNI__EDB6A1F",
"description" : "订货系统",
"versionName" : "1.1.25",
"versionCode" : "10125",
"versionName" : "1.1.31",
"versionCode" : "10131",
"transformPx" : false,
"app-plus" : {
/* 5+App特有相关 */
......@@ -129,33 +129,33 @@
// "changeOrigin": true
// }
"/sap" : {
// "target" : "https://crm.wuliangye.com.cn/wlySap",
"target" : "http://221.10.127.60:5000/wlySap",
// "target" : "https://218.89.67.37/wlySap",
"changeOrigin" : true
},
"/crm-app" : {
// "target" : "https://218.89.67.37/",
// "target" : "https://crm.wuliangye.com.cn",
"target" : "http://221.10.127.60:5000",
"changeOrigin" : true
},
"/wmdp-storeapp" : {
// "target" : "https://crm.wuliangye.com.cn/gateway/zdcx",
"target" : "http://221.10.127.60:5000/gateway/zdcx",
// "target" : "http://10.0.134.128:8080",
"changeOrigin" : true
},
"/wmdpwebservices" : {
// "target" : "https://crm.wuliangye.com.cn/gateway/sczx",
"target" : "http://221.10.127.60:5000/gateway/sczx",
// "target" : "http://10.0.134.182:9001",
"changeOrigin" : true
},
"/adapter" : {
// "target" : "https://crm.wuliangye.com.cn/gateway/cyj",
"target" : "http://221.10.127.60:5000/gateway/cyj",
// "target" : "http://api.c0331.dev.guanyingyun.com",
"changeOrigin" : true
},
"/uusafe" : {
"target" : "https://zzy.ipincloud.cn:9070",
// "target" : "https://apps.wuliangye.com.cn:9076",
"target" : "https://zzy.ipincloud.cn:9070",
"changeOrigin" : true
}
}
......
......@@ -208,6 +208,9 @@
},
async getIdToken(){
uni.showLoading({
title: '加载中'
});
const params ={
"uuid": "f3eea700a3686e47038a4b047af6d934DsRudwTZSRY",
"accessToken": this.accessToken
......@@ -216,6 +219,7 @@
const res = await getIdToken(params)
console.log(res,res.errorNumber-0===0)
if(res.errorNumber - 0 === 0){
uni.hideLoading();
const parmasObj = {
account: res.accounts[0].account,
idToken: res.accounts[0].idToken,
......@@ -223,14 +227,12 @@
}
this.goLogin(parmasObj, false)
}else{
uni.showLoading({
title: '加载中'
});
uni.showToast({
title: '登录异常',
icon: 'none',
duration: 1500
});
uni.hideLoading();
// uni.showToast({
// title: '登录异常',
// icon: 'none',
// duration: 1500
// });
console.log(res.errorNumber - 0 === 0,'非')
return
}
......@@ -241,10 +243,17 @@
},
// 登录
loginBtn(){
if (this.flag) {
this.authEx()
return
}
const parmas = {
username: this.account,
password: this.password,
loginType: 'App'
loginType: 'App',
// account: this.account,
// idToken: this.password,
// loginType: 'ystoken'
}
this.goLogin(parmas)
},
......
......@@ -151,6 +151,9 @@
},
...mapState(['sysinfo'])
},
created() {
this.handleFilter('week')
},
onReady() {
this._lastTabIndex = 0;
this.swiperWidth = 0;
......@@ -344,7 +347,7 @@
this.filterActiveIndex = item
this.condition.startDate = this.handleDate(timeRangeFormat(item))
}
this.condition.endDate = this.handleDate(timeRangeFormat('now'))
this.condition.endDate = this.handleDate(timeRangeFormat('tomorrow'))
this.pageList[this.tabIndex].refreshData()
},
handleDate(date){
......
......@@ -118,7 +118,7 @@
</view>
</view>
<view class="middle view">
<view class="middle view" v-if='ITEM_OUTER && ITEM_OUTER.length>0'>
<view class="item-block item-block-name">
<text class="item-block-label">计划外</text>
</view>
......
......@@ -80,7 +80,7 @@
<text class="detal-item-value">{{item.zzfld000007}}/{{item.zzfld000009}}</text>
</view>
<view class="block-detal-item">
<text class="detal-item-label">本单可发货量()</text>
<text class="detal-item-label">本单可发货量()</text>
<text class="detal-item-value">{{item.zzfld000007}}</text>
</view>
<view class="block-detal-item block-detal-item-last">
......@@ -120,7 +120,6 @@
} from '@/servers/breakwords.js'
import noData from '@/components/nodata.nvue';
import orderItem from './order-item.nvue';
export default {
data() {
return {
......@@ -273,7 +272,7 @@
processType: PROCESS_TYPE,
estat: ESTAT,
objectId: OBJECT_ID,
postingDate: POSTING_DATE
postingDate: POSTING_DATE.replace(/-/g,'')
}
uni.showLoading({
title: '加载中'
......
......@@ -325,6 +325,11 @@
this.HEADINFO.preorder = e.detail.value === false ? 0 : 1
},
async submit() {
const webView = this.$scope.$getAppWebview();
webView.setTitleNViewButtonStyle(0, {
"width": 0,
'fontSize': 0
});
let res1 = null
try{
const params = {
......@@ -334,6 +339,10 @@
}
res1 = await apiUpdateProduceMaterialOrder(params)
if(res1.msgtype !== 'S'){
webView.setTitleNViewButtonStyle(0, {
"width": 30,
'fontSize': 14
});
return
}
}catch(e){
......@@ -352,8 +361,16 @@
// this.planinnerLists = ITEM2
const res2 = await apiSubmitProduceMaterialOrder(params2)
if(res2.msgtype !== 'S'){
webView.setTitleNViewButtonStyle(0, {
"width": 30,
'fontSize': 14
});
return
}
webView.setTitleNViewButtonStyle(0, {
"width": 0,
'fontSize': 0
});
this.orderInfo = {...res2.head}
this.$refs.popup.open('center')
}catch(e){
......
......@@ -315,6 +315,11 @@
this.HEADINFO.preorder = e.detail.value === false ? 0 : 1
},
async submit() {
const webView = this.$scope.$getAppWebview();
webView.setTitleNViewButtonStyle(0, {
"width": 0,
'fontSize': 0
});
// const flag = this.planinnerLists.every(function(item){
// console.log(item,'')
// return item.description
......@@ -336,6 +341,10 @@
}
res1 = await apiUpdateProduceOrder(params)
if(res1.msgtype !== 'S'){
webView.setTitleNViewButtonStyle(0, {
"width": 30,
'fontSize': 14
});
return
}
}catch(e){
......@@ -353,8 +362,16 @@
// this.planinnerLists = ITEM2
const res2 = await apiSubmitProduceOrder(params2)
if(res2.msgtype !== 'S'){
webView.setTitleNViewButtonStyle(0, {
"width": 30,
'fontSize': 14
});
return
}
webView.setTitleNViewButtonStyle(0, {
"width": 0,
'fontSize': 0
});
this.orderInfo = {...res1.data.head}
this.$refs.popup.open('center')
}catch(e){
......@@ -367,6 +384,11 @@
this.salesCenterIndex = -1
this.selectedSalesCenter = {}
this.initProducePlanData()
const webView = this.$scope.$getAppWebview();
webView.setTitleNViewButtonStyle(0, {
"width": 30,
'fontSize': 14
});
}
}
}
......
......@@ -247,14 +247,14 @@
})
uni.$on('selectShuntAdressAccountInfo', function(data) {
console.log('监听到事件来自 selectShuntAdressAccountInfo ,携带参数 msg 为:', data);
_this.orderItem.shuntReceiveUnitName = data.selectShuntAdressAccountInfo.partner_name
_this.orderItem.shuntReceiveUnitCode = data.selectShuntAdressAccountInfo.partner
_this.orderItem.receiveCityCode = data.selectShuntAdressAccountInfo.city_code
_this.orderItem.receiveCityName = data.selectShuntAdressAccountInfo.city_name
_this.orderItem.receiveAddress = data.selectShuntAdressAccountInfo.street
_this.orderItem.contactNumber = data.selectShuntAdressAccountInfo.tel_number
_this.orderItem.contacPerson = data.selectShuntAdressAccountInfo.c_o_name
_this.orderItem.spurtCodeUnitName = data.selectShuntAdressAccountInfo.partner_name
_this.orderItem.shuntReceiveUnitName = data.selectShuntAdressAccountInfo.PARTNER_NAME
_this.orderItem.shuntReceiveUnitCode = data.selectShuntAdressAccountInfo.PARTNER
_this.orderItem.receiveCityCode = data.selectShuntAdressAccountInfo.CITY_CODE
_this.orderItem.receiveCityName = data.selectShuntAdressAccountInfo.CITY_NAME
_this.orderItem.receiveAddress = data.selectShuntAdressAccountInfo.STREET
_this.orderItem.contactNumber = data.selectShuntAdressAccountInfo.TEL_NUMBER
_this.orderItem.contacPerson = data.selectShuntAdressAccountInfo.C_O_NAME
_this.orderItem.spurtCodeUnitName = data.selectShuntAdressAccountInfo.PARTNER_NAME
_this.getReceipt(_this.orderItem.shuntDealer)
})
uni.$on('selectShuntCode', function(data) {
......
......@@ -31,19 +31,19 @@
<cell v-for="(item,index) in lists" :key="item.guid" @click="handleChecked(item)">
<view class="scroll-item">
<view class="item-block item-block-code">
<text class="item-block-label">收货方单位编号:{{item.partner}}</text>
<text class="item-block-label">收货方单位编号:{{item.PARTNER}}</text>
</view>
<view class="item-block item-block-code">
<text class="item-block-label">收货方单位名称:{{item.partner_name}}</text>
<text class="item-block-label">收货方单位名称:{{item.PARTNER_NAME}}</text>
</view>
<view class="item-block item-block-code">
<text class="item-block-label">联系人:{{item.c_o_name}}</text>
<text class="item-block-label">联系人:{{item.C_O_NAME}}</text>
</view>
<view class="item-block item-block-code">
<text class="item-block-label">联系电话:{{item.tel_number}}</text>
<text class="item-block-label">联系电话:{{item.TEL_NUMBER}}</text>
</view>
<view class="item-block item-block-code">
<text class="item-block-label detal-item-value3">收货地址:{{item.street}}</text>
<text class="item-block-label detal-item-value3">收货地址:{{item.STREET}}</text>
</view>
</view>
</cell>
......@@ -135,8 +135,12 @@
uni.navigateBack()
},
search() {
let num = null
if(!this.searchName){
num = this.addressType - 1 === 0 ? this.orderItem.shuntDealer : this.orderItem.customerCode
}
this.reset()
this.getSalesPlan(true, this.searchName);
this.getSalesPlan(true, num);
},
async getSalesPlan(isRefresh, customerCode = this.addressType - 1 === 0 ? this.orderItem.shuntDealer : this.orderItem.customerCode) {
if (this.loadParams.isDone) {
......@@ -158,10 +162,10 @@
uni.hideLoading();
if (isRefresh) {
this.lists = res.data
this.lists = res.DATA
this.loadParams.isDone = false
} else {
this.lists = this.lists.concat(res.data)
this.lists = this.lists.concat(res.DATA)
}
setTimeout(() => {
......
......@@ -146,7 +146,7 @@ class Request {
constructor() {
this.config = {
baseUrl: 'http://221.10.127.60:5000', // 请求的根域名
baseUrl: 'https://crm.wuliangye.com.cn', // 请求的根域名
// 默认的请求头
header: {},
method: 'POST',
......
......@@ -11,6 +11,9 @@ function timeRangeFormat(range) {
sameElse: 'YYYYMMDD'
})
break;
case 'tomorrow':
timeRange = momentJs().add(1, 'days').format('YYYYMMDD')
break;
case '1':
timeRange = momentJs().subtract(1, 'M').calendar({
sameElse: 'YYYYMMDD'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment