|
|
@@ -115,7 +115,7 @@
|
|
|
type="text"
|
|
|
size="small"
|
|
|
@click="
|
|
|
- deliveryVisible = true;
|
|
|
+ scope.row.deliveryVisible = true;
|
|
|
workId = 0;
|
|
|
"
|
|
|
>
|
|
|
@@ -125,7 +125,7 @@
|
|
|
<template v-if="workers != null">
|
|
|
<el-dialog
|
|
|
title="指定维修人员"
|
|
|
- :visible.sync="deliveryVisible"
|
|
|
+ :visible.sync="scope.row.deliveryVisible"
|
|
|
width="30%"
|
|
|
append-to-body
|
|
|
>
|
|
|
@@ -138,7 +138,9 @@
|
|
|
>
|
|
|
</el-radio-group>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="deliveryVisible = false">取 消</el-button>
|
|
|
+ <el-button @click="scope.row.deliveryVisible = false"
|
|
|
+ >取 消</el-button
|
|
|
+ >
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
@click="deliverOrder(scope.row.orderId, workId)"
|
|
|
@@ -152,7 +154,7 @@
|
|
|
type="text"
|
|
|
size="small"
|
|
|
@click="
|
|
|
- backVisible = true;
|
|
|
+ scope.row.backVisible = true;
|
|
|
orderBack = '';
|
|
|
"
|
|
|
>退回</el-button
|
|
|
@@ -160,7 +162,7 @@
|
|
|
<!-- 退单弹窗 -->
|
|
|
<el-dialog
|
|
|
title="退回声明"
|
|
|
- :visible.sync="backVisible"
|
|
|
+ :visible.sync="scope.row.backVisible"
|
|
|
width="30%"
|
|
|
append-to-body
|
|
|
>
|
|
|
@@ -172,7 +174,9 @@
|
|
|
>
|
|
|
</el-input>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="backVisible = false">取 消</el-button>
|
|
|
+ <el-button @click="scope.row.backVisible = false"
|
|
|
+ >取 消</el-button
|
|
|
+ >
|
|
|
<el-button type="primary" @click="backOrder(scope.row.orderId)"
|
|
|
>确 定</el-button
|
|
|
>
|
|
|
@@ -276,9 +280,13 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
.then(({ data }) => {
|
|
|
- // console.log(data.data);
|
|
|
this.tableData = [];
|
|
|
this.tableData = data.data.list;
|
|
|
+ this.tableData.forEach(ite => {
|
|
|
+ this.$set(ite, "deliveryVisible", false);
|
|
|
+ this.$set(ite, "backVisible", false);
|
|
|
+ });
|
|
|
+ // console.log(this.tableData);
|
|
|
loading.close();
|
|
|
})
|
|
|
.catch(err => {
|
|
|
@@ -301,6 +309,11 @@ export default {
|
|
|
// console.log(data.data.list);
|
|
|
this.tableData = [];
|
|
|
this.tableData = data.data.list;
|
|
|
+ this.tableData.forEach(ite => {
|
|
|
+ this.$set(ite, "deliveryVisible", false);
|
|
|
+ this.$set(ite, "backVisible", false);
|
|
|
+ });
|
|
|
+ // console.log(this.tableData);
|
|
|
loading.close();
|
|
|
})
|
|
|
.catch(err => {
|
|
|
@@ -335,14 +348,15 @@ export default {
|
|
|
});
|
|
|
} else {
|
|
|
// console.log(data.data);
|
|
|
- // this.detailObj = {};
|
|
|
+ this.imgArr = null;
|
|
|
this.detailObj = data.data;
|
|
|
this.$set(this.detailObj, "detailVisible", true);
|
|
|
- this.imgArr = this.detailObj.orderImages.match(/[^\;]+/g);
|
|
|
- this.imgArr = this.imgArr.map(ite => {
|
|
|
- return { innerVisible: false, img: ite };
|
|
|
- });
|
|
|
- // console.log(this.imgArr);
|
|
|
+ if (this.detailObj.orderImages) {
|
|
|
+ this.imgArr = this.detailObj.orderImages.match(/[^\;]+/g);
|
|
|
+ this.imgArr = this.imgArr.map(ite => {
|
|
|
+ return { innerVisible: false, img: ite };
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
.catch(err => {
|
|
|
@@ -384,12 +398,12 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
if (data.status == 200) {
|
|
|
- // console.log(data.data);
|
|
|
+ console.log(order_id);
|
|
|
this.$message({
|
|
|
message: "派送成功",
|
|
|
type: "success"
|
|
|
});
|
|
|
- this.getDeliOrderList();
|
|
|
+ this.getAllOrderList(this.sear_data, this.orderList);
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -409,7 +423,7 @@ export default {
|
|
|
message: "已退回",
|
|
|
type: "success"
|
|
|
});
|
|
|
- this.getDeliOrderList();
|
|
|
+ this.getAllOrderList(this.sear_data, this.orderList);
|
|
|
}
|
|
|
},
|
|
|
//导出表格
|