components/WorkOrderPrint.vue
@@ -144,6 +144,7 @@ </view> </view> <!-- 禁用按钮:‘保存并生效'、‘取消’ --> <!--<view class="bottom-section"> <button class="save-btn" @click="save">保存并生效</button> <button class="cancel-btn" @click="cancel">取消</button> @@ -341,6 +342,7 @@ this.user = this.user === u ? null : u; this.staffNo = this.user; }, //选择报工人 confirmCustomAmount() { if (!this.customAmount || isNaN(Number(this.customAmount))) { this.$showMessage('请输入有效的数量'); return; } if (!this.staffNo) { this.$showMessage('请选择报工人'); return; }