|
@@ -155,36 +155,32 @@
|
|
|
<div class="inquiry">
|
|
<div class="inquiry">
|
|
|
<table class="table table-condensed table-bordered table-striped text-center ">
|
|
<table class="table table-condensed table-bordered table-striped text-center ">
|
|
|
<tr>
|
|
<tr>
|
|
|
- <th style="width: 5%;"><th style="width: 35%;">分段数量({{purcInquiry.product.unit}})</th><th style="width: 30%;">分段单价</th><th></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">
|
|
|
|
|
+ <i class="fa fa-plus"></i>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </th>
|
|
|
</tr>
|
|
</tr>
|
|
|
- <tr ng-repeat="reply in purcInquiry.replies">
|
|
|
|
|
|
|
+ <tr ng-repeat="reply in purcInquiry.replies" ng-click="reply.editing = true">
|
|
|
<td>{{$index + 1}}</td>
|
|
<td>{{$index + 1}}</td>
|
|
|
<td>
|
|
<td>
|
|
|
<span ng-if="!reply.editing" class="text-num">≥ {{reply.lapQty}}</span>
|
|
<span ng-if="!reply.editing" class="text-num">≥ {{reply.lapQty}}</span>
|
|
|
<div ng-if="reply.editing" class=" input-group input-group-sm">
|
|
<div ng-if="reply.editing" class=" input-group input-group-sm">
|
|
|
- <span class="input-group-addon">≥</span>
|
|
|
|
|
|
|
+ <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">
|
|
|
</div>
|
|
</div>
|
|
|
</td>
|
|
</td>
|
|
|
<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">
|
|
<div ng-if="reply.editing" class=" input-group input-group-sm">
|
|
|
- <span class="input-group-addon">{{symbol(purcInquiry.currency)}}</span>
|
|
|
|
|
|
|
+ <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">
|
|
|
</div>
|
|
</div>
|
|
|
</td>
|
|
</td>
|
|
|
<td class="text-left">
|
|
<td class="text-left">
|
|
|
- <span ng-if="!reply.editing" class="btn btn-default btn-sm" ng-click="reply.editing = true" ng-disabled="purcInquiry.status != 200">
|
|
|
|
|
- <i class="fa fa-pencil"></i>
|
|
|
|
|
- </span>
|
|
|
|
|
- <span ng-if="reply.editing" class="btn btn-default btn-sm" ng-click="reply.editing = false" ng-disabled="purcInquiry.status != 200">
|
|
|
|
|
- <i class="fa fa-save"></i>
|
|
|
|
|
- </span>
|
|
|
|
|
<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>
|
|
|
|
|
- <span ng-if="$last && $index<9" class="btn btn-success btn-sm" ng-click="addNewReply(reply)" ng-disabled="purcInquiry.status != 200">
|
|
|
|
|
- <i class="fa fa-plus"></i>
|
|
|
|
|
|
|
+ <i class="fa fa-trash"></i>
|
|
|
</span>
|
|
</span>
|
|
|
</td>
|
|
</td>
|
|
|
</tr>
|
|
</tr>
|