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
73d2808d
Commit
73d2808d
authored
Sep 13, 2025
by
李驰骋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
终端要货渠道类型查询添加条件,限制选择收货地址必须选择渠道类型
parent
48a43f47
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
2 deletions
+32
-2
purchase-main.nvue
pages/purchase-main/purchase-main.nvue
+19
-1
purchase-apply.nvue
pages/purchase/purchase-apply.nvue
+13
-1
No files found.
pages/purchase-main/purchase-main.nvue
View file @
73d2808d
...
...
@@ -322,7 +322,8 @@
goTerminal() {
const params= {
dealerId: this.orderItem.customerCode,
inventoryCode: this.orderItem.brand
inventoryCode: this.orderItem.brand,
channelType: this.orderItem.channelsType // 添加渠道类型参数
}
uni.navigateTo({
url: `/pages/select-terminal/select-terminal??params=${JSON.stringify(params)}`
...
...
@@ -370,6 +371,8 @@
case 'channelType':
this.orderItem.channelsType = this.channelTypeArr[index].value
this.orderItem.channelTypeName = this.channelTypeArr[index].name
// 渠道类型变化时,如果是终端要货则清空终端信息
this.onChannelsTypeChange(this.orderItem.channelsType)
break;
case 'significance':
this.orderItem.significance = this.significanceArr[index].value
...
...
@@ -444,6 +447,21 @@
this.channelTypeArr = [{ value: 'S', name: '社会化渠道' }]
}
},
// 渠道类型变化处理,参考PC端逻辑
onChannelsTypeChange(value) {
// 当为终端要货时(demandType='ZDZG'),清空已选择收货终端
if (this.orderItem.demandType === 'ZDZG') {
this.orderItem.terminalName = ''
this.orderItem.terminalId = ''
this.orderItem.receiveUnitName = ''
this.orderItem.receiveAddress = ''
this.orderItem.contactNumber = ''
this.orderItem.contacPerson = ''
this.orderItem.province = ''
this.orderItem.city = ''
this.orderItem.district = ''
}
},
getSelectDictDataOrigin(dictcode) {
querySysDictionaryDetailsByCode({'code': dictcode})
.then(res => {
...
...
pages/purchase/purchase-apply.nvue
View file @
73d2808d
...
...
@@ -178,7 +178,18 @@
}
},
async getChannelType(){
const res = await getChannelType({'salePlan': this.detail.planType})
const params = {
salePlan: this.detail.planType,
productCode: this.detail.wantGoodsDetailList?.[0]?.productCode || this.orderItem.productCode,
customerCode: this.detail.customerCode
}
// 只有终端要货时才添加isTerminal参数
if (this.demandType == 2) {
params.isTerminal = true
}
const res = await getChannelType(params)
this.channelTypeArr = res.data
// if (this.detail.acceptUnitType =='V013'|| this .detail.acceptUnitType =='V015'){
// this.channelTypeArr = [{ value: 'T', name: '团购渠道' }]
...
...
@@ -230,6 +241,7 @@
const params = {
dealerId: this.detail.customerCode,
inventoryCode: this.detail.brand,
channelType: this.detail.channelsType, // 添加渠道类型参数
page: {
current: 1,
size: 5000
...
...
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