Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
43607540
Commit
43607540
authored
May 13, 2025
by
wuqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
局部印对账
parent
e3d872de
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
324 additions
and
399 deletions
+324
-399
src/api/order.ts
+72
-22
src/types/api/billOrder.ts
+10
-6
src/types/api/deliveryNote.ts
+26
-18
src/types/api/index.ts
+12
-12
src/views/podBillOrder/index.vue
+204
-341
No files found.
src/api/order.ts
View file @
43607540
import
{
BasePaginationData
,
BaseRespData
,
RejectParams
}
from
'@/types/api'
import
{
BasePaginationData
,
BaseRespData
,
RejectParams
}
from
'@/types/api'
import
axios
from
'./axios'
import
axios
from
'./axios'
import
{
PaymentForm
}
from
'@/types/api/index.ts'
import
{
PaymentForm
}
from
'@/types/api/index.ts'
import
{
import
{
LogListData
,
LogListData
,
OrderData
,
OrderData
,
...
@@ -16,9 +16,11 @@ import {
...
@@ -16,9 +16,11 @@ import {
apiSubmitPodOrderForm
,
apiSubmitPodOrderForm
,
DeliveryNoteData
,
DeliveryNoteData
,
DeliveryNoteSearchForm
,
DeliveryNoteSearchForm
,
DetailForm
,
LogListsData
,
DetailForm
,
LogListsData
,
ProductionOrder
,
ProductionOrder
,
ShipmentOrderDetailData
,
updatePriceForm
,
ShipmentOrderDetailData
,
updatePriceForm
,
}
from
'@/types/api/deliveryNote'
}
from
'@/types/api/deliveryNote'
import
{
import
{
AccountStatementNote
,
AccountStatementNote
,
...
@@ -366,11 +368,14 @@ export function exportExcelApi(ids: string) {
...
@@ -366,11 +368,14 @@ export function exportExcelApi(ids: string) {
})
})
}
}
export
function
exportPodExcelApi
(
ids
:
string
)
{
export
function
exportPodExcelApi
(
ids
:
string
)
{
return
axios
.
get
<
never
,
BaseRespData
<
never
>>
(
'pod/podReconciliation/exportExcel'
,
{
return
axios
.
get
<
never
,
BaseRespData
<
never
>>
(
'pod/podReconciliation/exportExcel'
,
{
params
:
{
params
:
{
ids
,
ids
,
},
},
})
},
)
}
}
export
function
getShipmentDetailsById
(
data
:
DetailForm
)
{
export
function
getShipmentDetailsById
(
data
:
DetailForm
)
{
return
axios
.
post
<
never
,
BasePaginationData
<
BillOrderDetailData
>>
(
return
axios
.
post
<
never
,
BasePaginationData
<
BillOrderDetailData
>>
(
...
@@ -382,12 +387,14 @@ export function apiupdateByPodExcel(formData: never) {
...
@@ -382,12 +387,14 @@ export function apiupdateByPodExcel(formData: never) {
return
axios
.
post
(
'pod/podReconciliation/updateByExcel'
,
formData
,
{
return
axios
.
post
(
'pod/podReconciliation/updateByExcel'
,
formData
,
{
headers
:
{
headers
:
{
'Content-Type'
:
'multipart/form-data'
,
'Content-Type'
:
'multipart/form-data'
,
},
},
})
})
}
}
export
function
apiRejectedPodReconciliation
(
params
?:
RejectParams
)
{
export
function
apiRejectedPodReconciliation
(
params
?:
RejectParams
)
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
'pod/podReconciliation/rejectedLocal'
,
params
)
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
'pod/podReconciliation/rejectedLocal'
,
params
,
)
}
}
export
function
getPodShipmentDetailsById
(
data
:
DetailForm
)
{
export
function
getPodShipmentDetailsById
(
data
:
DetailForm
)
{
return
axios
.
post
<
never
,
BasePaginationData
<
BillOrderDetailData
>>
(
return
axios
.
post
<
never
,
BasePaginationData
<
BillOrderDetailData
>>
(
...
@@ -396,27 +403,45 @@ export function getPodShipmentDetailsById(data: DetailForm) {
...
@@ -396,27 +403,45 @@ export function getPodShipmentDetailsById(data: DetailForm) {
)
)
}
}
export
function
apiLogList
(
id
?:
number
)
{
export
function
apiLogList
(
id
?:
number
)
{
return
axios
.
get
<
never
,
BaseRespData
<
LogListsData
[]
>>
(
'pod/podReconciliation/getLog'
,
{
params
:{
id
}
})
return
axios
.
get
<
never
,
BaseRespData
<
LogListsData
[]
>>
(
'pod/podReconciliation/getLog'
,
{
params
:
{
id
}
},
)
}
}
export
function
apiItemLogList
(
id
?:
number
)
{
export
function
apiItemLogList
(
id
?:
number
)
{
return
axios
.
get
<
never
,
BaseRespData
<
LogListsData
[]
>>
(
'pod/podReconciliation/getItemLog'
,
{
params
:{
id
}
})
return
axios
.
get
<
never
,
BaseRespData
<
LogListsData
[]
>>
(
'pod/podReconciliation/getItemLog'
,
{
params
:
{
id
}
},
)
}
}
export
function
apiSubmitPodOrder
(
params
:
apiSubmitPodOrderForm
)
{
export
function
apiSubmitPodOrder
(
params
:
apiSubmitPodOrderForm
)
{
return
axios
.
get
<
never
,
BaseRespData
<
ShipmentOrderDetailData
>>
(
'pod/podReconciliation/create'
,
{
params
})
return
axios
.
get
<
never
,
BaseRespData
<
ShipmentOrderDetailData
>>
(
'pod/podReconciliation/create'
,
{
params
},
)
}
}
export
function
apiPodBillSubmit
(
ids
:
number
[])
{
export
function
apiPodBillSubmit
(
ids
:
number
[])
{
return
axios
.
post
<
never
,
BaseRespData
<
ShipmentOrderDetailData
>>
(
'pod/podReconciliation/submission'
,
{
ids
})
return
axios
.
post
<
never
,
BaseRespData
<
ShipmentOrderDetailData
>>
(
'pod/podReconciliation/submission'
,
{
ids
},
)
}
}
export
function
apiPodUpdatePrice
(
data
:
updatePriceForm
)
{
export
function
apiPodUpdatePrice
(
data
:
updatePriceForm
)
{
return
axios
.
get
<
never
,
BaseRespData
<
never
>>
(
'pod/podReconciliation/updatePrice'
,
{
params
:
data
})
return
axios
.
get
<
never
,
BaseRespData
<
never
>>
(
'pod/podReconciliation/updatePrice'
,
{
params
:
data
},
)
}
}
export
function
updateRecPrice
(
data
:
updatePriceForm
)
{
export
function
updateRecPrice
(
data
:
updatePriceForm
)
{
return
axios
.
get
<
never
,
BaseRespData
<
never
>>
(
'pod/podReconciliation/updateRecPrice'
,
{
params
:
data
})
return
axios
.
get
<
never
,
BaseRespData
<
never
>>
(
'pod/podReconciliation/updateRecPrice'
,
{
params
:
data
},
)
}
}
export
function
getLogListApi
(
id
?:
number
)
{
export
function
getLogListApi
(
id
?:
number
)
{
...
@@ -426,9 +451,12 @@ export function getLogListApi(id?: number) {
...
@@ -426,9 +451,12 @@ export function getLogListApi(id?: number) {
}
}
export
function
getPodLogListApi
(
id
?:
number
)
{
export
function
getPodLogListApi
(
id
?:
number
)
{
return
axios
.
get
<
never
,
BaseRespData
<
LogList
[]
>>
(
'pod/podReconciliation/getLog'
,
{
return
axios
.
get
<
never
,
BaseRespData
<
LogList
[]
>>
(
'pod/podReconciliation/getLog'
,
{
params
:
{
id
},
params
:
{
id
},
})
},
)
}
}
export
function
auditOrderApi
(
url
:
string
,
data
:
string
)
{
export
function
auditOrderApi
(
url
:
string
,
data
:
string
)
{
return
axios
.
get
(
url
,
{
return
axios
.
get
(
url
,
{
...
@@ -453,11 +481,34 @@ export function confirmOrderApi(data: ConfirmOrderForm) {
...
@@ -453,11 +481,34 @@ export function confirmOrderApi(data: ConfirmOrderForm) {
}
}
export
function
confirmPodOrderApi
(
data
:
ConfirmOrderForm
)
{
export
function
confirmPodOrderApi
(
data
:
ConfirmOrderForm
)
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
'pod/podReconciliation/confirm'
,
data
)
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
'pod/podReconciliation/confirm'
,
data
,
)
}
}
export
function
apiRejectionOfReview
({
export
function
apiBillPodPayment
(
data
:
PaymentForm
)
{
ids
,
return
axios
.
get
<
never
,
BaseRespData
<
never
>>
(
'pod/podReconciliation/payment'
,
{
params
:
data
})
description
,
recNumbers
,
}:
{
ids
:
string
recNumbers
:
string
description
:
string
})
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
'pod/podReconciliation/rejectionOfReview'
,
{
ids
,
description
,
recNumbers
,
},
)
}
export
function
apiBillPodPayment
(
data
:
PaymentForm
)
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
'pod/podReconciliation/payment'
,
data
,
)
}
}
export
function
rejectOrderApi
({
export
function
rejectOrderApi
({
ids
,
ids
,
...
@@ -474,4 +525,3 @@ export function rejectOrderApi({
...
@@ -474,4 +525,3 @@ export function rejectOrderApi({
pass
,
pass
,
})
})
}
}
src/types/api/billOrder.ts
View file @
43607540
...
@@ -29,6 +29,7 @@ export interface AccountStatementNote {
...
@@ -29,6 +29,7 @@ export interface AccountStatementNote {
pass_num
?:
number
pass_num
?:
number
factory_code
?:
string
factory_code
?:
string
total_amount
?:
string
|
number
total_amount
?:
string
|
number
actual_amount
?:
string
|
number
num
?:
number
num
?:
number
end_time
?:
string
end_time
?:
string
rec_number
?:
string
rec_number
?:
string
...
@@ -43,6 +44,9 @@ export interface AccountStatementNote {
...
@@ -43,6 +44,9 @@ export interface AccountStatementNote {
id
?:
number
id
?:
number
erp_total_amount
?:
number
erp_total_amount
?:
number
dataVersion
:
''
dataVersion
:
''
water_list
?:
{
url
:
string
|
undefined
}[]
}
}
export
interface
BillOrderDetailData
{
export
interface
BillOrderDetailData
{
create_time
?:
string
create_time
?:
string
...
@@ -69,11 +73,11 @@ export interface LogList {
...
@@ -69,11 +73,11 @@ export interface LogList {
create_time
?:
string
create_time
?:
string
info_id
?:
number
info_id
?:
number
id
:
string
id
:
string
diy_id
:
number
;
diy_id
:
number
employee_account
?:
string
;
employee_account
?:
string
employee_name
?:
string
;
employee_name
?:
string
employee_id
?:
string
;
employee_id
?:
string
description
?:
string
;
description
?:
string
}
}
export
interface
ItemList
{
export
interface
ItemList
{
...
@@ -95,5 +99,5 @@ export interface ItemList {
...
@@ -95,5 +99,5 @@ export interface ItemList {
export
interface
ConfirmOrderForm
{
export
interface
ConfirmOrderForm
{
pass
?:
number
|
null
pass
?:
number
|
null
description
?:
string
description
?:
string
ids
?:
string
ids
?:
string
}
}
src/types/api/deliveryNote.ts
View file @
43607540
...
@@ -183,21 +183,29 @@ export interface DbFactory {
...
@@ -183,21 +183,29 @@ export interface DbFactory {
status
?:
number
status
?:
number
}
}
export
interface
LogListsData
{
export
interface
LogListsData
{
id
:
number
;
id
:
number
diy_id
:
number
;
diy_id
:
number
employee_account
?:
string
;
employee_account
?:
string
employee_name
?:
string
;
employee_name
?:
string
employee_id
?:
string
;
employee_id
?:
string
description
?:
string
;
description
?:
string
create_time
?:
string
;
create_time
?:
string
}
export
interface
LogListData
{
id
?:
string
|
number
|
null
infoId
?:
number
employeeId
?:
number
employeeAccount
?:
string
description
?:
string
createTime
?:
string
}
}
export
interface
DetailForm
{
export
interface
DetailForm
{
billNumber
?:
string
billNumber
?:
string
orderNumber
?:
string
orderNumber
?:
string
shipmentNumber
?:
string
shipmentNumber
?:
string
dateRange
?:
string
[]
dateRange
?:
string
[]
endTime
?:
string
endTime
?:
string
startTime
?:
string
startTime
?:
string
subOrderNumber
?:
string
subOrderNumber
?:
string
rows
?:
number
rows
?:
number
page
?:
number
page
?:
number
...
@@ -205,15 +213,15 @@ export interface DetailForm {
...
@@ -205,15 +213,15 @@ export interface DetailForm {
infoId
?:
number
infoId
?:
number
}
}
export
interface
BillForm
{
export
interface
BillForm
{
timeRange
:
[
string
,
string
]
|
[]
;
timeRange
:
[
string
,
string
]
|
[]
}
}
export
interface
apiSubmitPodOrderForm
{
export
interface
apiSubmitPodOrderForm
{
startDate
?:
string
;
startDate
?:
string
endDate
?:
string
;
endDate
?:
string
}
}
export
interface
updatePriceForm
{
export
interface
updatePriceForm
{
ids
?:
string
;
ids
?:
string
infoId
?:
number
;
infoId
?:
number
price
?:
string
;
price
?:
string
}
}
src/types/api/index.ts
View file @
43607540
export
interface
BaseRespData
<
D
>
{
export
interface
BaseRespData
<
D
>
{
code
:
number
code
:
number
message
?:
string
message
?:
string
...
@@ -31,19 +30,20 @@ export type BasePaginationData<D> = BaseRespData<PaginationData<D>>
...
@@ -31,19 +30,20 @@ export type BasePaginationData<D> = BaseRespData<PaginationData<D>>
export
type
StatisticsData
<
D
>
=
BaseRespData
<
Statistics
<
D
>>
export
type
StatisticsData
<
D
>
=
BaseRespData
<
Statistics
<
D
>>
export
interface
baseRes
{
export
interface
baseRes
{
code
:
number
code
:
number
msg
:
string
msg
:
string
}
}
export
interface
PaymentForm
{
export
interface
PaymentForm
{
waterList
:
string
waterList
:
string
id
?:
number
|
string
id
?:
number
|
string
actualAmount
?:
number
|
string
actualAmount
?:
number
|
string
payableAmount
?:
number
|
string
payableAmount
?:
number
|
string
recNumber
?:
number
|
string
}
}
export
interface
RejectParams
{
export
interface
RejectParams
{
id
:
number
id
:
number
description
?:
string
description
?:
string
ids
?:
string
ids
?:
string
pass
?:
number
pass
?:
number
}
}
src/views/podBillOrder/index.vue
View file @
43607540
...
@@ -23,13 +23,13 @@
...
@@ -23,13 +23,13 @@
<
/ElTree
>
<
/ElTree
>
<
/div
>
<
/div
>
<
div
class
=
"right"
>
<
div
class
=
"right"
>
<
pending
-
reconciliation
v
-
if
=
"nodeId===0"
><
/pending-reconciliation
>
<
!--
<
pending
-
reconciliation
><
/pending-reconciliation> --
>
<
div
v
-
else
class
=
"delivery-note-page flex-column card h-100 overflow-hidden"
>
<
div
class
=
"delivery-note-page flex-column card h-100 overflow-hidden"
>
<
splitDiv
size
=
"50"
>
<
splitDiv
size
=
"50"
>
<
template
#
top
>
<
template
#
top
>
<
div
class
=
"header-filter-form"
>
<
div
class
=
"header-filter-form"
>
<
ElForm
:
model
=
"searchForm"
inline
>
<
ElForm
:
model
=
"searchForm"
inline
>
<
ElFormItem
label
=
"账期"
>
<
ElFormItem
label
=
"账期
(发货时间)
"
>
<
div
style
=
"display: flex"
>
<
div
style
=
"display: flex"
>
<
el
-
date
-
picker
<
el
-
date
-
picker
v
-
model
=
"dateRange"
v
-
model
=
"dateRange"
...
@@ -82,16 +82,15 @@
...
@@ -82,16 +82,15 @@
<
/ElForm
>
<
/ElForm
>
<
/div
>
<
/div
>
<
div
class
=
"btn-list"
>
<
div
class
=
"btn-list"
>
<!--
<
el
-
button
<
el
-
button
v
-
if
=
"nodeId === 10"
v
-
if
=
"nodeId === 10"
type
=
"primary"
type
=
"primary"
@
click
=
"confirmOrder"
@
click
=
"confirmOrder
()
"
>
>
确认
对账单
确认
<
/el-button
>
<
/el-button>
--
>
<
el
-
button
<
el
-
button
v
-
if
=
"nodeId === 1
0
"
v
-
if
=
"nodeId === 1
5
"
type
=
"warning"
type
=
"warning"
@
click
=
"rejectOrder"
@
click
=
"rejectOrder"
>
>
...
@@ -146,7 +145,7 @@
...
@@ -146,7 +145,7 @@
show
-
overflow
-
tooltip
show
-
overflow
-
tooltip
><
/el-table-column
>
><
/el-table-column
>
<
el
-
table
-
column
<
el
-
table
-
column
label
=
"账期"
label
=
"账期
(发货时间)
"
header
-
align
=
"center"
header
-
align
=
"center"
align
=
"center"
align
=
"center"
min
-
width
=
"340"
min
-
width
=
"340"
...
@@ -156,7 +155,7 @@
...
@@ -156,7 +155,7 @@
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
<
el
-
table
-
column
label
=
"工厂
总价格
(¥)"
label
=
"工厂
结算总价
(¥)"
header
-
align
=
"center"
header
-
align
=
"center"
prop
=
"product_total_amount"
prop
=
"product_total_amount"
width
=
"130"
width
=
"130"
...
@@ -164,15 +163,6 @@
...
@@ -164,15 +163,6 @@
show
-
overflow
-
tooltip
show
-
overflow
-
tooltip
>
>
<
/el-table-column
>
<
/el-table-column
>
<!--
<
el
-
table
-
column
label
=
"ERP总价格"
header
-
align
=
"center"
prop
=
"erp_total_amount"
width
=
"120"
align
=
"center"
show
-
overflow
-
tooltip
>
<
/el-table-column> --
>
<
el
-
table
-
column
<
el
-
table
-
column
label
=
"工艺总价(¥)"
label
=
"工艺总价(¥)"
header
-
align
=
"center"
header
-
align
=
"center"
...
@@ -219,7 +209,10 @@
...
@@ -219,7 +209,10 @@
style
=
"display: flex; gap: 2px; align-items: center"
style
=
"display: flex; gap: 2px; align-items: center"
>
>
<
div
<
div
v
-
for
=
"item in row.water_list.split(',')"
v
-
for
=
"item in (typeof row.water_list === 'string'
? row.water_list
: ''
).split(',')"
:
key
=
"item"
:
key
=
"item"
style
=
"width: 30px"
style
=
"width: 30px"
>
>
...
@@ -228,38 +221,6 @@
...
@@ -228,38 +221,6 @@
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<!--
<
el
-
table
-
column
label
=
"客户"
prop
=
"name"
width
=
"90"
header
-
align
=
"center"
align
=
"center"
show
-
overflow
-
tooltip
/>
-->
<!--
<
el
-
table
-
column
label
=
"状态"
prop
=
"status"
width
=
"90"
header
-
align
=
"center"
align
=
"center"
show
-
overflow
-
tooltip
>
<
template
#
default
=
"scope"
>
{{
getTabsList
(
scope
.
row
.
status
)
}}
<
/template
>
<
/el-table-column> --
>
<!--
<
el
-
table
-
column
label
=
"ERP状态"
prop
=
"erp_status"
width
=
"90"
header
-
align
=
"center"
align
=
"center"
show
-
overflow
-
tooltip
>
<
template
#
default
=
"scope"
>
{{
getTabsList
(
scope
.
row
.
erp_status
)
}}
<
/template
>
<
/el-table-column> --
>
<
el
-
table
-
column
<
el
-
table
-
column
label
=
"总发货(件)"
label
=
"总发货(件)"
header
-
align
=
"center"
header
-
align
=
"center"
...
@@ -269,34 +230,6 @@
...
@@ -269,34 +230,6 @@
show
-
overflow
-
tooltip
show
-
overflow
-
tooltip
>
>
<
/el-table-column
>
<
/el-table-column
>
<!--
<
el
-
table
-
column
label
=
"质检通过(件)"
header
-
align
=
"center"
prop
=
"pass_num"
width
=
"120"
align
=
"center"
show
-
overflow
-
tooltip
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"质检不通过(件)"
header
-
align
=
"center"
prop
=
"not_pass_num"
width
=
"130"
align
=
"center"
show
-
overflow
-
tooltip
>
<
/el-table-column> --
>
<!--
<
el
-
table
-
column
label
=
"物流运费"
header
-
align
=
"center"
prop
=
"factory_total_amount"
width
=
"120"
align
=
"center"
show
-
overflow
-
tooltip
>
<
/el-table-column> --
>
<
el
-
table
-
column
<
el
-
table
-
column
label
=
"创建时间"
label
=
"创建时间"
prop
=
"create_time"
prop
=
"create_time"
...
@@ -305,22 +238,6 @@
...
@@ -305,22 +238,6 @@
align
=
"center"
align
=
"center"
show
-
overflow
-
tooltip
show
-
overflow
-
tooltip
/>
/>
<!--
<
el
-
table
-
column
label
=
"开始时间"
prop
=
"start_time"
width
=
"180"
header
-
align
=
"center"
align
=
"center"
show
-
overflow
-
tooltip
/>
<
el
-
table
-
column
label
=
"结束时间"
prop
=
"end_time"
width
=
"180"
header
-
align
=
"center"
align
=
"center"
show
-
overflow
-
tooltip
/>
-->
<
el
-
table
-
column
<
el
-
table
-
column
label
=
"操作"
label
=
"操作"
width
=
"100"
width
=
"100"
...
@@ -331,15 +248,23 @@
...
@@ -331,15 +248,23 @@
<
template
#
default
=
"{ row
}
"
>
<
template
#
default
=
"{ row
}
"
>
<
div
>
<
div
>
<
el
-
button
<
el
-
button
v
-
if
=
"row.status===20"
v
-
if
=
"row.status === 10"
type
=
"success"
size
=
"small"
@
click
=
"confirmOrder(row)"
>
确认
<
/el-button
>
<
/div
>
<
div
>
<
el
-
button
v
-
if
=
"row.status === 20"
type
=
"success"
type
=
"success"
link
size
=
"small"
@
click
=
"onPayment(row)"
@
click
=
"onPayment(row)"
>
付款
>
付款
<
/el-butto
n
<
/el-button
>
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
/ElTable
>
<
/ElTable
>
...
@@ -406,31 +331,32 @@
...
@@ -406,31 +331,32 @@
<
el
-
form
-
item
>
<
el
-
form
-
item
>
<
el
-
button
type
=
"primary"
@
click
=
"searchDetail"
<
el
-
button
type
=
"primary"
@
click
=
"searchDetail"
>
查询
>
查询
<
/el-butto
n
<
/el-button
>
>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
>
<
el
-
form
-
item
>
<
el
-
button
<
el
-
button
v
-
if
=
"
nodeId===1
"
v
-
if
=
"
[0, 1].some((id) => id === Number(nodeId))
"
type
=
"primary"
type
=
"primary"
@
click
=
"priceModification(1)"
@
click
=
"priceModification(1)"
>
修改工厂价格
>
修改工厂结算价格
<
/el-butto
n
<
/el-button
>
>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
>
<
el
-
form
-
item
>
<
el
-
button
v
-
if
=
"nodeId===1"
type
=
"warning"
@
click
=
"priceModification(3)"
<
el
-
button
v
-
if
=
"[0, 1].some((id) => id === Number(nodeId))"
type
=
"warning"
@
click
=
"priceModification(3)"
>
修改工艺价格
>
修改工艺价格
<
/el-butto
n
<
/el-button
>
>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
>
<
el
-
form
-
item
>
<
el
-
button
v
-
if
=
"nodeId===1"
type
=
"primary"
@
click
=
"priceModification(4)"
<
el
-
button
v
-
if
=
"[0, 1].some((id) => id === Number(nodeId))"
type
=
"primary"
@
click
=
"priceModification(4)"
>
修改物流价格
>
修改物流价格
<
/el-butto
n
<
/el-button
>
>
<
/el-form-item
>
<
/el-form-item
>
<
/el-form
>
<
/el-form
>
<
div
class
=
"table-wrap"
>
<
div
class
=
"table-wrap"
>
<
ElTable
<
ElTable
...
@@ -438,7 +364,8 @@
...
@@ -438,7 +364,8 @@
:
data
=
"detailList"
:
data
=
"detailList"
height
=
"100%"
height
=
"100%"
border
border
@
selection
-
change
=
"handleDetailSelectionChange"
>
@
selection
-
change
=
"handleDetailSelectionChange"
>
<
el
-
table
-
column
<
el
-
table
-
column
type
=
"selection"
type
=
"selection"
width
=
"70"
width
=
"70"
...
@@ -453,64 +380,72 @@
...
@@ -453,64 +380,72 @@
type
=
"index"
type
=
"index"
/>
/>
<
el
-
table
-
column
<
el
-
table
-
column
label
=
"
发货
单号"
label
=
"
生产
单号"
prop
=
"
shipment
_number"
prop
=
"
factory_sub_order
_number"
header
-
align
=
"center"
header
-
align
=
"center"
align
=
"center"
align
=
"center"
min
-
width
=
"160"
min
-
width
=
"160"
show
-
overflow
-
tooltip
show
-
overflow
-
tooltip
><
/el-table-column
>
><
/el-table-column
>
<
el
-
table
-
column
<
el
-
table
-
column
label
=
"
订
单号"
label
=
"
店铺
单号"
prop
=
"
factory_order
_number"
prop
=
"
shop
_number"
header
-
align
=
"center"
header
-
align
=
"center"
align
=
"center"
align
=
"center"
min
-
width
=
"160"
min
-
width
=
"160"
show
-
overflow
-
tooltip
show
-
overflow
-
tooltip
><
/el-table-column
>
><
/el-table-column
>
<
el
-
table
-
column
<
el
-
table
-
column
label
=
"
发货数(件)
"
label
=
"
客户
"
prop
=
"
shipment_num
"
prop
=
"
user_mark
"
header
-
align
=
"center"
header
-
align
=
"center"
align
=
"center"
align
=
"center"
min
-
width
=
"160"
min
-
width
=
"160"
show
-
overflow
-
tooltip
show
-
overflow
-
tooltip
><
/el-table-column
>
><
/el-table-column
>
<
el
-
table
-
column
<
el
-
table
-
column
label
=
"
工厂价格(¥)
"
label
=
"
订单号
"
prop
=
"
cost_price
"
prop
=
"
factory_order_number
"
header
-
align
=
"center"
header
-
align
=
"center"
align
=
"center"
align
=
"center"
min
-
width
=
"160"
min
-
width
=
"160"
show
-
overflow
-
tooltip
show
-
overflow
-
tooltip
><
/el-table-column
>
><
/el-table-column
>
<
el
-
table
-
column
<
el
-
table
-
column
label
=
"工艺价格(¥)"
label
=
"发货数(件)"
prop
=
"craft_price"
prop
=
"shipment_num"
header
-
align
=
"center"
align
=
"center"
min
-
width
=
"120"
show
-
overflow
-
tooltip
><
/el-table-column
>
<
el
-
table
-
column
label
=
"工厂结算单价(¥)"
prop
=
"cost_price"
header
-
align
=
"center"
header
-
align
=
"center"
align
=
"center"
align
=
"center"
min
-
width
=
"160"
min
-
width
=
"160"
show
-
overflow
-
tooltip
show
-
overflow
-
tooltip
><
/el-table-column
>
><
/el-table-column
>
<
el
-
table
-
column
<
el
-
table
-
column
label
=
"
物流价格
(¥)"
label
=
"
工艺单价
(¥)"
prop
=
"c
arriage_amount
"
prop
=
"c
raft_price
"
header
-
align
=
"center"
header
-
align
=
"center"
align
=
"center"
align
=
"center"
min
-
width
=
"160"
min
-
width
=
"160"
show
-
overflow
-
tooltip
show
-
overflow
-
tooltip
><
/el-table-column
>
><
/el-table-column
>
<
el
-
table
-
column
<
el
-
table
-
column
label
=
"
生产单号
"
label
=
"
物流单价(¥)
"
prop
=
"
factory_sub_order_number
"
prop
=
"
carriage_amount
"
header
-
align
=
"center"
header
-
align
=
"center"
align
=
"center"
align
=
"center"
min
-
width
=
"160"
min
-
width
=
"160"
show
-
overflow
-
tooltip
show
-
overflow
-
tooltip
><
/el-table-column
>
><
/el-table-column
>
<
el
-
table
-
column
<
el
-
table
-
column
label
=
"
店铺
单号"
label
=
"
发货
单号"
prop
=
"sh
op
_number"
prop
=
"sh
ipment
_number"
header
-
align
=
"center"
header
-
align
=
"center"
align
=
"center"
align
=
"center"
min
-
width
=
"160"
min
-
width
=
"160"
...
@@ -541,30 +476,6 @@
...
@@ -541,30 +476,6 @@
show
-
overflow
-
tooltip
show
-
overflow
-
tooltip
><
/el-table-column
>
><
/el-table-column
>
<
el
-
table
-
column
<
el
-
table
-
column
label
=
"客户"
prop
=
"user_mark"
header
-
align
=
"center"
align
=
"center"
min
-
width
=
"160"
show
-
overflow
-
tooltip
><
/el-table-column
>
<!--
<
el
-
table
-
column
label
=
"ERP订单号"
prop
=
"erp_order_number"
header
-
align
=
"center"
align
=
"center"
min
-
width
=
"160"
show
-
overflow
-
tooltip
><
/el-table-column
>
<
el
-
table
-
column
label
=
"erp子单号"
prop
=
"erp_sub_order_number"
header
-
align
=
"center"
align
=
"center"
min
-
width
=
"160"
show
-
overflow
-
tooltip
><
/el-table-column> --
>
<
el
-
table
-
column
label
=
"baseSKU"
label
=
"baseSKU"
prop
=
"base_sku"
prop
=
"base_sku"
header
-
align
=
"center"
header
-
align
=
"center"
...
@@ -641,8 +552,7 @@
...
@@ -641,8 +552,7 @@
<
template
#
default
=
"{ row
}
"
>
<
template
#
default
=
"{ row
}
"
>
{{
row
.
shipping_way
==
1
?
'送货上门'
:
'快递'
}}
{{
row
.
shipping_way
==
1
?
'送货上门'
:
'快递'
}}
<
/template
>
<
/template
>
<
/el-table-colum
n
<
/el-table-column
>
>
<
el
-
table
-
column
<
el
-
table
-
column
label
=
"运费(¥)"
label
=
"运费(¥)"
prop
=
"carriage_amount"
prop
=
"carriage_amount"
...
@@ -723,44 +633,6 @@
...
@@ -723,44 +633,6 @@
min
-
width
=
"180"
min
-
width
=
"180"
show
-
overflow
-
tooltip
show
-
overflow
-
tooltip
><
/el-table-column
>
><
/el-table-column
>
<
el
-
table
-
column
show
-
overflow
-
tooltip
align
=
"center"
fixed
=
"right"
header
-
align
=
"center"
label
=
"操作"
width
=
"120"
>
<
template
#
default
=
"{row
}
"
>
<
el
-
button
type
=
"primary"
link
@
click
=
"showLog(row)"
>
操作日志
<
/el-button
>
<
/template
>
<
/el-table-column
>
<!--
<
ElTableColumn
show
-
overflow
-
tooltip
align
=
"center"
header
-
align
=
"center"
label
=
"操作"
width
=
"120"
>
<
template
#
default
=
"scope"
>
<
div
class
=
"flex items-center justify-center gap-2"
>
<
img
v
-
if
=
"type === 'draft'"
@
click
=
"handleDetail(scope.row, 'edit')"
src
=
"../../../assets/images/edit1.png"
width
=
"24"
title
=
"编辑"
style
=
"cursor: pointer"
/>
<
img
src
=
"../../../assets/images/view.png"
title
=
"查看详情"
width
=
"24"
style
=
"cursor: pointer"
@
click
=
"handleDetail(scope.row, 'view')"
/>
<
/div
>
<
/template
>
<
/ElTableColumn> --
>
<
/ElTable
>
<
/ElTable
>
<
/div
>
<
/div
>
...
@@ -791,10 +663,10 @@
...
@@ -791,10 +663,10 @@
style
=
"display: flex"
style
=
"display: flex"
>
>
<
span
style
=
"display: inline-block"
>
<
span
style
=
"display: inline-block"
>
{{
item
.
create
_t
ime
}}
{{
item
.
create
T
ime
}}
<
/span
>
<
/span
>
<
span
style
=
"margin: 0 5px 0 20px"
>
{{
<
span
style
=
"margin: 0 5px 0 20px"
>
{{
item
.
employee_a
ccount
item
.
employeeA
ccount
}}
<
/span
>
}}
<
/span
>
<
span
style
=
"display: inline-block"
>
{{
<
span
style
=
"display: inline-block"
>
{{
item
.
description
item
.
description
...
@@ -808,19 +680,6 @@
...
@@ -808,19 +680,6 @@
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
el
-
dialog
v
-
model
=
"logDialogVisible"
title
=
"操作日志"
width
=
"30%"
>
<
ul
style
=
"color: #333; font-size: 12px; height: 100%; overflow: auto"
>
<
li
v
-
for
=
"(item, index) in logList"
:
key
=
"index"
style
=
"display: flex"
>
<
span
style
=
"display: inline-block; width: 23%"
>
{{
item
.
create_time
}}
<
/span
>
<
div
style
=
"display: inline-block; width: 80%"
>
<
span
style
=
"word-break: normal"
>
{{
item
.
employee_name
}}
:
<
/span
>
<
span
v
-
html
=
"item.description"
><
/span
>
<
/div
>
<
/li
>
<
/ul
>
<
/el-dialog
>
<!--
付款
-->
<!--
付款
-->
<
el
-
dialog
<
el
-
dialog
v
-
model
=
"paymentDialogVisible"
v
-
model
=
"paymentDialogVisible"
...
@@ -844,7 +703,8 @@
...
@@ -844,7 +703,8 @@
{
{
required: true,
required: true,
message: '请输入实付金额',
message: '请输入实付金额',
}
,{
}
,
{
type: 'number',
type: 'number',
message: '实付金额需要为数字',
message: '实付金额需要为数字',
}
,
}
,
...
@@ -881,18 +741,13 @@
...
@@ -881,18 +741,13 @@
class
=
"close-bill"
class
=
"close-bill"
@
click
=
"paymentForm.waterList.splice(index, 1)"
@
click
=
"paymentForm.waterList.splice(index, 1)"
>
>
<
CircleClose
<
CircleClose
/>
/>
<
/el-icon
>
<
/el-icon
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
div
class
=
"img-item"
>
<
div
class
=
"img-item"
>
<
el
-
icon
<
el
-
icon
style
=
"width: 100%; height: 100%"
@
click
=
"toUpload"
>
style
=
"width: 100%; height: 100%"
<
Plus
/>
@
click
=
"toUpload"
>
<
Plus
/>
<
/el-icon
>
<
/el-icon
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -904,64 +759,84 @@
...
@@ -904,64 +759,84 @@
<
el
-
button
type
=
"primary"
@
click
=
"handlePayment"
>
确定
<
/el-button
>
<
el
-
button
type
=
"primary"
@
click
=
"handlePayment"
>
确定
<
/el-button
>
<
/template
>
<
/template
>
<
/el-dialog
>
<
/el-dialog
>
<
ElDrawer
v
-
model
=
"shipmentOrderDetailDrawerVisible"
title
=
"发货单详情"
size
=
"50%"
>
<
shipmentOrderDetailInfo
:
detail
=
"shipmentOrderDetail"
/>
<
/ElDrawer
>
<
ElDialog
<
ElDialog
v
-
model
=
"confirmOrderVisible"
v
-
model
=
"confirmOrderVisible"
title
=
"确认对账单"
title
=
"确认对账单"
width
=
"
500px
"
width
=
"
70%
"
:
close
-
on
-
click
-
modal
=
"false"
:
close
-
on
-
click
-
modal
=
"false"
>
>
<
ElForm
ref
=
"auditFormRef"
:
model
=
"auditForm"
label
-
width
=
"80px"
>
<
el
-
row
>
<
ElFormItem
<
el
-
col
:
span
=
"6"
>
对账单号:
{{
currentRow
?.
rec_number
}}
<
/el-col
>
label
=
"意见"
<
el
-
col
:
span
=
"12"
>
prop
=
"pass"
账期
(
发货时间
)
:
{{
currentRow
?.
start_time
}}
-
:
rules
=
"[{ required: true, message: '请选择'
}
]"
{{
currentRow
?.
end_time
}}
<
/el-col
>
<
el
-
col
:
span
=
"6"
>
工厂结算总价
(
¥
)
:
{{
currentRow
?.
product_total_amount
}}
<
/el-col
>
<
/el-row
>
<
el
-
row
style
=
"margin: 10px 0"
>
<
el
-
col
:
span
=
"6"
>
工艺总价
(
¥
)
:
{{
currentRow
?.
craft_total_amount
}}
<
/el-col
>
<
el
-
col
:
span
=
"6"
>
物流总价
(
¥
)
:
{{
currentRow
?.
carriage_total_amount
}}
<
/el-col
>
<
el
-
col
:
span
=
"6"
>
应付金额
(
¥
)
:
{{
currentRow
?.
total_amount
}}
<
/el-col
>
<
el
-
col
:
span
=
"6"
>
实付金额
(
¥
)
:
{{
currentRow
?.
actual_amount
}}
<
/el-col
>
<
/el-row
>
<
el
-
row
style
=
"margin: 10px 0"
>
<
el
-
col
:
span
=
"6"
v
-
if
=
"currentRow?.water_list"
>
水单:
<
span
v
-
for
=
"item in (typeof currentRow?.water_list === 'string'
? currentRow.water_list
: ''
).split(',')"
:
key
=
"item"
style
=
"width: 30px"
>
>
<
ElRadioGroup
v
-
model
=
"auditForm.pass"
>
<
ImageView
:
src
=
"item"
/>
<
ElRadio
:
label
=
"1"
>
通过
<
/ElRadio
>
<
/span
>
<
ElRadio
:
label
=
"0"
>
不通过
<
/ElRadio
>
<
/el-col
>
<
/ElRadioGroup
>
<
el
-
col
:
span
=
"6"
>
总发货
(
件
)
:
{{
currentRow
?.
num
}}
<
/el-col
>
<
/ElFormItem
>
<
el
-
col
:
span
=
"6"
>
创建时间:
{{
currentRow
?.
create_time
}}
<
/el-col
>
<
/el-row
>
<
div
><
/div
>
<
ElForm
ref
=
"auditFormRef"
:
model
=
"auditForm"
label
-
width
=
"80px"
>
<
ElFormItem
<
ElFormItem
label
=
"
审核意见
"
label
=
"
驳回原因
"
prop
=
"description"
prop
=
"description"
:
rules
=
"
:
rules
=
"[{ required: true, message: '请输入驳回原因'
}
]"
auditForm.pass === 0
? [{ required: true, message: '请输入审核意见'
}
]
: []
"
>
>
<
ElInput
v
-
model
=
"auditForm.description"
type
=
"textarea"
/>
<
ElInput
v
-
model
=
"auditForm.description"
type
=
"textarea"
/>
<
/ElFormItem
>
<
/ElFormItem
>
<
/ElForm
>
<
/ElForm
>
<
template
#
footer
>
<
template
#
footer
>
<
span
class
=
"dialog-footer"
>
<
span
class
=
"dialog-footer"
>
<
el
-
button
@
click
=
"confirmOrderVisible = false"
>
取消
<
/el-button
>
<!--
<
el
-
button
@
click
=
"confirmOrderVisible = false"
>
取消
<
/el-button> --
>
<
el
-
button
type
=
"primary"
@
click
=
"submitConfirmOrder"
>
确认
<
/el-button
>
<
el
-
button
type
=
"success"
@
click
=
"submitConfirmOrder(1)"
>
确认
<
/el-butto
n
>
<
el
-
button
type
=
"danger"
@
click
=
"submitConfirmOrder(2)"
>
驳回
<
/el-button
>
<
/span
>
<
/span
>
<
/template
>
<
/template
>
<
/ElDialog
>
<
/ElDialog
>
<
/template
>
<
/template
>
<
script
setup
lang
=
"ts"
>
<
script
setup
lang
=
"ts"
>
import
{
ElMessage
,
El
RadioGroup
,
El
Table
,
ElTree
,
TableColumnCtx
}
from
'element-plus'
import
{
ElMessage
,
ElTable
,
ElTree
,
TableColumnCtx
}
from
'element-plus'
import
splitDiv
from
'@/components/splitDiv/splitDiv.vue'
import
splitDiv
from
'@/components/splitDiv/splitDiv.vue'
import
{
CircleClose
,
Plus
}
from
'@element-plus/icons-vue'
import
{
CircleClose
,
Plus
}
from
'@element-plus/icons-vue'
import
pendingReconciliation
from
'./pendingReconciliation.vue'
//
import pendingReconciliation from './pendingReconciliation.vue'
import
usePageList
from
'@/utils/hooks/usePageList'
import
usePageList
from
'@/utils/hooks/usePageList'
import
{
useValue
}
from
'@/utils/hooks/useValue'
import
{
useValue
}
from
'@/utils/hooks/useValue'
import
BigNumber
from
'bignumber.js'
import
BigNumber
from
'bignumber.js'
import
{
import
{
apiBillPodPayment
,
apiBillPodPayment
,
apiItemLogList
,
auditOrderApi
,
auditOrderApi
,
confirmPodOrderApi
,
confirmPodOrderApi
,
apiRejectionOfReview
,
exportPodExcelApi
,
exportPodExcelApi
,
getPodLogListApi
,
getPodLogListApi
,
getPodShipmentDetailsById
,
getPodShipmentDetailsById
,
...
@@ -977,13 +852,11 @@ import {
...
@@ -977,13 +852,11 @@ import {
AccountStatementNoteSearchForm
,
AccountStatementNoteSearchForm
,
CountStatus
,
CountStatus
,
ItemList
,
ItemList
,
LogList
,
}
from
'@/types/api/billOrder'
}
from
'@/types/api/billOrder.ts'
import
{
DetailForm
,
LogListData
}
from
'@/types/api/deliveryNote'
import
{
DetailForm
,
LogListsData
,
ShipmentOrderDetailData
}
from
'@/types/api/deliveryNote'
import
shipmentOrderDetailInfo
from
'@/components/ShipmentOrderDetail.vue'
import
ImageView
from
'@/components/ImageView.vue'
import
ImageView
from
'@/components/ImageView.vue'
import
{
showConfirm
}
from
'@/utils/ui'
//
import
{
showConfirm
}
from
'@/utils/ui'
import
{
uploadImageApi
}
from
'@/api/common
.ts
'
import
{
uploadImageApi
}
from
'@/api/common'
// import
{
getUserMarkList
}
from
'@/api/auth.ts'
// import
{
getUserMarkList
}
from
'@/api/auth.ts'
interface
Tree
{
interface
Tree
{
...
@@ -1007,15 +880,13 @@ interface PaymentForm {
...
@@ -1007,15 +880,13 @@ interface PaymentForm {
payableAmount
?:
number
|
string
payableAmount
?:
number
|
string
}
}
const
logList
=
ref
<
(
LogList
|
LogListsData
)[]
>
([])
const
logList
=
ref
<
LogListData
[]
>
([])
const
logDialogVisible
=
ref
<
boolean
>
(
false
)
// const nameSpaceList = ref<string[]>([])
// const nameSpaceList = ref<string[]>([])
const
treeData
=
ref
<
CountStatus
[]
>
()
const
treeData
=
ref
<
CountStatus
[]
>
()
const
[
searchForm
,
resetSearchForm
]
=
useValue
<
AccountStatementNoteSearchForm
>
(
const
[
searchForm
,
resetSearchForm
]
=
useValue
<
AccountStatementNoteSearchForm
>
(
{
}
,
{
}
,
)
)
const
paymentFormRef
=
ref
()
const
paymentFormRef
=
ref
()
const
uploadLoading
=
ref
(
false
)
const
uploadLoading
=
ref
(
false
)
const
dateRange
=
ref
<
string
[]
>
([])
const
dateRange
=
ref
<
string
[]
>
([])
...
@@ -1032,10 +903,14 @@ const paymentForm = ref<PaymentForm>({
...
@@ -1032,10 +903,14 @@ const paymentForm = ref<PaymentForm>({
id
:
''
,
id
:
''
,
actualAmount
:
''
,
actualAmount
:
''
,
payableAmount
:
''
,
payableAmount
:
''
,
}
)
}
)
const
nodeId
=
ref
<
number
|
string
>
(
0
)
const
getSelectionsProperty
=
(
property
:
keyof
AccountStatementNote
)
=>
{
return
selections
.
value
.
map
((
el
:
AccountStatementNote
)
=>
el
[
property
])
.
join
(
','
)
}
const
nodeId
=
ref
<
number
|
string
>
(
0
)
const
treeRef
=
ref
<
InstanceType
<
typeof
ElTree
>>
()
const
treeRef
=
ref
<
InstanceType
<
typeof
ElTree
>>
()
const
{
const
{
currentPage
,
currentPage
,
...
@@ -1056,15 +931,19 @@ const {
...
@@ -1056,15 +931,19 @@ const {
}
,
}
,
page
,
page
,
pageSize
,
pageSize
,
).
then
((
res
)
=>
res
.
data
)
as
never
,
).
then
((
res
)
=>
res
.
data
),
}
)
}
)
watch
(()
=>
tableData
.
value
,()
=>
{
watch
(
(
tableData
.
value
as
AccountStatementNote
[]).
forEach
((
item
)
=>
{
()
=>
tableData
.
value
,
()
=>
{
;(
tableData
.
value
as
AccountStatementNote
[]).
forEach
((
item
)
=>
{
item
.
total_amount
=
computedPrice
(
item
)
item
.
total_amount
=
computedPrice
(
item
)
}
)
}
)
}
,{
immediate
:
true
,
deep
:
true
}
)
}
,
{
immediate
:
true
,
deep
:
true
}
,
)
const
reset
=
()
=>
{
const
reset
=
()
=>
{
dateRange
.
value
=
[]
dateRange
.
value
=
[]
resetSearchForm
()
resetSearchForm
()
}
}
const
priceModification
=
(
type
:
1
|
3
|
4
)
=>
{
const
priceModification
=
(
type
:
1
|
3
|
4
)
=>
{
...
@@ -1072,8 +951,7 @@ const priceModification = (type: 1 | 3 | 4) => {
...
@@ -1072,8 +951,7 @@ const priceModification = (type: 1 | 3 | 4) => {
ElMessage
.
warning
(
'至少选择一条对账单'
)
ElMessage
.
warning
(
'至少选择一条对账单'
)
return
return
}
}
const
pricePrompts
:
Record
<
1
|
3
|
4
,
{
title
:
string
;
param
:
string
}
>
=
const
pricePrompts
:
Record
<
1
|
3
|
4
,
{
title
:
string
;
param
:
string
}
>
=
{
{
1
:
{
title
:
'修改工厂价格'
,
param
:
'costPrice'
}
,
1
:
{
title
:
'修改工厂价格'
,
param
:
'costPrice'
}
,
3
:
{
title
:
'修改工艺价格'
,
param
:
'craftPrice'
}
,
3
:
{
title
:
'修改工艺价格'
,
param
:
'craftPrice'
}
,
4
:
{
title
:
'修改物流价格'
,
param
:
'carriageAmount'
}
,
4
:
{
title
:
'修改物流价格'
,
param
:
'carriageAmount'
}
,
...
@@ -1088,14 +966,14 @@ const priceModification = (type: 1 | 3 | 4) => {
...
@@ -1088,14 +966,14 @@ const priceModification = (type: 1 | 3 | 4) => {
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
inputPattern
:
/
\d
+/
,
inputPattern
:
/
\d
+/
,
inputErrorMessage
:
'请输入数字'
,
inputErrorMessage
:
'请输入数字'
,
}
).
then
(
async
({
value
}
)
=>
{
}
).
then
(
async
({
value
}
:
{
value
:
string
}
)
=>
{
const
price
=
parseFloat
(
value
)
const
price
=
parseFloat
(
value
)
if
(
isNaN
(
price
)
||
price
<
0
)
{
if
(
isNaN
(
price
)
||
price
<
0
)
{
ElMessage
.
error
(
'价格必须为大于等于0的数字'
)
ElMessage
.
error
(
'价格必须为大于等于0的数字'
)
return
return
}
}
await
updateRecPrice
({
await
updateRecPrice
({
ids
:
detailSelections
.
value
.
map
(
item
=>
item
.
id
).
join
(),
ids
:
detailSelections
.
value
.
map
(
(
item
:
ItemList
)
=>
item
.
id
).
join
(),
...{
[
promptConfig
.
param
]:
price
}
,
...{
[
promptConfig
.
param
]:
price
}
,
infoId
:
currentRow
.
value
?.
id
,
infoId
:
currentRow
.
value
?.
id
,
}
)
}
)
...
@@ -1116,33 +994,29 @@ const onPayment = async (item: AccountStatementNote) => {
...
@@ -1116,33 +994,29 @@ const onPayment = async (item: AccountStatementNote) => {
paymentFormRef
.
value
&&
paymentFormRef
.
value
.
clearValidate
()
paymentFormRef
.
value
&&
paymentFormRef
.
value
.
clearValidate
()
paymentDialogVisible
.
value
=
true
paymentDialogVisible
.
value
=
true
}
}
const
handlePayment
=
async
()
=>
{
const
handlePayment
=
async
()
=>
{
try
{
try
{
await
paymentFormRef
.
value
?.
validate
()
await
paymentFormRef
.
value
?.
validate
()
}
catch
{
}
catch
{
return
return
}
}
if
(
Number
(
paymentForm
.
value
.
actualAmount
)
<=
0
)
{
if
(
Number
(
paymentForm
.
value
.
actualAmount
)
<=
0
)
{
return
ElMessage
.
warning
(
'实付金额需大于等于0'
)
return
ElMessage
.
warning
(
'实付金额需大于等于0'
)
}
}
await
apiBillPodPayment
({
await
apiBillPodPayment
({
...
paymentForm
.
value
,
...
paymentForm
.
value
,
waterList
:
paymentForm
.
value
.
waterList
waterList
:
paymentForm
.
value
.
waterList
.
map
((
item
)
=>
item
.
url
)
.
map
((
item
:
{
url
:
string
|
undefined
}
)
=>
item
.
url
)
.
join
(
','
),
.
join
(
','
),
id
:
currentRow
.
value
?.
id
,
id
:
currentRow
.
value
?.
id
,
recNumber
:
currentRow
.
value
?.
rec_number
,
}
)
}
)
ElMessage
.
success
(
'付款成功'
)
ElMessage
.
success
(
'付款成功'
)
paymentDialogVisible
.
value
=
false
paymentDialogVisible
.
value
=
false
search
()
search
()
await
getTreeNum
()
}
}
const
showLog
=
async
(
row
:
ItemList
)
=>
{
const
res
=
await
apiItemLogList
(
row
.
id
)
logList
.
value
=
res
.
data
||
[]
logDialogVisible
.
value
=
true
}
const
handleWaterBill
=
async
(
e
:
Event
)
=>
{
const
handleWaterBill
=
async
(
e
:
Event
)
=>
{
const
files
=
(
e
.
target
as
HTMLInputElement
).
files
||
[]
const
files
=
(
e
.
target
as
HTMLInputElement
).
files
||
[]
const
request
=
[]
const
request
=
[]
...
@@ -1157,7 +1031,6 @@ const handleWaterBill = async (e: Event) => {
...
@@ -1157,7 +1031,6 @@ const handleWaterBill = async (e: Event) => {
try
{
try
{
const
res
=
await
Promise
.
all
(
request
)
const
res
=
await
Promise
.
all
(
request
)
for
(
const
item
of
res
)
{
for
(
const
item
of
res
)
{
console
.
log
(
item
)
const
{
filePath
,
code
}
=
item
const
{
filePath
,
code
}
=
item
if
(
code
===
500
)
{
if
(
code
===
500
)
{
ElMessageBox
.
alert
(
'上传失败'
,
'系统提示'
,
{
type
:
'error'
}
)
ElMessageBox
.
alert
(
'上传失败'
,
'系统提示'
,
{
type
:
'error'
}
)
...
@@ -1216,7 +1089,8 @@ const tabsClick = async () => {
...
@@ -1216,7 +1089,8 @@ const tabsClick = async () => {
const
computedPrice
=
(
row
:
AccountStatementNote
)
=>
{
const
computedPrice
=
(
row
:
AccountStatementNote
)
=>
{
return
new
BigNumber
(
row
.
product_total_amount
||
0
)
return
new
BigNumber
(
row
.
product_total_amount
||
0
)
.
plus
(
new
BigNumber
(
row
.
carriage_total_amount
||
0
))
.
plus
(
new
BigNumber
(
row
.
carriage_total_amount
||
0
))
.
plus
(
new
BigNumber
(
row
.
craft_total_amount
||
0
)).
toString
()
.
plus
(
new
BigNumber
(
row
.
craft_total_amount
||
0
))
.
toString
()
}
}
const
toUpload
=
()
=>
{
const
toUpload
=
()
=>
{
const
input
=
document
.
createElement
(
'input'
)
const
input
=
document
.
createElement
(
'input'
)
...
@@ -1224,7 +1098,7 @@ const toUpload = () => {
...
@@ -1224,7 +1098,7 @@ const toUpload = () => {
input
.
type
=
'file'
input
.
type
=
'file'
input
.
multiple
=
true
input
.
multiple
=
true
input
?.
click
()
input
?.
click
()
input
.
onchange
=
function
(
e
:
Event
)
{
input
.
onchange
=
function
(
e
:
Event
)
{
handleWaterBill
(
e
)
handleWaterBill
(
e
)
}
}
}
}
...
@@ -1252,10 +1126,10 @@ const getSummaries = (param: SummaryMethodProps) => {
...
@@ -1252,10 +1126,10 @@ const getSummaries = (param: SummaryMethodProps) => {
}
}
sums
[
index
]
=
values
sums
[
index
]
=
values
.
reduce
((
prev
:
BigNumber
,
curr
:
number
)
=>
{
.
reduce
((
prev
:
BigNumber
,
curr
:
number
)
=>
{
const
value
=
new
BigNumber
(
curr
)
;
const
value
=
new
BigNumber
(
curr
)
return
prev
.
plus
(
value
)
;
// 直接处理 BigNumber 类型
return
prev
.
plus
(
value
)
// 直接处理 BigNumber 类型
}
,
new
BigNumber
(
0
))
}
,
new
BigNumber
(
0
))
.
toString
()
;
.
toString
()
}
,
}
,
)
)
...
@@ -1263,7 +1137,6 @@ const getSummaries = (param: SummaryMethodProps) => {
...
@@ -1263,7 +1137,6 @@ const getSummaries = (param: SummaryMethodProps) => {
}
}
const
confirmOrderVisible
=
ref
<
boolean
>
(
false
)
const
confirmOrderVisible
=
ref
<
boolean
>
(
false
)
const
auditForm
=
ref
({
const
auditForm
=
ref
({
pass
:
1
,
description
:
''
,
description
:
''
,
}
)
}
)
const
auditFormRef
=
ref
()
const
auditFormRef
=
ref
()
...
@@ -1288,7 +1161,9 @@ const auditOrder = (key: string) => {
...
@@ -1288,7 +1161,9 @@ const auditOrder = (key: string) => {
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
type
:
'warning'
,
type
:
'warning'
,
}
).
then
(
async
()
=>
{
}
).
then
(
async
()
=>
{
const
ids
=
selections
.
value
.
map
((
el
)
=>
el
.
id
).
join
(
','
)
const
ids
=
selections
.
value
.
map
((
el
:
AccountStatementNote
)
=>
el
.
id
)
.
join
(
','
)
await
auditOrderApi
(
url
,
ids
)
await
auditOrderApi
(
url
,
ids
)
ElMessage
.
success
(
'操作成功'
)
ElMessage
.
success
(
'操作成功'
)
search
()
search
()
...
@@ -1307,10 +1182,15 @@ const rejectOrder = () => {
...
@@ -1307,10 +1182,15 @@ const rejectOrder = () => {
customClass
:
'reject'
,
customClass
:
'reject'
,
inputErrorMessage
:
'请输入驳回原因'
,
inputErrorMessage
:
'请输入驳回原因'
,
inputPlaceholder
:
'驳回原因'
,
inputPlaceholder
:
'驳回原因'
,
}
).
then
(
async
({
value
}
)
=>
{
}
).
then
(
async
({
value
}
:
{
value
:
string
}
)
=>
{
const
ids
=
selections
.
value
.
map
((
el
)
=>
el
.
id
).
join
(
','
)
const
ids
=
getSelectionsProperty
(
'id'
)
const
recNumbers
=
getSelectionsProperty
(
'rec_number'
)
try
{
try
{
await
confirmPodOrderApi
({
ids
:
ids
,
description
:
value
,
pass
:
0
}
)
await
apiRejectionOfReview
({
ids
:
ids
,
description
:
value
,
recNumbers
:
recNumbers
,
}
)
ElMessage
.
success
(
'操作成功'
)
ElMessage
.
success
(
'操作成功'
)
search
()
search
()
await
getTreeNum
()
await
getTreeNum
()
...
@@ -1319,55 +1199,40 @@ const rejectOrder = () => {
...
@@ -1319,55 +1199,40 @@ const rejectOrder = () => {
}
}
}
)
}
)
}
}
const
confirmOrder
=
async
()
=>
{
const
confirmOrder
=
async
(
item
:
AccountStatementNote
)
=>
{
if
(
selections
.
value
.
length
===
0
)
{
currentRow
.
value
=
item
return
ElMessage
.
warning
(
'请选择要操作的数据'
)
confirmOrderVisible
.
value
=
true
}
}
try
{
interface
ConfirmOrderPayload
{
await
showConfirm
(
'是否确认对账单?'
,
{
ids
:
string
confirmButtonText
:
'确定'
,
description
?:
string
cancelButtonText
:
'取消'
,
pass
?:
number
type
:
'warning'
,
}
)
}
catch
{
return
}
const
ids
=
selections
.
value
.
map
((
el
)
=>
el
.
id
).
join
(
','
)
try
{
await
confirmPodOrderApi
({
ids
,
}
)
confirmOrderVisible
.
value
=
false
ElMessage
.
success
(
'操作成功'
)
search
()
await
getTreeNum
()
}
catch
(
e
)
{
console
.
error
(
e
)
}
// confirmOrderVisible.value = true
// auditForm.value =
{
// pass: 1,
// description: '',
//
}
// await nextTick()
// auditFormRef.value!.clearValidate()
}
}
const
submitConfirmOrder
=
async
()
=>
{
const
submitConfirmOrder
=
async
(
type
:
number
)
=>
{
// const ids = selections.value
// .map((el: AccountStatementNote) => el.id)
// .join(',')
let
apiPayload
:
ConfirmOrderPayload
=
{
ids
:
`${currentRow.value?.id
}
`
}
if
(
type
===
1
)
{
// 确认操作
await
confirmPodOrderApi
(
apiPayload
)
}
else
{
// 驳回操作
try
{
try
{
await
auditFormRef
.
value
?.
validate
()
await
auditFormRef
.
value
?.
validate
()
}
catch
{
}
catch
{
return
return
// 验证失败,终止操作
}
}
const
ids
=
selections
.
value
.
map
((
el
)
=>
el
.
id
).
join
(
','
)
apiPayload
=
{
await
confirmPodOrderApi
({
...
apiPayload
,
...
auditForm
.
value
,
description
:
auditForm
.
value
.
description
,
pass
:
auditForm
.
value
.
pass
===
0
?
0
:
undefined
,
pass
:
0
,
description
:
}
auditForm
.
value
.
description
===
''
await
confirmPodOrderApi
(
apiPayload
)
?
undefined
}
:
auditForm
.
value
.
description
,
ids
,
}
)
confirmOrderVisible
.
value
=
false
confirmOrderVisible
.
value
=
false
ElMessage
.
success
(
'操作成功'
)
ElMessage
.
success
(
'操作成功'
)
search
()
search
()
...
@@ -1392,13 +1257,10 @@ watch(
...
@@ -1392,13 +1257,10 @@ watch(
)
)
const
nodeClick
=
(
data
:
Tree
)
=>
{
const
nodeClick
=
(
data
:
Tree
)
=>
{
nodeId
.
value
=
data
.
code
??
''
nodeId
.
value
=
data
.
code
??
''
if
(
data
.
code
!==
0
)
{
//
if (data.code !== 0)
{
search
()
search
()
}
//
}
}
}
const
shipmentOrderDetailDrawerVisible
=
ref
(
false
)
const
shipmentOrderDetail
=
ref
({
}
as
ShipmentOrderDetailData
)
const
detailForm
=
ref
({
}
as
DetailForm
)
const
detailForm
=
ref
({
}
as
DetailForm
)
const
detailPager
=
ref
({
const
detailPager
=
ref
({
page
:
1
,
page
:
1
,
...
@@ -1417,7 +1279,6 @@ const searchDetail = async () => {
...
@@ -1417,7 +1279,6 @@ const searchDetail = async () => {
}
)
}
)
detailList
.
value
=
res
.
data
.
records
||
[]
detailList
.
value
=
res
.
data
.
records
||
[]
detailPager
.
value
.
total
=
res
.
data
.
total
detailPager
.
value
.
total
=
res
.
data
.
total
// logList.value = res.data.logList || []
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
error
(
e
)
console
.
error
(
e
)
}
}
...
@@ -1426,7 +1287,6 @@ const getLogList = async () => {
...
@@ -1426,7 +1287,6 @@ const getLogList = async () => {
try
{
try
{
const
res
=
await
getPodLogListApi
(
currentRow
.
value
?.
id
)
const
res
=
await
getPodLogListApi
(
currentRow
.
value
?.
id
)
logList
.
value
=
res
.
data
logList
.
value
=
res
.
data
// logList.value = res.data.logList || []
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
error
(
e
)
console
.
error
(
e
)
}
}
...
@@ -1435,7 +1295,9 @@ const exportExcel = async () => {
...
@@ -1435,7 +1295,9 @@ const exportExcel = async () => {
if
(
selections
.
value
.
length
!==
1
)
{
if
(
selections
.
value
.
length
!==
1
)
{
return
ElMessage
.
warning
(
'请选择一条数据'
)
return
ElMessage
.
warning
(
'请选择一条数据'
)
}
}
const
ids
=
selections
.
value
.
map
((
el
)
=>
el
.
id
).
join
(
','
)
const
ids
=
selections
.
value
.
map
((
el
:
AccountStatementNote
)
=>
el
.
id
)
.
join
(
','
)
try
{
try
{
const
res
=
await
exportPodExcelApi
(
ids
)
const
res
=
await
exportPodExcelApi
(
ids
)
window
.
open
(
res
.
data
)
window
.
open
(
res
.
data
)
...
@@ -1522,7 +1384,8 @@ $border: solid 1px #ddd;
...
@@ -1522,7 +1384,8 @@ $border: solid 1px #ddd;
}
}
.
dialog
-
footer
{
.
dialog
-
footer
{
text
-
align
:
center
;
display
:
flex
;
justify
-
content
:
center
;
}
}
.
delivery
-
note
-
list
{
.
delivery
-
note
-
list
{
...
...
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