Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
wly-APP
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘川
wly-APP
Commits
a599e3ab
Commit
a599e3ab
authored
Mar 10, 2023
by
xiangzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
a26b8b53
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
96 additions
and
39 deletions
+96
-39
manifest.json
manifest.json
+8
-8
login.nvue
pages/login/login.nvue
+18
-9
my-purchase.nvue
pages/my-purchase/my-purchase.nvue
+4
-1
order-detail-quota.nvue
pages/order-detail-quota/order-detail-quota.nvue
+1
-1
order-trends.nvue
pages/order-trends/order-trends.nvue
+2
-3
produce-plan.nvue
pages/produce-material/produce-plan.nvue
+17
-0
produce-plan.nvue
pages/produce-order/produce-plan.nvue
+22
-0
purchase-receive.nvue
pages/purchase-receive/purchase-receive.nvue
+8
-8
select-shunt-adress.nvue
pages/select-shunt-adress/select-shunt-adress.nvue
+12
-8
api.helper.js
servers/api.helper.js
+1
-1
date.js
utils/date.js
+3
-0
No files found.
manifest.json
View file @
a599e3ab
...
...
@@ -3,8 +3,8 @@
//
"appid"
:
"__UNI__EDB6A1F"
,
"appid"
:
"__UNI__EDB6A1F"
,
"description"
:
"订货系统"
,
"versionName"
:
"1.1.
25
"
,
"versionCode"
:
"101
25
"
,
"versionName"
:
"1.1.
31
"
,
"versionCode"
:
"101
31
"
,
"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
}
}
...
...
pages/login/login.nvue
View file @
a599e3ab
...
...
@@ -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)
},
...
...
pages/my-purchase/my-purchase.nvue
View file @
a599e3ab
...
...
@@ -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('
n
ow'))
this.condition.endDate = this.handleDate(timeRangeFormat('
tomorr
ow'))
this.pageList[this.tabIndex].refreshData()
},
handleDate(date){
...
...
pages/order-detail-quota/order-detail-quota.nvue
View file @
a599e3ab
...
...
@@ -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>
...
...
pages/order-trends/order-trends.nvue
View file @
a599e3ab
...
...
@@ -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: '加载中'
...
...
pages/produce-material/produce-plan.nvue
View file @
a599e3ab
...
...
@@ -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){
...
...
pages/produce-order/produce-plan.nvue
View file @
a599e3ab
...
...
@@ -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
});
}
}
}
...
...
pages/purchase-receive/purchase-receive.nvue
View file @
a599e3ab
...
...
@@ -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) {
...
...
pages/select-shunt-adress/select-shunt-adress.nvue
View file @
a599e3ab
...
...
@@ -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(() => {
...
...
servers/api.helper.js
View file @
a599e3ab
...
...
@@ -146,7 +146,7 @@ class Request {
constructor
()
{
this
.
config
=
{
baseUrl
:
'http
://221.10.127.60:5000
'
,
// 请求的根域名
baseUrl
:
'http
s://crm.wuliangye.com.cn
'
,
// 请求的根域名
// 默认的请求头
header
:
{},
method
:
'POST'
,
...
...
utils/date.js
View file @
a599e3ab
...
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment