|
@@ -18,8 +18,7 @@
|
|
</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>
|
|
@@ -66,7 +65,8 @@ export default {
|
|
// 表格属性
|
|
// 表格属性
|
|
tableAttributes: {
|
|
tableAttributes: {
|
|
// 启用勾选列
|
|
// 启用勾选列
|
|
- selectColumn: true
|
|
|
|
|
|
+ selectColumn: true,
|
|
|
|
+ selectable: this.selectable
|
|
},
|
|
},
|
|
// 表格事件
|
|
// 表格事件
|
|
tableEvents: {
|
|
tableEvents: {
|
|
@@ -148,7 +148,7 @@ export default {
|
|
click: () => { }
|
|
click: () => { }
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- name: '批量下派改派',
|
|
|
|
|
|
+ name: '批量派单',
|
|
click: () => {
|
|
click: () => {
|
|
if (this.recordSelected.length === 0) {
|
|
if (this.recordSelected.length === 0) {
|
|
this.$message.warning('请勾选工单')
|
|
this.$message.warning('请勾选工单')
|
|
@@ -158,7 +158,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- name: '批量预约改约',
|
|
|
|
|
|
+ name: '批量约单',
|
|
click: () => {
|
|
click: () => {
|
|
if (this.recordSelected.length === 0) {
|
|
if (this.recordSelected.length === 0) {
|
|
this.$message.warning('请勾选工单')
|
|
this.$message.warning('请勾选工单')
|
|
@@ -185,6 +185,9 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ selectable(row, index) {
|
|
|
|
+ return !["YWG", "YJS", "YQX"].includes(Object.entries(row.selectMapData.orderStatus).find(([key, val]) => val == row.orderStatus)?.[0])
|
|
|
|
+ },
|
|
screeningAnalysis(jname, val) {
|
|
screeningAnalysis(jname, val) {
|
|
if (jname == 'orderFlags') {
|
|
if (jname == 'orderFlags') {
|
|
return (val || []).map(item => item.tagName).join(',')
|
|
return (val || []).map(item => item.tagName).join(',')
|