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

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

@ -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) {

Loading…
Cancel
Save