注册租户的密码长度改为6位,给订单编辑页面去掉仓库新增按钮

This commit is contained in:
季圣华
2021-11-05 21:56:06 +08:00
parent c469520641
commit de7ed4a04c
3 changed files with 5 additions and 21 deletions

View File

@@ -61,11 +61,6 @@
@valueChange="onValueChange" @valueChange="onValueChange"
@deleted="onDeleted"> @deleted="onDeleted">
<template #buttonAfter> <template #buttonAfter>
<a-row :gutter="24" style="float:left;width:140px;">
<a-col :md="24" :sm="24">
<a-button icon="plus" @click="addDepot">新增仓库</a-button>
</a-col>
</a-row>
<a-row :gutter="24" style="float:left;" data-step="3" data-title="扫码录入" data-intro="此功能支持扫码枪扫描商品条码进行录入"> <a-row :gutter="24" style="float:left;" data-step="3" data-title="扫码录入" data-intro="此功能支持扫码枪扫描商品条码进行录入">
<a-col v-if="scanStatus" :md="6" :sm="24"> <a-col v-if="scanStatus" :md="6" :sm="24">
<a-button @click="scanEnter">扫码录入</a-button> <a-button @click="scanEnter">扫码录入</a-button>
@@ -96,13 +91,11 @@
</a-form> </a-form>
</a-spin> </a-spin>
<vendor-modal ref="vendorModalForm" @ok="vendorModalFormOk"></vendor-modal> <vendor-modal ref="vendorModalForm" @ok="vendorModalFormOk"></vendor-modal>
<depot-modal ref="depotModalForm" @ok="depotModalFormOk"></depot-modal>
</j-modal> </j-modal>
</template> </template>
<script> <script>
import pick from 'lodash.pick' import pick from 'lodash.pick'
import VendorModal from '../../system/modules/VendorModal' import VendorModal from '../../system/modules/VendorModal'
import DepotModal from '../../system/modules/DepotModal'
import { FormTypes } from '@/utils/JEditableTableUtil' import { FormTypes } from '@/utils/JEditableTableUtil'
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin' import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
import { BillModalMixin } from '../mixins/BillModalMixin' import { BillModalMixin } from '../mixins/BillModalMixin'
@@ -115,7 +108,6 @@
mixins: [JEditableTableMixin,BillModalMixin], mixins: [JEditableTableMixin,BillModalMixin],
components: { components: {
VendorModal, VendorModal,
DepotModal,
JUpload, JUpload,
JDate, JDate,
VNodes: { VNodes: {

View File

@@ -67,11 +67,6 @@
@valueChange="onValueChange" @valueChange="onValueChange"
@deleted="onDeleted"> @deleted="onDeleted">
<template #buttonAfter> <template #buttonAfter>
<a-row :gutter="24" style="float:left;width:140px;">
<a-col :md="24" :sm="24">
<a-button icon="plus" @click="addDepot">新增仓库</a-button>
</a-col>
</a-row>
<a-row :gutter="24" style="float:left;" data-step="4" data-title="扫码录入" data-intro="此功能支持扫码枪扫描商品条码进行录入"> <a-row :gutter="24" style="float:left;" data-step="4" data-title="扫码录入" data-intro="此功能支持扫码枪扫描商品条码进行录入">
<a-col v-if="scanStatus" :md="6" :sm="24"> <a-col v-if="scanStatus" :md="6" :sm="24">
<a-button @click="scanEnter">扫码录入</a-button> <a-button @click="scanEnter">扫码录入</a-button>
@@ -102,13 +97,11 @@
</a-form> </a-form>
</a-spin> </a-spin>
<customer-modal ref="customerModalForm" @ok="customerModalFormOk"></customer-modal> <customer-modal ref="customerModalForm" @ok="customerModalFormOk"></customer-modal>
<depot-modal ref="depotModalForm" @ok="depotModalFormOk"></depot-modal>
</j-modal> </j-modal>
</template> </template>
<script> <script>
import pick from 'lodash.pick' import pick from 'lodash.pick'
import CustomerModal from '../../system/modules/CustomerModal' import CustomerModal from '../../system/modules/CustomerModal'
import DepotModal from '../../system/modules/DepotModal'
import { FormTypes } from '@/utils/JEditableTableUtil' import { FormTypes } from '@/utils/JEditableTableUtil'
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin' import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
import { BillModalMixin } from '../mixins/BillModalMixin' import { BillModalMixin } from '../mixins/BillModalMixin'
@@ -122,7 +115,6 @@
mixins: [JEditableTableMixin, BillModalMixin], mixins: [JEditableTableMixin, BillModalMixin],
components: { components: {
CustomerModal, CustomerModal,
DepotModal,
JUpload, JUpload,
JDate, JDate,
JSelectMultiple, JSelectMultiple,

View File

@@ -14,20 +14,20 @@
<div :class="['user-register', passwordLevelClass]">强度:<span>{{ passwordLevelName }}</span></div> <div :class="['user-register', passwordLevelClass]">强度:<span>{{ passwordLevelName }}</span></div>
<a-progress :percent="state.percent" :showInfo="false" :strokeColor=" passwordLevelColor "/> <a-progress :percent="state.percent" :showInfo="false" :strokeColor=" passwordLevelColor "/>
<div style="margin-top: 10px;"> <div style="margin-top: 10px;">
<span>请至少输入 8 个字符。请不要使用容易被猜到的密码。</span> <span>请至少输入 6 个字符。请不要使用容易被猜到的密码。</span>
</div> </div>
</div> </div>
</template> </template>
<a-form-item <a-form-item
fieldDecoratorId="password" fieldDecoratorId="password"
:fieldDecoratorOptions="{rules: [{ required: false}, { validator: this.handlePasswordLevel }], validateTrigger: ['change', 'blur'], validateFirst: true}"> :fieldDecoratorOptions="{rules: [{ required: false}, { validator: this.handlePasswordLevel }], validateTrigger: ['change', 'blur'], validateFirst: true}">
<a-input size="large" type="password" @click="handlePasswordInputClick" autocomplete="false" placeholder="至少8位密码区分大小写"></a-input> <a-input size="large" type="password" @click="handlePasswordInputClick" autocomplete="false" placeholder="至少6位密码区分大小写"></a-input>
</a-form-item> </a-form-item>
</a-popover> </a-popover>
<a-form-item <a-form-item
fieldDecoratorId="password2" fieldDecoratorId="password2"
:fieldDecoratorOptions="{rules: [{ required: true, message: '至少8位密码区分大小写' }, { validator: this.handlePasswordCheck }], validateTrigger: ['change', 'blur'], validateFirst: true}"> :fieldDecoratorOptions="{rules: [{ required: true, message: '至少6位密码区分大小写' }, { validator: this.handlePasswordCheck }], validateTrigger: ['change', 'blur'], validateFirst: true}">
<a-input size="large" type="password" autocomplete="false" placeholder="确认密码"></a-input> <a-input size="large" type="password" autocomplete="false" placeholder="确认密码"></a-input>
</a-form-item> </a-form-item>
@@ -163,9 +163,9 @@
handlePasswordLevel(rule, value, callback) { handlePasswordLevel(rule, value, callback) {
let level = 0 let level = 0
let reg = /^(?=.*[a-z])(?=.*\d).{8,}$/; let reg = /^(?=.*[a-z])(?=.*\d).{6,}$/;
if (!reg.test(value)) { if (!reg.test(value)) {
callback(new Error('密码由8位数字、小写字母组成!')) callback(new Error('密码由6位数字、小写字母组成!'))
} }
// 判断这个字符串中有没有数字 // 判断这个字符串中有没有数字
if (/[0-9]/.test(value)) { if (/[0-9]/.test(value)) {