批量开票、开票邮寄图标需求变更,密码禁止粘贴

This commit is contained in:
zhaoxiao
2021-10-11 14:36:54 +08:00
parent 74b0c33a55
commit e6422d1009
6 changed files with 186 additions and 136 deletions
@@ -339,7 +339,10 @@ export default {
})
// 选中项目非同一企业
if (!isAllEqual(companyArr)) {
reject('请选择来款单位为同一企业的项目合并开票')
reject('请选择来款单位为同一企业的项目合并开票!')
}
if (arr.some(item => item.invoiceAmount && Number(item.invoiceAmount) === Number(item.receivableAmount))) {
reject('存在已完成开票的项目!')
}
this.selectedCompany = {
id: arr[0].chargeCompanyId,
+6
View File
@@ -30,11 +30,13 @@
<template v-if="!model.id">
<a-form-item label="登录密码" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input type="password" placeholder="请输入登录密码" :maxLength="50" autocomplete='new-password'
@paste.native.capture.prevent="handleOperate"
@change="event => event.target.value = event.target.value.trim()" :disabled="disableSubmit" v-decorator="[ 'password',validatorRules.password]"/>
</a-form-item>
<a-form-item label="确认密码" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input type="password" @blur="handleConfirmBlur" :maxLength="50" placeholder="请输入确认密码" :disabled="disableSubmit"
@paste.native.capture.prevent="handleOperate"
@change="event => event.target.value = event.target.value.trim()" v-decorator="[ 'confirmpassword', validatorRules.confirmpassword]"/>
</a-form-item>
</template>
@@ -699,6 +701,10 @@ export default {
} else {
this.departIdShow = true
}
},
// 密码禁止粘贴
handleOperate() {
return false
}
}
}
+5
View File
@@ -30,6 +30,7 @@
type="password"
autocomplete="false"
placeholder="请输入密码"
@paste.native.capture.prevent="handleOperate"
>
<a-icon slot="prefix" type="lock" :style="{ color: '#B3B7C2',fontSize:'20px' }"/>
</a-input>
@@ -307,6 +308,10 @@ export default {
}
})
},
// 密码禁止粘贴
handleOperate() {
return false
},
}
}
</script>
+8 -1
View File
@@ -73,6 +73,8 @@
<a-input
placeholder="请输入新密码"
v-decorator="['password', { rules: validatorRules.password.rules}]"
@paste.native.capture.prevent="handleOperate"
autocomplete="false"
type="password">
</a-input>
</a-form-item>
@@ -89,6 +91,7 @@
placeholder="请输入确认密码"
v-decorator="['confirmPassword', { rules: validatorRules.confirmPassword.rules}]"
type="password"
@paste.native.capture.prevent="handleOperate"
autocomplete="false">
</a-input>
</a-form-item>
@@ -265,7 +268,11 @@ export default {
getRSAPublicKey().then(res => {
this.rsaPublicKey = res.result
})
}
},
// 密码禁止粘贴
handleOperate() {
return false
},
}
}
</script>