瀏覽代碼

修改库存管理bug

shenjj 7 年之前
父節點
當前提交
b165ff625c
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/main/webapp/resources/js/vendor/controllers/forstore/vendor_materialCtrl.js

+ 3 - 1
src/main/webapp/resources/js/vendor/controllers/forstore/vendor_materialCtrl.js

@@ -2586,7 +2586,9 @@ define(['app/app', 'jquery-uploadify'], function(app) {
         return;
       }
       if (index === 0) {
-        if (Number(prices[index].rMBPrice) > 0) {
+        if (Number(prices[index].rMBPrice) > 0 && $scope.store.enType !== 'HK') {
+          $scope.productUpOff.goods.autoPublish = true
+        } else if (Number(prices[index].uSDPrice) > 0) {
           $scope.productUpOff.goods.autoPublish = true
         }
       }