lichao %!s(int64=3) %!d(string=hai) anos
pai
achega
a8775660f2
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/views/businessManagement/salesOrder/index.vue

+ 2 - 1
src/views/businessManagement/salesOrder/index.vue

@@ -574,7 +574,8 @@ export default {
     },
     // 生成采购
     saveSell(row) {
-      this.$confirm(row.createPurchase == 1? "已经生成过采购单,是否继续生成?": "是否生成采购单?", {
+      if ((Number(row.settlmentAmount) < Number(row.debitAmount)) && row.specialCheckStatus != 3) return this.$message.error('收款未收齐,禁止生成采购单');
+      this.$confirm("是否生成采购单?", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning"