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
dc1529a0
Commit
dc1529a0
authored
Oct 28, 2022
by
xiangzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
8c2f3e00
Show whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
917 additions
and
807 deletions
+917
-807
input-autocomplete.vue
components/input-autocomplete/input-autocomplete.vue
+4
-4
breakwords-clue.vue
pages/breakwords-clue/breakwords-clue.vue
+1
-35
breakwords-mission-receiver.vue
...eakwords-mission-receiver/breakwords-mission-receiver.vue
+782
-697
quota-order.nvue
pages/group-buy/quota-order.nvue
+2
-2
home.vue
pages/home/home.vue
+21
-0
login.nvue
pages/login/login.nvue
+2
-21
my-purchase.nvue
pages/my-purchase/my-purchase.nvue
+4
-4
order-item.nvue
pages/my-purchase/order-item.nvue
+2
-2
order-page.nvue
pages/my-purchase/order-page.nvue
+33
-7
quota-order.nvue
pages/no-quota/quota-order.nvue
+2
-2
purchase-main.nvue
pages/purchase-main/purchase-main.nvue
+8
-1
purchase-receive.nvue
pages/purchase-receive/purchase-receive.nvue
+11
-20
purchase.nvue
pages/purchase/purchase.nvue
+1
-1
quota-order.nvue
pages/quota/quota-order.nvue
+2
-2
select-product.vue
pages/select-product/select-product.vue
+3
-3
select-shunt-adress.nvue
pages/select-shunt-adress/select-shunt-adress.nvue
+1
-1
order-item.nvue
pages/ticket-order/order-item.nvue
+1
-1
usercenter.nvue
pages/usercenter/usercenter.nvue
+1
-0
address.js
servers/address.js
+28
-0
api.helper.js
servers/api.helper.js
+2
-1
http.interceptor.js
servers/http.interceptor.js
+2
-2
purchaseList.js
servers/purchaseList.js
+4
-1
No files found.
components/input-autocomplete/input-autocomplete.vue
View file @
dc1529a0
...
...
@@ -914,7 +914,7 @@
},
created
()
{
if
(
this
.
srcDataList
)
{
this
.
srcDataList
.
sort
();
//
this.srcDataList.sort();
this
.
showList
=
this
.
srcDataList
;
}
if
(
this
.
loadData
)
{
...
...
@@ -1407,7 +1407,7 @@
return
Promise
.
resolve
(
this
.
srcDataList
);
},
onInput
(
event
)
{
console
.
log
(
event
,
'onInput'
)
//
console.log(event,'onInput')
let
value
=
event
.
target
.
value
;
this
.
$emit
(
'input'
,
value
);
this
.
doInput
(
value
);
...
...
@@ -1427,7 +1427,7 @@
}
},
onInputMaskTap
()
{
console
.
log
(
'onInputMaskTap'
);
//
console.log('onInputMaskTap');
this
.
$emit
(
'onInputTap'
)
this
.
inputMaskZindex
=
0
;
this
.
doInput
(
this
.
curInputValue
);
...
...
@@ -1663,7 +1663,7 @@
},
watch
:
{
stringList
(
val
)
{
console
.
log
(
val
,
'9090'
)
//
console.log(val,'9090')
this
.
srcDataList
=
val
;
}
}
...
...
pages/breakwords-clue/breakwords-clue.vue
View file @
dc1529a0
...
...
@@ -6,26 +6,7 @@
</view>
<view
class=
"main"
>
<view
class=
"middle view"
>
<view
class=
"text-block"
>
<text
class=
"middle-date"
>
测试模糊搜索
</text>
<view
class=
"middle-date-des uni-list picker-year"
>
<view
class=
"uni-list-cell"
>
<view
class=
"uni-list-cell-db"
>
<input-autocomplete
class=
"unit-item__input"
:value=
"testObj.sname"
v-model=
"testObj.sname"
placeholder=
"请输入"
highlightColor=
"#FF0000"
:stringList=
"autocompleteStringList"
:isNoShow=
'isNoShow'
v-on:onInputTap=
'onInputTap'
v-on:selectItem=
"selectItemS"
>
</input-autocomplete>
</view>
</view>
</view>
</view>
<view
class=
"text-block"
>
<text
class=
"middle-date"
>
匿名提报
</text>
<view
class=
"middle-date-des uni-list picker-year"
>
...
...
@@ -408,12 +389,6 @@
},
data
()
{
return
{
isNoShow
:
true
,
autocompleteStringList
:
[
'四川省成都市温江区樱花街东红大厦8-8-888'
,
'四川省成都市锦江区樱花街东红大厦8-8-999'
,
'四川省成都市金牛区樱花街东红大厦8-8-666'
,
'四川省成都市龙泉区樱花街东红大厦8-8-777'
],
testObj
:
{
sname
:
''
,
dname
:
''
},
condition
:
{
submitMethod
:
''
,
submitMethodName
:
''
,
...
...
@@ -535,15 +510,6 @@
uni
.
$off
(
'selectSalesAreaAccountInfo'
)
},
methods
:
{
onInputTap
(){
this
.
isNoShow
=
true
},
onPageScroll
(
e
)
{
this
.
isNoShow
=
false
},
selectItemS
(
data
)
{
console
.
log
(
'收到数据了:'
,
data
);
},
async
getDictionary
(
key
)
{
const
params
=
{
dictionaryKey
:
key
...
...
pages/breakwords-mission-receiver/breakwords-mission-receiver.
n
vue
→
pages/breakwords-mission-receiver/breakwords-mission-receiver.vue
View file @
dc1529a0
...
...
@@ -31,7 +31,7 @@
</
template
>
</view>
<view
class=
"middle view"
>
<
view class="steps">
<
!-- <view class="steps">
<view class="steps__row-container">
<view class="steps__row-line-item">
<view class="steps__row-line steps__row-line--before steps__row-line--hide"></view>
...
...
@@ -99,33 +99,46 @@
<text class="steps__row-desc"></text>
</view>
</view>
</view>
</view> -->
<view
class=
"text-block"
>
<text class="middle-date">
打框架</text>
<text
class=
"middle-date"
>
收货地址
</text>
<view
class=
"middle-date-des uni-list picker-year"
>
<view
class=
"uni-list-cell"
>
<view
class=
"uni-list-cell-db"
>
<picker class="picker-block" @change="bindPickerBundledProChange" mode="selector"
range-key='value' :value="condition.bundledProducts" :range="bundledProPicker">
<text
class="uni-input-text">{{ bundledProPicker[bundledProductsFlagIndex].value}}</text>
</picker>
<input-autocomplete
class=
"unit-item__input"
:value=
"contactLetterDetail.receiveAddress"
v-model=
"contactLetterDetail.receiveAddress"
placeholder=
"请输入"
highlightColor=
"#FF0000"
:stringList=
"autocompleteStringList"
:isNoShow=
'isNoShow'
v-on:onInputTap=
'onInputTap'
v-on:selectItem=
"selectItemS"
>
</input-autocomplete>
<!-- <input class="middle-date-des" type="text" v-model="contactLetterDetail.receiveAddress"
placeholder="" /> -->
</view>
</view>
<image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit"></image>
</view>
</view>
<view
class=
"text-block"
>
<text class="middle-date">
收货地址</text>
<text
class=
"middle-date"
>
打框架
</text>
<view
class=
"middle-date-des uni-list picker-year"
>
<view
class=
"uni-list-cell"
>
<view
class=
"uni-list-cell-db"
>
<input class="middle-date-des" type="text" v-model="contactLetterDetail.receiveAddress"
placeholder="" />
<picker
class=
"picker-block"
@
change=
"bindPickerBundledProChange"
mode=
"selector"
range-key=
'value'
:value=
"condition.bundledProducts"
:range=
"bundledProPicker"
>
<text
class=
"uni-input-text"
>
{{ bundledProPicker[bundledProductsFlagIndex].value}}
</text>
</picker>
</view>
</view>
<image
class=
"icon-arrow"
src=
"@/static/image/arrow_r@3x.png"
mode=
"aspectFit"
></image>
</view>
</view>
<view
class=
"text-block"
>
<text
class=
"middle-date"
>
联系人
</text>
<view
class=
"middle-date-des uni-list picker-year"
>
...
...
@@ -205,10 +218,19 @@
apiGetContactLetterDetail
,
apiDoReceiveInfo
}
from
'@/servers/breakwords.js'
import
inputAutocomplete
from
'@/components/input-autocomplete/input-autocomplete.vue'
;
export
default
{
components
:
{
inputAutocomplete
},
data
()
{
return
{
testObj
:
{
sname
:
''
,
dname
:
''
},
isNoShow
:
true
,
autocompleteStringList
:
[],
condition
:
{
taskAssignmentId
:
''
,
bundledProducts
:
'false'
,
...
...
@@ -310,51 +332,61 @@
}
},
methods
:
{
onInputTap
(){
this
.
isNoShow
=
true
},
onPageScroll
(
e
)
{
this
.
isNoShow
=
false
},
selectItemS
(
data
)
{
console
.
log
(
'收到数据了:'
,
data
);
},
async
getContactLetterDetail
()
{
this
.
autocompleteStringList
=
uni
.
getStorageSync
(
'wlyAddress'
)
uni
.
showLoading
({
title
:
'加载中'
});
setTimeout
(
function
()
{
uni
.
hideLoading
();
},
2000
);
// const res = await apiGetContactLetterDetail({
// taskAssignmentId: this.condition.taskAssignmentId
// })
let res = {
"result": "S",
"message": "操作成功",
"data": {
"taskAssignmentId": "T000008HK",
"bankName": "开户行",
"accountName": "户名",
"accountNumber": "账号",
"contact": "联系人",
"contactPhone": "联系电话",
"receiveAddress": "收货地址",
"contactUser": "收获联系人",
"receiveContactPhone": "联系人电话",
"expectInsuredValue": "期望保价",
"expectLogistics": "期望物流公司",
"receiveRecorderName": "录入人",
"receiveRecorderTime": "录入时间",
"remitPaidParty": "打款方",
"remitPaidUrl": "打款凭证照片",
"remitRecorderName": "打款录入人",
"remitRecorderTime": "打款录入时间",
"shipLogistics": "发货物流公司",
"shipLogisticsNo": "发货单号",
"shipTime": "发货时间",
"shipRecorderName": "发货人",
"entryDataList": [{
"contactLetterId": "联络函编号",
"contactLetterName": "联络函名称",
"createUserName": "创建人",
"status": "状态",
"statusName": "状态",
"createTime": "生成时间"
}]
}
}
const
res
=
await
apiGetContactLetterDetail
({
taskAssignmentId
:
this
.
condition
.
taskAssignmentId
})
// let res = {
// "result": "S",
// "message": "操作成功",
// "data": {
// "taskAssignmentId": "T000008HK",
// "bankName": "开户行",
// "accountName": "户名",
// "accountNumber": "账号",
// "contact": "联系人",
// "contactPhone": "联系电话",
// "receiveAddress": "收货地址",
// "contactUser": "收获联系人",
// "receiveContactPhone": "联系人电话",
// "expectInsuredValue": "期望保价",
// "expectLogistics": "期望物流公司",
// "receiveRecorderName": "录入人",
// "receiveRecorderTime": "录入时间",
// "remitPaidParty": "打款方",
// "remitPaidUrl": "打款凭证照片",
// "remitRecorderName": "打款录入人",
// "remitRecorderTime": "打款录入时间",
// "shipLogistics": "发货物流公司",
// "shipLogisticsNo": "发货单号",
// "shipTime": "发货时间",
// "shipRecorderName": "发货人",
// "entryDataList": [{
// "contactLetterId": "联络函编号",
// "contactLetterName": "联络函名称",
// "createUserName": "创建人",
// "status": "状态",
// "statusName": "状态",
// "createTime": "生成时间"
// }]
// }
// }
uni
.
hideLoading
();
for
(
let
key
in
res
.
data
)
{
this
.
$set
(
this
.
contactLetterDetail
,
key
,
res
.
data
[
key
])
...
...
@@ -377,13 +409,26 @@
this
.
deliveryCompanyPickerShow
=
!
this
.
deliveryCompanyPickerShow
},
async
submit
()
{
const
address
=
uni
.
getStorageSync
(
'wlyAddress'
)
if
(
address
){
if
(
address
.
length
===
5
){
address
.
pop
()
}
address
.
unshift
(
this
.
contactLetterDetail
.
receiveAddress
)
uni
.
setStorageSync
(
'wlyAddress'
,
address
);
}
else
{
uni
.
setStorageSync
(
'wlyAddress'
,
[
this
.
contactLetterDetail
.
receiveAddress
]);
}
if
(
1
){
return
}
const
params
=
{
'taskAssignmentId'
:
this
.
condition
.
taskAssignmentId
,
'receiveAddress': this.con
dition.receiveAddress,
'contactUser': this.con
dition.contactUser,
'contactPhone': this.con
dition.receiveContactPhone,
'expectInsuredValue': this.con
dition.expectInsuredValue,
'expectLogistics': this.
condition.expectLogistics,
'receiveAddress'
:
this
.
con
tactLetterDetail
.
receiveAddress
,
'contactUser'
:
this
.
con
tactLetterDetail
.
contactUser
,
'contactPhone'
:
this
.
con
tactLetterDetail
.
receiveContactPhone
,
'expectInsuredValue'
:
this
.
con
tactLetterDetail
.
expectInsuredValue
,
'expectLogistics'
:
this
.
deliveryCompanyPickerShow
?
this
.
deliveryCompanyList
[
this
.
deliveryCompanyIndex
].
name
:
this
.
condition
.
expectLogistics
,
'receiveRecorderId'
:
this
.
userInfo
.
code
,
'receiveRecorderName'
:
this
.
userInfo
.
name
,
'contactLetterId'
:
this
.
condition
.
entryDataList
[
0
].
contactLetterId
,
...
...
@@ -395,9 +440,29 @@
setTimeout
(
function
()
{
uni
.
hideLoading
();
},
2000
);
try
{
const
res
=
await
apiDoReceiveInfo
(
params
)
if
(
res
.
result
===
'S'
){
const
address
=
uni
.
getStorageSync
(
'wlyAddress'
)
if
(
address
){
if
(
address
.
length
===
5
){
address
.
pop
()
}
address
.
unshift
(
this
.
contactLetterDetail
.
receiveAddress
)
uni
.
setStorageSync
(
'wlyAddress'
,
address
);
}
else
{
uni
.
setStorageSync
(
'wlyAddress'
,
[
this
.
contactLetterDetail
.
receiveAddress
]);
}
if
(
1
){
return
}
}
uni
.
hideLoading
();
uni
.
navigateBack
()
}
catch
(
e
){
//TODO handle the exception
}
}
}
}
...
...
@@ -695,4 +760,24 @@
.steps__row-line--hide
{
background-color
:
transparent
;
}
/
deep
/
.str-auto-complete-container
{
// min-width: 50%;
max-width
:
50%
;
position
:
fixed
;
}
/
deep
/
.str-auto-complete-item
{
line-height
:
1
;
}
/
deep
/
.iac-input-wrap
{
min-height
:
96rpx
;
}
/
deep
/
.uni-input-input
{
font-size
:
28rpx
;
}
.qaz
{
position
:
absolute
;
top
:
100px
;
// display: flex;
// flex-direction: column;
}
</
style
>
pages/group-buy/quota-order.nvue
View file @
dc1529a0
...
...
@@ -3,7 +3,7 @@
<view class="middle upload summary">
<view class="summary-block">
<image class="icon_plan" src="@/static/image/icon_plan@3x.png" mode=""></image>
<text class="upload-text">合计金额</text>
<text class="upload-text">合计金额
(元)
</text>
</view>
<view>
<text class="summary-num">{{intotalComputed}}</text>
...
...
@@ -161,7 +161,7 @@
this.planinnerLists.forEach((item) => {
money += item.NET_VALUE * 1
})
return money
return money
.toFixed(2)
},
selectedSalesCenterArr() {
return this.groupOrder.baseinfo.YXDY
...
...
pages/home/home.vue
View file @
dc1529a0
...
...
@@ -179,6 +179,9 @@
queryUnique
,
queryProducts
}
from
'@/servers/breakwords.js'
import
{
apiFindUnreadMsg
}
from
'@/servers/message.js'
import
timeFormat
from
'@/uview-ui/libs/function/timeFormat.js'
export
default
{
data
()
{
...
...
@@ -290,8 +293,26 @@
this
.
queryProducts
()
this
.
queryUnique
()
this
.
pointsAndCashSummary
()
this
.
getMessageList
()
},
methods
:
{
async
getMessageList
()
{
let
params
=
{
customer
:
this
.
userInfo
.
code
,
msgType
:
'app'
,
page
:
1
,
pagesize
:
1
,
msgStatus
:
0
}
let
res
=
await
apiFindUnreadMsg
(
params
)
if
(
res
.
status
===
1
&&
res
.
data
.
Rows
.
length
>
0
)
{
uni
.
setTabBarBadge
({
index
:
3
,
text
:
res
.
data
.
Total
.
toString
()
})
}
},
async
pointsAndCashSummary
()
{
try
{
const
res
=
await
pointsAndCashSummary
({
organizationId
:
this
.
userInfo
.
code
})
...
...
pages/login/login.nvue
View file @
dc1529a0
...
...
@@ -82,9 +82,7 @@
import {
apiLogin
} from '@/servers/user.js'
import {
apiFindUnreadMsg
} from '@/servers/message.js'
export default {
data() {
...
...
@@ -187,23 +185,7 @@
this.passwordVisible = !this.passwordVisible;
this.$refs.password.blur()
},
async getMessageList(code) {
let params = {
customer: code,
msgType: 'app',
page: 1,
pagesize: 1,
msgStatus: 0
}
let res = await apiFindUnreadMsg(params)
if (res.status === 1 && res.data.Rows.length > 0) {
uni.setTabBarBadge({
index:3,
text: res.data.Total.toString()
})
}
},
// 登录
async goLogin() {
if (this.loginType === 'phone') {
...
...
@@ -256,7 +238,6 @@
uni.switchTab({
url: '/pages/home/home'
});
this.getMessageList(this.account)
}
}
...
...
pages/my-purchase/my-purchase.nvue
View file @
dc1529a0
...
...
@@ -9,7 +9,7 @@
<view class="uni-tab-item" v-for="(tab,index) in tabList" :key="tab.id" :ref="'tabitem'+index">
<text :id="tab.id" :data-id="index" :data-current="index" class="uni-tab-item-title"
:class="{'uni-tab-item-title-active':tabIndex==index}"
@click="ontabtap">{{tab.name}}</text>
@click="ontabtap
($event,tab.newsid)
">{{tab.name}}</text>
</view>
</view>
<view class="scroll-view-indicator">
...
...
@@ -61,7 +61,7 @@
<swiper ref="swiper1" class="tab-box" :current="tabIndex" :duration="300" @change="onswiperchange"
@transition="onswiperscroll" @animationfinish="animationfinish" @onAnimationEnd="animationfinish">
<swiper-item class="swiper-item" v-for="(page, index) in tabList" :key="index">
<orderPage :ref="'page' + index" class="page-item" :nid="page.newsid" :condition='condition'></orderPage>
<orderPage :ref="'page' + index" class="page-item" :nid="page.newsid" :condition
s
='condition'></orderPage>
</swiper-item>
</swiper>
</view>
...
...
@@ -174,9 +174,9 @@
this.selectorQuery();
},
methods: {
ontabtap(e) {
ontabtap(e
,type
) {
let index = e.target.dataset.current || e.currentTarget.dataset.current;
this.condition.status =
index
this.condition.status =
type
//let offsetIndex = this._touchTabIndex = Math.abs(index - this._lastTabIndex) > 1;
// #ifdef APP-PLUS || H5 || MP-WEIXIN || MP-QQ
...
...
pages/my-purchase/order-item.nvue
View file @
dc1529a0
...
...
@@ -2,12 +2,12 @@
<view class="order view">
<view class="top">
<text class="title-no">要货单号:{{newsItem.wantCode}}</text>
<view class="title-info">
<view class="title-info"
v-if="newsItem.billStatusTextView"
>
<button class="title-info__status" type="default"><text class="item-block-btn__text">{{newsItem.billStatusTextView}}</text></button>
</view>
</view>
<view class="middle view">
<view class="middle-title">
<view class="middle-title"
v-if="newsItem.logisticno"
>
<text class="middle-title__text">发货单号:{{newsItem.logisticno}}</text>
<image @click="checkLogistics(newsItem.logisticno)" class="icon-car" src="@/static/image/order_car@3x.png" mode="aspectFit">
</image>
...
...
pages/my-purchase/order-page.nvue
View file @
dc1529a0
...
...
@@ -12,7 +12,7 @@
</div>
</uni-refresh>
<uni-cell v-for="(item, index) in dataList" :key="item.id">
<order-item :newsItem="item" @click="goDetail(item)"></order-item>
<order-item :newsItem="item" @click
.native
="goDetail(item)"></order-item>
</uni-cell>
<uni-cell v-if="isLoading || dataList.length > 4">
<view class="loading-more">
...
...
@@ -46,7 +46,7 @@
type: [Number, String],
default: ''
},
condition: {
condition
s
: {
type: Object,
default: () => {}
}
...
...
@@ -69,7 +69,24 @@
contentrefresh: '',
contentnomore: ''
},
refreshIcon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAB5QTFRFcHBw3Nzct7e39vb2ycnJioqK7e3tpqam29vb////D8oK7wAAAAp0Uk5T////////////ALLMLM8AAABxSURBVHja7JVBDoAgDASrjqj//7CJBi90iyYeOHTPMwmFZrHjYyyFYYUy1bwUZqtJIYVxhf1a6u0R7iUvWsCcrEtwJHp8MwMdvh2amHduiZD3rpWId9+BgPd7Cc2LIkPyqvlQvKxKBJ//Qwq/CacAAwDUv0a0YuKhzgAAAABJRU5ErkJggg=="
refreshIcon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAB5QTFRFcHBw3Nzct7e39vb2ycnJioqK7e3tpqam29vb////D8oK7wAAAAp0Uk5T////////////ALLMLM8AAABxSURBVHja7JVBDoAgDASrjqj//7CJBi90iyYeOHTPMwmFZrHjYyyFYYUy1bwUZqtJIYVxhf1a6u0R7iUvWsCcrEtwJHp8MwMdvh2amHduiZD3rpWId9+BgPd7Cc2LIkPyqvlQvKxKBJ//Qwq/CacAAwDUv0a0YuKhzgAAAABJRU5ErkJggg==",
page: {
"page": "1",
"PAGESIZE": "10",
},
loadParams: {
total: 0,
totalPage: 1,
isDone: false,
isRefresh: false
},
condition: {
endDate: "",
page: 1,
pagesize: 20,
startDate: "",
status: "0",
}
}
},
created() {
...
...
@@ -102,7 +119,13 @@
this.requestParams.time = new Date().getTime() + '';
var startTime = new Date();
const res = await findAppGoodsSingle(this.condition)
const params = {
...this.condition,
endDate: this.conditions.endDate,
startDate: this.conditions.startDate,
status: this.conditions.status,
}
const res = await findAppGoodsSingle(params)
if(res.status - 1 === 0){
this.isLoading = false;
if (refresh) {
...
...
@@ -120,6 +143,8 @@
this.isNoData = true;
}
this.isNoData = (res.data.Rows.length <= 0);
this.loadParams.totalPage = Math.ceil(res.data.Total * 1 / this.condition.pagesize * 1)
if (refresh) {
this.dataList = res.data.Rows;
this.requestParams.minId = 0;
...
...
@@ -132,9 +157,9 @@
}
},
loadMore(e) {
if (this.
page
.page < this.loadParams.totalPage) {
this.
page
.page++
this.loadData();
if (this.
condition
.page < this.loadParams.totalPage) {
this.
condition
.page++
this.loadData(
false
);
} else {
this.loadingText = '--已到底--'
}
...
...
@@ -150,6 +175,7 @@
if (this.isLoading) {
return;
}
this.condition.page = 1
this.pulling = true;
this.refreshing = true;
this.refreshText = "正在刷新...";
...
...
pages/no-quota/quota-order.nvue
View file @
dc1529a0
...
...
@@ -3,7 +3,7 @@
<view class="middle upload summary">
<view class="summary-block">
<image class="icon_plan" src="@/static/image/icon_plan@3x.png" mode=""></image>
<text class="upload-text">合计金额</text>
<text class="upload-text">合计金额
(元)
</text>
</view>
<view>
<text class="summary-num">{{intotalComputed}}</text>
...
...
@@ -149,7 +149,7 @@
this.planinnerLists.forEach((item) => {
money += item.NET_VALUE * 1
})
return money
return money
.toFixed(2)
}
},
created() {
...
...
pages/purchase-main/purchase-main.nvue
View file @
dc1529a0
...
...
@@ -61,7 +61,7 @@
</view>
<view class="text-block">
<text class="middle-date">产品</text>
<text class="middle-date-
des
">{{ele.productDesc}}</text>
<text class="middle-date-
pro
">{{ele.productDesc}}</text>
</view>
<view class="text-block">
<text class="middle-date">未发货件数</text>
...
...
@@ -406,4 +406,11 @@
.cell-list {
flex-direction: column;
}
.middle-date-pro{
flex: 3;
font-size: 28rpx;
height: 96rpx;
color: $text-base-color;
vertical-align: middle;
}
</style>
pages/purchase-receive/purchase-receive.nvue
View file @
dc1529a0
...
...
@@ -32,8 +32,8 @@
</view>
<view class="text-block text-block-last" v-if="orderItem.isShunt - 1 === 0">
<text class="middle-date">分流渠道</text>
<view class="middle-date-des uni-list picker-year">
<text class="middle-date"
v-if="orderItem.isShunt - 1 === 0"
>分流渠道</text>
<view class="middle-date-des uni-list picker-year"
v-if="orderItem.isShunt - 1 === 0"
>
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<picker class="picker-block" @change="bindPickerChange($event,'shuntType')" :value="orderItem.shuntTypeName"
...
...
@@ -52,7 +52,7 @@
<view class="middle-date-des uni-list picker-year" >
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<text class="uni-input">{{orderItem.
r
eceiveUnitName}}</text>
<text class="uni-input">{{orderItem.
shuntR
eceiveUnitName}}</text>
</view>
</view>
<image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode=""></image>
...
...
@@ -153,18 +153,6 @@
export default {
data() {
return {
// orderItem: {
// shuntTypeCode: '',
// shuntTypeName: ' ',
// isShunt: '',
// shuntName: ' ',
// receiveUnitName: ' ',
// contactNumber: '',
// contacPerson: '',
// receiveAddress: '',
// shuntDealerName: '',
// receiveUnitName: ''
// },
receiveUnitArr: [],
shuntArr: [],
shuntTypeArr: [],
...
...
@@ -189,9 +177,11 @@
'orderItem.isShunt' :function (newName,oldName){
console.log(newName,'newName')
if(newName - 0 === 0){
this.orderItem.shuntTypeName = ''
this.orderItem.shuntReceiveUnitName = ''
this.orderItem.shuntReceiveUnitCode = ''
this.orderItem.shuntChannelsType = ''
this.orderItem.receiveUnitName = ''
this.orderItem.shuntDealer = ''
this.orderItem.shuntDealerName = ''
}
}
},
...
...
@@ -234,8 +224,8 @@
})
uni.$on('selectShuntAdressAccountInfo', function(data) {
console.log('监听到事件来自 selectShuntAdressAccountInfo ,携带参数 msg 为:', data);
_this.orderItem.
r
eceiveUnitName = data.selectShuntAdressAccountInfo.partner_name
_this.orderItem.
r
eceiveUnitCode = data.selectShuntAdressAccountInfo.partner
_this.orderItem.
shuntR
eceiveUnitName = data.selectShuntAdressAccountInfo.partner_name
_this.orderItem.
shuntR
eceiveUnitCode = data.selectShuntAdressAccountInfo.partner
_this.orderItem.receiveCityCode = data.selectShuntAdressAccountInfo.city_code
_this.orderItem.receiveCityName = data.selectShuntAdressAccountInfo.city_name
...
...
@@ -318,6 +308,8 @@
switch (dictcode){
case 'B0099':
this.shuntArr = res.data.Rows
this.orderItem.isShunt = this.shuntArr[1].value
this.orderItem.shuntName = this.shuntArr[1].name
break;
case 'A0054':
this.shuntTypeArr = res.data.Rows
...
...
@@ -506,7 +498,6 @@
.uni-list-cell {
flex: 1;
// height: 100%;
}
.uni-list-cell-db {
...
...
pages/purchase/purchase.nvue
View file @
dc1529a0
...
...
@@ -18,7 +18,7 @@
</view>
<view class="item-block item-block-code">
<text class="item-block-label">发票类型</text>
<text class="item-block-value">{{item.invType}}</text>
<text class="item-block-value">{{item.invType
TextView
}}</text>
</view>
<view class="item-block item-block-code">
<text class="item-block-label">产品</text>
...
...
pages/quota/quota-order.nvue
View file @
dc1529a0
...
...
@@ -3,7 +3,7 @@
<view class="middle upload summary">
<view class="summary-block">
<image class="icon_plan" src="@/static/image/icon_plan@3x.png" mode=""></image>
<text class="upload-text">合计金额</text>
<text class="upload-text">合计金额
(元)
</text>
</view>
<view>
<text class="summary-num">{{intotalComputed}}</text>
...
...
@@ -234,7 +234,7 @@
this.planoutLists.length > 0 && this.planoutLists.forEach((item) => {
money += item.NET_VALUE * 1
})
return money
return money
.toFixed(2)
}
},
// watch: {
...
...
pages/select-product/select-product.vue
View file @
dc1529a0
...
...
@@ -31,15 +31,15 @@
<text
class=
"middle-date-des middle-date-des-select"
>
{{
item
.
PRODUCT_ID
}}
</text>
</view>
<view
class=
"text-block"
>
<text
class=
"middle-date middle-date-select"
>
描述
</text>
<text
class=
"middle-date middle-date-select"
>
产品
描述
</text>
<text
class=
"middle-date-des middle-date-des-select"
>
{{
item
.
SHORT_TEXT
}}
</text>
</view>
<view
class=
"text-block"
>
<text
class=
"middle-date middle-date-select"
>
产品类型
</text>
<text
class=
"middle-date middle-date-select"
>
存货分类
</text>
<text
class=
"middle-date-des middle-date-des-select"
>
{{
item
.
CHFL_D
}}
</text>
</view>
<view
class=
"text-block text-block-last"
>
<text
class=
"middle-date middle-date-select"
>
价格
</text>
<text
class=
"middle-date middle-date-select"
>
规格型号
</text>
<text
class=
"middle-date-des middle-date-des-select"
>
{{
item
.
NORMS
}}
</text>
</view>
</view>
...
...
pages/select-shunt-adress/select-shunt-adress.nvue
View file @
dc1529a0
...
...
@@ -135,7 +135,7 @@
this.reset()
this.getSalesPlan(true, this.searchName);
},
async getSalesPlan(isRefresh, customerCode = this.orderItem.
customerCode
) {
async getSalesPlan(isRefresh, customerCode = this.orderItem.
shuntDealer
) {
if (this.loadParams.isDone) {
return
}
...
...
pages/ticket-order/order-item.nvue
View file @
dc1529a0
...
...
@@ -28,7 +28,7 @@
<text class="middle-date-des">产品描述</text>
</view>
<view class="text-block">
<text class="middle-date middle-billno">{{item.inv
_gu
id}}</text>
<text class="middle-date middle-billno">{{item.inv
o_
id}}</text>
<text class="middle-date-des">发票号</text>
</view>
<view class="text-block">
...
...
pages/usercenter/usercenter.nvue
View file @
dc1529a0
...
...
@@ -162,6 +162,7 @@
},
logOut() {
apiLogOut().then((res) => {
uni.setStorageSync('lifeData', {});
uni.navigateTo({
url: "/pages/login/login"
})
...
...
servers/address.js
0 → 100644
View file @
dc1529a0
import
apiHelper
from
'./api.helper.js'
/**
*
* @returns {Promise<AxiosResponse<T>>}
*/
export
async
function
addressCheck
(
params
)
{
const
res
=
await
apiHelper
.
post
(
'/sap/bc/ztpm/to_new_crm/transdata/bp_addr_check'
,
params
)
return
res
}
export
async
function
regionOvs
(
params
)
{
const
res
=
await
apiHelper
.
post
(
'/sap/bc/ztpm/to_new_crm/transdata/region_ovs'
,
params
)
return
res
}
export
async
function
cityOvs
(
params
)
{
const
res
=
await
apiHelper
.
post
(
'/sap/bc/ztpm/to_new_crm/transdata/city_ovs'
,
params
)
return
res
}
export
async
function
streetOvs
(
params
)
{
const
res
=
await
apiHelper
.
post
(
'/sap/bc/ztpm/to_new_crm/transdata/street_ovs'
,
params
)
return
res
}
export
async
function
addressImport
(
params
)
{
const
res
=
await
apiHelper
.
post
(
'/sap/bc/ztpm/to_new_crm/transdata/bp_addr_import'
,
params
)
return
res
}
servers/api.helper.js
View file @
dc1529a0
...
...
@@ -188,6 +188,7 @@ class Request {
config
.
baseUrl
=
'http://221.10.127.60:5000/scm'
// config.baseUrl = ''
}
else
{
// http://10.0.134.182:8000
config
.
baseUrl
=
'http://221.10.127.60:5000/wlySap'
}
}
catch
(
e
)
{
...
...
@@ -222,7 +223,7 @@ class Request {
if
(
res
.
MESSAGE
||
res
.
msg
||
res
.
message
||
res
.
ErrMsg
){
uni
.
showToast
({
title
:
res
.
MESSAGE
||
res
.
msg
||
res
.
message
||
res
.
ErrMsg
,
duration
:
2
000
,
duration
:
4
000
,
icon
:
'none'
});
}
...
...
servers/http.interceptor.js
View file @
dc1529a0
...
...
@@ -78,7 +78,7 @@ const install = (Vue, vm) => {
}
uni
.
showToast
({
title
:
res
.
MESSAGE
||
res
.
msg
||
res
.
message
||
res
.
ErrMsg
,
duration
:
2
000
,
duration
:
4
000
,
icon
:
'none'
});
return
false
...
...
servers/purchaseList.js
View file @
dc1529a0
...
...
@@ -62,4 +62,7 @@ export async function advance(params) {
const
res
=
await
apiHelper
.
post
(
'/crm-app/workflow/advance'
,
params
,
{
'Content-Type'
:
'application/x-www-form-urlencoded'
})
return
res
}
export
async
function
getCtrbase
(
params
)
{
const
res
=
await
apiHelper
.
post
(
'/sap/bc/ztpm/to_new_crm/transdata/get_ctrbase'
,
params
)
return
res
}
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