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
01070396
Commit
01070396
authored
Jul 15, 2024
by
zhuzhequan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工厂端提交
parent
5dc1a684
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
269 additions
and
42 deletions
+269
-42
components.d.ts
+1
-0
src/api/order.ts
+35
-20
src/components/splitDiv/splitDiv.vue
+51
-6
src/types/api/order.ts
+3
-0
src/views/DeliveryNotePage.vue
+1
-0
src/views/order/index.vue
+178
-16
No files found.
components.d.ts
View file @
01070396
...
@@ -11,6 +11,7 @@ declare module 'vue' {
...
@@ -11,6 +11,7 @@ declare module 'vue' {
ElCheckbox
:
typeof
import
(
'element-plus/es'
)[
'ElCheckbox'
]
ElCheckbox
:
typeof
import
(
'element-plus/es'
)[
'ElCheckbox'
]
ElCol
:
typeof
import
(
'element-plus/es'
)[
'ElCol'
]
ElCol
:
typeof
import
(
'element-plus/es'
)[
'ElCol'
]
ElConfigProvider
:
typeof
import
(
'element-plus/es'
)[
'ElConfigProvider'
]
ElConfigProvider
:
typeof
import
(
'element-plus/es'
)[
'ElConfigProvider'
]
ElDate
:
typeof
import
(
'element-plus/es'
)[
'ElDate'
]
ElDatePicker
:
typeof
import
(
'element-plus/es'
)[
'ElDatePicker'
]
ElDatePicker
:
typeof
import
(
'element-plus/es'
)[
'ElDatePicker'
]
ElDialog
:
typeof
import
(
'element-plus/es'
)[
'ElDialog'
]
ElDialog
:
typeof
import
(
'element-plus/es'
)[
'ElDialog'
]
ElDrawer
:
typeof
import
(
'element-plus/es'
)[
'ElDrawer'
]
ElDrawer
:
typeof
import
(
'element-plus/es'
)[
'ElDrawer'
]
...
...
src/api/order.ts
View file @
01070396
...
@@ -35,6 +35,7 @@ export function getOrderTabData() {
...
@@ -35,6 +35,7 @@ export function getOrderTabData() {
'factory/customJomallOrder/findStateGroupList'
,
'factory/customJomallOrder/findStateGroupList'
,
)
)
}
}
// 确认生产
// 确认生产
export
function
confirmProductionOrder
(
ids
:
number
[])
{
export
function
confirmProductionOrder
(
ids
:
number
[])
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
...
@@ -50,18 +51,23 @@ export function downloadOrder(id: number) {
...
@@ -50,18 +51,23 @@ export function downloadOrder(id: number) {
{
params
:
{
id
}
},
{
params
:
{
id
}
},
)
)
}
}
// 重新生成稿件
// 重新生成稿件
export
function
reGenerateScriptUrlApi
(
ids
:
number
[]
)
{
export
function
reGenerateScriptUrlApi
(
ids
:
string
)
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
'factory/customJomallOrder/
downloadAgain
'
,
'factory/customJomallOrder/
rebuildFileByOrderId
'
,
ids
,
ids
,
)
)
}
}
export
function
reCreateScriptUrlApi
(
ids
:
number
[])
{
export
function
reCreateScriptUrlApi
(
id
:
string
)
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
return
axios
.
get
<
never
,
BaseRespData
<
never
>>
(
'factory/customJomallOrder/rebuildFileByOrderIds'
,
'factory/customJomallOrder/rebuildFileByOrderId'
,
ids
,
{
params
:{
id
}
},
)
)
}
}
...
@@ -74,14 +80,10 @@ export function printOrder(ids: number[]) {
...
@@ -74,14 +80,10 @@ export function printOrder(ids: number[]) {
}
}
// 导出生产单
// 导出生产单
export
function
exportOrder
(
status
?:
string
|
number
)
{
export
function
exportOrder
(
data
?:
{
ids
:
number
[],
status
:
string
|
number
}
)
{
return
axios
.
ge
t
<
never
,
BaseRespData
<
never
>>
(
return
axios
.
pos
t
<
never
,
BaseRespData
<
never
>>
(
'factory/customJomallOrder/exportData'
,
'factory/customJomallOrder/exportData'
,
{
data
,
params
:
{
status
,
},
},
)
)
}
}
...
@@ -96,6 +98,7 @@ export function getOrderBySubOrderNumber(orderNumber: string) {
...
@@ -96,6 +98,7 @@ export function getOrderBySubOrderNumber(orderNumber: string) {
},
},
)
)
}
}
export
function
getQaOrderBySubOrderNumber
(
orderNumber
:
string
)
{
export
function
getQaOrderBySubOrderNumber
(
orderNumber
:
string
)
{
return
axios
.
get
<
never
,
BaseRespData
<
QaData
[]
>>
(
return
axios
.
get
<
never
,
BaseRespData
<
QaData
[]
>>
(
'factory/customJomallOrder/inspectionQuery'
,
'factory/customJomallOrder/inspectionQuery'
,
...
@@ -106,6 +109,7 @@ export function getQaOrderBySubOrderNumber(orderNumber: string) {
...
@@ -106,6 +109,7 @@ export function getQaOrderBySubOrderNumber(orderNumber: string) {
},
},
)
)
}
}
// 质检完成
// 质检完成
export
function
qaFinishedApi
(
data
:
InspectionData
[])
{
export
function
qaFinishedApi
(
data
:
InspectionData
[])
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
...
@@ -132,6 +136,7 @@ export function addInternalTagApi(idList: number[], memo: string) {
...
@@ -132,6 +136,7 @@ export function addInternalTagApi(idList: number[], memo: string) {
{
idList
,
content
:
memo
},
{
idList
,
content
:
memo
},
)
)
}
}
// 查看发货单
// 查看发货单
export
function
loadSendOutList
(
id
:
number
)
{
export
function
loadSendOutList
(
id
:
number
)
{
return
axios
.
get
<
never
,
BaseRespData
<
SendOrderData
[]
>>
(
return
axios
.
get
<
never
,
BaseRespData
<
SendOrderData
[]
>>
(
...
@@ -143,6 +148,7 @@ export function loadSendOutList(id: number) {
...
@@ -143,6 +148,7 @@ export function loadSendOutList(id: number) {
},
},
)
)
}
}
// 操作日志
// 操作日志
export
function
getLogList
(
id
:
number
)
{
export
function
getLogList
(
id
:
number
)
{
return
axios
.
get
<
never
,
BaseRespData
<
LogListData
[]
>>
(
return
axios
.
get
<
never
,
BaseRespData
<
LogListData
[]
>>
(
...
@@ -181,6 +187,7 @@ export function refreshProductInfo(data: number[]) {
...
@@ -181,6 +187,7 @@ export function refreshProductInfo(data: number[]) {
data
,
data
,
)
)
}
}
export
function
getDeliveryNoteList
(
export
function
getDeliveryNoteList
(
data
:
DeliveryNoteSearchForm
,
data
:
DeliveryNoteSearchForm
,
currentPage
:
number
,
currentPage
:
number
,
...
@@ -195,6 +202,7 @@ export function getDeliveryNoteList(
...
@@ -195,6 +202,7 @@ export function getDeliveryNoteList(
},
},
)
)
}
}
export
function
customJomallReconciliation
(
export
function
customJomallReconciliation
(
data
:
AccountStatementNoteSearchForm
,
data
:
AccountStatementNoteSearchForm
,
currentPage
:
number
,
currentPage
:
number
,
...
@@ -209,7 +217,8 @@ export function customJomallReconciliation(
...
@@ -209,7 +217,8 @@ export function customJomallReconciliation(
},
},
)
)
}
}
export
function
printDeliveryNote
(
data
:
string
[],
userMark
?:
string
)
{
export
function
printDeliveryNote
(
data
:
string
[],
userMark
?:
string
)
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
'factory/customJomallShipment/printInvoiceStatistics'
,
'factory/customJomallShipment/printInvoiceStatistics'
,
{
{
...
@@ -219,6 +228,7 @@ export function printDeliveryNote(data: string[],userMark?:string) {
...
@@ -219,6 +228,7 @@ export function printDeliveryNote(data: string[],userMark?:string) {
},
},
)
)
}
}
export
function
createReconciliation
(
data
:
{
shipmentIdList
:
number
[]
})
{
export
function
createReconciliation
(
data
:
{
shipmentIdList
:
number
[]
})
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
'factory/customJomallReconciliation/createReconciliation'
,
'factory/customJomallReconciliation/createReconciliation'
,
...
@@ -247,6 +257,7 @@ export function getOrderByIdApi(id?: number) {
...
@@ -247,6 +257,7 @@ export function getOrderByIdApi(id?: number) {
},
},
)
)
}
}
export
function
getReconciliationAmount
(
id
?:
number
)
{
export
function
getReconciliationAmount
(
id
?:
number
)
{
return
axios
.
get
<
never
,
BaseRespData
<
CountStatus
[]
>>
(
return
axios
.
get
<
never
,
BaseRespData
<
CountStatus
[]
>>
(
'factory/customJomallReconciliation/getReconciliationAmount'
,
'factory/customJomallReconciliation/getReconciliationAmount'
,
...
@@ -257,17 +268,18 @@ export function getReconciliationAmount(id?: number) {
...
@@ -257,17 +268,18 @@ export function getReconciliationAmount(id?: number) {
},
},
)
)
}
}
export
function
getCustomJomallReconciliationById
(
id
?:
number
)
{
export
function
getCustomJomallReconciliationById
(
id
?:
number
)
{
return
axios
.
get
<
never
,
BaseRespData
<
OrderData
>>
(
return
axios
.
get
<
never
,
BaseRespData
<
OrderData
>>
(
'factory/customJomallReconciliation/getById'
,
'factory/customJomallReconciliation/getById'
,
{
{
params
:{
params
:
{
id
id
,
}
},
}
},
)
)
}
}
export
function
customJomallReconciliationLog
(
reconciliationId
?:
number
)
{
export
function
customJomallReconciliationLog
(
reconciliationId
?:
number
)
{
return
axios
.
get
<
never
,
BaseRespData
<
OrderData
>>
(
return
axios
.
get
<
never
,
BaseRespData
<
OrderData
>>
(
'factory/customJomallReconciliationLog/getListById'
,
'factory/customJomallReconciliationLog/getListById'
,
...
@@ -278,6 +290,7 @@ export function customJomallReconciliationLog(reconciliationId?: number) {
...
@@ -278,6 +290,7 @@ export function customJomallReconciliationLog(reconciliationId?: number) {
},
},
)
)
}
}
export
function
updateReconciliation
(
export
function
updateReconciliation
(
data
:
AccountStatementNote
,
data
:
AccountStatementNote
,
)
{
)
{
...
@@ -286,6 +299,7 @@ export function updateReconciliation(
...
@@ -286,6 +299,7 @@ export function updateReconciliation(
data
,
data
,
)
)
}
}
export
function
getShipmentDetailsById
(
shipmentId
?:
string
)
{
export
function
getShipmentDetailsById
(
shipmentId
?:
string
)
{
return
axios
.
get
<
never
,
BaseRespData
<
AccountStatementNote
[]
>>
(
return
axios
.
get
<
never
,
BaseRespData
<
AccountStatementNote
[]
>>
(
'factory/customJomallReconciliation/getShipmentDetailsById'
,
'factory/customJomallReconciliation/getShipmentDetailsById'
,
...
@@ -302,6 +316,6 @@ export function factoryConfirm(
...
@@ -302,6 +316,6 @@ export function factoryConfirm(
)
{
)
{
return
axios
.
post
(
return
axios
.
post
(
'factory/customJomallReconciliation/factoryConfirm'
,
'factory/customJomallReconciliation/factoryConfirm'
,
data
data
,
)
)
}
}
\ No newline at end of file
src/components/splitDiv/splitDiv.vue
View file @
01070396
...
@@ -2,27 +2,70 @@
...
@@ -2,27 +2,70 @@
import
{
Splitpanes
,
Pane
}
from
'splitpanes'
import
{
Splitpanes
,
Pane
}
from
'splitpanes'
import
'splitpanes/dist/splitpanes.css'
import
'splitpanes/dist/splitpanes.css'
import
{
onMounted
,
onUnmounted
,
ref
}
from
'vue'
defineProps
({
const
props
=
defineProps
({
size
:
{
size
:
{
default
:
'15'
,
default
:
''
,
type
:
String
type
:
String
,
},
})
const
domSize
=
ref
<
number
>
(
0
)
function
domResize
()
{
const
father
=
document
.
getElementsByClassName
(
'splitpanes'
)[
0
]
const
top
=
document
.
getElementById
(
'top'
)
const
v
=
((
top
.
clientHeight
/
father
.
clientHeight
)
*
100
).
toFixed
(
2
)
if
(
props
.
size
===
''
)
{
domSize
.
value
=
v
}
else
{
domSize
.
value
=
props
.
size
}
}
}
onUnmounted
(()
=>
{
window
.
removeEventListener
(
'resize'
,
domResize
)
})
onMounted
(()
=>
{
window
.
addEventListener
(
'resize'
,
domResize
)
domResize
()
})
defineExpose
({
domResize
})
})
</
script
>
</
script
>
<
template
>
<
template
>
<splitpanes
horizontal
style=
"height: 100%"
>
<splitpanes
horizontal
style=
"height: 100%"
>
<pane
:size=
"size"
>
<pane
:size=
"domSize"
>
<div
id=
"top"
>
<slot
name=
"top"
></slot>
<slot
name=
"top"
></slot>
</div>
</pane>
</pane>
<pane
style=
"flex: 1; flex-shrink: 0"
>
<pane
style=
"flex: 1; flex-shrink: 0"
>
<div
id=
"bottom"
>
<slot
name=
"bottom"
></slot>
<slot
name=
"bottom"
></slot>
</div>
</pane>
</pane>
</splitpanes>
</splitpanes>
</
template
>
</
template
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
#top
{
height
:
fit-content
;
}
#bottom
{
height
:
100%
;
}
#top
,
#bottom
{
display
:
flex
;
flex-direction
:
column
;
}
::v-deep
(
.splitpanes__splitter
)
{
::v-deep
(
.splitpanes__splitter
)
{
width
:
100%
;
width
:
100%
;
border-left
:
1px
solid
#eee
;
border-left
:
1px
solid
#eee
;
...
@@ -35,7 +78,8 @@ import 'splitpanes/dist/splitpanes.css'
...
@@ -35,7 +78,8 @@ import 'splitpanes/dist/splitpanes.css'
min-width
:
1px
;
min-width
:
1px
;
margin-top
:
5px
;
margin-top
:
5px
;
margin-bottom
:
5px
;
margin-bottom
:
5px
;
&::before{
&::before
{
margin-top
:
-2px
;
margin-top
:
-2px
;
background-color
:
#00000040
;
background-color
:
#00000040
;
transform
:
translate
(
-50%
);
transform
:
translate
(
-50%
);
...
@@ -47,7 +91,8 @@ import 'splitpanes/dist/splitpanes.css'
...
@@ -47,7 +91,8 @@ import 'splitpanes/dist/splitpanes.css'
left
:
50%
;
left
:
50%
;
transition
:
background-color
.3s
;
transition
:
background-color
.3s
;
}
}
&
::after
{
&
::after
{
margin-top
:
1px
;
margin-top
:
1px
;
background-color
:
#00000040
;
background-color
:
#00000040
;
transform
:
translate
(
-50%
);
transform
:
translate
(
-50%
);
...
...
src/types/api/order.ts
View file @
01070396
...
@@ -5,6 +5,9 @@ export interface SearchForm {
...
@@ -5,6 +5,9 @@ export interface SearchForm {
endProductId
:
string
endProductId
:
string
orderNumber
:
string
orderNumber
:
string
shopNumber
:
string
shopNumber
:
string
timeType
:
string
|
null
startTime
?:
string
|
null
endTime
?:
string
|
null
logisticsTracking
:
string
logisticsTracking
:
string
lanshouName
:
string
lanshouName
:
string
billNumber
:
string
billNumber
:
string
...
...
src/views/DeliveryNotePage.vue
View file @
01070396
...
@@ -286,6 +286,7 @@ const productProps = [
...
@@ -286,6 +286,7 @@ const productProps = [
{
label
:
'质检(不通过)'
,
key
:
'notPassNum'
},
{
label
:
'质检(不通过)'
,
key
:
'notPassNum'
},
],
],
]
]
const
logisticsProps
=
[
const
logisticsProps
=
[
{
label
:
'订单号'
,
key
:
'orderNumber'
,
copyable
:
true
},
{
label
:
'订单号'
,
key
:
'orderNumber'
,
copyable
:
true
},
{
{
...
...
src/views/order/index.vue
View file @
01070396
This diff is collapsed.
Click to expand it.
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