Просмотр исходного кода

添加订单备注和产品备注的输入限制

hulh 8 лет назад
Родитель
Сommit
f5e56ae790

+ 3 - 0
src/main/webapp/resources/js/vendor/controllers/forstore/purchase_detail.js

@@ -194,6 +194,9 @@ define(['app/app'], function(app) {
 			if (Number(data.currentTaxUnitPrice) <= 0){
 				data.currentTaxUnitPrice = 0.000001;
 			}
+			if (Number(data.currentTaxUnitPrice) > 100000){
+				data.currentTaxUnitPrice = 100000;
+			}
 			data.currentTaxUnitPrice = Number(NumberService.toCeil(data.currentTaxUnitPrice, 6));
 			$scope.purchase.currentTotal = 0;
 			angular.forEach($scope.purchase.purchaseDetails, function (detail) {

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

@@ -507,14 +507,14 @@
 								</p>
 							</span>
 							<span>
-                            	<textarea ng-if="order.status==501" placeholder="可填写产品备注!例如物料编号" ng-model="detail.remark"></textarea>
+                            	<textarea ng-if="order.status==501" placeholder="可填写产品备注!例如物料编号" ng-model="detail.remark" maxlength="200"></textarea>
                         		<em ng-if="order.status!=501" ng-bind="detail.remark" style="color: #333; line-height: 20px; display: inline-block; padding-top: 10px;"></em>
 							</span>
 						</dd>
 						<dd class="oder-remark">
 							<span style="width: 100%">
 								<em>订单备注:</em>
-								<input type="text"  class="form-control" placeholder="请填写订单备注" ng-model="remarkList[details[0].storeid]"/>
+								<input type="text"  class="form-control" placeholder="请填写订单备注" ng-model="remarkList[details[0].storeid]" maxlength="200"/>
 							</span>
 						</dd>
 						<dd class="line60">