|
@@ -112,9 +112,6 @@
|
|
|
<div style="display: inline-block;" v-if="$hasPermissions('M_ShowAllCost')">
|
|
|
可用库存总成本:<strong>{{ currentStock&&(currentStock.totalCurrentStockCost || currentStock.totalCurrentStockCost==0) ? toThousands(currentStock.totalCurrentStockCost) : '--' }}</strong>。
|
|
|
</div>
|
|
|
- <div style="display: inline-block;color:#f30f30;margin-left: 60px;" >
|
|
|
- 注意:购物车仅限添加箭冠已上线产品。
|
|
|
- </div>
|
|
|
</div>
|
|
|
</a-alert>
|
|
|
<!-- 列表 -->
|
|
@@ -289,7 +286,7 @@ export default {
|
|
|
{ title: '可用库存数量(个)', dataIndex: 'currentStockQty', width: '8%', align: 'center', sorter: true, customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
// { title: '可用库存成本(¥)', dataIndex: 'currentStockCost', width: '8%', align: 'center', sorter: true, customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: <div><a-tooltip placement='top' title='1:产品距离最近一次销售的时间,30天算一个月 2:采购退货,调拨等不算销售,不用来计算滞销天数'><a-icon type="question-circle" /></a-tooltip> 滞销天数</div>, width: '10%', align: 'center', dataIndex: 'unsalableDays', scopedSlots: { customRender: 'unsalableDays' }, sorter: true },
|
|
|
- { title: '操作', scopedSlots: { customRender: 'action' }, width: '16%', align: 'center' }
|
|
|
+ { title: <div><a-tooltip placement='top' title='注意:购物车仅限添加箭冠已上线产品。'><a-icon type="question-circle" /></a-tooltip> 操作</div>, scopedSlots: { customRender: 'action' }, width: '16%', align: 'center' }
|
|
|
]
|
|
|
if (this.$hasPermissions('M_ShowAllCost')) {
|
|
|
arr.splice(7, 0, { title: '可用库存成本(¥)', dataIndex: 'currentStockCost', width: '8%', align: 'right', sorter: true, customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
@@ -304,10 +301,10 @@ export default {
|
|
|
purchaseCartExistProduct({
|
|
|
productSn: row.productSn
|
|
|
}).then(res => {
|
|
|
- if(res.status == 200){
|
|
|
- if(res.data){
|
|
|
- this.$message.info("此产品已添加到购物车!")
|
|
|
- }else{
|
|
|
+ if (res.status == 200) {
|
|
|
+ if (res.data) {
|
|
|
+ this.$message.info('此产品已添加到购物车!')
|
|
|
+ } else {
|
|
|
this.$refs.setPurchaseQty.setData(row)
|
|
|
this.openPurchaseModal = true
|
|
|
}
|
|
@@ -418,7 +415,7 @@ export default {
|
|
|
// 仓库仓位
|
|
|
params.warehouseSn = params.warehouse[0]
|
|
|
params.warehouseLocationSn = params.warehouse[1]
|
|
|
-
|
|
|
+
|
|
|
this.exportLoading = true
|
|
|
_this.spinning = true
|
|
|
stockExport(params).then(res => {
|