|
@@ -62,32 +62,32 @@
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
</a-form>
|
|
|
- </div>
|
|
|
- <!-- 操作按钮 -->
|
|
|
- <div class="table-operator">
|
|
|
- <a-button type="primary" v-if="$hasPermissions('B_inventoryWarningBatchSave')" id="inventoryWarningList-update" @click="handleupdate">批量更新</a-button>
|
|
|
- <a-button
|
|
|
- type="primary"
|
|
|
- style="margin-left: 5px"
|
|
|
- class="button-warning"
|
|
|
- @click="openGuideModal=true"
|
|
|
- v-if="$hasPermissions('B_inventoryWarningProductImport')"
|
|
|
- id="inventoryWarningList-import-btn">导入产品</a-button>
|
|
|
- <span style="margin-left: 5px" v-if="$hasPermissions('B_inventoryWarningBatchSave')">
|
|
|
- <template v-if="rowSelectionInfo&&rowSelectionInfo.selectedRowKeys.length>0">{{ `已选 ${rowSelectionInfo.selectedRowKeys.length} 项` }}</template>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- <!-- 合计 -->
|
|
|
- <a-alert type="info" style="margin-bottom:10px">
|
|
|
- <div class="ftext" slot="message" style="color:#f30f30;">
|
|
|
- 注意:购物车仅限添加箭冠产品。
|
|
|
+ <!-- 操作按钮 -->
|
|
|
+ <div class="table-operator">
|
|
|
+ <a-button type="primary" v-if="$hasPermissions('B_inventoryWarningBatchSave')" id="inventoryWarningList-update" @click="handleupdate">批量更新</a-button>
|
|
|
+ <a-button
|
|
|
+ type="primary"
|
|
|
+ style="margin-left: 5px"
|
|
|
+ class="button-warning"
|
|
|
+ @click="openGuideModal=true"
|
|
|
+ v-if="$hasPermissions('B_inventoryWarningProductImport')"
|
|
|
+ id="inventoryWarningList-import-btn">导入产品</a-button>
|
|
|
+ <span style="margin-left: 5px" v-if="$hasPermissions('B_inventoryWarningBatchSave')">
|
|
|
+ <template v-if="rowSelectionInfo&&rowSelectionInfo.selectedRowKeys.length>0">{{ `已选 ${rowSelectionInfo.selectedRowKeys.length} 项` }}</template>
|
|
|
+ </span>
|
|
|
</div>
|
|
|
- </a-alert>
|
|
|
+ <!-- 合计 -->
|
|
|
+ <a-alert type="info" style="margin-bottom:10px">
|
|
|
+ <div class="ftext" slot="message" style="color:#f30f30;">
|
|
|
+ 注意:购物车仅限添加箭冠已上线产品。
|
|
|
+ </div>
|
|
|
+ </a-alert>
|
|
|
+ </div>
|
|
|
<!-- 列表 -->
|
|
|
<s-table
|
|
|
class="sTable fixPagination"
|
|
|
ref="table"
|
|
|
- :style="{ height: tableHeight+84.5+'px' }"
|
|
|
+ :style="{ height: tableHeight+68.5+'px' }"
|
|
|
size="small"
|
|
|
:rowKey="(record) => record.id"
|
|
|
:row-selection="$hasPermissions('B_inventoryWarningBatchSave') ? { columnWidth: 40 } : null"
|
|
@@ -166,7 +166,7 @@
|
|
|
class="button-primary"
|
|
|
@click="handleSave(record)"
|
|
|
id="inventoryWarningList-add-btn">保存</a-button>
|
|
|
- <a-button type="link" v-if="record.dealerProduct.sysFlag==1&&$hasPermissions('M_shoppingCart')" @click="addShopCar(record)">加入购物车</a-button>
|
|
|
+ <a-button type="link" v-if="record.dealerProduct.sysFlag==1&&record.dealerProduct.onlineFalg==1&&$hasPermissions('M_shoppingCart')" @click="addShopCar(record)">加入购物车</a-button>
|
|
|
<span v-if="!$hasPermissions('B_inventoryWarningSave')">--</span>
|
|
|
</template>
|
|
|
</s-table>
|
|
@@ -401,7 +401,7 @@ export default {
|
|
|
},
|
|
|
setTableH () {
|
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
|
- this.tableHeight = window.innerHeight - tableSearchH - 235
|
|
|
+ this.tableHeight = window.innerHeight - tableSearchH - 190
|
|
|
}
|
|
|
},
|
|
|
watch: {
|