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
4e8da62b
Commit
4e8da62b
authored
Apr 27, 2024
by
xiangzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
以酒促酒
parent
9b3b14a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
purchase-list.nvue
pages/purchase/purchase-list.nvue
+16
-4
No files found.
pages/purchase/purchase-list.nvue
View file @
4e8da62b
...
@@ -193,27 +193,39 @@
...
@@ -193,27 +193,39 @@
availableBot: botNum
availableBot: botNum
}
}
if(row.availableQty - 0 === 0){
if(row.availableQty - 0 === 0){
return Message.warning('选择的酒不够一件')
uni.showToast({
title: '选择的酒不够一件',
duration: 2000,
icon: 'none'
});
return
}
}
uni.navigateTo({
uni.navigateTo({
url: `/pages/purchase/purchase-apply?order=${JSON.stringify(row)}&sourceType=purchase`
url: `/pages/purchase/purchase-apply?order=${JSON.stringify(row)}&sourceType=purchase`
})
})
},
},
handleCheck(idx,row){
handleCheck(idx,row){
// this.$set(this.lists,idx,{...this.lists[idx],checked : !this.lists[idx].checked})
this.lists[idx].checked = !this.lists[idx].checked
this.lists[idx].checked = !this.lists[idx].checked
this.checkedArr = []
this.checkedArr = []
this.lists.forEach((ele,index) => {
this.lists.forEach((ele,index) => {
if(idx !== index){
if(idx !== index){
if(ele.productCode !== this.lists[idx].productCode || ele.zzfld000001 !== this.lists[idx].zzfld000001){
if(ele.productCode !== this.lists[idx].productCode || ele.zzfld000001 !== this.lists[idx].zzfld000001
||ele.invoId !== this.lists[idx].invoId
){
ele.disabled = true
ele.disabled = true
}else{
}else{
ele.disabled = false
ele.disabled = false
}
}
}
}
if(ele.checked){
if(ele.checked){
this.checkedArr.push(row)
this.checkedArr.push(ele)
}
}
// if(ele.checked){
// if(ele.productCode === row.productCode && ele.zzfld000001 === row.zzfld000001 && ele.invoId === row.invoId && ele.zZFLD00002Q === row.zZFLD00002Q && ele.availableBot === row.availableBot && ele.availableQty === row.availableQty ){
// this.checkedArr.push(row)
// }
// }
})
})
this.lists.forEach((ele,index) => {
this.lists.forEach((ele,index) => {
if(this.checkedArr.length === 0){
if(this.checkedArr.length === 0){
ele.disabled = false
ele.disabled = false
...
...
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