给单据编辑页面的 供应商 客户 会员下拉框增加刷新功能

This commit is contained in:
jishenghua
2025-04-25 11:06:51 +08:00
parent e3ccc94531
commit 6b34558bf9
11 changed files with 26 additions and 20 deletions

View File

@@ -87,4 +87,10 @@
} }
.resize-table-th { .resize-table-th {
position: relative; position: relative;
}
/* 单据下拉框-按钮 */
.dropdown-btn {
float:left;
padding: 4px 8px;
cursor: pointer;
} }

View File

@@ -30,8 +30,8 @@
<div slot="dropdownRender" slot-scope="menu"> <div slot="dropdownRender" slot-scope="menu">
<v-nodes :vnodes="menu" /> <v-nodes :vnodes="menu" />
<a-divider style="margin: 4px 0;" /> <a-divider style="margin: 4px 0;" />
<div v-if="quickBtn.vendor" style="padding: 4px 8px; cursor: pointer;" <div v-if="quickBtn.vendor" class="dropdown-btn" @mousedown="e => e.preventDefault()" @click="addSupplier"><a-icon type="plus" /> 新增供应商</div>
@mousedown="e => e.preventDefault()" @click="addSupplier"><a-icon type="plus" /> 新增供应商</div> <div class="dropdown-btn" @mousedown="e => e.preventDefault()" @click="initSupplier(0)"><a-icon type="reload" /> 刷新列表</div>
</div> </div>
<a-select-option v-for="(item,index) in supList" :key="index" :value="item.id"> <a-select-option v-for="(item,index) in supList" :key="index" :value="item.id">
{{ item.supplier }} {{ item.supplier }}

View File

@@ -30,8 +30,8 @@
<div slot="dropdownRender" slot-scope="menu"> <div slot="dropdownRender" slot-scope="menu">
<v-nodes :vnodes="menu" /> <v-nodes :vnodes="menu" />
<a-divider style="margin: 4px 0;" /> <a-divider style="margin: 4px 0;" />
<div v-if="quickBtn.customer" style="padding: 4px 8px; cursor: pointer;" <div v-if="quickBtn.customer" class="dropdown-btn" @mousedown="e => e.preventDefault()" @click="addCustomer"><a-icon type="plus" /> 新增客户</div>
@mousedown="e => e.preventDefault()" @click="addCustomer"><a-icon type="plus" /> 新增客户</div> <div class="dropdown-btn" @mousedown="e => e.preventDefault()" @click="initCustomer(0)"><a-icon type="reload" /> 刷新列表</div>
</div> </div>
<a-select-option v-for="(item,index) in cusList" :key="index" :value="item.id"> <a-select-option v-for="(item,index) in cusList" :key="index" :value="item.id">
{{ item.supplier }} {{ item.supplier }}

View File

@@ -30,8 +30,8 @@
<div slot="dropdownRender" slot-scope="menu"> <div slot="dropdownRender" slot-scope="menu">
<v-nodes :vnodes="menu" /> <v-nodes :vnodes="menu" />
<a-divider style="margin: 4px 0;" /> <a-divider style="margin: 4px 0;" />
<div v-if="quickBtn.vendor" style="padding: 4px 8px; cursor: pointer;" <div v-if="quickBtn.vendor" class="dropdown-btn" @mousedown="e => e.preventDefault()" @click="addSupplier"><a-icon type="plus" /> 新增供应商</div>
@mousedown="e => e.preventDefault()" @click="addSupplier"><a-icon type="plus" /> 新增供应商</div> <div class="dropdown-btn" @mousedown="e => e.preventDefault()" @click="initSupplier(0)"><a-icon type="reload" /> 刷新列表</div>
</div> </div>
<a-select-option v-for="(item,index) in supList" :key="index" :value="item.id"> <a-select-option v-for="(item,index) in supList" :key="index" :value="item.id">
{{ item.supplier }} {{ item.supplier }}

View File

@@ -32,8 +32,8 @@
<div slot="dropdownRender" slot-scope="menu"> <div slot="dropdownRender" slot-scope="menu">
<v-nodes :vnodes="menu" /> <v-nodes :vnodes="menu" />
<a-divider style="margin: 4px 0;" /> <a-divider style="margin: 4px 0;" />
<div v-if="quickBtn.vendor" style="padding: 4px 8px; cursor: pointer;" <div v-if="quickBtn.vendor" class="dropdown-btn" @mousedown="e => e.preventDefault()" @click="addSupplier"><a-icon type="plus" /> 新增供应商</div>
@mousedown="e => e.preventDefault()" @click="addSupplier"><a-icon type="plus" /> 新增供应商</div> <div class="dropdown-btn" @mousedown="e => e.preventDefault()" @click="initSupplier(0)"><a-icon type="reload" /> 刷新列表</div>
</div> </div>
<a-select-option v-for="(item,index) in supList" :key="index" :value="item.id"> <a-select-option v-for="(item,index) in supList" :key="index" :value="item.id">
{{ item.supplier }} {{ item.supplier }}

View File

@@ -32,8 +32,8 @@
<div slot="dropdownRender" slot-scope="menu"> <div slot="dropdownRender" slot-scope="menu">
<v-nodes :vnodes="menu" /> <v-nodes :vnodes="menu" />
<a-divider style="margin: 4px 0;" /> <a-divider style="margin: 4px 0;" />
<div v-if="quickBtn.vendor" style="padding: 4px 8px; cursor: pointer;" <div v-if="quickBtn.vendor" class="dropdown-btn" @mousedown="e => e.preventDefault()" @click="addSupplier"><a-icon type="plus" /> 新增供应商</div>
@mousedown="e => e.preventDefault()" @click="addSupplier"><a-icon type="plus" /> 新增供应商</div> <div class="dropdown-btn" @mousedown="e => e.preventDefault()" @click="initSupplier(0)"><a-icon type="reload" /> 刷新列表</div>
</div> </div>
<a-select-option v-for="(item,index) in supList" :key="index" :value="item.id"> <a-select-option v-for="(item,index) in supList" :key="index" :value="item.id">
{{ item.supplier }} {{ item.supplier }}

View File

@@ -30,8 +30,8 @@
<div slot="dropdownRender" slot-scope="menu"> <div slot="dropdownRender" slot-scope="menu">
<v-nodes :vnodes="menu" /> <v-nodes :vnodes="menu" />
<a-divider style="margin: 4px 0;" /> <a-divider style="margin: 4px 0;" />
<div v-if="quickBtn.member" style="padding: 4px 8px; cursor: pointer;" <div v-if="quickBtn.member" class="dropdown-btn" @mousedown="e => e.preventDefault()" @click="addMember"><a-icon type="plus" /> 新增会员</div>
@mousedown="e => e.preventDefault()" @click="addMember"><a-icon type="plus" /> 新增会员</div> <div class="dropdown-btn" @mousedown="e => e.preventDefault()" @click="initRetail(0)"><a-icon type="reload" /> 刷新列表</div>
</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 }}

View File

@@ -32,8 +32,8 @@
<div slot="dropdownRender" slot-scope="menu"> <div slot="dropdownRender" slot-scope="menu">
<v-nodes :vnodes="menu" /> <v-nodes :vnodes="menu" />
<a-divider style="margin: 4px 0;" /> <a-divider style="margin: 4px 0;" />
<div v-if="quickBtn.member" style="padding: 4px 8px; cursor: pointer;" <div v-if="quickBtn.member" class="dropdown-btn" @mousedown="e => e.preventDefault()" @click="addMember"><a-icon type="plus" /> 新增会员</div>
@mousedown="e => e.preventDefault()" @click="addMember"><a-icon type="plus" /> 新增会员</div> <div class="dropdown-btn" @mousedown="e => e.preventDefault()" @click="initRetail(0)"><a-icon type="reload" /> 刷新列表</div>
</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 }}

View File

@@ -30,8 +30,8 @@
<div slot="dropdownRender" slot-scope="menu"> <div slot="dropdownRender" slot-scope="menu">
<v-nodes :vnodes="menu" /> <v-nodes :vnodes="menu" />
<a-divider style="margin: 4px 0;" /> <a-divider style="margin: 4px 0;" />
<div v-if="quickBtn.customer" style="padding: 4px 8px; cursor: pointer;" <div v-if="quickBtn.customer" class="dropdown-btn" @mousedown="e => e.preventDefault()" @click="addCustomer"><a-icon type="plus" /> 新增客户</div>
@mousedown="e => e.preventDefault()" @click="addCustomer"><a-icon type="plus" /> 新增客户</div> <div class="dropdown-btn" @mousedown="e => e.preventDefault()" @click="initCustomer(0)"><a-icon type="reload" /> 刷新列表</div>
</div> </div>
<a-select-option v-for="(item,index) in cusList" :key="index" :value="item.id"> <a-select-option v-for="(item,index) in cusList" :key="index" :value="item.id">
{{ item.supplier }} {{ item.supplier }}

View File

@@ -33,8 +33,8 @@
<div slot="dropdownRender" slot-scope="menu"> <div slot="dropdownRender" slot-scope="menu">
<v-nodes :vnodes="menu" /> <v-nodes :vnodes="menu" />
<a-divider style="margin: 4px 0;" /> <a-divider style="margin: 4px 0;" />
<div v-if="quickBtn.customer" style="padding: 4px 8px; cursor: pointer;" <div v-if="quickBtn.customer" class="dropdown-btn" @mousedown="e => e.preventDefault()" @click="addCustomer"><a-icon type="plus" /> 新增客户</div>
@mousedown="e => e.preventDefault()" @click="addCustomer"><a-icon type="plus" /> 新增客户</div> <div class="dropdown-btn" @mousedown="e => e.preventDefault()" @click="initCustomer(0)"><a-icon type="reload" /> 刷新列表</div>
</div> </div>
<a-select-option v-for="(item,index) in cusList" :key="index" :value="item.id"> <a-select-option v-for="(item,index) in cusList" :key="index" :value="item.id">
{{ item.supplier }} {{ item.supplier }}

View File

@@ -33,8 +33,8 @@
<div slot="dropdownRender" slot-scope="menu"> <div slot="dropdownRender" slot-scope="menu">
<v-nodes :vnodes="menu" /> <v-nodes :vnodes="menu" />
<a-divider style="margin: 4px 0;" /> <a-divider style="margin: 4px 0;" />
<div v-if="quickBtn.customer" style="padding: 4px 8px; cursor: pointer;" <div v-if="quickBtn.customer" class="dropdown-btn" @mousedown="e => e.preventDefault()" @click="addCustomer"><a-icon type="plus" /> 新增客户</div>
@mousedown="e => e.preventDefault()" @click="addCustomer"><a-icon type="plus" /> 新增客户</div> <div class="dropdown-btn" @mousedown="e => e.preventDefault()" @click="initCustomer(0)"><a-icon type="reload" /> 刷新列表</div>
</div> </div>
<a-select-option v-for="(item,index) in cusList" :key="index" :value="item.id"> <a-select-option v-for="(item,index) in cusList" :key="index" :value="item.id">
{{ item.supplier }} {{ item.supplier }}