给零售单据增加会员的快捷录入
This commit is contained in:
parent
c259b89faf
commit
0e9ceb82d5
@ -220,12 +220,20 @@ export const BillModalMixin = {
|
|||||||
this.$refs.customerModalForm.title = "新增客户(提醒:如果找不到新添加的客户,请到用户管理检查是否分配了该客户权限)";
|
this.$refs.customerModalForm.title = "新增客户(提醒:如果找不到新添加的客户,请到用户管理检查是否分配了该客户权限)";
|
||||||
this.$refs.customerModalForm.disableSubmit = false;
|
this.$refs.customerModalForm.disableSubmit = false;
|
||||||
},
|
},
|
||||||
|
addMember() {
|
||||||
|
this.$refs.memberModalForm.add();
|
||||||
|
this.$refs.memberModalForm.title = "新增会员";
|
||||||
|
this.$refs.memberModalForm.disableSubmit = false;
|
||||||
|
},
|
||||||
vendorModalFormOk() {
|
vendorModalFormOk() {
|
||||||
this.initSupplier()
|
this.initSupplier()
|
||||||
},
|
},
|
||||||
customerModalFormOk() {
|
customerModalFormOk() {
|
||||||
this.initCustomer()
|
this.initCustomer()
|
||||||
},
|
},
|
||||||
|
memberModalFormOk() {
|
||||||
|
this.initRetail()
|
||||||
|
},
|
||||||
onAdded(event) {
|
onAdded(event) {
|
||||||
const { row, target } = event
|
const { row, target } = event
|
||||||
getAction('/depot/findDepotByCurrentUser').then((res) => {
|
getAction('/depot/findDepotByCurrentUser').then((res) => {
|
||||||
|
|||||||
@ -19,6 +19,12 @@
|
|||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="会员卡号">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="会员卡号">
|
||||||
<a-select placeholder="选择会员卡号" v-decorator="[ 'organId' ]"
|
<a-select placeholder="选择会员卡号" v-decorator="[ 'organId' ]"
|
||||||
:dropdownMatchSelectWidth="false" showSearch optionFilterProp="children">
|
:dropdownMatchSelectWidth="false" showSearch optionFilterProp="children">
|
||||||
|
<div slot="dropdownRender" slot-scope="menu">
|
||||||
|
<v-nodes :vnodes="menu" />
|
||||||
|
<a-divider style="margin: 4px 0;" />
|
||||||
|
<div style="padding: 4px 8px; cursor: pointer;"
|
||||||
|
@mousedown="e => e.preventDefault()" @click="addMember"><a-icon type="plus" /> 新增会员</div>
|
||||||
|
</div>
|
||||||
<a-select-option v-for="(item,index) in retailList" :key="index" :value="item.id">
|
<a-select-option v-for="(item,index) in retailList" :key="index" :value="item.id">
|
||||||
{{ item.supplier }}
|
{{ item.supplier }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
@ -118,11 +124,13 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
<link-bill-list ref="linkBillList" @ok="linkBillListOk"></link-bill-list>
|
<link-bill-list ref="linkBillList" @ok="linkBillListOk"></link-bill-list>
|
||||||
|
<member-modal ref="memberModalForm" @ok="memberModalFormOk"></member-modal>
|
||||||
</j-modal>
|
</j-modal>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import pick from 'lodash.pick'
|
import pick from 'lodash.pick'
|
||||||
import LinkBillList from '../dialog/LinkBillList'
|
import LinkBillList from '../dialog/LinkBillList'
|
||||||
|
import MemberModal from '../../system/modules/MemberModal'
|
||||||
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'
|
||||||
@ -137,8 +145,13 @@
|
|||||||
mixins: [JEditableTableMixin, BillModalMixin],
|
mixins: [JEditableTableMixin, BillModalMixin],
|
||||||
components: {
|
components: {
|
||||||
LinkBillList,
|
LinkBillList,
|
||||||
|
MemberModal,
|
||||||
JUpload,
|
JUpload,
|
||||||
JDate
|
JDate,
|
||||||
|
VNodes: {
|
||||||
|
functional: true,
|
||||||
|
render: (h, ctx) => ctx.props.vnodes,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -20,6 +20,12 @@
|
|||||||
data-intro="如果发现需要选择的会员卡号尚未录入,可以在下拉框中点击新增会员信息进行录入">
|
data-intro="如果发现需要选择的会员卡号尚未录入,可以在下拉框中点击新增会员信息进行录入">
|
||||||
<a-select placeholder="选择会员卡号" v-decorator="[ 'organId' ]"
|
<a-select placeholder="选择会员卡号" v-decorator="[ 'organId' ]"
|
||||||
:dropdownMatchSelectWidth="false" showSearch optionFilterProp="children" @change="onChangeOrgan">
|
:dropdownMatchSelectWidth="false" showSearch optionFilterProp="children" @change="onChangeOrgan">
|
||||||
|
<div slot="dropdownRender" slot-scope="menu">
|
||||||
|
<v-nodes :vnodes="menu" />
|
||||||
|
<a-divider style="margin: 4px 0;" />
|
||||||
|
<div style="padding: 4px 8px; cursor: pointer;"
|
||||||
|
@mousedown="e => e.preventDefault()" @click="addMember"><a-icon type="plus" /> 新增会员</div>
|
||||||
|
</div>
|
||||||
<a-select-option v-for="(item,index) in retailList" :key="index" :value="item.id">
|
<a-select-option v-for="(item,index) in retailList" :key="index" :value="item.id">
|
||||||
{{ item.supplier }}
|
{{ item.supplier }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
@ -129,10 +135,12 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</a-form>
|
</a-form>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
|
<member-modal ref="memberModalForm" @ok="memberModalFormOk"></member-modal>
|
||||||
</j-modal>
|
</j-modal>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import pick from 'lodash.pick'
|
import pick from 'lodash.pick'
|
||||||
|
import MemberModal from '../../system/modules/MemberModal'
|
||||||
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'
|
||||||
@ -146,8 +154,13 @@
|
|||||||
name: "RetailOutModal",
|
name: "RetailOutModal",
|
||||||
mixins: [JEditableTableMixin, BillModalMixin],
|
mixins: [JEditableTableMixin, BillModalMixin],
|
||||||
components: {
|
components: {
|
||||||
|
MemberModal,
|
||||||
JUpload,
|
JUpload,
|
||||||
JDate
|
JDate,
|
||||||
|
VNodes: {
|
||||||
|
functional: true,
|
||||||
|
render: (h, ctx) => ctx.props.vnodes,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user