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 29f43ebe
authored
Jan 05, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
03ae2259
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
97 additions
and
40 deletions
src/components/dialog/index.vue
src/views/work/edit.vue
src/views/work/order.vue
src/components/dialog/index.vue
View file @
29f43eb
<
template
>
<
template
>
<div
class=
"dialog_page"
>
<div
class=
"dialog_page"
>
<el-dialog
:title=
"title"
:visible
.
sync=
"show"
:width=
"width"
:append-to-body=
"appendtobody"
:show-close=
"showClose"
custom-class=
"glsx_dialog"
:close-on-press-escape=
"false"
:close-on-click-modal=
"false"
@
close=
"onCancel"
@
opened=
"onDialogOpened"
>
<el-dialog
ref=
"glsxDialogCom"
:title=
"title"
:visible
.
sync=
"show"
:width=
"width"
:append-to-body=
"appendtobody"
:show-close=
"showClose"
custom-class=
"glsx_dialog"
:close-on-press-escape=
"false"
:close-on-click-modal=
"false"
@
close=
"onCancel"
@
opened=
"onDialogOpened"
>
<div
slot=
"title"
class=
"test"
v-if=
"slotInfo.title"
>
<div
slot=
"title"
class=
"test"
v-if=
"slotInfo.title"
>
<slot
name=
"title"
/>
<slot
name=
"title"
/>
</div>
</div>
...
@@ -71,7 +71,9 @@ export default {
...
@@ -71,7 +71,9 @@ export default {
this
.
hasTitle
=
o
.
title
;
this
.
hasTitle
=
o
.
title
;
this
.
slotInfo
=
o
;
this
.
slotInfo
=
o
;
},
},
mounted
:
function
()
{},
mounted
:
function
()
{
//this.$refs.glsxDialogCom.rendered = true;
},
methods
:
{
methods
:
{
/**
/**
* 取消关闭弹框
* 取消关闭弹框
...
...
src/views/work/edit.vue
View file @
29f43eb
<
template
>
<
template
>
<div
id=
"orderModal"
v-loading=
"loading"
>
<div
id=
"orderModal"
v-loading=
"loading"
>
<el-form
ref=
"editForm"
:model=
"editForm"
:rules=
"formRules"
label-width=
"120px"
size=
"small"
:disabled=
"type == 1"
>
<el-form
ref=
"editForm"
:model=
"editForm"
:rules=
"formRules"
:validate-on-rule-change=
"false"
label-width=
"120px"
size=
"small"
:disabled=
"type == 1"
>
<div
ref=
"orderInfo"
class=
"line_title glsx_hairline"
>
工单信息
</div>
<div
ref=
"orderInfo"
class=
"line_title glsx_hairline"
>
工单信息
</div>
<el-form-item
label=
"系统工单号:"
>
<el-form-item
label=
"系统工单号:"
>
<el-input
v-model=
"editForm.orderNo"
placeholder=
"系统自动生成,不可编辑"
disabled
></el-input>
<el-input
v-model=
"editForm.orderNo"
placeholder=
"系统自动生成,不可编辑"
disabled
></el-input>
...
@@ -330,33 +330,35 @@ export default {
...
@@ -330,33 +330,35 @@ export default {
// },
// },
// immediate: true,
// immediate: true,
// },
// },
type
:
{
// type: {
handler
:
function
(
n
,
o
)
{
// handler: function (n, o) {
let
_id
=
"orderInfo"
;
// let _id = "orderInfo";
switch
(
n
)
{
// if (!n) {
case
3
:
// return false;
this
.
formRules
=
this
.
editFormRules
;
// }
this
.
isDisabled
=
true
;
// switch (n) {
_id
=
"deviceInfo"
;
// case 3:
break
;
// this.formRules = this.editFormRules;
case
2
:
// this.isDisabled = true;
this
.
formRules
=
this
.
editFormRules
;
// _id = "deviceInfo";
this
.
isDisabled
=
false
;
// break;
_id
=
"orderInfo"
;
// case 2:
break
;
// this.formRules = this.editFormRules;
default
:
// this.isDisabled = false;
this
.
formRules
=
{};
// _id = "orderInfo";
this
.
isDisabled
=
false
;
// break;
_id
=
"orderInfo"
;
// default:
break
;
// this.formRules = {};
}
// this.isDisabled = false;
this
.
scrollTo
(
_id
);
// _id = "orderInfo";
},
// break;
immediate
:
true
,
// }
},
// this.scrollTo(_id);
// },
// immediate: true,
// },
},
},
created
()
{},
created
()
{
mounted
()
{
let
o
=
this
.
$store
.
state
;
let
o
=
this
.
$store
.
state
;
if
(
!
o
.
deviceList
||
o
.
deviceList
.
length
<=
0
)
{
if
(
!
o
.
deviceList
||
o
.
deviceList
.
length
<=
0
)
{
this
.
getDevice
();
this
.
getDevice
();
...
@@ -364,9 +366,30 @@ export default {
...
@@ -364,9 +366,30 @@ export default {
if
(
!
o
.
vehicleCustomTree
||
o
.
vehicleCustomTree
.
length
<=
0
)
{
if
(
!
o
.
vehicleCustomTree
||
o
.
vehicleCustomTree
.
length
<=
0
)
{
this
.
getCarBrand
();
this
.
getCarBrand
();
}
}
//this.initRules();
this
.
getInfo
();
this
.
getInfo
();
this
.
getLogList
();
this
.
getLogList
();
this
.
scrollTo
(
"orderInfo"
);
},
mounted
()
{
let
_id
=
"orderInfo"
;
// switch (this.type) {
// case 3:
// this.formRules = this.editFormRules;
// this.isDisabled = true;
// _id = "deviceInfo";
// break;
// case 2:
// this.formRules = this.editFormRules;
// this.isDisabled = false;
// _id = "orderInfo";
// break;
// default:
// this.formRules = {};
// this.isDisabled = false;
// _id = "orderInfo";
// break;
// }
// this.scrollTo(_id);
},
},
methods
:
{
methods
:
{
// 监听省市区选择
// 监听省市区选择
...
@@ -472,18 +495,26 @@ export default {
...
@@ -472,18 +495,26 @@ export default {
m
.
snList
=
arr
;
m
.
snList
=
arr
;
console
.
log
(
m
);
console
.
log
(
m
);
this
.
editForm
=
m
;
this
.
editForm
=
m
;
this
.
initRules
();
});
});
},
},
// 控制页面滚动
// 控制页面滚动
scrollTo
(
refName
)
{
scrollTo
(
refName
)
{
var
element
=
this
.
$refs
[
refName
];
let
_this
=
this
;
if
(
!
element
)
{
let
element
=
this
.
$refs
[
refName
];
return
false
;
let
m
=
setInterval
(
function
()
{
}
if
(
element
)
{
const
top
=
element
.
offsetTop
;
console
.
log
(
new
Date
());
console
.
log
(
top
);
clearInterval
(
m
);
window
.
document
.
querySelector
(
".dialog_content"
).
scrollTop
=
top
-
60
;
const
top
=
element
.
offsetTop
;
console
.
log
(
top
);
_this
.
$nextTick
(()
=>
{
window
.
document
.
querySelector
(
".dialog_content"
).
scrollTop
=
top
-
60
;
});
}
},
100
);
},
},
// 获取省市区
// 获取省市区
...
@@ -650,6 +681,29 @@ export default {
...
@@ -650,6 +681,29 @@ export default {
this
.
logList
=
res
.
data
||
[];
this
.
logList
=
res
.
data
||
[];
});
});
},
},
// 初始化页面校验条件
initRules
()
{
let
_id
=
"orderInfo"
;
switch
(
this
.
type
)
{
case
3
:
this
.
formRules
=
this
.
activeRules
;
this
.
isDisabled
=
true
;
_id
=
"deviceInfo"
;
break
;
case
2
:
this
.
formRules
=
this
.
editFormRules
;
this
.
isDisabled
=
false
;
_id
=
"orderInfo"
;
break
;
default
:
this
.
formRules
=
this
.
editFormRules
;
this
.
isDisabled
=
false
;
_id
=
"orderInfo"
;
break
;
}
this
.
scrollTo
(
_id
);
},
},
},
};
};
</
script
>
</
script
>
...
...
src/views/work/order.vue
View file @
29f43eb
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<el-option
label=
"需要安装"
value=
"Y"
></el-option>
<el-option
label=
"需要安装"
value=
"Y"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"
车辆
归属:"
>
<el-form-item
label=
"
工单
归属:"
>
<el-popover
v-model=
"filterVisible"
placement=
"bottom-start"
width=
"400"
trigger=
"click"
>
<el-popover
v-model=
"filterVisible"
placement=
"bottom-start"
width=
"400"
trigger=
"click"
>
<div>
<div>
<glsx-organization
@
change=
"onChange"
></glsx-organization>
<glsx-organization
@
change=
"onChange"
></glsx-organization>
...
@@ -79,11 +79,11 @@
...
@@ -79,11 +79,11 @@
<el-table-column
label=
"车架号"
prop=
"vin"
:width=
"longTdWidth"
></el-table-column>
<el-table-column
label=
"车架号"
prop=
"vin"
:width=
"longTdWidth"
></el-table-column>
<el-table-column
label=
"设备数量"
prop=
"deviceCnt"
></el-table-column>
<el-table-column
label=
"设备数量"
prop=
"deviceCnt"
></el-table-column>
<el-table-column
label=
"期望服务时间"
prop=
"serviceTime"
:width=
"tdWidth"
></el-table-column>
<el-table-column
label=
"期望服务时间"
prop=
"serviceTime"
:width=
"tdWidth"
></el-table-column>
<el-table-column
label=
"
车辆归属
"
prop=
"tenantName"
></el-table-column>
<el-table-column
label=
"
所属组织
"
prop=
"tenantName"
></el-table-column>
<el-table-column
label=
"系统工单状态"
prop=
"statusDesc"
:width=
"tdWidth"
></el-table-column>
<el-table-column
label=
"系统工单状态"
prop=
"statusDesc"
:width=
"tdWidth"
></el-table-column>
<el-table-column
label=
"安装服务商"
prop=
"serviceProvider"
:width=
"tdWidth"
></el-table-column>
<el-table-column
label=
"安装服务商"
prop=
"serviceProvider"
:width=
"tdWidth"
></el-table-column>
<el-table-column
label=
"安装技工"
prop=
"mechanicName"
:width=
"tdWidth"
></el-table-column>
<el-table-column
label=
"安装技工"
prop=
"mechanicName"
:width=
"tdWidth"
></el-table-column>
<el-table-column
label=
"
创建人
"
prop=
"createdBy"
:width=
"longTdWidth"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"
工单归属
"
prop=
"createdBy"
:width=
"longTdWidth"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"创建时间"
prop=
"createdDate"
:width=
"tdWidth"
></el-table-column>
<el-table-column
label=
"创建时间"
prop=
"createdDate"
:width=
"tdWidth"
></el-table-column>
<el-table-column
label=
"操作"
fixed=
"right"
align=
"center"
width=
"180px"
>
<el-table-column
label=
"操作"
fixed=
"right"
align=
"center"
width=
"180px"
>
<template
slot-scope=
"
{row}">
<template
slot-scope=
"
{row}">
...
@@ -428,6 +428,7 @@ export default {
...
@@ -428,6 +428,7 @@ export default {
// 关闭查看工单详情弹框
// 关闭查看工单详情弹框
closeDetailDialog
()
{
closeDetailDialog
()
{
this
.
showWorkDialog
=
false
;
this
.
showWorkDialog
=
false
;
this
.
activeId
=
"orderInfo"
;
this
.
$refs
.
editOrderCom
.
rest
();
this
.
$refs
.
editOrderCom
.
rest
();
},
},
...
...
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