瀏覽代碼

添加产品 新增查询

chenrui 6 月之前
父節點
當前提交
511b947df4

+ 1 - 0
src/views/purchasingManagement/purchaseOrder/edit.vue

@@ -404,6 +404,7 @@ export default {
         // { title: '成本价', dataIndex: 'purchasePrice', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? ('¥' + text) : '--') } },
         { title: '终端会员价', dataIndex: 'terminalPrice', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } },
         { title: '车主零售价', dataIndex: 'carOwnersPrice', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } },
+        { title: '可用库存', dataIndex: 'currentStockQty', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '采购数量', dataIndex: 'qty', scopedSlots: { customRender: 'storageQuantity' }, width: '6%', align: 'center' },
         { title: '产品图片', scopedSlots: { customRender: 'imageUrl' }, width: '6%', align: 'center' },
         { title: '操作', scopedSlots: { customRender: 'action' }, width: '8%', align: 'center' }

+ 1 - 1
src/views/purchasingManagement/purchaseOrderNew/chooseProductModal.vue

@@ -227,7 +227,7 @@ export default {
   computed: {
     // 是否有筛选条件,至少一个
     hasVaild () {
-      return this.queryParam.code || this.queryParam.name || this.queryParam.productBrandSn || this.queryParam.productTypeSn1
+      return this.queryParam.code || this.queryParam.name || this.queryParam.productBrandSn || this.queryParam.productTypeSn1 ||this.queryParam.stockQty
     },
     // 动态计算表格宽度
     tableWidth () {