|
|
@@ -72,6 +72,9 @@
|
|
|
.input-group-sm>.input-group-addon {
|
|
|
padding: 5px 5px;
|
|
|
}
|
|
|
+ .border-success {
|
|
|
+ border-color: #449d44;
|
|
|
+ }
|
|
|
</style>
|
|
|
<div ng-controller="SaleInquiryCtrl">
|
|
|
<div class="top padding5 bold">
|
|
|
@@ -84,7 +87,9 @@
|
|
|
<td class="va-top text-right"><label class="text-black">客户:</label></td>
|
|
|
<td>
|
|
|
<span ng-bind="purcInquiry.inquiry.enterprise.enName"></span><br>
|
|
|
- <span class="text-help">{{purcInquiry.inquiry.enterprise.enAddress}} <i class="fa fa-map-marker"></i></span><br>
|
|
|
+ <span class="text-help">{{purcInquiry.inquiry.enterprise.enAddress}}
|
|
|
+ <i class="fa fa-map-marker"></i>
|
|
|
+ </span><br>
|
|
|
<span class="text-help text-num">{{purcInquiry.inquiry.enterprise.enTel}} <i class="fa fa-phone"></i></span>
|
|
|
</td>
|
|
|
</tr>
|
|
|
@@ -129,7 +134,9 @@
|
|
|
datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"
|
|
|
ng-focus="openF($event)">
|
|
|
<span class="input-group-btn">
|
|
|
- <button type="button" class="btn btn-default" ng-click="openF($event)"><i class="glyphicon glyphicon-calendar"></i></button>
|
|
|
+ <button type="button" class="btn btn-default" ng-click="openF($event)">
|
|
|
+ <i class="glyphicon glyphicon-calendar"></i>
|
|
|
+ </button>
|
|
|
</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -140,7 +147,9 @@
|
|
|
<div class="toDate text-left">
|
|
|
<div class=" input-group input-group-sm input-trigger">
|
|
|
<span class="input-group-btn">
|
|
|
- <button type="button" class="btn btn-default" ng-click="openT($event)"><i class="glyphicon glyphicon-calendar"></i></button>
|
|
|
+ <button type="button" class="btn btn-default" ng-click="openT($event)">
|
|
|
+ <i class="glyphicon glyphicon-calendar"></i>
|
|
|
+ </button>
|
|
|
</span>
|
|
|
<input type="text" class="form-control" placeholder="截止日期"
|
|
|
datepicker-popup="yyyy-MM-dd" is-open="vendToDateOpen" ng-model="purcInquiry.vendToDate"
|
|
|
@@ -152,12 +161,15 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="border-bottom: solid 1px #398439;margin-bottom: 5px;"><label>分段报价</label></div>
|
|
|
+ <form name="repliesForm">
|
|
|
<div class="inquiry">
|
|
|
<table class="table table-condensed table-bordered table-striped text-center ">
|
|
|
<tr>
|
|
|
- <th style="width: 5%;"><th style="width: 45%;">分段数量({{purcInquiry.product.unit}})</th><th style="width: 40%;">分段单价</th>
|
|
|
+ <th style="width: 5%;"><th style="width: 45%;">分段数量({{purcInquiry.product.unit}})</th>
|
|
|
+ <th style="width: 40%;">分段单价</th>
|
|
|
<th>
|
|
|
- <span ng-if="purcInquiry.replies.length<9" class="btn btn-success btn-sm" ng-click="addNewReply(reply)" ng-disabled="purcInquiry.status != 200">
|
|
|
+ <span ng-if="purcInquiry.replies.length<9" class="btn btn-success btn-sm" ng-click="addNewReply(reply)"
|
|
|
+ ng-disabled="(purcInquiry.status!=200) || purcInquiry.custLap">
|
|
|
<i class="fa fa-plus"></i>
|
|
|
</span>
|
|
|
</th>
|
|
|
@@ -168,18 +180,21 @@
|
|
|
<span ng-if="!reply.editing" class="text-num">≥ {{reply.lapQty}}</span>
|
|
|
<div ng-if="reply.editing" class=" input-group input-group-sm">
|
|
|
<span class="input-group-addon input-group-addon-sm">≥</span>
|
|
|
- <input type="number" ng-disabled="$first || purchInqiry.custLap" class="form-control" ng-model="reply.lapQty">
|
|
|
+ <input type="number" ng-disabled="$first || purchInqiry.custLap"
|
|
|
+ class="form-control" ng-model="reply.lapQty" required min="0">
|
|
|
</div>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <span ng-if="!reply.editing" class="text-num">{{reply.price | currency: symbol(purcInquiry.currency)}}</span>
|
|
|
+ <span ng-if="!reply.editing" class="text-num">{{reply.price | currency: symbol(purcInquiry.currency)}}
|
|
|
+ </span>
|
|
|
<div ng-if="reply.editing" class=" input-group input-group-sm">
|
|
|
<span class="input-group-addon input-group-addon-sm">{{symbol(purcInquiry.currency)}}</span>
|
|
|
- <input type="number" class="form-control" ng-model="reply.price">
|
|
|
+ <input type="number" class="form-control" ng-model="reply.price" required min="0">
|
|
|
</div>
|
|
|
</td>
|
|
|
<td class="text-left">
|
|
|
- <span ng-if="!$first" class="btn btn-warning btn-sm" ng-click="purcInquiry.replies.splice($index,1)" ng-disabled="purcInquiry.status != 200">
|
|
|
+ <span ng-if="!$first" class="btn btn-warning btn-sm"
|
|
|
+ ng-click="purcInquiry.replies.splice($index,1)" ng-disabled="purcInquiry.status != 200">
|
|
|
<i class="fa fa-trash"></i>
|
|
|
</span>
|
|
|
</td>
|
|
|
@@ -187,12 +202,15 @@
|
|
|
</table>
|
|
|
</div>
|
|
|
<div style="width: 100%;" class="btn-group" role="group">
|
|
|
- <button style="width: 40%;" type="button" class="btn btn-default" ng-click="reply(purcInquiry)" ng-disabled="purcInquiry.status != 200">
|
|
|
+ <button style="width: 40%;" type="button" class="btn btn-default border-success"
|
|
|
+ ng-click="reply(purcInquiry)" ng-disabled="purcInquiry.status != 200 || repliesForm.$invalid">
|
|
|
<label><i class="fa fa-reply"></i> 回复</label>
|
|
|
</button>
|
|
|
- <button style="width: 60%;" type="button" class="btn btn-default" ng-click="save(purcInquiry)" ng-disabled="purcInquiry.status != 200">
|
|
|
+ <button style="width: 60%;" type="button" class="btn btn-default" ng-click="save(purcInquiry)"
|
|
|
+ ng-disabled="purcInquiry.status != 200 || repliesForm.$invalid">
|
|
|
<label><i class="fa fa-save"></i> 保存</label>
|
|
|
</button>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
</div>
|
|
|
</div>
|