yangc 7 gadi atpakaļ
vecāks
revīzija
578c0b73fb

+ 5 - 5
src/main/webapp/resources/js/usercenter/controllers/forstore/bomListDetailCtrl.js

@@ -236,12 +236,12 @@ define(['app/app'], function(app) {
         $scope.onCountChange = function () {
         $scope.onCountChange = function () {
             // 正整数且小于十万
             // 正整数且小于十万
             if (!/^[1-9][0-9]*$/.test($scope.seekObj.count)) {
             if (!/^[1-9][0-9]*$/.test($scope.seekObj.count)) {
-                $scope.seekObj.count = 1;
+                $scope.seekObj.count = '';
             }
             }
             if ($scope.seekObj.count > 99999) {
             if ($scope.seekObj.count > 99999) {
                 $scope.seekObj.count = 99999;
                 $scope.seekObj.count = 99999;
             } else if ($scope.seekObj.count < 1) {
             } else if ($scope.seekObj.count < 1) {
-                $scope.seekObj.count = 1;
+                $scope.seekObj.count = '';
             }
             }
         }
         }
         // 选中的物料id
         // 选中的物料id
@@ -302,7 +302,7 @@ define(['app/app'], function(app) {
         // bom字段校验(名字+规格)
         // bom字段校验(名字+规格)
         $scope.onTmpEditBomChange = function (key) {
         $scope.onTmpEditBomChange = function (key) {
             if (getRealLen($scope.tmpEditBom[key]) > 100) {
             if (getRealLen($scope.tmpEditBom[key]) > 100) {
-                $scope.tmpEditBom.name = cutOutString($scope.tmpEditBom[key], 100);
+                $scope.tmpEditBom[key] = cutOutString($scope.tmpEditBom[key], 100);
             }
             }
         }
         }
         // 校验特定的字符
         // 校验特定的字符
@@ -428,12 +428,12 @@ define(['app/app'], function(app) {
         // 单位用量输入
         // 单位用量输入
         $scope.onAmountChange = function (item) {
         $scope.onAmountChange = function (item) {
             if (!/^[1-9][0-9]*$/.test(item.amount)) {
             if (!/^[1-9][0-9]*$/.test(item.amount)) {
-                item.amount = 1;
+                item.amount = '';
             }
             }
             if (item.amount > 9999) {
             if (item.amount > 9999) {
                 item.amount = 9999;
                 item.amount = 9999;
             } else if (item.amount < 1) {
             } else if (item.amount < 1) {
-                item.amount = 1;
+                item.amount = '';
             }
             }
         }
         }
 
 

+ 1 - 1
src/main/webapp/resources/view/usercenter/forstore/bomDetail.html

@@ -682,7 +682,7 @@
                 <!--<th width="110">发布时间</th>-->
                 <!--<th width="110">发布时间</th>-->
                 <th width="310">品牌/物料名称</th>
                 <th width="310">品牌/物料名称</th>
                 <th width="310">型号/规格</th>
                 <th width="310">型号/规格</th>
-                <th width="190">求购数量(PCS)</th>
+                <th width="190">单位用量(PCS)</th>
                 <th width="190">状态</th>
                 <th width="190">状态</th>
                 <!--<th width="136">操作</th>-->
                 <!--<th width="136">操作</th>-->
                     <!--
                     <!--

+ 2 - 2
src/main/webapp/resources/view/usercenter/forstore/seekPurchase.html

@@ -1532,8 +1532,8 @@
                 <td ng-click="toBomdetail(bom.id)">
                 <td ng-click="toBomdetail(bom.id)">
                     <img src="static/img/seekPurchase/Excel.png" alt="">
                     <img src="static/img/seekPurchase/Excel.png" alt="">
                     <div style="width:300px">
                     <div style="width:300px">
-                        <p ng-bind="bom.remark || bom.name"></p>
-                        <div>规格:{{bom.spec || '-'}}</div>
+                        <p class="text-ellipse" title="{{bom.remark || bom.name}}" ng-bind="bom.remark || bom.name"></p>
+                        <div class="text-ellipse" title="{{bom.spec}}">规格:{{bom.spec || '-'}}</div>
                     </div>
                     </div>
                     <div ng-if="bomTab == 'seekRecord'" class="middle">
                     <div ng-if="bomTab == 'seekRecord'" class="middle">
                         <div class="progress">
                         <div class="progress">