2024-09-11 设备-保养工单上方填写按钮

yangwl
元气满满(jgy) 2 months ago
parent c2af175544
commit 67d69833ba

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

Loading…
Cancel
Save