ソースを参照

Merge branch 'develop_yh14' of http://git.chelingzhu.com/jianguan-web/qpls-md-html into develop_yh14

lilei 2 年 前
コミット
f0012b4689

+ 6 - 9
src/views/inventoryManagement/inventoryQuery/list.vue

@@ -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>&nbsp;滞销天数</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>&nbsp;操作</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 => {

+ 5 - 11
src/views/inventoryManagement/inventoryWarning/list.vue

@@ -76,12 +76,6 @@
             <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>
-        </a-alert>
       </div>
       <!-- 列表 -->
       <s-table
@@ -228,7 +222,7 @@ export default {
         { title: '最小库存数(个)', scopedSlots: { customRender: 'lowerLimit' }, width: 100, align: 'center' },
         { title: '差异数量', dataIndex: 'differenceNum', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '预警提示', scopedSlots: { customRender: 'stockState' }, width: 100, align: 'center' },
-        { title: '操作', scopedSlots: { customRender: 'action' }, width: 160, align: 'center', fixed: 'right' }
+        { title: <div><a-tooltip placement='top' title='注意:购物车仅限添加箭冠已上线产品。'><a-icon type="question-circle" /></a-tooltip>&nbsp;操作</div>, scopedSlots: { customRender: 'action' }, width: 160, align: 'center', fixed: 'right' }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {
@@ -267,10 +261,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
           }