Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 07bd569a
authored
Jan 04, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
65445aba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
19 deletions
src/views/work/edit.vue
src/views/work/order.vue
src/views/work/edit.vue
View file @
07bd569
...
@@ -126,7 +126,7 @@
...
@@ -126,7 +126,7 @@
</el-form-item>
</el-form-item>
</div>
</div>
<el-form-item
label=
"备注:"
>
<el-form-item
label=
"备注:"
>
<el-input
type=
"textarea"
rows=
"4"
resize=
"none"
v-model
.
trim=
"editForm.
shopName
"
maxlength=
"200"
:disabled=
"isDisabled"
></el-input>
<el-input
type=
"textarea"
rows=
"4"
resize=
"none"
v-model
.
trim=
"editForm.
remark
"
maxlength=
"200"
:disabled=
"isDisabled"
></el-input>
</el-form-item>
</el-form-item>
<div
ref=
"logInfo"
class=
"line_title glsx_hairline"
>
操作日志
</div>
<div
ref=
"logInfo"
class=
"line_title glsx_hairline"
>
操作日志
</div>
<el-form-item
label=
"操作记录:"
>
<el-form-item
label=
"操作记录:"
>
...
@@ -641,7 +641,7 @@ export default {
...
@@ -641,7 +641,7 @@ export default {
//
justify-content
:
space-between
;
//
justify-content
:
space-between
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#999
;
color
:
#999
;
.name
{
.name
,.time
{
margin-right
:
16px
;
margin-right
:
16px
;
}
}
}
}
...
...
src/views/work/order.vue
View file @
07bd569
...
@@ -134,7 +134,7 @@
...
@@ -134,7 +134,7 @@
<el-button
type=
"primary"
size=
"small"
v-show=
"showResult && uploadResult.failFile"
@
click=
"downloadFail()"
>
导出失败记录
</el-button>
<el-button
type=
"primary"
size=
"small"
v-show=
"showResult && uploadResult.failFile"
@
click=
"downloadFail()"
>
导出失败记录
</el-button>
</div>
</div>
<div
class=
""
>
<div
class=
""
>
<el-button
type=
"primary"
size=
"small"
:loading=
"loading"
v-show=
"!showResult"
@
click=
"saveFile()"
>
确认
</el-button>
<el-button
type=
"primary"
size=
"small"
:loading=
"loading"
:disabled=
"!uploadFile.name"
v-show=
"!showResult"
@
click=
"saveFile()"
>
确认
</el-button>
<el-button
type=
"default"
size=
"small"
@
click=
"closeDialog()"
>
关闭
</el-button>
<el-button
type=
"default"
size=
"small"
@
click=
"closeDialog()"
>
关闭
</el-button>
</div>
</div>
</div>
</div>
...
@@ -171,7 +171,7 @@ import {
...
@@ -171,7 +171,7 @@ import {
GET_WORKORDER_BATCHEXPORTPICS
,
GET_WORKORDER_BATCHEXPORTPICS
,
GET_WORKORDER_TEMPLATEFILE
,
GET_WORKORDER_TEMPLATEFILE
,
IMPORT_WORKORDER_FILES
,
IMPORT_WORKORDER_FILES
,
GET_WORKORDER_STATUSOPTION
GET_WORKORDER_STATUSOPTION
,
}
from
"@/services/order"
;
}
from
"@/services/order"
;
import
{
deepClone
,
showToast
,
showModal
}
from
"@/utils/util"
;
import
{
deepClone
,
showToast
,
showModal
}
from
"@/utils/util"
;
import
store
from
"@/store"
;
import
store
from
"@/store"
;
...
@@ -221,14 +221,15 @@ export default {
...
@@ -221,14 +221,15 @@ export default {
2
:
"编辑工单"
,
2
:
"编辑工单"
,
3
:
"激活工单"
,
3
:
"激活工单"
,
},
},
statusList
:
[]
statusList
:
[],
};
};
},
},
watch
:
{
watch
:
{
$route
:
{
$route
:
{
handler
:
function
(
n
,
o
)
{
handler
:
function
(
n
,
o
)
{
console
.
log
(
n
)
console
.
log
(
n
);
if
(
n
.
query
&&
n
.
query
.
refresh
)
{
if
(
n
.
query
&&
n
.
query
.
refresh
)
{
this
.
currentPage
=
1
;
this
.
getList
();
this
.
getList
();
}
}
},
},
...
@@ -238,7 +239,7 @@ export default {
...
@@ -238,7 +239,7 @@ export default {
created
()
{
created
()
{
let
token
=
localStorage
.
getItem
(
"token"
);
let
token
=
localStorage
.
getItem
(
"token"
);
this
.
uploadHeaders
=
{
Authorization
:
token
};
this
.
uploadHeaders
=
{
Authorization
:
token
};
this
.
getStatus
()
this
.
getStatus
()
;
},
},
mounted
()
{
mounted
()
{
this
.
getList
();
this
.
getList
();
...
@@ -289,7 +290,10 @@ export default {
...
@@ -289,7 +290,10 @@ export default {
// 监听文件导入
// 监听文件导入
onFileChange
(
file
,
fileList
)
{
onFileChange
(
file
,
fileList
)
{
this
.
uploadFile
=
file
;
console
.
log
(
file
);
if
(
!
file
.
response
)
{
this
.
uploadFile
=
file
;
}
},
},
// 打开批量导入弹框
// 打开批量导入弹框
...
@@ -307,6 +311,13 @@ export default {
...
@@ -307,6 +311,13 @@ export default {
// 上传文件
// 上传文件
saveFile
()
{
saveFile
()
{
if
(
!
this
.
uploadFile
.
name
)
{
showToast
({
message
:
"请选择上传文件"
,
});
return
false
;
}
console
.
log
(
this
.
uploadFile
);
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
$refs
.
elUpload
.
submit
();
this
.
$refs
.
elUpload
.
submit
();
},
},
...
@@ -314,11 +325,17 @@ export default {
...
@@ -314,11 +325,17 @@ export default {
// 监听文件上传成功
// 监听文件上传成功
onSuccess
(
response
,
file
,
fileList
)
{
onSuccess
(
response
,
file
,
fileList
)
{
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
response
.
code
==
200
)
{
if
(
response
.
code
!=
200
)
{
this
.
uploadResult
=
response
.
data
;
showToast
({
this
.
showResult
=
true
;
message
:
response
.
message
,
this
.
getList
();
});
this
.
uploadFile
=
{};
this
.
$refs
.
elUpload
.
clearFiles
();
return
false
;
}
}
this
.
uploadResult
=
response
.
data
;
this
.
showResult
=
true
;
this
.
getList
();
},
},
// 新增工单
// 新增工单
...
@@ -452,12 +469,11 @@ export default {
...
@@ -452,12 +469,11 @@ export default {
},
},
// 获取工单状态
// 获取工单状态
getStatus
(){
getStatus
()
{
GET_WORKORDER_STATUSOPTION
().
then
(
res
=>
{
GET_WORKORDER_STATUSOPTION
().
then
((
res
)
=>
{
this
.
statusList
=
res
.
data
||
[]
this
.
statusList
=
res
.
data
||
[];
})
});
}
},
},
},
};
};
</
script
>
</
script
>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment