|
@@ -54,14 +54,14 @@
|
|
|
</div>
|
|
|
<div class="showBtn">
|
|
|
<a-button id="purchaseReceiptEdit-add" v-if="$hasPermissions('B_purchaseReceiptEdit_add')" type="primary" class="button-warning" @click="handleAddEdit">新增产品</a-button>
|
|
|
- <a-button id="purchaseReceiptEdit-ex" v-if="$hasPermissions('B_purchaseReceiptEdit_import')" class="button-warning" @click="handleImport">导入产品</a-button>
|
|
|
- <a-button
|
|
|
+ <a-button style="margin-right:6px;" id="purchaseReceiptEdit-ex" v-if="$hasPermissions('B_purchaseReceiptEdit_import')" class="button-warning" @click="handleImport">导入产品</a-button>
|
|
|
+ <!-- <a-button
|
|
|
id="purchaseReceiptEdit-queryQty"
|
|
|
type="primary"
|
|
|
class="button-warning"
|
|
|
:loading="loading"
|
|
|
v-if="$hasPermissions('B_purchaseReceiptEdit_thirdQty')"
|
|
|
- @click="handleThirdQty">第三方库存</a-button>
|
|
|
+ @click="handleThirdQty">第三方库存</a-button> -->
|
|
|
<a-alert type="info">
|
|
|
<div slot="message" class="total-bar">
|
|
|
<span>采购数量:{{ statisticsObj && (statisticsObj.productTotalQty || statisticsObj.productTotalQty == 0) ? statisticsObj.productTotalQty : '--' }};</span>
|
|
@@ -116,7 +116,7 @@
|
|
|
:itemSn="itemSn"
|
|
|
:openModal="openAddModal"
|
|
|
:nowData="detailsData"
|
|
|
- @ok="resetTable"
|
|
|
+ @ok="resetTable(true)"
|
|
|
@close="openAddModal=false" />
|
|
|
<!-- 导入弹窗 -->
|
|
|
<importGuideModal :openModal="openGuideModal" :params="{sparePartsSn: $route.query.sn}" @close="openGuideModal=false" @ok="hanldleImportOk" />
|
|
@@ -278,7 +278,7 @@ export default {
|
|
|
purchaseDetailDel({ sn: row.sparePartsDetailSn })
|
|
|
.then(res => {
|
|
|
if (res.status == 200) {
|
|
|
- _this.resetTable()
|
|
|
+ _this.resetTable(false)
|
|
|
}
|
|
|
_this.$message.info(res.message)
|
|
|
_this.delLoading = false
|
|
@@ -292,9 +292,9 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
// 刷新列表 更新操作时间
|
|
|
- resetTable () {
|
|
|
+ resetTable (flag) {
|
|
|
this.itemSn = undefined
|
|
|
- this.$refs.table.refresh(true)
|
|
|
+ this.$refs.table.refresh(flag)
|
|
|
},
|
|
|
// 重置
|
|
|
resetSearchForm () {
|