|
@@ -17,15 +17,18 @@
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
<!-- 批量预约/改约 -->
|
|
|
- <!-- <div class="cartographer_big">
|
|
|
- <el-dialog title="批量预约" width="100%" :modal="false" :visible.sync="false" :before-close="() => { }">
|
|
|
+ <div class="cartographer_big">
|
|
|
+ <el-dialog title="批量预约 / 改约" width="100%" :modal="false" :visible.sync="rescheduleBool" :before-close="rescheduleClose">
|
|
|
+ <Reschedule v-if="rescheduleBool" />
|
|
|
</el-dialog>
|
|
|
- </div> -->
|
|
|
+ </div>
|
|
|
<!-- 批量派工/改派 -->
|
|
|
- <!-- <div class="cartographer_big">
|
|
|
- <el-dialog title="批量派工" width="100%" :modal="false" :visible.sync="false" :before-close="() => { }">
|
|
|
+ <div class="cartographer_big">
|
|
|
+ <el-dialog title="批量派工 / 改派" width="100%" :modal="false" :visible.sync="reassignmentBool"
|
|
|
+ :before-close="reassignmentClose">
|
|
|
+ <Reassignment v-if="reassignmentBool" />
|
|
|
</el-dialog>
|
|
|
- </div> -->
|
|
|
+ </div>
|
|
|
</template-page>
|
|
|
</template>
|
|
|
|
|
@@ -33,15 +36,19 @@
|
|
|
import { EventBus } from '@/utils/eventBus'
|
|
|
import TemplatePage from '@/components/template/template-page-1.vue'
|
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
|
+import { listPageV2 } from "@/api/workOrder/orderType";
|
|
|
+import { orderBaseList, orderBaseListExport, orderBaseStatusCount } from "@/api/workOrderPool.js"
|
|
|
import workOrderInfo from './detailModule/workOrderInfo/index.vue'
|
|
|
import Detail from './detail'
|
|
|
-import { orderBaseList, orderBaseListExport, orderBaseStatusCount } from "@/api/workOrderPool.js"
|
|
|
-import { listPageV2 } from "@/api/workOrder/orderType";
|
|
|
+import Reassignment from "./components/reassignment/index.vue"
|
|
|
+import Reschedule from "./components/reschedule/index.vue"
|
|
|
export default {
|
|
|
components: {
|
|
|
TemplatePage,
|
|
|
workOrderInfo,
|
|
|
Detail,
|
|
|
+ Reassignment,
|
|
|
+ Reschedule
|
|
|
},
|
|
|
mixins: [import_mixin],
|
|
|
data() {
|
|
@@ -51,6 +58,10 @@ export default {
|
|
|
createFormBool: false,
|
|
|
// 详情
|
|
|
detailFormBool: false,
|
|
|
+ // 批量改约
|
|
|
+ rescheduleBool: false,
|
|
|
+ // 批量派工/改派
|
|
|
+ reassignmentBool: false,
|
|
|
// 表格属性
|
|
|
tableAttributes: {
|
|
|
// 启用勾选列
|
|
@@ -136,15 +147,15 @@ export default {
|
|
|
click: () => { }
|
|
|
},
|
|
|
{
|
|
|
- name: '批量下派工程师',
|
|
|
+ name: '批量下派改派',
|
|
|
click: () => {
|
|
|
-
|
|
|
+ this.reassignmentBool = true
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- name: '批量改约',
|
|
|
+ name: '批量预约改约',
|
|
|
click: () => {
|
|
|
-
|
|
|
+ this.rescheduleBool = true
|
|
|
}
|
|
|
},
|
|
|
],
|
|
@@ -179,19 +190,6 @@ export default {
|
|
|
return row[column['property']] === value
|
|
|
},
|
|
|
|
|
|
- handleClose() {
|
|
|
- // this.$router.push({
|
|
|
- // name: "workOrderPool",
|
|
|
- // params: {},
|
|
|
- // query: {}
|
|
|
- // })
|
|
|
- this.$nextTick(() => {
|
|
|
- this.createFormBool = false
|
|
|
- this.detailFormBool = false
|
|
|
- this.$refs?.pageRef?.refreshList()
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
// 列表请求函数
|
|
|
getList(p, cb) {
|
|
|
try {
|
|
@@ -213,8 +211,10 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
// 列表导出函数
|
|
|
exportList: orderBaseListExport,
|
|
|
+
|
|
|
// 表格列解析渲染数据更改
|
|
|
columnParsing(item, defaultData) {
|
|
|
if (item.jname === 'orderFlags') {
|
|
@@ -234,10 +234,12 @@ export default {
|
|
|
}
|
|
|
return defaultData
|
|
|
},
|
|
|
+
|
|
|
// 监听勾选变化
|
|
|
selectionChange(data) {
|
|
|
this.recordSelected = data
|
|
|
},
|
|
|
+
|
|
|
operation(h, { row, index, column }) {
|
|
|
return (
|
|
|
<div class='operation-btns'>
|
|
@@ -249,7 +251,31 @@ export default {
|
|
|
}}>编辑</el-button>
|
|
|
</div>
|
|
|
)
|
|
|
- }
|
|
|
+ },
|
|
|
+
|
|
|
+ handleClose() {
|
|
|
+ this.$router.push({
|
|
|
+ name: "workOrderPool",
|
|
|
+ params: {},
|
|
|
+ query: {}
|
|
|
+ })
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.createFormBool = false
|
|
|
+ this.detailFormBool = false
|
|
|
+ this.$refs?.pageRef?.refreshList()
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ rescheduleClose() {
|
|
|
+ this.rescheduleBool = false
|
|
|
+ this.recordSelected = []
|
|
|
+ },
|
|
|
+
|
|
|
+ reassignmentClose() {
|
|
|
+ this.reassignmentBool = false
|
|
|
+ this.recordSelected = []
|
|
|
+ },
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</script>
|