|
|
@ -403,6 +403,7 @@
|
|
|
|
type="primary"
|
|
|
|
type="primary"
|
|
|
|
plain
|
|
|
|
plain
|
|
|
|
icon="el-icon-edit"
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
|
|
|
:disabled="single"
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
@click="handleUpdate"
|
|
|
|
@click="handleUpdate"
|
|
|
|
v-hasPermi="['device:upkeepOrder:edit']"
|
|
|
|
v-hasPermi="['device:upkeepOrder:edit']"
|
|
|
@ -1581,6 +1582,7 @@ export default {
|
|
|
|
loading: true,
|
|
|
|
loading: true,
|
|
|
|
// 选中数组
|
|
|
|
// 选中数组
|
|
|
|
ids: [],
|
|
|
|
ids: [],
|
|
|
|
|
|
|
|
selsectOrderCode: [],
|
|
|
|
// 多个保养单号
|
|
|
|
// 多个保养单号
|
|
|
|
orderCodes: [],
|
|
|
|
orderCodes: [],
|
|
|
|
// 非单个禁用
|
|
|
|
// 非单个禁用
|
|
|
@ -2173,6 +2175,7 @@ export default {
|
|
|
|
// 多选框选中数据
|
|
|
|
// 多选框选中数据
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
this.ids = selection.map((item) => item.orderId);
|
|
|
|
this.ids = selection.map((item) => item.orderId);
|
|
|
|
|
|
|
|
this.selsectOrderCode = selection.map((item) => item.orderCode);
|
|
|
|
this.orderCodes = selection.map((item) => item.orderCode);
|
|
|
|
this.orderCodes = selection.map((item) => item.orderCode);
|
|
|
|
console.log('this.ids',this.ids);
|
|
|
|
console.log('this.ids',this.ids);
|
|
|
|
console.log('this.orderCodes',this.orderCodes);
|
|
|
|
console.log('this.orderCodes',this.orderCodes);
|
|
|
@ -2190,7 +2193,7 @@ export default {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
this.recordList = [];
|
|
|
|
this.recordList = [];
|
|
|
|
const orderCode = row.orderCode || this.ids;
|
|
|
|
const orderCode = row.orderCode || this.selsectOrderCode;
|
|
|
|
getDeviceOrder(orderCode).then((response) => {
|
|
|
|
getDeviceOrder(orderCode).then((response) => {
|
|
|
|
this.form = response.data;
|
|
|
|
this.form = response.data;
|
|
|
|
if (response.data.timeArray[0] == null) {
|
|
|
|
if (response.data.timeArray[0] == null) {
|
|
|
|