|
@@ -94,7 +94,8 @@ import {
|
|
|
getReceipt,
|
|
|
addReceipt,
|
|
|
updateReceipt,
|
|
|
- checkFurnace
|
|
|
+ checkFurnace,
|
|
|
+ checkAllowMore
|
|
|
} from "@/api/business/returnReceipt";
|
|
|
import dialogOutsourceDetails from "./DialogOutsourceDetails";
|
|
|
import { getTenant } from "@/utils/auth";
|
|
@@ -246,6 +247,12 @@ function submitForm() {
|
|
|
flag = false
|
|
|
proxy.$modal.msgError(checkRes.msg)
|
|
|
}
|
|
|
+ const checkMore = await checkAllowMore(form.value.details);
|
|
|
+ if (!checkMore.data) {
|
|
|
+ flog = false
|
|
|
+ proxy.$modal.msgError(checkRes.msg)
|
|
|
+ }
|
|
|
+ // 判断是否一箱多批
|
|
|
if (flag) {
|
|
|
form.value.isSubmit = 1;
|
|
|
form.value.submitTime = proxy.moment().format("YYYY-MM-DD HH:mm:ss");
|