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
1aa62dc9
Commit
1aa62dc9
authored
May 20, 2026
by
chicheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
要货区分新老发票
parent
fde8664c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
3 deletions
+27
-3
purchase-apply.nvue
pages/purchase/purchase-apply.nvue
+12
-2
purchase-list.nvue
pages/purchase/purchase-list.nvue
+4
-1
purchaseList.js
servers/purchaseList.js
+11
-0
No files found.
pages/purchase/purchase-apply.nvue
View file @
1aa62dc9
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
import {
import {
mapState
mapState
} from 'vuex'
} from 'vuex'
import { initAppWantGoods, getChannelType, findById, generateUUID, queryDirectStore,
queryPledgeQuantity
} from '@/servers/purchaseList.js'
import { initAppWantGoods, getChannelType, findById, generateUUID, queryDirectStore,
queryPledgeQuantity, resolveDeliveryInvoiceMeta
} from '@/servers/purchaseList.js'
import purchaseMain from '../purchase-main/purchase-main'
import purchaseMain from '../purchase-main/purchase-main'
import purchaseReceive from '../purchase-receive/purchase-receive'
import purchaseReceive from '../purchase-receive/purchase-receive'
...
@@ -206,14 +206,24 @@
...
@@ -206,14 +206,24 @@
}
}
},
},
async getDetail(){
async getDetail(){
const res = await initAppWantGoods(this.orderItem)
const invoiceMeta = resolveDeliveryInvoiceMeta(this.orderItem)
const initParams = {
...this.orderItem,
...invoiceMeta
}
const res = await initAppWantGoods(initParams)
for(let k in res.data){res.data[k] = res.data[k]===null?'':res.data[k]}
for(let k in res.data){res.data[k] = res.data[k]===null?'':res.data[k]}
const newInvoice = res.data.newInvoice != null && res.data.newInvoice !== ''
? Number(res.data.newInvoice)
: invoiceMeta.newInvoice
// sourceType区分货权转移
// sourceType区分货权转移
this.detail = {
this.detail = {
'shuntTypeName': ' ',
'shuntTypeName': ' ',
'shuntName': ' ',
'shuntName': ' ',
'channelTypeName': '',
'channelTypeName': '',
...res.data,
...res.data,
deliveryFlag: invoiceMeta.deliveryFlag,
newInvoice,
isPcj:0,
isPcj:0,
isPcjName:'否',
isPcjName:'否',
significance: 'normal',
significance: 'normal',
...
...
pages/purchase/purchase-list.nvue
View file @
1aa62dc9
...
@@ -101,7 +101,8 @@
...
@@ -101,7 +101,8 @@
import {
import {
apiPurchaseList,
apiPurchaseList,
apiGetUnFinishedInvByPromote
apiGetUnFinishedInvByPromote,
resolveDeliveryInvoiceMeta
} from '@/servers/purchaseList.js'
} from '@/servers/purchaseList.js'
import timeFormat from '@/uview-ui/libs/function/timeFormat.js'
import timeFormat from '@/uview-ui/libs/function/timeFormat.js'
...
@@ -228,6 +229,7 @@
...
@@ -228,6 +229,7 @@
}
}
const params = {
const params = {
...row,
...row,
...resolveDeliveryInvoiceMeta(row),
demandType: this.sourceType ==='wine' ? '1' : '2'
demandType: this.sourceType ==='wine' ? '1' : '2'
}
}
uni.navigateTo({
uni.navigateTo({
...
@@ -270,6 +272,7 @@
...
@@ -270,6 +272,7 @@
purchaseBtn(item) {
purchaseBtn(item) {
const params = {
const params = {
...item,
...item,
...resolveDeliveryInvoiceMeta(item),
demandType: this.sourceType ==='common' ? '1' : '2'
demandType: this.sourceType ==='common' ? '1' : '2'
}
}
uni.navigateTo({
uni.navigateTo({
...
...
servers/purchaseList.js
View file @
1aa62dc9
import
apiHelper
from
'./api.helper.js'
import
apiHelper
from
'./api.helper.js'
/**
* getUnFinishedInv / getUnFinishedInvByPromote 列表行字段 deliveryFlag → 要货单 newInvoice
* deliveryFlag === 'X' 表示新票(与 PC 一致)
*/
export
function
resolveDeliveryInvoiceMeta
(
item
=
{})
{
const
deliveryFlag
=
item
.
deliveryFlag
||
''
return
{
deliveryFlag
,
newInvoice
:
deliveryFlag
===
'X'
?
1
:
0
}
}
/**
/**
*
*
...
...
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