|
|
@@ -332,260 +332,6 @@
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
- <!--<table class="block table table-default table-striped">-->
|
|
|
- <!--<tbody>-->
|
|
|
- <!--<tr-->
|
|
|
- <!--ng-repeat="inquiryItem in newinquiryItems | orderBy:'number'" ng-class="{'scoroll':order.orderItems.length>10}">-->
|
|
|
- <!--<td width="40">-->
|
|
|
- <!--<!– <div ng-bind="::inquiryItem.number">-->
|
|
|
- <!--</div> –>-->
|
|
|
- <!--{{$index + 1}}-->
|
|
|
- <!--</td>-->
|
|
|
- <!--<td width="200">-->
|
|
|
- <!--<div class="text-num text-bold"-->
|
|
|
- <!--ng-bind="::inquiryItem.product.code"></div>-->
|
|
|
- <!--<div ng-bind="::inquiryItem.product.title"></div>-->
|
|
|
- <!--<div class="text-muted" ng-bind="::inquiryItem.product.spec"></div>-->
|
|
|
- <!--<div ng-if="::inquiryItem.needquantity" class="text-num text-bold">-->
|
|
|
- <!--需求数量:<span ng-bind="::inquiryItem.needquantity"></span>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div ng-show="inquiryItem.remark">-->
|
|
|
- <!--备注:{{::inquiryItem.remark}}-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div ng-if="inquiryItem.attaches.length && !inquiryItem.$editing" class="text-muted">-->
|
|
|
- <!--附件:<a class="file" ng-repeat="attach in inquiryItem.attaches" href="file/{{attach.id}}">{{::attach.name}}</a>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div class="form-group" ng-if="inquiryItem.$editing"-->
|
|
|
- <!--style="width: 180px;">-->
|
|
|
- <!--<input type="text" class="form-control input-xs"-->
|
|
|
- <!--ng-model="inquiryItem.brand" placeholder="物料品牌">-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div class="form-group" ng-if="inquiryItem.$editing"-->
|
|
|
- <!--style="width: 180px;">-->
|
|
|
- <!--<input type="text" class="form-control input-xs"-->
|
|
|
- <!--ng-model="inquiryItem.vendorprodcode" placeholder="供应商物料编号">-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div class="form-group" ng-if="inquiryItem.$editing" style="width: 220px;">-->
|
|
|
- <!--<input type="text" class="form-control input-xs" ng-change="verify(inquiryItem.leadtime,'leadtime')" ng-pattern="/^\+?[1-9]\d*$/"-->
|
|
|
- <!--ng-model="inquiryItem.leadtime" placeholder="交货周期(确切天数)" style="display: inline-block;width: 180px;">-->
|
|
|
- <!--<span ng-if="!inquiryItem.leadtime" class="text-inverse"> 必填*</span>-->
|
|
|
- <!--<div style="margin-left: 50px;" class="text-bold text-inverse" ng-show="!leadtimeVerify">请填数字!</div>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div class="input-group form-group" ng-if="inquiryItem.$editing && !inquiryItem.attaches.length" style="width: 300px;">-->
|
|
|
- <!--<div class="input-group-addon">上传附件:</div>-->
|
|
|
- <!--<input type="file" ng-model="inquiryItem.myFiles" ng-file-select-->
|
|
|
- <!--ng-multiple="false" class="form-control input-sm input-group" name="file">-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</td>-->
|
|
|
- <!--<td class="text-center" width="40">-->
|
|
|
- <!--<span ng-bind="::inquiryItem.product.unit"></span>-->
|
|
|
- <!--</td>-->
|
|
|
- <!--<td class="text-center" width="90">-->
|
|
|
- <!--<div ng-show="!inquiryItem.$editing">-->
|
|
|
- <!--<div ng-repeat="reply in inquiryItem.replies">-->
|
|
|
- <!--<span ng-bind="reply.lapQty"></span>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div style="margin: 0 auto;" ng-if="inquiryItem.$editing">-->
|
|
|
- <!--<div ng-repeat="reply in inquiryItem.replies">-->
|
|
|
- <!--<div class="form-group input-group input-group-xs">-->
|
|
|
- <!--<input type="text" class="form-control input-xs" ng-change="verifylapQty(reply.lapQty,$index, inquiryItem)"-->
|
|
|
- <!--ng-model="reply.lapQty" min="{{$index == 0 ? 0 :(inquiryItem.replies[$index - 1].lapQty + 1)}}"-->
|
|
|
- <!--ng-Readonly="$index == 0" placeholder="数量" />-->
|
|
|
- <!--<span class="input-group-btn" ng-show="$index != 0">-->
|
|
|
- <!--<button class="btn btn-default" type="button"-->
|
|
|
- <!--ng-click="removeStep(inquiryItem, $index)">-->
|
|
|
- <!--<i class="fa fa-trash-o"></i>-->
|
|
|
- <!--</button>-->
|
|
|
- <!--</span>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div class="text-bold text-inverse" style="margin-top:-15px" ng-show="!replylapQtys[$index]">分段数递增!</div>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<a ng-click="addStep(inquiryItem)" class="btn btn-default btn-xs"-->
|
|
|
- <!--ng-show="!inquiryItem.custLap">添加分段</a>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</td>-->
|
|
|
- <!--<td class="text-center br-l" width="100">-->
|
|
|
- <!--<div ng-show="!inquiryItem.$editing">-->
|
|
|
- <!--<div ng-repeat="reply in inquiryItem.replies">-->
|
|
|
- <!--<span ng-bind="reply.price | number:6"></span> <span-->
|
|
|
- <!--ng-show="reply.price == null" class="text-muted">-</span>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div class="dropdown">-->
|
|
|
- <!--<a href="javascript:void(0);" class="dropdown-toggle text-default"-->
|
|
|
- <!--ng-mouseover="getHistory(inquiryItem)">历史报价<i-->
|
|
|
- <!--class="fa fa-fw fa-angle-down"></i></a>-->
|
|
|
- <!--<div class="dropdown-menu pane" style="width: 270px;">-->
|
|
|
- <!--<div class="pane-body">-->
|
|
|
- <!--<ul class="list-unstyled list-menu">-->
|
|
|
- <!--<li ng-repeat="historyItem in ::inquiryItem.history">-->
|
|
|
- <!--<div ng-class="{'text-inverse': $index==0}">-->
|
|
|
- <!--<div class="row row-sm"-->
|
|
|
- <!--ng-repeat="historyReply in historyItem.replies">-->
|
|
|
- <!--<div class="col-xs-5">≥{{historyReply.lapQty}}</div>-->
|
|
|
- <!--<div class="col-xs-5">价格{{historyReply.price | number:6}}</div>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div class="text-muted">{{historyItem.inquiry.date |-->
|
|
|
- <!--date:'yyyy-MM-dd'}}{{historyItem.inquiry.enterprise.enName}}-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</li>-->
|
|
|
- <!--</ul>-->
|
|
|
- <!--<div ng-show="!inquiryItem.history || inquiryItem.history.length == 0"-->
|
|
|
- <!--class="text-center text-muted">暂无历史报价</div>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div style="margin: 0 auto;" ng-if="inquiryItem.$editing">-->
|
|
|
- <!--<div ng-repeat="reply in inquiryItem.replies">-->
|
|
|
- <!--<div class="form-group">-->
|
|
|
- <!--<input type="text" class="form-control input-xs " ng-class="{'input-error': !replyPrices[$index]}" ng-model="reply.price"-->
|
|
|
- <!--ng-change="verify(reply.price,$index)" placeholder="单价(必填)" />-->
|
|
|
- <!--<div class="text-bold text-inverse" style="margin-bottom:-15px" ng-show="!replyPrices[$index]">请填数字!</div>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</td>-->
|
|
|
- <!--<td class="text-center" ng-bind="::inquiryItem.currency" width="50"></td>-->
|
|
|
- <!--<td class="text-center" width="60">-->
|
|
|
- <!--<input type="text" ng-pattern="/^\+?[1-9]\d*$/" ng-model="inquiryItem.taxrate" style="width: 25px" ng-readonly="!inquiryItem.$editing">%</td>-->
|
|
|
- <!--<td class="text-center" width="85">-->
|
|
|
- <!--<div ng-show="!inquiryItem.$editing">-->
|
|
|
- <!--<span ng-bind="inquiryItem.minOrderQty"></span> <span-->
|
|
|
- <!--ng-show="inquiryItem.minOrderQty == null" class="text-muted">-</span>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div ng-if="inquiryItem.$editing">-->
|
|
|
- <!--<input type="text" class="form-control input-xs" ng-change="verify(inquiryItem.minOrderQty,'minOrderQty')"-->
|
|
|
- <!--ng-model="inquiryItem.minOrderQty" placeholder="最小订购">-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</td>-->
|
|
|
- <!--<td class="text-center" width="85">-->
|
|
|
- <!--<div ng-show="!inquiryItem.$editing">-->
|
|
|
- <!--<span ng-bind="inquiryItem.minPackQty"></span> <span-->
|
|
|
- <!--ng-show="inquiryItem.minPackQty == null" class="text-muted">-</span>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div ng-if="inquiryItem.$editing">-->
|
|
|
- <!--<input type="text" class="form-control input-xs" ng-change="verify(inquiryItem.minPackQty,'minPackQty')"-->
|
|
|
- <!--ng-model="inquiryItem.minPackQty" placeholder="最小包装">-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</td>-->
|
|
|
- <!--<td class="text-center" width="120">-->
|
|
|
- <!--<div ng-show="!inquiryItem.$editing"-->
|
|
|
- <!--ng-init="parseDate(inquiryItem)">-->
|
|
|
- <!--<div ng-show="inquiryItem.vendFromDate">-->
|
|
|
- <!--<span class="text-muted">从 </span><span-->
|
|
|
- <!--ng-bind="inquiryItem.vendFromDate | date:'yyyy-MM-dd'"></span>-->
|
|
|
- <!--<span class="text-muted">到 </span><span-->
|
|
|
- <!--ng-bind="inquiryItem.vendToDate | date:'yyyy-MM-dd'"></span>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div ng-show="!inquiryItem.vendFromDate">-->
|
|
|
- <!--<span class="text-muted">-</span>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div ng-if="inquiryItem.$editing">-->
|
|
|
- <!--<div class="form-group input-group input-group-xs input-trigger">-->
|
|
|
- <!--<input type="text" ng-model="inquiryItem.vendFromDate"-->
|
|
|
- <!--class="form-control" placeholder="开始日期"-->
|
|
|
- <!--datepicker-popup="yyyy-MM-dd"-->
|
|
|
- <!--is-open="inquiryItem.$fromOpened"-->
|
|
|
- <!--min-date="getMinDate(inquiryItem)" ng-required="true"-->
|
|
|
- <!--current-text="今天" clear-text="清除" close-text="关闭"-->
|
|
|
- <!--datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"-->
|
|
|
- <!--ng-focus="openDatePicker($event, inquiryItem, '$fromOpened')">-->
|
|
|
- <!--<span class="input-group-btn">-->
|
|
|
- <!--<button type="button" class="btn btn-default"-->
|
|
|
- <!--ng-click="openDatePicker($event, inquiryItem, '$fromOpened')">-->
|
|
|
- <!--<i class="fa fa-calendar"></i>-->
|
|
|
- <!--</button>-->
|
|
|
- <!--</span>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div class="form-group input-group input-group-xs input-trigger">-->
|
|
|
- <!--<input type="text" ng-model="inquiryItem.vendToDate"-->
|
|
|
- <!--class="form-control" placeholder="结束日期"-->
|
|
|
- <!--datepicker-popup="yyyy-MM-dd" is-open="inquiryItem.$toOpened"-->
|
|
|
- <!--min-date="inquiryItem.vendFromDate" ng-required="true"-->
|
|
|
- <!--current-text="今天" clear-text="清除" close-text="关闭"-->
|
|
|
- <!--datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"-->
|
|
|
- <!--ng-focus="openDatePicker($event, inquiryItem, '$toOpened')">-->
|
|
|
- <!--<span class="input-group-btn">-->
|
|
|
- <!--<button type="button" class="btn btn-default"-->
|
|
|
- <!--ng-click="openDatePicker($event, inquiryItem, '$toOpened')">-->
|
|
|
- <!--<i class="fa fa-calendar"></i>-->
|
|
|
- <!--</button>-->
|
|
|
- <!--</span>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</td>-->
|
|
|
- <!--<td class="text-center" width="75">-->
|
|
|
- <!--<div ng-if="inquiryItem.status == 201 && inquiryItem.agreed == null && inquiryItem.invalid != 1" class="block">-->
|
|
|
- <!--<span class="text-trans warning">已报价</span>-->
|
|
|
- <!--<div ng-if="inquiryItem.inquiry.overdue == 0 && inquiryItem.inquiry.check != 1" style="padding-top: 50px;">-->
|
|
|
- <!--<div ng-show="!inquiryItem.$editing">-->
|
|
|
- <!--<a ng-click="inquiryItem.$editing=!inquiryItem.$editing;getToken()">修改报价</a>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div ng-show="inquiryItem.$editing">-->
|
|
|
- <!--<div>-->
|
|
|
- <!--<a ng-click="inquiryItem.$editing=!inquiryItem.$editing; cancel()">取消</a>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div>-->
|
|
|
- <!--<button ng-click="onReplyClick(inquiryItem, true)"-->
|
|
|
- <!--ng-disabled="!isValid(inquiryItem, true)"-->
|
|
|
- <!--class="btn btn-link btn-xs text-inverse">-->
|
|
|
- <!--保存并<br>确认报价-->
|
|
|
- <!--</button>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div ng-if="inquiryItem.inquiry.check == 1" class="text-muted" style="padding-top: 50px;">客户正在<br>审批...</div>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div ng-if="inquiryItem.status == 201 && inquiryItem.agreed == 1 && inquiryItem.invalid != 1" class="block">-->
|
|
|
- <!--<span class="text-trans success">已采纳</span>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div ng-if="inquiryItem.status == 201 && inquiryItem.invalid == 1" class="block">-->
|
|
|
- <!--<span class="text-trans text-light">已失效</span>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div ng-if="inquiryItem.status == 314" class="block">-->
|
|
|
- <!--<span class="text-trans text-light">已作废</span>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div ng-if="inquiryItem.status == 201 && inquiryItem.agreed == 0" class="block">-->
|
|
|
- <!--<span class="text-trans error">未采纳</span>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div ng-if="inquiryItem.status == 200">-->
|
|
|
- <!--<div ng-if="inquiryItem.inquiry.overdue == 0 && inquiryItem.inquiry.check != 1">-->
|
|
|
- <!--<div ng-show="!inquiryItem.$editing">-->
|
|
|
- <!--<a ng-click="inquiryItem.$editing=!inquiryItem.$editing;getToken()">报 价</a>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div ng-show="inquiryItem.$editing">-->
|
|
|
- <!--<div>-->
|
|
|
- <!--<a ng-click="inquiryItem.$editing=!inquiryItem.$editing; cancel()">取消</a>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div>-->
|
|
|
- <!--<button ng-click="onReplyClick(inquiryItem)"-->
|
|
|
- <!--ng-disabled="!isValid(inquiryItem)"-->
|
|
|
- <!--class="btn btn-link btn-xs text-default">保存</button>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div>-->
|
|
|
- <!--<button ng-click="onReplyClick(inquiryItem, true)"-->
|
|
|
- <!--ng-disabled="!isValid(inquiryItem, true)"-->
|
|
|
- <!--class="btn btn-link btn-xs text-inverse">-->
|
|
|
- <!--保存并<br>确认报价-->
|
|
|
- <!--</button>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div ng-if="inquiryItem.inquiry.overdue == 0 && inquiryItem.inquiry.check == 1">-->
|
|
|
- <!--<span class="text-trans half">未报价</span>-->
|
|
|
- <!--<div class="text-muted" style="padding-top: 50px;">询价单已<br>被提交...</div>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div ng-if="inquiryItem.inquiry.overdue == 1" class="block">-->
|
|
|
- <!--<span class="text-trans error">已过期</span>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</td>-->
|
|
|
- <!--</tr>-->
|
|
|
- <!--</tbody>-->
|
|
|
- <!--</table>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|