Commit 2a22a148 by yangzhi

fix:工单

parent ba44fab6
...@@ -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,
......
...@@ -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}
......
...@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment