| | |
| | | <template #footer> |
| | | <span class="dialog-footer"> |
| | | <el-button type="primary" |
| | | :loading="reportSubmitting" |
| | | @click="handleReport">确定</el-button> |
| | | <el-button @click="reportDialogVisible = false">取消</el-button> |
| | | </span> |
| | |
| | | const transferCardQrUrl = ref(""); |
| | | const transferCardRowData = ref(null); |
| | | const reportDialogVisible = ref(false); |
| | | const reportSubmitting = ref(false); |
| | | const workOrderFilesRef = ref(null); |
| | | const reportFormRef = ref(null); |
| | | const userOptions = ref([]); |
| | |
| | | }; |
| | | |
| | | const handleReport = () => { |
| | | if (reportSubmitting.value) { |
| | | return; |
| | | } |
| | | reportFormRef.value?.validate(valid => { |
| | | if (!valid) { |
| | | return false; |
| | |
| | | productMainId: reportForm.productMainId, |
| | | }; |
| | | |
| | | reportSubmitting.value = true; |
| | | |
| | | addProductMain(params) |
| | | .then(res => { |
| | | proxy.$modal.msgSuccess("报工成功"); |
| | |
| | | // ElMessageBox.alert("报工失败", "提示", { |
| | | // confirmButtonText: "确定", |
| | | // }); |
| | | }) |
| | | .finally(() => { |
| | | reportSubmitting.value = false; |
| | | }); |
| | | }); |
| | | }; |