lilei %!s(int64=2) %!d(string=hai) anos
pai
achega
e2e34aeff8

+ 1 - 1
public/version.json

@@ -1,4 +1,4 @@
 {
-    "version": "2.2.3",
+    "version": "2.2.1",
     "message": "发现有新版本发布,确定更新系统?"
 }

+ 7 - 4
src/libs/tools.js

@@ -483,8 +483,11 @@ export const checkIdNumberValid = (tex) => {
 }
 // 清除空格和特殊字符
 export const removeEmptyStr = function(str){
-  var strs=str.toString()
-  strs= strs.replace(/^\s+|\s+$/gm,'');
-  strs=strs.replace(/[`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘',。、]/im,'');
-  return strs;
+  if(str){
+    var strs=str.toString()
+    strs= strs.replace(/^\s+|\s+$/gm,'');
+    strs=strs.replace(/[`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘',。、]/im,'');
+    return strs;
+  }
+  return '';
 }

+ 2 - 0
src/views/financialManagement/collectionDetailStatic/plInvoiceModal.vue

@@ -137,6 +137,8 @@
       cancel () {
         this.opened = false
         this.$emit('cancel')
+        this.form.invoiceDate = undefined
+        this.form.remarks = ''
         this.$refs.ruleForm.resetFields()
       }
     },