浏览代码

Merge pull request #64 from tron/release-2.5.0

feat:(KIP-9001): 临时停车,用户在设置抬头的时候,选择单位抬头的话,不填写抬头名称和公司税号,点击保存,应该提示用户去填写信息
Tron 2 年之前
父节点
当前提交
3bc22cc833
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/pages/parkingFee/mixins/parkingReceipt/parkingChangeHeader.js

+ 8 - 0
src/pages/parkingFee/mixins/parkingReceipt/parkingChangeHeader.js

@@ -148,6 +148,14 @@ export default {
     // 添加、编辑抬头信息
     submit: async function () {
       let res = null
+      if (!this.condition.titleName)  return uni.showToast({
+        title: '请填写抬头名称',
+        icon: 'none',
+      });
+      if (!this.condition.taxNo) return uni.showToast({
+          title: '请填写公司税号',
+          icon: 'none',
+        });
       try {
         if ( this.isCompany ) {
           if ( !this.condition?.titleName ) {