快乐的昕的电脑
2025-10-22 55e4eea391a6175166f4b727d89368f7ca9e463d
刷新工单数据
已修改1个文件
22 ■■■■ 文件已修改
components/machine.vue 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
components/machine.vue
@@ -114,9 +114,23 @@
                this.maEndTime = this.$getDate('yyyy-mm-dd hh24:mi:ss');
            },
            // 刷新工单数据
            refresh() {
                this.findByOrderId();
            },
            refresh() {
                this.findByOrderId();
            }
            findByOrderId() {
                this.$post({
                    url: "/MesOrderSta/FindByOrderNo",
                    data: {
                        orderId: this.orderId,
                        orderNo: this.orderNo
                    }
                }).then(res => {
                    this.statusForm = res.data.tbBillList;
                    this.maShoutTime = res.data.tbBillList.maShoutTime;
                    this.maStartTime = res.data.tbBillList.maStartTime;
                    this.maEndTime = res.data.tbBillList.maEndTime;
                });
            },
            // 保存并生效,将时间等信息提交到后端
            save() {
                if (!this.statusForm.id) {
@@ -141,8 +155,6 @@
                }).then(res => {
                    if (res.data.tbBillList) {
                        this.$showMessage("呼叫成功");
                        this.findByOrderId();
                        this.FindByOrderNo();// 保存后刷新
                        this.refresh(); // 保存后刷新
                    } else {
                        this.$showMessage("呼叫失败");