|
@@ -110,9 +110,13 @@
|
|
|
<q-tabs :activeKey="activeKey" @change="changeTab">
|
|
|
<q-tab-pane key="1" tab="备件清单">
|
|
|
<div class="table-operator" v-if="$auth('repair-application-forms-finish')">
|
|
|
- <a-button type="primary" @click="handleSpareStoreSelect">
|
|
|
+ <a-button type="primary" @click="handleSpareStoreSelect(1)">
|
|
|
<a-icon type="plus"/>
|
|
|
- 添加
|
|
|
+ 添加专用备件
|
|
|
+ </a-button>
|
|
|
+ <a-button type="primary" @click="handleSpareStoreSelect(0)">
|
|
|
+ <a-icon type="plus"/>
|
|
|
+ 添加常用备件
|
|
|
</a-button>
|
|
|
</div>
|
|
|
<a-table
|
|
@@ -759,8 +763,8 @@ export default {
|
|
|
const modal = this.$refs.baseFormForRepair
|
|
|
modal.base(record)
|
|
|
},
|
|
|
- handleSpareStoreSelect () {
|
|
|
- this.$refs.spareStoreSelectModal.base({}, { storeId: this.storeId })
|
|
|
+ handleSpareStoreSelect (isSpecial) {
|
|
|
+ this.$refs.spareStoreSelectModal.base({}, { storeId: this.storeId, isSpecial })
|
|
|
},
|
|
|
handleSpareStoreSelected (record, keys, rows) {
|
|
|
const data = []
|