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
Expand all
Hide 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 @@
...
@@ -914,7 +914,7 @@
},
},
created
()
{
created
()
{
if
(
this
.
srcDataList
)
{
if
(
this
.
srcDataList
)
{
this
.
srcDataList
.
sort
();
//
this.srcDataList.sort();
this
.
showList
=
this
.
srcDataList
;
this
.
showList
=
this
.
srcDataList
;
}
}
if
(
this
.
loadData
)
{
if
(
this
.
loadData
)
{
...
@@ -1407,7 +1407,7 @@
...
@@ -1407,7 +1407,7 @@
return
Promise
.
resolve
(
this
.
srcDataList
);
return
Promise
.
resolve
(
this
.
srcDataList
);
},
},
onInput
(
event
)
{
onInput
(
event
)
{
console
.
log
(
event
,
'onInput'
)
//
console.log(event,'onInput')
let
value
=
event
.
target
.
value
;
let
value
=
event
.
target
.
value
;
this
.
$emit
(
'input'
,
value
);
this
.
$emit
(
'input'
,
value
);
this
.
doInput
(
value
);
this
.
doInput
(
value
);
...
@@ -1427,7 +1427,7 @@
...
@@ -1427,7 +1427,7 @@
}
}
},
},
onInputMaskTap
()
{
onInputMaskTap
()
{
console
.
log
(
'onInputMaskTap'
);
//
console.log('onInputMaskTap');
this
.
$emit
(
'onInputTap'
)
this
.
$emit
(
'onInputTap'
)
this
.
inputMaskZindex
=
0
;
this
.
inputMaskZindex
=
0
;
this
.
doInput
(
this
.
curInputValue
);
this
.
doInput
(
this
.
curInputValue
);
...
@@ -1663,7 +1663,7 @@
...
@@ -1663,7 +1663,7 @@
},
},
watch
:
{
watch
:
{
stringList
(
val
)
{
stringList
(
val
)
{
console
.
log
(
val
,
'9090'
)
//
console.log(val,'9090')
this
.
srcDataList
=
val
;
this
.
srcDataList
=
val
;
}
}
}
}
...
...
pages/breakwords-clue/breakwords-clue.vue
View file @
dc1529a0
...
@@ -6,26 +6,7 @@
...
@@ -6,26 +6,7 @@
</view>
</view>
<view
class=
"main"
>
<view
class=
"main"
>
<view
class=
"middle view"
>
<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"
>
<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=
"middle-date-des uni-list picker-year"
>
...
@@ -408,12 +389,6 @@
...
@@ -408,12 +389,6 @@
},
},
data
()
{
data
()
{
return
{
return
{
isNoShow
:
true
,
autocompleteStringList
:
[
'四川省成都市温江区樱花街东红大厦8-8-888'
,
'四川省成都市锦江区樱花街东红大厦8-8-999'
,
'四川省成都市金牛区樱花街东红大厦8-8-666'
,
'四川省成都市龙泉区樱花街东红大厦8-8-777'
],
testObj
:
{
sname
:
''
,
dname
:
''
},
condition
:
{
condition
:
{
submitMethod
:
''
,
submitMethod
:
''
,
submitMethodName
:
''
,
submitMethodName
:
''
,
...
@@ -535,15 +510,6 @@
...
@@ -535,15 +510,6 @@
uni
.
$off
(
'selectSalesAreaAccountInfo'
)
uni
.
$off
(
'selectSalesAreaAccountInfo'
)
},
},
methods
:
{
methods
:
{
onInputTap
(){
this
.
isNoShow
=
true
},
onPageScroll
(
e
)
{
this
.
isNoShow
=
false
},
selectItemS
(
data
)
{
console
.
log
(
'收到数据了:'
,
data
);
},
async
getDictionary
(
key
)
{
async
getDictionary
(
key
)
{
const
params
=
{
const
params
=
{
dictionaryKey
:
key
dictionaryKey
:
key
...
...
pages/breakwords-mission-receiver/breakwords-mission-receiver.
n
vue
→
pages/breakwords-mission-receiver/breakwords-mission-receiver.vue
View file @
dc1529a0
This diff is collapsed.
Click to expand it.
pages/group-buy/quota-order.nvue
View file @
dc1529a0
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<view class="middle upload summary">
<view class="middle upload summary">
<view class="summary-block">
<view class="summary-block">
<image class="icon_plan" src="@/static/image/icon_plan@3x.png" mode=""></image>
<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>
<view>
<view>
<text class="summary-num">{{intotalComputed}}</text>
<text class="summary-num">{{intotalComputed}}</text>
...
@@ -161,7 +161,7 @@
...
@@ -161,7 +161,7 @@
this.planinnerLists.forEach((item) => {
this.planinnerLists.forEach((item) => {
money += item.NET_VALUE * 1
money += item.NET_VALUE * 1
})
})
return money
return money
.toFixed(2)
},
},
selectedSalesCenterArr() {
selectedSalesCenterArr() {
return this.groupOrder.baseinfo.YXDY
return this.groupOrder.baseinfo.YXDY
...
...
pages/home/home.vue
View file @
dc1529a0
...
@@ -179,6 +179,9 @@
...
@@ -179,6 +179,9 @@
queryUnique
,
queryUnique
,
queryProducts
queryProducts
}
from
'@/servers/breakwords.js'
}
from
'@/servers/breakwords.js'
import
{
apiFindUnreadMsg
}
from
'@/servers/message.js'
import
timeFormat
from
'@/uview-ui/libs/function/timeFormat.js'
import
timeFormat
from
'@/uview-ui/libs/function/timeFormat.js'
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -290,8 +293,26 @@
...
@@ -290,8 +293,26 @@
this
.
queryProducts
()
this
.
queryProducts
()
this
.
queryUnique
()
this
.
queryUnique
()
this
.
pointsAndCashSummary
()
this
.
pointsAndCashSummary
()
this
.
getMessageList
()
},
},
methods
:
{
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
()
{
async
pointsAndCashSummary
()
{
try
{
try
{
const
res
=
await
pointsAndCashSummary
({
organizationId
:
this
.
userInfo
.
code
})
const
res
=
await
pointsAndCashSummary
({
organizationId
:
this
.
userInfo
.
code
})
...
...
pages/login/login.nvue
View file @
dc1529a0
...
@@ -82,9 +82,7 @@
...
@@ -82,9 +82,7 @@
import {
import {
apiLogin
apiLogin
} from '@/servers/user.js'
} from '@/servers/user.js'
import {
apiFindUnreadMsg
} from '@/servers/message.js'
export default {
export default {
data() {
data() {
...
@@ -187,23 +185,7 @@
...
@@ -187,23 +185,7 @@
this.passwordVisible = !this.passwordVisible;
this.passwordVisible = !this.passwordVisible;
this.$refs.password.blur()
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() {
async goLogin() {
if (this.loginType === 'phone') {
if (this.loginType === 'phone') {
...
@@ -256,7 +238,6 @@
...
@@ -256,7 +238,6 @@
uni.switchTab({
uni.switchTab({
url: '/pages/home/home'
url: '/pages/home/home'
});
});
this.getMessageList(this.account)
}
}
}
}
...
...
pages/my-purchase/my-purchase.nvue
View file @
dc1529a0
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<view class="uni-tab-item" v-for="(tab,index) in tabList" :key="tab.id" :ref="'tabitem'+index">
<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"
<text :id="tab.id" :data-id="index" :data-current="index" class="uni-tab-item-title"
:class="{'uni-tab-item-title-active':tabIndex==index}"
:class="{'uni-tab-item-title-active':tabIndex==index}"
@click="ontabtap">{{tab.name}}</text>
@click="ontabtap
($event,tab.newsid)
">{{tab.name}}</text>
</view>
</view>
</view>
</view>
<view class="scroll-view-indicator">
<view class="scroll-view-indicator">
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
<swiper ref="swiper1" class="tab-box" :current="tabIndex" :duration="300" @change="onswiperchange"
<swiper ref="swiper1" class="tab-box" :current="tabIndex" :duration="300" @change="onswiperchange"
@transition="onswiperscroll" @animationfinish="animationfinish" @onAnimationEnd="animationfinish">
@transition="onswiperscroll" @animationfinish="animationfinish" @onAnimationEnd="animationfinish">
<swiper-item class="swiper-item" v-for="(page, index) in tabList" :key="index">
<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-item>
</swiper>
</swiper>
</view>
</view>
...
@@ -174,9 +174,9 @@
...
@@ -174,9 +174,9 @@
this.selectorQuery();
this.selectorQuery();
},
},
methods: {
methods: {
ontabtap(e) {
ontabtap(e
,type
) {
let index = e.target.dataset.current || e.currentTarget.dataset.current;
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;
//let offsetIndex = this._touchTabIndex = Math.abs(index - this._lastTabIndex) > 1;
// #ifdef APP-PLUS || H5 || MP-WEIXIN || MP-QQ
// #ifdef APP-PLUS || H5 || MP-WEIXIN || MP-QQ
...
...
pages/my-purchase/order-item.nvue
View file @
dc1529a0
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
<view class="order view">
<view class="order view">
<view class="top">
<view class="top">
<text class="title-no">要货单号:{{newsItem.wantCode}}</text>
<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>
<button class="title-info__status" type="default"><text class="item-block-btn__text">{{newsItem.billStatusTextView}}</text></button>
</view>
</view>
</view>
</view>
<view class="middle 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>
<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 @click="checkLogistics(newsItem.logisticno)" class="icon-car" src="@/static/image/order_car@3x.png" mode="aspectFit">
</image>
</image>
...
...
pages/my-purchase/order-page.nvue
View file @
dc1529a0
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
</div>
</div>
</uni-refresh>
</uni-refresh>
<uni-cell v-for="(item, index) in dataList" :key="item.id">
<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>
<uni-cell v-if="isLoading || dataList.length > 4">
<uni-cell v-if="isLoading || dataList.length > 4">
<view class="loading-more">
<view class="loading-more">
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
type: [Number, String],
type: [Number, String],
default: ''
default: ''
},
},
condition: {
condition
s
: {
type: Object,
type: Object,
default: () => {}
default: () => {}
}
}
...
@@ -69,7 +69,24 @@
...
@@ -69,7 +69,24 @@
contentrefresh: '',
contentrefresh: '',
contentnomore: ''
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() {
created() {
...
@@ -102,7 +119,13 @@
...
@@ -102,7 +119,13 @@
this.requestParams.time = new Date().getTime() + '';
this.requestParams.time = new Date().getTime() + '';
var startTime = new Date();
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){
if(res.status - 1 === 0){
this.isLoading = false;
this.isLoading = false;
if (refresh) {
if (refresh) {
...
@@ -120,6 +143,8 @@
...
@@ -120,6 +143,8 @@
this.isNoData = true;
this.isNoData = true;
}
}
this.isNoData = (res.data.Rows.length <= 0);
this.isNoData = (res.data.Rows.length <= 0);
this.loadParams.totalPage = Math.ceil(res.data.Total * 1 / this.condition.pagesize * 1)
if (refresh) {
if (refresh) {
this.dataList = res.data.Rows;
this.dataList = res.data.Rows;
this.requestParams.minId = 0;
this.requestParams.minId = 0;
...
@@ -132,9 +157,9 @@
...
@@ -132,9 +157,9 @@
}
}
},
},
loadMore(e) {
loadMore(e) {
if (this.
page
.page < this.loadParams.totalPage) {
if (this.
condition
.page < this.loadParams.totalPage) {
this.
page
.page++
this.
condition
.page++
this.loadData();
this.loadData(
false
);
} else {
} else {
this.loadingText = '--已到底--'
this.loadingText = '--已到底--'
}
}
...
@@ -150,6 +175,7 @@
...
@@ -150,6 +175,7 @@
if (this.isLoading) {
if (this.isLoading) {
return;
return;
}
}
this.condition.page = 1
this.pulling = true;
this.pulling = true;
this.refreshing = true;
this.refreshing = true;
this.refreshText = "正在刷新...";
this.refreshText = "正在刷新...";
...
...
pages/no-quota/quota-order.nvue
View file @
dc1529a0
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<view class="middle upload summary">
<view class="middle upload summary">
<view class="summary-block">
<view class="summary-block">
<image class="icon_plan" src="@/static/image/icon_plan@3x.png" mode=""></image>
<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>
<view>
<view>
<text class="summary-num">{{intotalComputed}}</text>
<text class="summary-num">{{intotalComputed}}</text>
...
@@ -149,7 +149,7 @@
...
@@ -149,7 +149,7 @@
this.planinnerLists.forEach((item) => {
this.planinnerLists.forEach((item) => {
money += item.NET_VALUE * 1
money += item.NET_VALUE * 1
})
})
return money
return money
.toFixed(2)
}
}
},
},
created() {
created() {
...
...
pages/purchase-main/purchase-main.nvue
View file @
dc1529a0
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
</view>
</view>
<view class="text-block">
<view class="text-block">
<text class="middle-date">产品</text>
<text class="middle-date">产品</text>
<text class="middle-date-
des
">{{ele.productDesc}}</text>
<text class="middle-date-
pro
">{{ele.productDesc}}</text>
</view>
</view>
<view class="text-block">
<view class="text-block">
<text class="middle-date">未发货件数</text>
<text class="middle-date">未发货件数</text>
...
@@ -406,4 +406,11 @@
...
@@ -406,4 +406,11 @@
.cell-list {
.cell-list {
flex-direction: column;
flex-direction: column;
}
}
.middle-date-pro{
flex: 3;
font-size: 28rpx;
height: 96rpx;
color: $text-base-color;
vertical-align: middle;
}
</style>
</style>
pages/purchase-receive/purchase-receive.nvue
View file @
dc1529a0
...
@@ -32,8 +32,8 @@
...
@@ -32,8 +32,8 @@
</view>
</view>
<view class="text-block text-block-last" v-if="orderItem.isShunt - 1 === 0">
<view class="text-block text-block-last" v-if="orderItem.isShunt - 1 === 0">
<text class="middle-date">分流渠道</text>
<text class="middle-date"
v-if="orderItem.isShunt - 1 === 0"
>分流渠道</text>
<view class="middle-date-des uni-list picker-year">
<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">
<view class="uni-list-cell-db">
<view class="uni-list-cell-db">
<picker class="picker-block" @change="bindPickerChange($event,'shuntType')" :value="orderItem.shuntTypeName"
<picker class="picker-block" @change="bindPickerChange($event,'shuntType')" :value="orderItem.shuntTypeName"
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
<view class="middle-date-des uni-list picker-year" >
<view class="middle-date-des uni-list picker-year" >
<view class="uni-list-cell">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<view class="uni-list-cell-db">
<text class="uni-input">{{orderItem.
r
eceiveUnitName}}</text>
<text class="uni-input">{{orderItem.
shuntR
eceiveUnitName}}</text>
</view>
</view>
</view>
</view>
<image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode=""></image>
<image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode=""></image>
...
@@ -153,18 +153,6 @@
...
@@ -153,18 +153,6 @@
export default {
export default {
data() {
data() {
return {
return {
// orderItem: {
// shuntTypeCode: '',
// shuntTypeName: ' ',
// isShunt: '',
// shuntName: ' ',
// receiveUnitName: ' ',
// contactNumber: '',
// contacPerson: '',
// receiveAddress: '',
// shuntDealerName: '',
// receiveUnitName: ''
// },
receiveUnitArr: [],
receiveUnitArr: [],
shuntArr: [],
shuntArr: [],
shuntTypeArr: [],
shuntTypeArr: [],
...
@@ -189,9 +177,11 @@
...
@@ -189,9 +177,11 @@
'orderItem.isShunt' :function (newName,oldName){
'orderItem.isShunt' :function (newName,oldName){
console.log(newName,'newName')
console.log(newName,'newName')
if(newName - 0 === 0){
if(newName - 0 === 0){
this.orderItem.shuntTypeName = ''
this.orderItem.shuntReceiveUnitName = ''
this.orderItem.shuntReceiveUnitCode = ''
this.orderItem.shuntChannelsType = ''
this.orderItem.shuntChannelsType = ''
this.orderItem.receiveUnitName = ''
this.orderItem.shuntDealer = ''
this.orderItem.shuntDealerName = ''
}
}
}
}
},
},
...
@@ -234,8 +224,8 @@
...
@@ -234,8 +224,8 @@
})
})
uni.$on('selectShuntAdressAccountInfo', function(data) {
uni.$on('selectShuntAdressAccountInfo', function(data) {
console.log('监听到事件来自 selectShuntAdressAccountInfo ,携带参数 msg 为:', data);
console.log('监听到事件来自 selectShuntAdressAccountInfo ,携带参数 msg 为:', data);
_this.orderItem.
r
eceiveUnitName = data.selectShuntAdressAccountInfo.partner_name
_this.orderItem.
shuntR
eceiveUnitName = data.selectShuntAdressAccountInfo.partner_name
_this.orderItem.
r
eceiveUnitCode = data.selectShuntAdressAccountInfo.partner
_this.orderItem.
shuntR
eceiveUnitCode = data.selectShuntAdressAccountInfo.partner
_this.orderItem.receiveCityCode = data.selectShuntAdressAccountInfo.city_code
_this.orderItem.receiveCityCode = data.selectShuntAdressAccountInfo.city_code
_this.orderItem.receiveCityName = data.selectShuntAdressAccountInfo.city_name
_this.orderItem.receiveCityName = data.selectShuntAdressAccountInfo.city_name
...
@@ -318,6 +308,8 @@
...
@@ -318,6 +308,8 @@
switch (dictcode){
switch (dictcode){
case 'B0099':
case 'B0099':
this.shuntArr = res.data.Rows
this.shuntArr = res.data.Rows
this.orderItem.isShunt = this.shuntArr[1].value
this.orderItem.shuntName = this.shuntArr[1].name
break;
break;
case 'A0054':
case 'A0054':
this.shuntTypeArr = res.data.Rows
this.shuntTypeArr = res.data.Rows
...
@@ -506,7 +498,6 @@
...
@@ -506,7 +498,6 @@
.uni-list-cell {
.uni-list-cell {
flex: 1;
flex: 1;
// height: 100%;
}
}
.uni-list-cell-db {
.uni-list-cell-db {
...
...
pages/purchase/purchase.nvue
View file @
dc1529a0
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
</view>
</view>
<view class="item-block item-block-code">
<view class="item-block item-block-code">
<text class="item-block-label">发票类型</text>
<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>
<view class="item-block item-block-code">
<view class="item-block item-block-code">
<text class="item-block-label">产品</text>
<text class="item-block-label">产品</text>
...
...
pages/quota/quota-order.nvue
View file @
dc1529a0
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<view class="middle upload summary">
<view class="middle upload summary">
<view class="summary-block">
<view class="summary-block">
<image class="icon_plan" src="@/static/image/icon_plan@3x.png" mode=""></image>
<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>
<view>
<view>
<text class="summary-num">{{intotalComputed}}</text>
<text class="summary-num">{{intotalComputed}}</text>
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
this.planoutLists.length > 0 && this.planoutLists.forEach((item) => {
this.planoutLists.length > 0 && this.planoutLists.forEach((item) => {
money += item.NET_VALUE * 1
money += item.NET_VALUE * 1
})
})
return money
return money
.toFixed(2)
}
}
},
},
// watch: {
// watch: {
...
...
pages/select-product/select-product.vue
View file @
dc1529a0
...
@@ -31,15 +31,15 @@
...
@@ -31,15 +31,15 @@
<text
class=
"middle-date-des middle-date-des-select"
>
{{
item
.
PRODUCT_ID
}}
</text>
<text
class=
"middle-date-des middle-date-des-select"
>
{{
item
.
PRODUCT_ID
}}
</text>
</view>
</view>
<view
class=
"text-block"
>
<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>
<text
class=
"middle-date-des middle-date-des-select"
>
{{
item
.
SHORT_TEXT
}}
</text>
</view>
</view>
<view
class=
"text-block"
>
<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>
<text
class=
"middle-date-des middle-date-des-select"
>
{{
item
.
CHFL_D
}}
</text>
</view>
</view>
<view
class=
"text-block text-block-last"
>
<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>
<text
class=
"middle-date-des middle-date-des-select"
>
{{
item
.
NORMS
}}
</text>
</view>
</view>
</view>
</view>
...
...
pages/select-shunt-adress/select-shunt-adress.nvue
View file @
dc1529a0
...
@@ -135,7 +135,7 @@
...
@@ -135,7 +135,7 @@
this.reset()
this.reset()
this.getSalesPlan(true, this.searchName);
this.getSalesPlan(true, this.searchName);
},
},
async getSalesPlan(isRefresh, customerCode = this.orderItem.
customerCode
) {
async getSalesPlan(isRefresh, customerCode = this.orderItem.
shuntDealer
) {
if (this.loadParams.isDone) {
if (this.loadParams.isDone) {
return
return
}
}
...
...
pages/ticket-order/order-item.nvue
View file @
dc1529a0
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<text class="middle-date-des">产品描述</text>
<text class="middle-date-des">产品描述</text>
</view>
</view>
<view class="text-block">
<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>
<text class="middle-date-des">发票号</text>
</view>
</view>
<view class="text-block">
<view class="text-block">
...
...
pages/usercenter/usercenter.nvue
View file @
dc1529a0
...
@@ -162,6 +162,7 @@
...
@@ -162,6 +162,7 @@
},
},
logOut() {
logOut() {
apiLogOut().then((res) => {
apiLogOut().then((res) => {
uni.setStorageSync('lifeData', {});
uni.navigateTo({
uni.navigateTo({
url: "/pages/login/login"
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 {
...
@@ -188,6 +188,7 @@ class Request {
config
.
baseUrl
=
'http://221.10.127.60:5000/scm'
config
.
baseUrl
=
'http://221.10.127.60:5000/scm'
// config.baseUrl = ''
// config.baseUrl = ''
}
else
{
}
else
{
// http://10.0.134.182:8000
config
.
baseUrl
=
'http://221.10.127.60:5000/wlySap'
config
.
baseUrl
=
'http://221.10.127.60:5000/wlySap'
}
}
}
catch
(
e
)
{
}
catch
(
e
)
{
...
@@ -222,7 +223,7 @@ class Request {
...
@@ -222,7 +223,7 @@ class Request {
if
(
res
.
MESSAGE
||
res
.
msg
||
res
.
message
||
res
.
ErrMsg
){
if
(
res
.
MESSAGE
||
res
.
msg
||
res
.
message
||
res
.
ErrMsg
){
uni
.
showToast
({
uni
.
showToast
({
title
:
res
.
MESSAGE
||
res
.
msg
||
res
.
message
||
res
.
ErrMsg
,
title
:
res
.
MESSAGE
||
res
.
msg
||
res
.
message
||
res
.
ErrMsg
,
duration
:
2
000
,
duration
:
4
000
,
icon
:
'none'
icon
:
'none'
});
});
}
}
...
...
servers/http.interceptor.js
View file @
dc1529a0
...
@@ -78,7 +78,7 @@ const install = (Vue, vm) => {
...
@@ -78,7 +78,7 @@ const install = (Vue, vm) => {
}
}
uni
.
showToast
({
uni
.
showToast
({
title
:
res
.
MESSAGE
||
res
.
msg
||
res
.
message
||
res
.
ErrMsg
,
title
:
res
.
MESSAGE
||
res
.
msg
||
res
.
message
||
res
.
ErrMsg
,
duration
:
2
000
,
duration
:
4
000
,
icon
:
'none'
icon
:
'none'
});
});
return
false
return
false
...
@@ -88,4 +88,4 @@ const install = (Vue, vm) => {
...
@@ -88,4 +88,4 @@ const install = (Vue, vm) => {
export
default
{
export
default
{
install
install
}
}
servers/purchaseList.js
View file @
dc1529a0
...
@@ -62,4 +62,7 @@ export async function advance(params) {
...
@@ -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'
})
const
res
=
await
apiHelper
.
post
(
'/crm-app/workflow/advance'
,
params
,
{
'Content-Type'
:
'application/x-www-form-urlencoded'
})
return
res
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