@@ -31,21 +31,21 @@
- checkName(val, form, 'userName')">
+ checkName(val, form, 'userName')">
-
+
-
+
- ismoney(val, form, 'serviceCharge')" ref="serviceCharge">
+ ismoney(val, form, 'serviceCharge')" ref="serviceCharge">
@@ -160,6 +160,13 @@ export default{
message: '请输入手续费',
trigger: 'blur'
}
+ ],
+ money: [
+ {
+ required: true,
+ message: '请输入金额',
+ trigger: 'blur'
+ }
]
}
}
@@ -205,6 +212,7 @@ export default{
})
},
submitForm(){
+ console.log(this.form.money)
this.$refs.form.validate(myValidate(() => {
this.visible = true;
}, this.$refs));
diff --git a/src/store/modules/system.js b/src/store/modules/system.js
index c594c1d..5742519 100644
--- a/src/store/modules/system.js
+++ b/src/store/modules/system.js
@@ -1435,6 +1435,10 @@ export default {
importanceArr: [], // 重要空白凭证箱
commonArr: [], // 普通凭证箱
+
+ needsModule: {
+ 'controlCash2/cashRecipients' : false
+ },
},
'项目二十二': {
id: 510,
@@ -1456,9 +1460,13 @@ export default {
importanceArr: [], // 重要空白凭证箱
commonArr: [], // 普通凭证箱
+
+ needsModule: {
+ 'controlCash2/cashTransferInto' : false
+ },
},
'项目二十三': {
- id: '',
+ id: 511,
data: [ ], //
needs: [ 438 ],
isStamp: {
@@ -1477,9 +1485,13 @@ export default {
importanceArr: [], // 重要空白凭证箱
commonArr: [], // 普通凭证箱
+
+ needsModule: {
+ 'controlCash2/cashPaid' : false
+ },
},
'项目二十四': {
- id: '',
+ id: 512,
data: [ ], //
needs: [ 438 ],
isStamp: {
@@ -1498,6 +1510,10 @@ export default {
importanceArr: [], // 重要空白凭证箱
commonArr: [], // 普通凭证箱
+ // 'controlCash2/cashOut'
+ needsModule: {
+ 'controlCash2/cashOut' : false
+ },
},
'项目二十五': {
id: '',
diff --git a/src/utils/utilFunction.js b/src/utils/utilFunction.js
index a7bff2b..d4340a4 100644
--- a/src/utils/utilFunction.js
+++ b/src/utils/utilFunction.js
@@ -67,6 +67,23 @@ const inputListen = function(val, row, prop) {
row[prop] = Number(val.replace(/\D+/, ''))
}
+const inputListen2 = function(val, row, prop) {
+ // 检查空格
+ const tmpCheck = val.substr(val.length-1, 1);
+ if(tmpCheck === ' ') {
+ return;
+ }
+ // 可以删光
+ if(val === '') {
+ row[prop] = val;
+ return;
+ }
+ if(Number(val) || Number(val)===0) {
+ console.log(val)
+ row[prop] = val
+ }
+}
+
const ismoney = function(val, row, prop) {
// 检查空格
const tmpCheck = val.substr(val.length-1, 1);
@@ -220,7 +237,44 @@ const autoPlay3 = (name, allName, arr) => { // 要接收的, 所有的, 要
}
}
+const getNowDate = () => {
+ const date = new Date()
+ var y = date.getFullYear();
+ var m = date.getMonth() + 1;
+ m = m < 10 ? '0' + m : m;
+ var d = date.getDate();
+ d = d < 10 ? ('0' + d) : d;
+ return y + '-' + m + '-' + d;
+}
+
+const messageIdCard = () => {
+ Message.warning({
+ center: true,
+ message: '请刷身份证',
+ })
+}
+
+const messageCard = () => {
+ Message.warning({
+ center: true,
+ message: '请刷银行卡',
+ })
+}
+
+const randomPeopleNumber = () => {
+ const $chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
+ const $chars2 = '1234567890'
+ const maxPos = $chars2.length;
+ let str = '';
+ str += $chars.charAt(Math.floor(Math.random() * maxPos))
+ for (let i = 0; i < 9; i++) {
+ str += $chars2.charAt(Math.floor(Math.random() * maxPos));
+ }
+ return str;
+}
+
export {
+ randomPeopleNumber,
phoneListen,
mailBoxListen,
checkRequired,
@@ -232,5 +286,9 @@ const autoPlay3 = (name, allName, arr) => { // 要接收的, 所有的, 要
rateListen,
autoPlay,
autoPlay2,
- autoPlay3
+ autoPlay3,
+ getNowDate,
+ inputListen2,
+ messageIdCard,
+ messageCard
}
\ No newline at end of file