快乐的昕的电脑
2025-10-15 60d86fd0cb2c2328f02410334b653d88e38cc6e1
前端传递报工人编号到后端
已修改1个文件
10 ■■■■■ 文件已修改
components/WorkOrderPrint.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
components/WorkOrderPrint.vue
@@ -276,10 +276,18 @@
            },
            confirmCustomAmount() {
                if (!this.customAmount || isNaN(Number(this.customAmount))) { this.$showMessage('请输入有效的数量'); return; }
                if (!this.staffNo) { this.$showMessage('请选择报工人'); return; }//传递报工人
                // 拆分工号和姓名,取工号
                const staffNo = this.staffNo.split(':')[0];
                const amount = Number(this.customAmount);
                this.$post({
                    url: "/MesInvItemBarcodes/AddBFToBarcodes",
                    data: { orderNo: this.orderNo, orderId: this.orderId, bf: amount }
                    data: {
                        orderNo: this.orderNo,
                        orderId: this.orderId,
                        bf: amount
                        staffNo: staffNo //报工人编号
                    }
                }).then(res => {
                    if (res.status == 1) { this.$showMessage(res.message); return; }
                    this.$showMessage('报废数量填写成功');