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
e51ef8ae
Commit
e51ef8ae
authored
Apr 24, 2024
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 代码格式化
parent
9ca27d71
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
29 deletions
+26
-29
src/views/order/index.vue
+26
-29
No files found.
src/views/order/index.vue
View file @
e51ef8ae
...
...
@@ -3,7 +3,6 @@
<div
class=
"header-filter"
>
<div
class=
"header-filter-form"
>
<ElForm
:model=
"searchForm"
size=
"default"
inline
>
<ElFormItem
label=
"SKU"
>
<ElInput
v-model=
"searchForm.mainSku"
...
...
@@ -22,21 +21,15 @@
@
blur=
"searchForm.endProductId = searchForm.endProductId.trim()"
></ElInput>
</ElFormItem>
<!--
<ElFormItem
label=
"第三方订单号"
>
-->
<!--
<ElInput-->
<!-- v-model="searchForm.erpOrderNumber"-->
<!-- placeholder="请输入第三方订单号"-->
<!-- clearable-->
<!-- style="width: 160px"-->
<!-- >
</ElInput>
-->
<!--
</ElFormItem>
-->
<ElFormItem
label=
"生产单号"
>
<ElInput
v-model=
"searchForm.subOrderNumber"
placeholder=
"生产单号"
clearable
style=
"width: 160px"
@
blur=
"searchForm.subOrderNumber = searchForm.subOrderNumber.trim()"
@
blur=
"
searchForm.subOrderNumber = searchForm.subOrderNumber.trim()
"
></ElInput>
</ElFormItem>
<ElFormItem
label=
"订单号"
>
...
...
@@ -117,7 +110,10 @@
>
打印生产单
<
/ElButto
n
>
<
/span
>
<
span
v
-
if
=
"statusCode === 2 || statusCode === 3 || statusCode === 7"
class
=
"item"
>
<
span
v
-
if
=
"statusCode === 2 || statusCode === 3 || statusCode === 7"
class
=
"item"
>
<
ElButton
type
=
"success"
dark
@
click
=
"exportManuscript"
>
导出生产单
<
/ElButto
n
>
...
...
@@ -127,7 +123,10 @@
>
添加内部标签
<
/ElButto
n
>
<
/span
>
<
span
v
-
if
=
"statusCode === 2 || statusCode === 3|| statusCode === 4"
class
=
"item"
>
<
span
v
-
if
=
"statusCode === 2 || statusCode === 3 || statusCode === 4"
class
=
"item"
>
<
ElButton
type
=
"primary"
@
click
=
"refreshProduct"
>
刷新商品信息
<
/ElButto
n
>
...
...
@@ -261,8 +260,7 @@
<
div
class
=
"order-list-expand_item_info_title"
>
<
ElButton
text
type
=
"primary"
@
click
=
"openDetail(row.id)"
>
查看详情
<
/ElButto
n
>
<
/ElButton
>
<
/div
>
<
div
v
-
if
=
"statusCode !== 2 && statusCode !== 3"
...
...
@@ -273,15 +271,13 @@
type
=
"primary"
@
click
=
"openShipment(row.id)"
>
查看发货单
<
/ElButto
n
>
<
/ElButton
>
<
/div
>
<
div
class
=
"order-list-expand_item_info_title"
>
<
ElButton
text
type
=
"primary"
@
click
=
"openLog(row.id)"
>
操作日志
<
/ElButto
n
>
<
/ElButton
>
<
/div
>
<
div
v
-
if
=
"statusCode === 1 || statusCode === 3"
...
...
@@ -289,8 +285,7 @@
>
<
ElButton
text
type
=
"danger"
@
click
=
"cancelOrder(row.id)"
>
取消
<
/ElButto
n
>
<
/ElButton
>
<
/div
>
<
/div
>
<
/div
>
...
...
@@ -396,8 +391,7 @@
size
=
"large"
@
click
=
"searchShipmentByOrderNumber"
>
查询
<
/el-butto
n
>
<
/el-button
>
<
/div
>
<
Shipment
v
-
loading
=
"shipmentLoading"
...
...
@@ -465,12 +459,10 @@
<
div
class
=
"dialog-footer"
>
<
el
-
button
size
=
"large"
@
click
=
"shipmentVisible = false"
>
取消
<
/el-butto
n
>
<
/el-button
>
<
el
-
button
size
=
"large"
type
=
"primary"
@
click
=
"saveShipment"
>
发货
<
/el-butto
n
>
<
/el-button
>
<
/div
>
<
/template
>
<
/el-dialog
>
...
...
@@ -529,7 +521,8 @@ import {
getLogList
,
getOrderDetail
,
cancelOrderApi
,
reGenerateScriptUrlApi
,
refreshProductInfo
,
reGenerateScriptUrlApi
,
refreshProductInfo
,
}
from
'@/api/order'
import
{
showError
,
showConfirm
}
from
'@/utils/ui'
import
{
useValue
}
from
'@/utils/hooks/useValue'
...
...
@@ -814,14 +807,18 @@ const refreshProduct = async () => {
}
catch
{
return
}
const
res
=
await
refreshProductInfo
(
selection
.
value
.
map
(
el
=>
el
.
id
))
try
{
const
res
=
await
refreshProductInfo
(
selection
.
value
.
map
((
el
)
=>
el
.
id
))
ElMessage
({
message
:
res
.
message
,
type
:
'success'
,
offset
:
window
.
innerHeight
/
2
,
}
)
await
loadTabData
()
loadTabData
()
search
()
}
catch
(
e
)
{
showError
(
e
)
}
}
// 添加内部便签
const
addInternalTag
=
async
()
=>
{
...
...
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