|
@@ -1,33 +1,65 @@
|
|
<template>
|
|
<template>
|
|
<!-- 工单池 -->
|
|
<!-- 工单池 -->
|
|
- <template-page ref="pageRef" :getList="getList" :operation="operation()" :exportList="exportList"
|
|
|
|
- :optionsEvensGroup="optionsEvensGroup" :columnParsing="columnParsing" :tableAttributes="tableAttributes"
|
|
|
|
- :tableEvents="tableEvents" :moreParameters="moreParameters" :screeningAnalysis="screeningAnalysis"
|
|
|
|
- :filterMethod="filterMethod" :replaceOrNotMap="true" :defaultSearchData="defaultSearchData">
|
|
|
|
|
|
+ <template-page
|
|
|
|
+ ref="pageRef"
|
|
|
|
+ :getList="getList"
|
|
|
|
+ :operation="operation()"
|
|
|
|
+ :exportList="exportList"
|
|
|
|
+ :optionsEvensGroup="optionsEvensGroup"
|
|
|
|
+ :columnParsing="columnParsing"
|
|
|
|
+ :tableAttributes="tableAttributes"
|
|
|
|
+ :tableEvents="tableEvents"
|
|
|
|
+ :moreParameters="moreParameters"
|
|
|
|
+ :screeningAnalysis="screeningAnalysis"
|
|
|
|
+ :filterMethod="filterMethod"
|
|
|
|
+ :replaceOrNotMap="true"
|
|
|
|
+ :defaultSearchData="defaultSearchData"
|
|
|
|
+ >
|
|
<!-- 创建工单 -->
|
|
<!-- 创建工单 -->
|
|
<div class="cartographer_big">
|
|
<div class="cartographer_big">
|
|
- <el-dialog title="创建工单" width="100%" :modal="false" :visible.sync="createFormBool" :before-close="handleClose">
|
|
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="创建工单"
|
|
|
|
+ width="100%"
|
|
|
|
+ :modal="false"
|
|
|
|
+ :visible.sync="createFormBool"
|
|
|
|
+ :before-close="handleClose"
|
|
|
|
+ >
|
|
<workOrderInfo :workOrderType="workOrderType" v-if="createFormBool" :cloneWorkOrder="cloneWorkOrder" />
|
|
<workOrderInfo :workOrderType="workOrderType" v-if="createFormBool" :cloneWorkOrder="cloneWorkOrder" />
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
<!-- 工单详情 -->
|
|
<!-- 工单详情 -->
|
|
<div class="cartographer_big">
|
|
<div class="cartographer_big">
|
|
- <el-dialog :title="'工单详情-' + id" width="100%" :modal="false" :visible.sync="detailFormBool"
|
|
|
|
- :before-close="handleClose">
|
|
|
|
|
|
+ <el-dialog
|
|
|
|
+ :title="'工单详情-' + id"
|
|
|
|
+ width="100%"
|
|
|
|
+ :modal="false"
|
|
|
|
+ :visible.sync="detailFormBool"
|
|
|
|
+ :before-close="handleClose"
|
|
|
|
+ >
|
|
<Detail v-if="detailFormBool" :id="id" :workOrderType="workOrderType" />
|
|
<Detail v-if="detailFormBool" :id="id" :workOrderType="workOrderType" />
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
<!-- 批量预约/改约 -->
|
|
<!-- 批量预约/改约 -->
|
|
<div class="cartographer_big">
|
|
<div class="cartographer_big">
|
|
- <el-dialog title="批量约单" width="100%" :modal="false" :visible.sync="rescheduleBool"
|
|
|
|
- :before-close="rescheduleClose">
|
|
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="批量约单"
|
|
|
|
+ width="100%"
|
|
|
|
+ :modal="false"
|
|
|
|
+ :visible.sync="rescheduleBool"
|
|
|
|
+ :before-close="rescheduleClose"
|
|
|
|
+ >
|
|
<Reschedule v-if="rescheduleBool" :recordSelected="recordSelected" @close="rescheduleClose" />
|
|
<Reschedule v-if="rescheduleBool" :recordSelected="recordSelected" @close="rescheduleClose" />
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
<!-- 批量派工/改派 -->
|
|
<!-- 批量派工/改派 -->
|
|
<div class="cartographer_big">
|
|
<div class="cartographer_big">
|
|
- <el-dialog title="批量派单" width="100%" :modal="false" :visible.sync="reassignmentBool"
|
|
|
|
- :before-close="reassignmentClose">
|
|
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="批量派单"
|
|
|
|
+ width="100%"
|
|
|
|
+ :modal="false"
|
|
|
|
+ :visible.sync="reassignmentBool"
|
|
|
|
+ :before-close="reassignmentClose"
|
|
|
|
+ >
|
|
<Reassignment v-if="reassignmentBool" :recordSelected="recordSelected" @close="reassignmentClose" />
|
|
<Reassignment v-if="reassignmentBool" :recordSelected="recordSelected" @close="reassignmentClose" />
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
@@ -39,14 +71,21 @@ import { EventBus } from '@/utils/eventBus'
|
|
import TemplatePage from '@/components/template/template-page-1.vue'
|
|
import TemplatePage from '@/components/template/template-page-1.vue'
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
import operation_mixin from '@/components/template/operation_mixin.js'
|
|
import operation_mixin from '@/components/template/operation_mixin.js'
|
|
-import { listPageV2 } from "@/api/workOrder/orderType";
|
|
|
|
-import { orderBaseList, orderBaseListExport, orderBaseStatusCount, orderBaseImport, orderBaseImport2, orderBaseDetail } from "@/api/workOrderPool.js"
|
|
|
|
|
|
+import { listPageV2 } from '@/api/workOrder/orderType'
|
|
|
|
+import {
|
|
|
|
+ orderBaseList,
|
|
|
|
+ orderBaseListExport,
|
|
|
|
+ orderBaseStatusCount,
|
|
|
|
+ orderBaseImport,
|
|
|
|
+ orderBaseImport2,
|
|
|
|
+ orderBaseDetail
|
|
|
|
+} from '@/api/workOrderPool.js'
|
|
import workOrderInfo from './detailModule/workOrderInfo/index.vue'
|
|
import workOrderInfo from './detailModule/workOrderInfo/index.vue'
|
|
import Detail from './detail'
|
|
import Detail from './detail'
|
|
-import Reassignment from "./components/reassignment/index.vue"
|
|
|
|
-import Reschedule from "./components/reschedule/index.vue"
|
|
|
|
|
|
+import Reassignment from './components/reassignment/index.vue'
|
|
|
|
+import Reschedule from './components/reschedule/index.vue'
|
|
import { commonTemplateDownload } from '@/api/common.js'
|
|
import { commonTemplateDownload } from '@/api/common.js'
|
|
-import orderListColumn from "@/mixin/orderListColumn"
|
|
|
|
|
|
+import orderListColumn from '@/mixin/orderListColumn'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
TemplatePage,
|
|
TemplatePage,
|
|
@@ -92,19 +131,25 @@ export default {
|
|
name: '工单类型',
|
|
name: '工单类型',
|
|
key: 'orderSmallTypeText',
|
|
key: 'orderSmallTypeText',
|
|
value: '',
|
|
value: '',
|
|
- conditions: [{
|
|
|
|
- label: "全部",
|
|
|
|
- value: ""
|
|
|
|
- }, ...this.orderTypeList]
|
|
|
|
|
|
+ conditions: [
|
|
|
|
+ {
|
|
|
|
+ label: '全部',
|
|
|
|
+ value: ''
|
|
|
|
+ },
|
|
|
|
+ ...this.orderTypeList
|
|
|
|
+ ]
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: '工单状态',
|
|
name: '工单状态',
|
|
key: 'orderStatus',
|
|
key: 'orderStatus',
|
|
- value: this.pageType == "orderStatus" && this.pageCode ? this.pageCode : "",
|
|
|
|
- conditions: [{
|
|
|
|
- label: "全部",
|
|
|
|
- value: ""
|
|
|
|
- }, ...this.orderStatusList]
|
|
|
|
|
|
+ value: this.pageType == 'orderStatus' && this.pageCode ? this.pageCode : '',
|
|
|
|
+ conditions: [
|
|
|
|
+ {
|
|
|
|
+ label: '全部',
|
|
|
|
+ value: ''
|
|
|
|
+ },
|
|
|
|
+ ...this.orderStatusList
|
|
|
|
+ ]
|
|
}
|
|
}
|
|
]
|
|
]
|
|
},
|
|
},
|
|
@@ -117,23 +162,23 @@ export default {
|
|
return [
|
|
return [
|
|
[
|
|
[
|
|
[
|
|
[
|
|
- this.optionsEvensAuth(["createWorkOrder", "createWbWorkOrder"], {
|
|
|
|
- name: "创建工单",
|
|
|
|
- click: () => { }
|
|
|
|
|
|
+ this.optionsEvensAuth(['createWorkOrder', 'createWbWorkOrder'], {
|
|
|
|
+ name: '创建工单',
|
|
|
|
+ click: () => {}
|
|
}),
|
|
}),
|
|
- this.optionsEvensAuth("createWorkOrder", {
|
|
|
|
|
|
+ this.optionsEvensAuth('createWorkOrder', {
|
|
click: () => {
|
|
click: () => {
|
|
this.workOrderType = 1
|
|
this.workOrderType = 1
|
|
this.createFormBool = true
|
|
this.createFormBool = true
|
|
}
|
|
}
|
|
}),
|
|
}),
|
|
- this.optionsEvensAuth("createGCWorkOrder", {
|
|
|
|
|
|
+ this.optionsEvensAuth('createGCWorkOrder', {
|
|
click: () => {
|
|
click: () => {
|
|
this.workOrderType = 2
|
|
this.workOrderType = 2
|
|
this.createFormBool = true
|
|
this.createFormBool = true
|
|
}
|
|
}
|
|
}),
|
|
}),
|
|
- this.optionsEvensAuth("createWbWorkOrder", {
|
|
|
|
|
|
+ this.optionsEvensAuth('createWbWorkOrder', {
|
|
click: () => {
|
|
click: () => {
|
|
this.workOrderType = 4
|
|
this.workOrderType = 4
|
|
this.createFormBool = true
|
|
this.createFormBool = true
|
|
@@ -141,11 +186,14 @@ export default {
|
|
})
|
|
})
|
|
],
|
|
],
|
|
[
|
|
[
|
|
- this.optionsEvensAuth(["importTemplate", "downloadImportTemplate", 'importTemplate2', 'downloadImportTemplate2'], {
|
|
|
|
- name: '导入工单',
|
|
|
|
- click: () => { }
|
|
|
|
- }),
|
|
|
|
- this.optionsEvensAuth("importTemplate", ({ moduleName }) => {
|
|
|
|
|
|
+ this.optionsEvensAuth(
|
|
|
|
+ ['importTemplate', 'downloadImportTemplate', 'importTemplate2', 'downloadImportTemplate2'],
|
|
|
|
+ {
|
|
|
|
+ name: '导入工单',
|
|
|
|
+ click: () => {}
|
|
|
|
+ }
|
|
|
|
+ ),
|
|
|
|
+ this.optionsEvensAuth('importTemplate', ({ moduleName }) => {
|
|
return {
|
|
return {
|
|
name: moduleName,
|
|
name: moduleName,
|
|
render: () => {
|
|
render: () => {
|
|
@@ -153,7 +201,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}),
|
|
}),
|
|
- this.optionsEvensAuth("downloadImportTemplate", {
|
|
|
|
|
|
+ this.optionsEvensAuth('downloadImportTemplate', {
|
|
click: () => {
|
|
click: () => {
|
|
commonTemplateDownload({ name: '工单导入模板.xlsx' }, `${this.$route.meta.title}`)
|
|
commonTemplateDownload({ name: '工单导入模板.xlsx' }, `${this.$route.meta.title}`)
|
|
.then(res => {
|
|
.then(res => {
|
|
@@ -167,7 +215,7 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}),
|
|
}),
|
|
- this.optionsEvensAuth("importTemplate2", ({ moduleName }) => {
|
|
|
|
|
|
+ this.optionsEvensAuth('importTemplate2', ({ moduleName }) => {
|
|
return {
|
|
return {
|
|
name: moduleName,
|
|
name: moduleName,
|
|
render: () => {
|
|
render: () => {
|
|
@@ -175,7 +223,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}),
|
|
}),
|
|
- this.optionsEvensAuth("downloadImportTemplate2", {
|
|
|
|
|
|
+ this.optionsEvensAuth('downloadImportTemplate2', {
|
|
click: () => {
|
|
click: () => {
|
|
commonTemplateDownload({ name: '工单导入模板2.xlsx' }, `${this.$route.meta.title}`)
|
|
commonTemplateDownload({ name: '工单导入模板2.xlsx' }, `${this.$route.meta.title}`)
|
|
.then(res => {
|
|
.then(res => {
|
|
@@ -188,14 +236,14 @@ export default {
|
|
this.$message.error('下载失败')
|
|
this.$message.error('下载失败')
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- }),
|
|
|
|
|
|
+ })
|
|
],
|
|
],
|
|
[
|
|
[
|
|
- this.optionsEvensAuth(["bulkOrder", "lotOrder"], {
|
|
|
|
|
|
+ this.optionsEvensAuth(['bulkOrder', 'lotOrder'], {
|
|
name: '批量操作',
|
|
name: '批量操作',
|
|
- click: () => { }
|
|
|
|
|
|
+ click: () => {}
|
|
}),
|
|
}),
|
|
- this.optionsEvensAuth("bulkOrder", {
|
|
|
|
|
|
+ this.optionsEvensAuth('bulkOrder', {
|
|
click: () => {
|
|
click: () => {
|
|
if (this.recordSelected.length === 0) {
|
|
if (this.recordSelected.length === 0) {
|
|
this.$message.warning('请勾选工单')
|
|
this.$message.warning('请勾选工单')
|
|
@@ -204,7 +252,7 @@ export default {
|
|
this.reassignmentBool = true
|
|
this.reassignmentBool = true
|
|
}
|
|
}
|
|
}),
|
|
}),
|
|
- this.optionsEvensAuth("lotOrder", {
|
|
|
|
|
|
+ this.optionsEvensAuth('lotOrder', {
|
|
click: () => {
|
|
click: () => {
|
|
if (this.recordSelected.length === 0) {
|
|
if (this.recordSelected.length === 0) {
|
|
this.$message.warning('请勾选工单')
|
|
this.$message.warning('请勾选工单')
|
|
@@ -212,8 +260,8 @@ export default {
|
|
}
|
|
}
|
|
this.rescheduleBool = true
|
|
this.rescheduleBool = true
|
|
}
|
|
}
|
|
- }),
|
|
|
|
- ],
|
|
|
|
|
|
+ })
|
|
|
|
+ ]
|
|
]
|
|
]
|
|
]
|
|
]
|
|
}
|
|
}
|
|
@@ -223,7 +271,7 @@ export default {
|
|
EventBus.$on('handleOrderClone', () => {
|
|
EventBus.$on('handleOrderClone', () => {
|
|
this.handleClose()
|
|
this.handleClose()
|
|
})
|
|
})
|
|
- EventBus.$on('cloneWorkOrder', (data) => {
|
|
|
|
|
|
+ EventBus.$on('cloneWorkOrder', data => {
|
|
this.handleClose(() => {
|
|
this.handleClose(() => {
|
|
this.cloneWorkOrder = data
|
|
this.cloneWorkOrder = data
|
|
this.workOrderType = data.saleType
|
|
this.workOrderType = data.saleType
|
|
@@ -234,14 +282,14 @@ export default {
|
|
})
|
|
})
|
|
})
|
|
})
|
|
// 获取工单类型
|
|
// 获取工单类型
|
|
- listPageV2({ "pageNum": 1, "pageSize": -1, "params": [{ "param": "a.status", "compare": "=", "value": "true" }] }).then(res => {
|
|
|
|
|
|
+ listPageV2({ pageNum: 1, pageSize: -1, params: [{ param: 'a.status', compare: '=', value: 'true' }] }).then(res => {
|
|
var obj = {}
|
|
var obj = {}
|
|
res.data.records.map(item => {
|
|
res.data.records.map(item => {
|
|
if (!obj[item.orderSmallTypeText]) {
|
|
if (!obj[item.orderSmallTypeText]) {
|
|
- obj[item.orderSmallTypeText] = ({
|
|
|
|
|
|
+ obj[item.orderSmallTypeText] = {
|
|
value: item.orderSmallTypeText,
|
|
value: item.orderSmallTypeText,
|
|
label: item.orderSmallTypeText
|
|
label: item.orderSmallTypeText
|
|
- })
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
})
|
|
})
|
|
this.orderTypeList = Object.values(obj)
|
|
this.orderTypeList = Object.values(obj)
|
|
@@ -249,7 +297,7 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
initFun() {
|
|
initFun() {
|
|
- if (this.pageType == "detail") {
|
|
|
|
|
|
+ if (this.pageType == 'detail') {
|
|
this.id = this.pageCode
|
|
this.id = this.pageCode
|
|
orderBaseDetail({
|
|
orderBaseDetail({
|
|
orderBaseId: this.id
|
|
orderBaseId: this.id
|
|
@@ -260,22 +308,30 @@ export default {
|
|
})
|
|
})
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- if (this.pageType == "saleOrderId") {
|
|
|
|
- this.defaultSearchData = [{ "param": "a.sale_order_id", "compare": "=", "value": this.pageCode, label: "销售订单号" }]
|
|
|
|
|
|
+ if (this.pageType == 'saleOrderId') {
|
|
|
|
+ this.defaultSearchData = [{ param: 'a.sale_order_id', compare: '=', value: this.pageCode, label: '销售订单号' }]
|
|
}
|
|
}
|
|
- if (this.pageType == "pgIncreItemId") {
|
|
|
|
- this.defaultSearchData = [{ "param": "a.pg_incre_order_id", "compare": "=", "value": this.pageCode, label: "增置服务订单ID" }]
|
|
|
|
|
|
+ if (this.pageType == 'pgIncreItemId') {
|
|
|
|
+ this.defaultSearchData = [
|
|
|
|
+ { param: 'a.pg_incre_order_id', compare: '=', value: this.pageCode, label: '增置服务订单ID' }
|
|
|
|
+ ]
|
|
}
|
|
}
|
|
- if (this.pageType == "rpProjectRepairId") {
|
|
|
|
- this.defaultSearchData = [{ "param": "a.rp_project_repair_id", "compare": "=", "value": this.pageCode, label: "维保配置ID" }]
|
|
|
|
|
|
+ if (this.pageType == 'rpProjectRepairId') {
|
|
|
|
+ this.defaultSearchData = [
|
|
|
|
+ { param: 'a.rp_project_repair_id', compare: '=', value: this.pageCode, label: '维保配置ID' }
|
|
|
|
+ ]
|
|
}
|
|
}
|
|
- if (this.pageType == "projectNo") {
|
|
|
|
- this.defaultSearchData = [{ "param": "a.project_no", "compare": "=", "value": this.pageCode, label: "工程编号" }]
|
|
|
|
|
|
+ if (this.pageType == 'projectNo') {
|
|
|
|
+ this.defaultSearchData = [{ param: 'a.project_no', compare: '=', value: this.pageCode, label: '工程编号' }]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
selectable(row, index) {
|
|
selectable(row, index) {
|
|
- return !["YWG", "YJS", "YQX"].includes(Object.entries(row.selectMapData.orderStatus).find(([key, val]) => val == row.orderStatus)?.[0]) && !row.rpProjectRepairId
|
|
|
|
|
|
+ return (
|
|
|
|
+ !['YWG', 'YJS', 'YQX'].includes(
|
|
|
|
+ Object.entries(row.selectMapData.orderStatus).find(([key, val]) => val == row.orderStatus)?.[0]
|
|
|
|
+ ) && !row.rpProjectRepairId
|
|
|
|
+ )
|
|
},
|
|
},
|
|
|
|
|
|
screeningAnalysis(jname, val) {
|
|
screeningAnalysis(jname, val) {
|
|
@@ -296,46 +352,60 @@ export default {
|
|
// 获取统计
|
|
// 获取统计
|
|
getOrderBaseStatusCount(...p) {
|
|
getOrderBaseStatusCount(...p) {
|
|
orderBaseStatusCount(...p).then(res => {
|
|
orderBaseStatusCount(...p).then(res => {
|
|
- this.orderStatusList = [{
|
|
|
|
- label: "待预约",
|
|
|
|
- value: "DYY"
|
|
|
|
- }, {
|
|
|
|
- label: "待抢单",
|
|
|
|
- value: "DQD"
|
|
|
|
- }, {
|
|
|
|
- label: "待商户派工",
|
|
|
|
- value: "DSHPG"
|
|
|
|
- }, {
|
|
|
|
- label: "待网点派工",
|
|
|
|
- value: "DWDPG"
|
|
|
|
- }, {
|
|
|
|
- label: "待接单",
|
|
|
|
- value: "DJD"
|
|
|
|
- }, {
|
|
|
|
- label: "服务中",
|
|
|
|
- value: "FWZ"
|
|
|
|
- }, {
|
|
|
|
- label: "异常单",
|
|
|
|
- value: "YCD"
|
|
|
|
- }, {
|
|
|
|
- label: "已完工待结算",
|
|
|
|
- value: "YWG"
|
|
|
|
- }, {
|
|
|
|
- label: "已结算",
|
|
|
|
- value: "YJS"
|
|
|
|
- }, {
|
|
|
|
- label: "已取消",
|
|
|
|
- value: "YQX"
|
|
|
|
- }, {
|
|
|
|
- label: "配件申请中",
|
|
|
|
- value: "PJSQZ"
|
|
|
|
- }, {
|
|
|
|
- label: "配件已到货",
|
|
|
|
- value: "PJYDH"
|
|
|
|
- }, {
|
|
|
|
- label: "配件已取消",
|
|
|
|
- value: "PJYQX"
|
|
|
|
- }].map(item => {
|
|
|
|
|
|
+ this.orderStatusList = [
|
|
|
|
+ {
|
|
|
|
+ label: '待预约',
|
|
|
|
+ value: 'DYY'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '待抢单',
|
|
|
|
+ value: 'DQD'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '待商户派工',
|
|
|
|
+ value: 'DSHPG'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '待网点派工',
|
|
|
|
+ value: 'DWDPG'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '待接单',
|
|
|
|
+ value: 'DJD'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '服务中',
|
|
|
|
+ value: 'FWZ'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '异常单',
|
|
|
|
+ value: 'YCD'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '已完工待结算',
|
|
|
|
+ value: 'YWG'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '已结算',
|
|
|
|
+ value: 'YJS'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '已取消',
|
|
|
|
+ value: 'YQX'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '配件申请中',
|
|
|
|
+ value: 'PJSQZ'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '配件已到货',
|
|
|
|
+ value: 'PJYDH'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '配件已取消',
|
|
|
|
+ value: 'PJYQX'
|
|
|
|
+ }
|
|
|
|
+ ].map(item => {
|
|
var data = res.data.find(val => val.orderStatus == item.value)
|
|
var data = res.data.find(val => val.orderStatus == item.value)
|
|
if (data) {
|
|
if (data) {
|
|
item.label = `${item.label}(${data.total})`
|
|
item.label = `${item.label}(${data.total})`
|
|
@@ -350,17 +420,17 @@ export default {
|
|
var pam = JSON.parse(JSON.stringify(p))
|
|
var pam = JSON.parse(JSON.stringify(p))
|
|
try {
|
|
try {
|
|
if (pam.orderStatus) {
|
|
if (pam.orderStatus) {
|
|
- pam.params.push({ "param": "a.order_status", "compare": "=", "value": pam.orderStatus })
|
|
|
|
|
|
+ pam.params.push({ param: 'a.order_status', compare: '=', value: pam.orderStatus })
|
|
}
|
|
}
|
|
if (pam.orderSmallTypeText) {
|
|
if (pam.orderSmallTypeText) {
|
|
- pam.params.push({ "param": "a.order_small_type_text", "compare": "=", "value": pam.orderSmallTypeText })
|
|
|
|
|
|
+ pam.params.push({ param: 'a.order_small_type_text', compare: '=', value: pam.orderSmallTypeText })
|
|
}
|
|
}
|
|
cb && cb(pam)
|
|
cb && cb(pam)
|
|
return orderBaseList(pam)
|
|
return orderBaseList(pam)
|
|
} catch (err) {
|
|
} catch (err) {
|
|
} finally {
|
|
} finally {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
- this.getOrderBaseStatusCount({ orderSmallTypeText: pam.orderSmallTypeText || "" })
|
|
|
|
|
|
+ this.getOrderBaseStatusCount({ orderSmallTypeText: pam.orderSmallTypeText || '' })
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -378,7 +448,9 @@ export default {
|
|
edit: {
|
|
edit: {
|
|
click: ({ row, index, column }) => {
|
|
click: ({ row, index, column }) => {
|
|
this.id = row.id
|
|
this.id = row.id
|
|
- this.workOrderType = Number(Object.entries(row?.selectMapData?.saleType || {}).find(([key, val]) => val == row.saleType)?.[0] || 1)
|
|
|
|
|
|
+ this.workOrderType = Number(
|
|
|
|
+ Object.entries(row?.selectMapData?.saleType || {}).find(([key, val]) => val == row.saleType)?.[0] || 1
|
|
|
|
+ )
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.detailFormBool = true
|
|
this.detailFormBool = true
|
|
})
|
|
})
|
|
@@ -389,7 +461,7 @@ export default {
|
|
|
|
|
|
handleClose(cb) {
|
|
handleClose(cb) {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
- name: "workOrderPool",
|
|
|
|
|
|
+ name: 'workOrderPool',
|
|
params: {},
|
|
params: {},
|
|
query: {}
|
|
query: {}
|
|
})
|
|
})
|
|
@@ -415,8 +487,7 @@ export default {
|
|
this.reassignmentBool = false
|
|
this.reassignmentBool = false
|
|
this.recordSelected = []
|
|
this.recordSelected = []
|
|
this.$refs?.pageRef?.refreshList()
|
|
this.$refs?.pageRef?.refreshList()
|
|
- },
|
|
|
|
-
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|