| | |
| | | <text class="form-label required">数量</text> |
| | | <up-input v-model="editForm.qualitity" type="number" placeholder="请输入数量" /> |
| | | </view> |
| | | <view class="form-row"> |
| | | <text class="form-label required">采购员</text> |
| | | <up-input v-model="editForm.purchaser" placeholder="请输入采购员" /> |
| | | </view> |
| | | </scroll-view> |
| | | <view class="popup-footer"> |
| | | <view class="btn-cancel" @click="showEditModal = false">取消</view> |
| | |
| | | const editForm = reactive({ |
| | | id: null, |
| | | qualitity: "", |
| | | purchaser: "", |
| | | }); |
| | | |
| | | const handleEdit = (row) => { |
| | | if (!hasCDispatchEdit.value) return; |
| | | editForm.id = row?.id ?? null; |
| | | editForm.qualitity = row?.qualitity ?? row?.stockOutNum ?? ""; |
| | | editForm.purchaser = row?.purchaser ?? ""; |
| | | showEditModal.value = true; |
| | | }; |
| | | |
| | |
| | | uni.showToast({ title: "请输入正确数量", icon: "none" }); |
| | | return; |
| | | } |
| | | if (!editForm.purchaser) { |
| | | uni.showToast({ title: "请输入采购员", icon: "none" }); |
| | | return; |
| | | } |
| | | |
| | | uni.showLoading({ title: "保存中...", mask: true }); |
| | | editStockOut({ |
| | | id: editForm.id, |
| | | qualitity: q, |
| | | purchaser: editForm.purchaser, |
| | | }) |
| | | .then(() => { |
| | | uni.showToast({ title: "编辑成功", icon: "success" }); |