给单据中商品的选择框中增加商品的快捷录入
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-input-search v-if="kind === 'material'" v-model="names" placeholder="条码或名称" @pressEnter="onPressEnter" @search="onSearch"></a-input-search>
|
<a-input-search v-if="kind === 'material'" v-model="names" placeholder="条码|名称并回车" @pressEnter="onPressEnter" @search="onSearch"></a-input-search>
|
||||||
<a-input-search v-if="kind === 'batch'||kind === 'sn'||kind === 'snAdd'" v-model="names" placeholder="请点开弹窗" readOnly @search="onSearch"></a-input-search>
|
<a-input-search v-if="kind === 'batch'||kind === 'sn'||kind === 'snAdd'" v-model="names" placeholder="请点开弹窗" readOnly @search="onSearch"></a-input-search>
|
||||||
<j-select-material-modal v-if="kind === 'material'" ref="selectModal" :rows="rows" :multi="multi" :bar-code="value" @ok="selectOK" @initComp="initComp"/>
|
<j-select-material-modal v-if="kind === 'material'" ref="selectModal" :rows="rows" :multi="multi" :bar-code="value" @ok="selectOK" @initComp="initComp"/>
|
||||||
<j-select-batch-modal v-if="kind === 'batch'" ref="selectModal" :rows="rows" :multi="multi" :bar-code="value" @ok="selectOK" @initComp="initComp"/>
|
<j-select-batch-modal v-if="kind === 'batch'" ref="selectModal" :rows="rows" :multi="multi" :bar-code="value" @ok="selectOK" @initComp="initComp"/>
|
||||||
|
|||||||
@@ -40,8 +40,9 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
||||||
<a-col :md="6" :sm="24">
|
<a-col :md="6" :sm="24">
|
||||||
<a-button type="primary" @click="loadMaterialData(1)">查询</a-button>
|
<a-button type="primary" icon="search" @click="loadMaterialData(1)" title="查询"></a-button>
|
||||||
<a-button style="margin-left: 8px" @click="searchReset(1)">重置</a-button>
|
<a-button style="margin-left: 8px" icon="reload" @click="searchReset(1)" title="重置"></a-button>
|
||||||
|
<a-button style="margin-left: 8px" icon="plus" @click="addMaterial" title="添加"></a-button>
|
||||||
<a @click="handleToggleSearch" style="margin-left: 8px">
|
<a @click="handleToggleSearch" style="margin-left: 8px">
|
||||||
{{ toggleSearchStatus ? '收起' : '展开' }}
|
{{ toggleSearchStatus ? '收起' : '展开' }}
|
||||||
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
|
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
|
||||||
@@ -92,6 +93,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
<material-modal ref="modalForm" @ok="modalFormOk"></material-modal>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -105,7 +107,9 @@
|
|||||||
export default {
|
export default {
|
||||||
name: 'JSelectMaterialModal',
|
name: 'JSelectMaterialModal',
|
||||||
mixins:[JeecgListMixin],
|
mixins:[JeecgListMixin],
|
||||||
components: {},
|
components: {
|
||||||
|
MaterialModal: () => import('@/views/material/modules/MaterialModal')
|
||||||
|
},
|
||||||
props: ['rows', 'multi', 'barCode'],
|
props: ['rows', 'multi', 'barCode'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -289,6 +293,10 @@
|
|||||||
that.selectedRowKeys = [];
|
that.selectedRowKeys = [];
|
||||||
that.selectMaterialIds = [];
|
that.selectMaterialIds = [];
|
||||||
},
|
},
|
||||||
|
addMaterial() {
|
||||||
|
this.$refs.modalForm.add()
|
||||||
|
this.$refs.modalForm.title = '新增商品'
|
||||||
|
},
|
||||||
close() {
|
close() {
|
||||||
this.searchReset(0);
|
this.searchReset(0);
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
:width="1300"
|
:width="1300"
|
||||||
:visible="visible"
|
:visible="visible"
|
||||||
:confirmLoading="confirmLoading"
|
:confirmLoading="confirmLoading"
|
||||||
|
:maskClosable="false"
|
||||||
v-bind:prefixNo="prefixNo"
|
v-bind:prefixNo="prefixNo"
|
||||||
switchHelp
|
switchHelp
|
||||||
switchFullscreen
|
switchFullscreen
|
||||||
|
|||||||
Reference in New Issue
Block a user