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 65445aba
authored
Jan 04, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
2ddc5f74
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
20 deletions
src/components/plateNumberInput/index.vue
src/views/work/edit.vue
src/views/work/order.vue
src/components/plateNumberInput/index.vue
View file @
65445ab
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
</div>
</div>
<template
slot=
"reference"
>
<template
slot=
"reference"
>
<div
class=
"plate_show"
>
<div
class=
"plate_show"
>
<span
class=
"plate_name"
v-if=
"!plateProvince && !plateLetter"
>
请选择
</span>
<span
class=
"plate_name"
>
{{
plateProvince
}}
</span>
<span
class=
"plate_name"
>
{{
plateProvince
}}
</span>
<span
class=
"plate_name"
>
{{
plateLetter
}}
</span>
<span
class=
"plate_name"
>
{{
plateLetter
}}
</span>
<i
:class=
"showPopover?'el-icon-arrow-up':'el-icon-arrow-down'"
></i>
<i
:class=
"showPopover?'el-icon-arrow-up':'el-icon-arrow-down'"
></i>
...
@@ -100,8 +101,8 @@ export default {
...
@@ -100,8 +101,8 @@ export default {
],
],
showPopover
:
false
,
showPopover
:
false
,
plateNo
:
""
,
plateNo
:
""
,
plateProvince
:
"
粤
"
,
plateProvince
:
""
,
plateLetter
:
"
B
"
,
plateLetter
:
""
,
};
};
},
},
watch
:
{
watch
:
{
...
...
src/views/work/edit.vue
View file @
65445ab
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<el-option
label=
"无需安装"
value=
"N"
></el-option>
<el-option
label=
"无需安装"
value=
"N"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<div
v-
show
=
"editForm.needInstall == 'Y'"
>
<div
v-
if
=
"editForm.needInstall == 'Y'"
>
<el-form-item
label=
"期望安装日期:"
>
<el-form-item
label=
"期望安装日期:"
>
<div
class=
"line_form_flex"
>
<div
class=
"line_form_flex"
>
...
@@ -63,9 +63,9 @@
...
@@ -63,9 +63,9 @@
<el-option
v-for=
"(item,index) in deviceList"
:key=
"index"
:label=
"item.name"
:value=
"item.code"
></el-option>
<el-option
v-for=
"(item,index) in deviceList"
:key=
"index"
:label=
"item.name"
:value=
"item.code"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<template
v-if=
"type == 3"
>
<template
v-if=
"type == 3
|| editForm.orderStatus == 2
"
>
<el-form-item
label=
"车辆归属:"
prop=
"orgName"
>
<el-form-item
label=
"车辆归属:"
prop=
"orgName"
>
<el-popover
v-model=
"filterVisible"
placement=
"bottom-start"
width=
"400"
trigger=
"click"
>
<el-popover
v-model=
"filterVisible"
placement=
"bottom-start"
width=
"400"
trigger=
"click"
:disabled=
"editForm.orderStatus == 2"
>
<div>
<div>
<glsx-organization
v-if=
"filterVisible"
:isLast=
"true"
@
change=
"onOrganizationChange"
></glsx-organization>
<glsx-organization
v-if=
"filterVisible"
:isLast=
"true"
@
change=
"onOrganizationChange"
></glsx-organization>
</div>
</div>
...
@@ -77,8 +77,8 @@
...
@@ -77,8 +77,8 @@
<el-form-item
label=
"设备SN号:"
:prop=
"'snList.' + index + '.sn'"
:rules=
"deviceRules"
>
<el-form-item
label=
"设备SN号:"
:prop=
"'snList.' + index + '.sn'"
:rules=
"deviceRules"
>
<el-input
v-model=
"item.sn"
placeholder=
"请输入设备号"
></el-input>
<el-input
v-model=
"item.sn"
placeholder=
"请输入设备号"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"设备型号:"
:prop=
"'snList.' + index + '.
type
'"
:rules=
"[
{ required: true, message: '请输入设备型号', trigger:['blur','change']}]">
<el-form-item
label=
"设备型号:"
:prop=
"'snList.' + index + '.
model
'"
:rules=
"[
{ required: true, message: '请输入设备型号', trigger:['blur','change']}]">
<el-input
v-model=
"item.
type
"
disabled
></el-input>
<el-input
v-model=
"item.
model
"
disabled
></el-input>
</el-form-item>
</el-form-item>
<span
class=
"device_tips"
v-if=
"false"
>
验证通过
</span>
<span
class=
"device_tips"
v-if=
"false"
>
验证通过
</span>
</div>
</div>
...
@@ -132,8 +132,8 @@
...
@@ -132,8 +132,8 @@
<el-form-item
label=
"操作记录:"
>
<el-form-item
label=
"操作记录:"
>
<div
class=
"log_list"
>
<div
class=
"log_list"
>
<div
class=
"cell"
v-for=
"(item,index) in logList"
:key=
"index"
>
<div
class=
"cell"
v-for=
"(item,index) in logList"
:key=
"index"
>
<span
class=
"name"
>
操作人:{{item.operator}}
</span>
<span
class=
"time"
>
操作时间:{{item.operateTime}}
</span>
<span
class=
"time"
>
操作时间:{{item.operateTime}}
</span>
<span
class=
"name"
>
操作人:{{item.operator}}
</span>
</div>
</div>
</div>
</div>
</el-form-item>
</el-form-item>
...
@@ -194,7 +194,7 @@ export default {
...
@@ -194,7 +194,7 @@ export default {
let
m
=
_this
.
editForm
.
snList
;
let
m
=
_this
.
editForm
.
snList
;
//let idx = m.findIndex((k) => k.sn == value);
//let idx = m.findIndex((k) => k.sn == value);
let
o
=
m
[
idx
];
let
o
=
m
[
idx
];
o
.
type
=
res
.
data
;
o
.
model
=
res
.
data
;
_this
.
$set
(
_this
.
editForm
.
snList
,
idx
,
o
);
_this
.
$set
(
_this
.
editForm
.
snList
,
idx
,
o
);
}
}
});
});
...
@@ -285,7 +285,7 @@ export default {
...
@@ -285,7 +285,7 @@ export default {
activeRules
:
{},
activeRules
:
{},
formRules
:
{},
formRules
:
{},
logList
:
[],
logList
:
[],
isDisabled
:
false
isDisabled
:
false
,
};
};
},
},
watch
:
{
watch
:
{
...
@@ -302,10 +302,10 @@ export default {
...
@@ -302,10 +302,10 @@ export default {
handler
:
function
(
n
,
o
)
{
handler
:
function
(
n
,
o
)
{
if
(
n
==
3
)
{
if
(
n
==
3
)
{
this
.
formRules
=
this
.
activeRules
;
this
.
formRules
=
this
.
activeRules
;
this
.
isDisabled
=
true
this
.
isDisabled
=
true
;
}
else
{
}
else
{
this
.
formRules
=
this
.
editFormRules
;
this
.
formRules
=
this
.
editFormRules
;
this
.
isDisabled
=
false
this
.
isDisabled
=
false
;
}
}
},
},
immediate
:
true
,
immediate
:
true
,
...
@@ -415,9 +415,12 @@ export default {
...
@@ -415,9 +415,12 @@ export default {
// 循环设备
// 循环设备
let
arr
=
[];
let
arr
=
[];
console
.
log
(
m
.
deviceCnt
);
if
(
n
.
devices
)
{
for
(
var
i
=
0
;
i
<
m
.
deviceCnt
;
i
++
)
{
arr
=
n
.
devices
;
arr
.
push
({
id
:
moment
().
format
(
"x"
)
});
}
else
{
for
(
var
i
=
0
;
i
<
m
.
deviceCnt
;
i
++
)
{
arr
.
push
({
id
:
moment
().
format
(
"x"
)
});
}
}
}
m
.
snList
=
arr
;
m
.
snList
=
arr
;
...
@@ -441,15 +444,15 @@ export default {
...
@@ -441,15 +444,15 @@ export default {
}
}
// 查找省份
// 查找省份
let
p
=
list
.
find
((
k
)
=>
k
.
name
==
row
.
province
)
;
let
p
=
list
.
find
((
k
)
=>
k
.
name
==
row
.
province
);
// 查找市
// 查找市
let
c
=
p
?(
p
.
childs
||
[]).
find
((
k
)
=>
k
.
name
==
row
.
city
):
{};
let
c
=
p
?
(
p
.
childs
||
[]).
find
((
k
)
=>
k
.
name
==
row
.
city
)
:
{};
// 查找区
// 查找区
let
a
=
c
?(
c
.
childs
||
[]).
find
((
k
)
=>
k
.
name
==
row
.
district
):
{};
let
a
=
c
?
(
c
.
childs
||
[]).
find
((
k
)
=>
k
.
name
==
row
.
district
)
:
{};
return
[
p
?
p
.
id
:
''
,
c
?
c
.
id
:
''
,
a
?
a
.
id
:
''
];
return
[
p
?
p
.
id
:
""
,
c
?
c
.
id
:
""
,
a
?
a
.
id
:
""
];
},
},
// 编辑工单信息
// 编辑工单信息
...
...
src/views/work/order.vue
View file @
65445ab
...
@@ -151,7 +151,7 @@
...
@@ -151,7 +151,7 @@
</div>
</div>
</div>
</div>
<
template
>
<
template
>
<edit-order
ref=
"editOrderCom"
:id=
"orderId"
:type=
"orderType"
@
change=
"onEditChange"
></edit-order>
<edit-order
v-if=
"showWorkDialog"
ref=
"editOrderCom"
:id=
"orderId"
:type=
"orderType"
@
change=
"onEditChange"
></edit-order>
</
template
>
</
template
>
<
template
slot=
"footer"
>
<
template
slot=
"footer"
>
<el-button
type=
"primary"
size=
"small"
:loading=
"aloading"
v-if=
"orderType == 3"
@
click=
"activeDevice()"
>
激活
</el-button>
<el-button
type=
"primary"
size=
"small"
:loading=
"aloading"
v-if=
"orderType == 3"
@
click=
"activeDevice()"
>
激活
</el-button>
...
...
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