Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
saas-manage
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
0
Merge Requests
0
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
chehuidong
saas-manage
Commits
2a22a148
Commit
2a22a148
authored
Aug 03, 2023
by
yangzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:工单
parent
ba44fab6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
284 additions
and
25 deletions
+284
-25
src/assets/work/anceing.png
+0
-0
src/common/api/order.js
+26
-5
src/common/components/base/tableView.vue
+15
-5
src/common/components/element-ui.js
+2
-0
src/views/taskManage/index.vue
+241
-15
No files found.
src/assets/work/anceing.png
0 → 100644
View file @
2a22a148
828 Bytes
src/common/api/order.js
View file @
2a22a148
...
@@ -16,7 +16,10 @@ export function workConfirmed(id) {
...
@@ -16,7 +16,10 @@ export function workConfirmed(id) {
}
}
export
function
workAssigned
(
data
)
{
export
function
workAssigned
(
data
)
{
return
axios
.
post
(
'platform/platformWorkOrder/assign'
,
data
)
return
axios
.
post
(
'platform/platformWorkOrder/assign'
,
data
,
)
}
}
export
function
startWorder
(
id
,
estimateCompleteTime
)
{
export
function
startWorder
(
id
,
estimateCompleteTime
)
{
...
@@ -32,12 +35,25 @@ export function archiveWorkOrder(id) {
...
@@ -32,12 +35,25 @@ export function archiveWorkOrder(id) {
})
})
}
}
// export function completeWorkOrder(id) {
// return axios.post('platform/platformWorkOrder/complete', {
// id: id,
// })
// }
export
function
completeWorkOrder
(
id
)
{
export
function
completeWorkOrder
(
id
)
{
return
axios
.
post
(
'platform/platformWorkOrder/complete'
,
{
return
axios
.
post
(
id
:
id
,
'platform/platformWorkOrder/intoAcceptance'
,
})
{
id
:
id
,
},
)
}
export
function
acceptanWorkOrder
(
data
)
{
return
axios
.
post
(
'platform/platformWorkOrder/acceptance'
,
data
,
)
}
}
export
function
replyTocustomer
(
id
,
msg
)
{
export
function
replyTocustomer
(
id
,
msg
)
{
return
axios
.
post
(
'platform/platformWorkOrderChat/add'
,
{
return
axios
.
post
(
'platform/platformWorkOrderChat/add'
,
{
msg
:
msg
,
msg
:
msg
,
...
@@ -73,6 +89,11 @@ export function closeForPending(id) {
...
@@ -73,6 +89,11 @@ export function closeForPending(id) {
},
},
)
)
}
}
export
function
close
(
id
)
{
return
axios
.
post
(
'platform/platformWorkOrder/close'
,
{
id
:
id
,
})
}
export
function
getInfo
(
id
)
{
export
function
getInfo
(
id
)
{
return
axios
.
get
(
return
axios
.
get
(
'platform/platformWorkOrder/get?id='
+
id
,
'platform/platformWorkOrder/get?id='
+
id
,
...
...
src/common/components/base/tableView.vue
View file @
2a22a148
...
@@ -3,7 +3,9 @@ import { mapState } from 'vuex'
...
@@ -3,7 +3,9 @@ import { mapState } from 'vuex'
const
globalIndex
=
Math
.
random
()
const
globalIndex
=
Math
.
random
()
function
getKey
()
{
function
getKey
()
{
return
Math
.
random
().
toString
().
substr
(
3
,
10
)
return
Math
.
random
()
.
toString
()
.
substr
(
3
,
10
)
}
}
export
default
{
export
default
{
name
:
'my-table'
,
name
:
'my-table'
,
...
@@ -86,6 +88,10 @@ export default {
...
@@ -86,6 +88,10 @@ export default {
type
:
Function
,
type
:
Function
,
default
:
()
=>
{},
default
:
()
=>
{},
},
},
cellStyle
:
{
type
:
Function
,
default
:
()
=>
{},
},
highIds
:
{
highIds
:
{
// 高亮显示行
// 高亮显示行
type
:
Array
,
type
:
Array
,
...
@@ -168,8 +174,12 @@ export default {
...
@@ -168,8 +174,12 @@ export default {
// visibleMethod: this.visibleMethod
// visibleMethod: this.visibleMethod
}
}
if
(
this
.
$props
.
customRightMenu
?.
name
)
{
if
(
this
.
$props
.
customRightMenu
?.
name
)
{
const
{
code
,
name
,
prefixIcon
,
disabled
}
=
const
{
this
.
$props
.
customRightMenu
code
,
name
,
prefixIcon
,
disabled
,
}
=
this
.
$props
.
customRightMenu
obj
.
body
.
options
[
0
].
push
({
obj
.
body
.
options
[
0
].
push
({
code
,
code
,
name
,
name
,
...
@@ -310,8 +320,7 @@ export default {
...
@@ -310,8 +320,7 @@ export default {
this
.
$emit
(
'selectionChange'
,
arr
)
this
.
$emit
(
'selectionChange'
,
arr
)
}
else
if
(
this
.
keyCode
===
'Control'
)
{
}
else
if
(
this
.
keyCode
===
'Control'
)
{
this
.
$refs
.
vxetable
.
setCheckboxRow
([
row
],
true
)
this
.
$refs
.
vxetable
.
setCheckboxRow
([
row
],
true
)
const
arr1
=
const
arr1
=
this
.
$refs
.
vxetable
.
getCheckboxRecords
()
this
.
$refs
.
vxetable
.
getCheckboxRecords
()
this
.
$emit
(
'selectionChange'
,
arr1
)
this
.
$emit
(
'selectionChange'
,
arr1
)
}
else
{
}
else
{
this
.
startIndex
=
$rowIndex
this
.
startIndex
=
$rowIndex
...
@@ -560,6 +569,7 @@ export default {
...
@@ -560,6 +569,7 @@ export default {
loading
=
{
this
.
loading
}
loading
=
{
this
.
loading
}
cell
-
class
-
name
=
{
this
.
cellClassName
}
cell
-
class
-
name
=
{
this
.
cellClassName
}
row
-
class
-
name
=
{
this
.
rowClassName
}
row
-
class
-
name
=
{
this
.
rowClassName
}
cell
-
style
=
{
this
.
cellStyle
}
onCurrent
-
change
=
{
this
.
currentChange
}
onCurrent
-
change
=
{
this
.
currentChange
}
onCheckbox
-
change
=
{
this
.
checkboxChange
}
onCheckbox
-
change
=
{
this
.
checkboxChange
}
onCheckbox
-
all
=
{
this
.
checkboxAll
}
onCheckbox
-
all
=
{
this
.
checkboxAll
}
...
...
src/common/components/element-ui.js
View file @
2a22a148
...
@@ -18,6 +18,7 @@ import {
...
@@ -18,6 +18,7 @@ import {
Option
,
Option
,
Cascader
,
Cascader
,
Radio
,
Radio
,
RadioGroup
,
Menu
,
Menu
,
Submenu
,
Submenu
,
MenuItem
,
MenuItem
,
...
@@ -48,6 +49,7 @@ const components = [
...
@@ -48,6 +49,7 @@ const components = [
Option
,
Option
,
Cascader
,
Cascader
,
Radio
,
Radio
,
RadioGroup
,
Menu
,
Menu
,
MenuItem
,
MenuItem
,
Submenu
,
Submenu
,
...
...
src/views/taskManage/index.vue
View file @
2a22a148
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