ezhizao_zx 1 год назад
Родитель
Сommit
5bbe4d13a4

+ 8 - 2
src/views/business/crm/order/importExcelDialog.vue

@@ -75,8 +75,14 @@
     </el-form>
     <template #footer>
       <div class="dialog-footer">
-        <el-button type="primary" @click="submitForm">确 定</el-button>
-        <el-button @click="cancel">取 消</el-button>
+        <el-button
+          type="primary"
+          icon="Finished"
+          size="small"
+          @click="submitForm"
+          >确 定</el-button
+        >
+        <el-button icon="Clsoe" size="small" @click="cancel">取 消</el-button>
       </div>
     </template>
   </el-dialog>

+ 4 - 0
src/views/business/crm/order/index.vue

@@ -684,6 +684,10 @@ function handleAlter() {
     proxy.$modal.msgError("未审核合同无法变更!");
     return;
   }
+  if (row.status == 9) {
+    proxy.$modal.msgError("已解除合同无法变更!");
+    return;
+  }
   proxy.$refs.contractRef.openSimple(id, "alterOrder");
 }
 

+ 5 - 1
src/views/business/financial/contract/form.vue

@@ -610,6 +610,10 @@ function handleScreen() {
 
 /** 提交按钮 */
 function submitForm() {
+  if (form.value.arriveAmount > form.value.contractAmount) {
+    proxy.$modal.msgError("实际收款金额不能大于合同收款金额");
+    return;
+  }
   proxy.$refs["orderRef"].validate((valid) => {
     if (valid && detailValid()) {
       const formValue = form.value;
@@ -619,8 +623,8 @@ function submitForm() {
           setCollectionStatus(archiveInput.value);
           proxy.$message.success("保存成功");
         }
-        getList.value();
         cancel();
+        getList.value();
       });
     }
   });