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
0
Merge Requests
0
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
4ab17647
Commit
4ab17647
authored
Sep 04, 2025
by
linjinhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改podus对账
parent
0d5acd12
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
289 additions
and
217 deletions
+289
-217
src/types/api/billOrder.ts
+135
-134
src/types/api/deliveryNote.ts
+48
-47
src/views/podUsBillOrder/index.vue
+106
-36
No files found.
src/types/api/billOrder.ts
View file @
4ab17647
...
...
@@ -12,8 +12,8 @@ export interface AccountStatementNoteSearchForm {
billNumber
?:
string
subOrderNumber
?:
string
shipmentNumber
?:
string
rec
N
umber
?:
string
order
N
umber
?:
string
rec
_n
umber
?:
string
order
_n
umber
?:
string
factory_status
?:
string
erp_status
?:
string
startTime
?:
string
...
...
@@ -29,6 +29,7 @@ export interface AccountStatementNote {
pass_num
?:
number
factory_code
?:
string
total_amount
?:
string
|
number
totalAmount
?:
string
|
number
actual_amount
?:
string
|
number
num
?:
number
end_time
?:
string
...
...
@@ -96,143 +97,143 @@ export interface ItemList {
factory_order_number
?:
string
}
export
interface
OrderDetails
{
pass_num
:
number
;
num
:
number
;
not_pass_num
:
number
;
erp_order_number
:
string
|
null
;
product_total_amount
:
number
;
carriage_total_amount
:
number
;
craft_total_price
:
number
;
info_id
:
number
;
template_total_price
:
number
;
id
:
number
;
order_id
:
string
;
factory_order_number
:
string
;
pass_num
:
number
num
:
number
not_pass_num
:
number
erp_order_number
:
string
|
null
product_total_amount
:
number
carriage_total_amount
:
number
craft_total_price
:
number
info_id
:
number
template_total_price
:
number
id
:
number
order_id
:
string
factory_order_number
:
string
order
:
{
receiver_post_code
:
string
;
payment_time
:
string
|
null
;
actual_amount
:
number
;
adjusted_amount
:
number
;
factory_no
:
number
;
factory_online_id
:
string
|
null
;
total_product_amount
:
number
|
null
;
process_number
:
string
;
track_status
:
number
;
id
:
string
;
receiver_country
:
string
;
factory_order_number
:
string
;
prepaid_amount
:
number
;
receiver_province
:
string
;
create_time
:
string
;
weight
:
number
;
product_num
:
number
;
version
:
number
;
finish_time
:
string
;
start_stocking_time
:
string
;
payment_type
:
string
|
null
;
warehouse_name
:
string
;
total_amount
:
number
;
logistics_way_code
:
string
;
third_order_number
:
string
;
shop_number
:
string
;
express_sheet
:
string
;
status
:
string
;
production_client
:
string
;
statusStr
:
string
;
receiver_city
:
string
;
remark
:
string
|
null
;
exception_reason
:
string
|
null
;
platform
:
string
;
update_time
:
string
;
receiver_address2
:
string
;
receiver_address1
:
string
;
receiver_name
:
string
;
tracking_number
:
string
;
product_amount
:
number
;
carriage_amount
:
number
|
null
;
pay_freight
:
number
;
logistics_way_name
:
string
;
factory_code
:
string
;
receiver_district
:
string
|
null
;
temu_logistics_way_id
:
string
|
null
;
logistics_way_id
:
number
;
user_mark
:
string
;
namespace
:
string
;
receiver_phone
:
string
;
exception_handling
:
number
;
shipment_type
:
number
;
warehouse_id
:
number
;
}
;
receiver_post_code
:
string
payment_time
:
string
|
null
actual_amount
:
number
adjusted_amount
:
number
factory_no
:
number
factory_online_id
:
string
|
null
total_product_amount
:
number
|
null
process_number
:
string
track_status
:
number
id
:
string
receiver_country
:
string
factory_order_number
:
string
prepaid_amount
:
number
receiver_province
:
string
create_time
:
string
weight
:
number
product_num
:
number
version
:
number
finish_time
:
string
start_stocking_time
:
string
payment_type
:
string
|
null
warehouse_name
:
string
total_amount
:
number
logistics_way_code
:
string
third_order_number
:
string
shop_number
:
string
express_sheet
:
string
status
:
string
production_client
:
string
statusStr
:
string
receiver_city
:
string
remark
:
string
|
null
exception_reason
:
string
|
null
platform
:
string
update_time
:
string
receiver_address2
:
string
receiver_address1
:
string
receiver_name
:
string
tracking_number
:
string
product_amount
:
number
carriage_amount
:
number
|
null
pay_freight
:
number
logistics_way_name
:
string
factory_code
:
string
receiver_district
:
string
|
null
temu_logistics_way_id
:
string
|
null
logistics_way_id
:
number
user_mark
:
string
namespace
:
string
receiver_phone
:
string
exception_handling
:
number
shipment_type
:
number
warehouse_id
:
number
}
}
export
interface
ProductDetails
{
diy_id
:
string
;
diy_bianma
:
string
;
base_sku
:
string
;
sub_order_number
:
string
;
price_update_remark
:
string
|
null
;
price_status
:
boolean
;
template_item_sku
:
string
|
null
;
product_id
:
string
;
id
:
number
;
shipment_num
:
number
;
product_item_id
:
string
|
null
;
template_price
:
number
;
diy_id
:
string
diy_bianma
:
string
base_sku
:
string
sub_order_number
:
string
price_update_remark
:
string
|
null
price_status
:
boolean
template_item_sku
:
string
|
null
product_id
:
string
id
:
number
shipment_num
:
number
product_item_id
:
string
|
null
template_price
:
number
product
:
{
diy_id
:
string
;
end_product_id
:
string
;
category_name
:
string
;
craft_name
:
string
;
base_sku
:
string
;
num
:
number
;
is_production
:
boolean
;
pick_finish
:
number
;
remark
:
string
|
null
;
product_price
:
number
;
third_stock_sku
:
string
|
null
;
customized_quantity
:
number
;
template_price
:
number
;
tag_ids
:
string
|
null
;
create_time
:
string
;
third_sub_order_number
:
string
;
factory_sub_order_number
:
string
;
variant_image
:
string
;
craft_code
:
string
;
pass_num
:
number
;
factory_code
:
string
;
pay_amount
:
number
;
weight
:
number
;
is_replenishment
:
number
;
image_ary
:
Array
<
{
title
:
string
;
url
:
string
}
>
;
diy_id
:
string
end_product_id
:
string
category_name
:
string
craft_name
:
string
base_sku
:
string
num
:
number
is_production
:
boolean
pick_finish
:
number
remark
:
string
|
null
product_price
:
number
third_stock_sku
:
string
|
null
customized_quantity
:
number
template_price
:
number
tag_ids
:
string
|
null
create_time
:
string
third_sub_order_number
:
string
factory_sub_order_number
:
string
variant_image
:
string
craft_code
:
string
pass_num
:
number
factory_code
:
string
pay_amount
:
number
weight
:
number
is_replenishment
:
number
image_ary
:
Array
<
{
title
:
string
;
url
:
string
}
>
design_images
:
Array
<
{
imageUrl
:
string
;
fileUrl
:
string
;
id
:
string
;
title
:
string
;
materialId
:
string
;
materialImage
:
string
;
}
>
;
not_pass_num
:
number
;
version
:
number
;
supplier_product_no
:
string
|
null
;
pod_jomall_order_us_id
:
string
;
craft_price
:
number
;
customs_value
:
number
;
variant_sku
:
string
;
batch_arrange_number
:
string
;
trim_design_images
:
string
|
null
;
}
;
product_item_sku
:
string
|
null
;
item_id
:
number
;
variant_image
:
string
;
pass_num
:
number
;
not_pass_num
:
number
|
null
;
craft_price
:
number
;
price_update_time
:
string
|
null
;
variant_sku
:
string
;
info_id
:
number
;
shop_number
:
string
;
template_item_id
:
string
|
null
;
order_id
:
string
;
imageUrl
:
string
fileUrl
:
string
id
:
string
title
:
string
materialId
:
string
materialImage
:
string
}
>
not_pass_num
:
number
version
:
number
supplier_product_no
:
string
|
null
pod_jomall_order_us_id
:
string
craft_price
:
number
customs_value
:
number
variant_sku
:
string
batch_arrange_number
:
string
trim_design_images
:
string
|
null
}
product_item_sku
:
string
|
null
item_id
:
number
variant_image
:
string
pass_num
:
number
not_pass_num
:
number
|
null
craft_price
:
number
price_update_time
:
string
|
null
variant_sku
:
string
info_id
:
number
shop_number
:
string
template_item_id
:
string
|
null
order_id
:
string
}
export
interface
ConfirmOrderForm
{
...
...
src/types/api/deliveryNote.ts
View file @
4ab17647
...
...
@@ -189,55 +189,55 @@ export interface DbFactory {
}
export
interface
IDetailData
{
statusStr
?:
string
;
id
:
string
;
erp_id
?:
string
;
namespace
?:
string
;
dbFactory
?:
DbFactory
|
null
;
factory
?:
DbFactory
|
null
;
productList
?:
Product
[]
;
order_number
?:
string
;
factory_order_number
?:
string
;
erp_order_number
?:
string
;
third_order_number
?:
string
;
shop_number
?:
string
;
product_num
?:
string
|
number
;
start_stocking_time
?:
string
;
finish_time
?:
string
;
delivery_type
?:
string
;
logistics_way_name
?:
string
;
lanshou_name
?:
string
;
receiver_name
?:
string
;
lanshou_phone
?:
string
;
receiver_phone
?:
string
;
lanshou_region
?:
string
;
receiver_province
?:
string
;
lanshou_address
?:
string
;
receiver_city
?:
string
;
receiver_district
?:
string
;
receiver_address1
?:
string
;
lanshou_post
?:
string
;
receiver_post_code
?:
string
;
user_mark
?:
string
;
statusStr
?:
string
id
:
string
erp_id
?:
string
namespace
?:
string
dbFactory
?:
DbFactory
|
null
factory
?:
DbFactory
|
null
productList
?:
Product
[]
order_number
?:
string
factory_order_number
?:
string
erp_order_number
?:
string
third_order_number
?:
string
shop_number
?:
string
product_num
?:
string
|
number
start_stocking_time
?:
string
finish_time
?:
string
delivery_type
?:
string
logistics_way_name
?:
string
lanshou_name
?:
string
receiver_name
?:
string
lanshou_phone
?:
string
receiver_phone
?:
string
lanshou_region
?:
string
receiver_province
?:
string
lanshou_address
?:
string
receiver_city
?:
string
receiver_district
?:
string
receiver_address1
?:
string
lanshou_post
?:
string
receiver_post_code
?:
string
user_mark
?:
string
price
?:
number
customized_quantityStr
?:
string
product_price
?:
string
customized_quantity
:
number
image_ary
?:
string
|
null
[
propName
:
string
]:
string
|
number
|
boolean
|
undefined
|
unknown
;
product_price
?:
string
customized_quantity
:
number
image_ary
?:
string
|
null
[
propName
:
string
]:
string
|
number
|
boolean
|
undefined
|
unknown
}
export
interface
PodUsDetailData
{
id
:
number
erp_id
?:
string
;
price
?:
number
;
customized_quantityStr
?:
string
;
product_price
?:
number
;
erp_id
?:
string
price
?:
number
customized_quantityStr
?:
string
product_price
?:
number
// 其他已有属性...
customized_quantity
:
number
;
// 添加缺失属性
image_ary
?:
string
|
null
;
// 添加缺失属性
productList
:
IDetailData
[]
[
propName
:
string
]:
string
|
number
|
boolean
|
undefined
|
unknown
;
customized_quantity
:
number
// 添加缺失属性
image_ary
?:
string
|
null
// 添加缺失属性
productList
:
IDetailData
[]
[
propName
:
string
]:
string
|
number
|
boolean
|
undefined
|
unknown
}
export
interface
LogListsData
{
id
:
number
...
...
@@ -259,17 +259,18 @@ export interface LogListData {
employee_account
?:
string
}
export
interface
DetailForm
{
shop_number
?:
string
billNumber
?:
string
order
N
umber
?:
string
craft
C
ode
?:
string
base
S
ku
?:
string
shipment
N
umber
?:
string
order
_n
umber
?:
string
craft
_c
ode
?:
string
base
_s
ku
?:
string
shipment
_n
umber
?:
string
process
?:
string
supplierItemNo
?:
string
dateRange
?:
string
[]
endTime
?:
string
startTime
?:
string
sub
OrderN
umber
?:
string
sub
_order_n
umber
?:
string
rows
?:
number
page
?:
number
currentPage
?:
number
...
...
src/views/podUsBillOrder/index.vue
View file @
4ab17647
...
...
@@ -50,7 +50,7 @@
<
/ElFormItem
>
<
ElFormItem
style
=
"margin-right: 10px"
label
=
"对账单号"
>
<
ElInput
v
-
model
=
"searchForm.rec
N
umber"
v
-
model
=
"searchForm.rec
_n
umber"
clearable
placeholder
=
"对账单号"
style
=
"width: 160px"
...
...
@@ -58,7 +58,7 @@
<
/ElFormItem
>
<
ElFormItem
style
=
"margin-right: 10px"
label
=
"订单号"
>
<
ElInput
v
-
model
=
"searchForm.order
N
umber"
v
-
model
=
"searchForm.order
_n
umber"
clearable
placeholder
=
"订单号"
style
=
"width: 160px"
...
...
@@ -139,6 +139,14 @@
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"'工厂编码'"
prop
=
"name"
header
-
align
=
"center"
align
=
"center"
width
=
"100"
show
-
overflow
-
tooltip
><
/el-table-column
>
<!--
<
el
-
table
-
column
label
=
"底胚总价($)"
header
-
align
=
"center"
prop
=
"product_total_amount"
...
...
@@ -146,7 +154,7 @@
align
=
"center"
show
-
overflow
-
tooltip
>
<
/el-table-column
>
<
/el-table-column>
--
>
<
el
-
table
-
column
label
=
"总发货(件)"
header
-
align
=
"center"
...
...
@@ -156,6 +164,15 @@
show
-
overflow
-
tooltip
>
<
/el-table-column
>
<!--
<
el
-
table
-
column
label
=
"成本总价($)"
header
-
align
=
"center"
prop
=
"template_total_price"
width
=
"110"
align
=
"center"
show
-
overflow
-
tooltip
>
<
/el-table-column> --
>
<
el
-
table
-
column
label
=
"工艺总价($)"
header
-
align
=
"center"
...
...
@@ -183,9 +200,19 @@
show
-
overflow
-
tooltip
><
/el-table-column
>
<
el
-
table
-
column
label
=
"付款类型"
header
-
align
=
"center"
prop
=
"actual_amount"
width
=
"110"
align
=
"center"
show
-
overflow
-
tooltip
>
<
template
#
default
>
US
账户
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"应付金额($)"
header
-
align
=
"center"
prop
=
"total
_a
mount"
prop
=
"total
A
mount"
width
=
"130"
align
=
"center"
show
-
overflow
-
tooltip
...
...
@@ -199,14 +226,14 @@
align
=
"center"
show
-
overflow
-
tooltip
><
/el-table-column
>
<
el
-
table
-
column
<
!--
<
el
-
table
-
column
label
=
"已付金额($)"
header
-
align
=
"center"
prop
=
"total_amount_str"
width
=
"130"
align
=
"center"
show
-
overflow
-
tooltip
><
/el-table-column
>
><
/el-table-column>
--
>
<
el
-
table
-
column
label
=
"水单"
header
-
align
=
"center"
...
...
@@ -220,10 +247,7 @@
style
=
"display: flex; gap: 2px; align-items: center"
>
<
div
v
-
for
=
"item in (typeof row.water_list === 'string'
? row.water_list
: ''
).split(',')"
v
-
for
=
"item in row.water_list.split(',')"
:
key
=
"item"
style
=
"width: 30px"
>
...
...
@@ -281,31 +305,34 @@
<
el
-
form
:
model
=
"detailForm"
inline
>
<
el
-
form
-
item
label
=
"生产单号"
>
<
el
-
input
v
-
model
=
"detailForm.sub
OrderN
umber"
placeholder
=
"请输入
订
单号"
v
-
model
=
"detailForm.sub
_order_n
umber"
placeholder
=
"请输入
生产
单号"
clearable
style
=
"width: 130px"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
底胚Sku
"
>
<
el
-
form
-
item
label
=
"
工艺编码
"
>
<
el
-
input
v
-
model
=
"detailForm.
baseSku
"
placeholder
=
"请输入
底胚Sku
"
v
-
model
=
"detailForm.
craft_code
"
placeholder
=
"请输入
工艺编码
"
clearable
style
=
"width: 130px"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
工艺编码
"
>
<
el
-
form
-
item
label
=
"
底胚Sku
"
>
<
el
-
input
v
-
model
=
"detailForm.
craftCode
"
placeholder
=
"请输入
工艺编码
"
v
-
model
=
"detailForm.
base_sku
"
placeholder
=
"请输入
底胚Sku
"
clearable
style
=
"width: 130px"
/>
<
/el-form-item
>
<
el
-
form
-
item
>
<
el
-
button
type
=
"primary"
@
click
=
"searchDetail"
<
el
-
button
:
disabled
=
"!currentRow?.id"
type
=
"primary"
@
click
=
"searchDetail"
>
查询
<
/el-button
>
<
/el-form-item
>
...
...
@@ -421,7 +448,7 @@
<
el
-
table
-
column
show
-
overflow
-
tooltip
label
=
"产品价格($)"
width
=
"1
0
0"
width
=
"1
3
0"
align
=
"center"
prop
=
"product_price"
>
...
...
@@ -434,14 +461,14 @@
<
el
-
table
-
column
show
-
overflow
-
tooltip
label
=
"底胚价格($)"
width
=
"1
0
0"
width
=
"1
3
0"
align
=
"center"
prop
=
"template_price"
><
/el-table-column
>
<
el
-
table
-
column
show
-
overflow
-
tooltip
label
=
"工艺价格($)"
width
=
"1
0
0"
width
=
"1
3
0"
align
=
"center"
prop
=
"craft_price"
><
/el-table-column
>
...
...
@@ -507,25 +534,27 @@
<
/el-tab-pane
>
<
el
-
tab
-
pane
name
=
"1"
label
=
"订单详情"
>
<
el
-
form
:
model
=
"orderForm"
inline
>
<
el
-
form
-
item
label
=
"
订单号
"
>
<
el
-
form
-
item
label
=
"
店铺单号"
label
-
width
=
"80px
"
>
<
el
-
input
v
-
model
=
"orderForm.
orderN
umber"
placeholder
=
"请输入
订
单号"
v
-
model
=
"orderForm.
shop_n
umber"
placeholder
=
"请输入
店铺
单号"
clearable
style
=
"width:
13
0px"
style
=
"width:
20
0px"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
生产单号
"
>
<
el
-
form
-
item
label
=
"
订单号"
label
-
width
=
"60px
"
>
<
el
-
input
v
-
model
=
"orderForm.
subOrderN
umber"
v
-
model
=
"orderForm.
order_n
umber"
placeholder
=
"请输入订单号"
clearable
style
=
"width:
13
0px"
style
=
"width:
20
0px"
/>
<
/el-form-item
>
<
el
-
form
-
item
>
<
el
-
button
type
=
"primary"
@
click
=
"getUsOrderList"
<
el
-
button
:
disabled
=
"!currentRow?.id"
type
=
"primary"
@
click
=
"getUsOrderList"
>
查询
<
/el-button
>
<
/el-form-item
>
...
...
@@ -642,29 +671,61 @@
show
-
overflow
-
tooltip
/>
<
el
-
table
-
column
label
=
"预收运费($)"
prop
=
"order.prepaid_amount"
header
-
align
=
"center"
align
=
"center"
min
-
width
=
"120"
show
-
overflow
-
tooltip
/>
<
el
-
table
-
column
label
=
"实际运费($)"
prop
=
"order.actual_amount"
header
-
align
=
"center"
align
=
"center"
min
-
width
=
"120"
show
-
overflow
-
tooltip
/>
<
el
-
table
-
column
label
=
"调整运费($)"
prop
=
"order.adjusted_amount"
header
-
align
=
"center"
align
=
"center"
min
-
width
=
"120"
show
-
overflow
-
tooltip
/>
<
el
-
table
-
column
label
=
"运费总价($)"
prop
=
"carriage_total_amount"
header
-
align
=
"center"
align
=
"center"
min
-
width
=
"120"
show
-
overflow
-
tooltip
/>
<!--
<
el
-
table
-
column
label
=
"运费($)"
prop
=
"order.pay_freight"
header
-
align
=
"center"
align
=
"center"
min
-
width
=
"120"
show
-
overflow
-
tooltip
><
/el-table-column
>
<
el
-
table
-
column
><
/el-table-column>
--
>
<
!--
<
el
-
table
-
column
label
=
"物流总价($)"
prop
=
"carriage_total_amount"
header
-
align
=
"center"
align
=
"center"
min
-
width
=
"120"
show
-
overflow
-
tooltip
/>
<
el
-
table
-
column
/>
-->
<
!--
<
el
-
table
-
column
label
=
"实付金额($)"
prop
=
"order.actual_amount"
header
-
align
=
"center"
align
=
"center"
min
-
width
=
"120"
show
-
overflow
-
tooltip
/>
/>
-->
<
el
-
table
-
column
label
=
"完成时间"
prop
=
"order.finish_time"
...
...
@@ -1136,11 +1197,20 @@ watch(
()
=>
tableData
.
value
,
()
=>
{
;(
tableData
.
value
as
AccountStatementNote
[]).
forEach
((
item
)
=>
{
item
.
totalAmount
=
amountPayable
(
item
)
item
.
total_amount
=
computedPrice
(
item
)
}
)
}
,
{
immediate
:
true
,
deep
:
true
}
,
)
const
amountPayable
=
(
row
:
AccountStatementNote
)
=>
{
const
totalAmount
=
new
BigNumber
(
row
.
product_total_amount
as
number
).
plus
(
new
BigNumber
(
row
.
carriage_total_amount
||
0
),
)
return
totalAmount
.
toString
()
}
const
reset
=
()
=>
{
dateRange
.
value
=
[]
resetSearchForm
()
...
...
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