|
|
@@ -0,0 +1,268 @@
|
|
|
+<div class="pane base-info">
|
|
|
+ <div class="pane-header">
|
|
|
+ 客户询价单<a href="#" class="pull-right text-simple"><i
|
|
|
+ class="fa fa-print fa-fw"></i>打印</a>
|
|
|
+ </div>
|
|
|
+ <div class="pane-body">
|
|
|
+ <div class="headerline">
|
|
|
+ <span class="index">1</span> <span class="content">单据信息</span>
|
|
|
+ </div>
|
|
|
+ <div class="row row-sm item">
|
|
|
+ <div class="col-xs-3">
|
|
|
+ <span class="title">流水号</span>
|
|
|
+ <div class="content" ng-bind="::inquiry.code"></div>
|
|
|
+ </div>
|
|
|
+ <div class="col-xs-3">
|
|
|
+ <span class="title">日期</span>
|
|
|
+ <div class="content" ng-bind="::inquiry.date | date:'yyyy-MM-dd'"></div>
|
|
|
+ </div>
|
|
|
+ <div class="col-xs-6">
|
|
|
+ <span class="title">客户</span>
|
|
|
+ <div class="content" ng-bind="::inquiry.enterprise.enName"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row row-sm item">
|
|
|
+ <div class="col-xs-3">
|
|
|
+ <span class="title">录单人</span>
|
|
|
+ <div class="content" ng-bind="::inquiry.recorder"></div>
|
|
|
+ </div>
|
|
|
+ <div class="col-xs-3">
|
|
|
+ <span class="title">审核人</span>
|
|
|
+ <div class="content" ng-bind="::inquiry.auditor"></div>
|
|
|
+ </div>
|
|
|
+ <div class="col-xs-6">
|
|
|
+ <span class="title">备注</span>
|
|
|
+ <div class="content" ng-bind="::inquiry.remark"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row row-sm item">
|
|
|
+ <div class="col-xs-6">
|
|
|
+ <span class="title">截止报价</span>
|
|
|
+ <div class="content" ng-bind="::inquiry.endDate | date:'yyyy-MM-dd'"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="headerline" ng-if="inquiry.attachs.length">
|
|
|
+ <span class="content">附件</span>
|
|
|
+ </div>
|
|
|
+ <div class="row row-sm attach" ng-if="inquiry.attachs.length">
|
|
|
+ <div class="col-xs-3 item" ng-repeat="file in inquiry.attachs">
|
|
|
+ <div class="bg">
|
|
|
+ <div class="global_icon larger icon_undefined_l"
|
|
|
+ ng-class="{'icon_pdf_l': file.type == 'pdf','icon_xls_l': file.type == 'xls' || file.type == 'xlsx' || file.type == 'et', 'icon_doc_l': file.type == 'doc' || file.type == 'docx', 'icon_txt_l': file.type == 'txt', 'icon_zip_l': file.type == 'zip' || file.type == 'rar', 'icon_image_l': file.type == 'png' || file.type == 'jpg' || file.type == 'jpeg' || file.type == 'bmp'|| file.type == 'gif'}"></div>
|
|
|
+ </div>
|
|
|
+ <div class="title" ng-bind="::file.name"></div>
|
|
|
+ <div class="download">
|
|
|
+ <a href="file/{{file.id}}">下载</a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="headerline">
|
|
|
+ <div class="index">2</div>
|
|
|
+ <div class="content">商品价格详情</div>
|
|
|
+ </div>
|
|
|
+ <div class="block">
|
|
|
+ <table class="block table table-default table-striped">
|
|
|
+ <thead>
|
|
|
+ <tr class="header">
|
|
|
+ <th>商品</th>
|
|
|
+ <th width="90"><span class="text-default">≥</span>分段数</th>
|
|
|
+ <th width="90">价格</th>
|
|
|
+ <th width="40">币别</th>
|
|
|
+ <th width="45">税率</th>
|
|
|
+ <th width="80">最小订购</th>
|
|
|
+ <th width="80">最小包装</th>
|
|
|
+ <th width="120">有效期</th>
|
|
|
+ <th width="75">操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <tr
|
|
|
+ ng-repeat="inquiryItem in inquiry.inquiryItems track by inquiryItem.id">
|
|
|
+ <td>
|
|
|
+ <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>
|
|
|
+ </td>
|
|
|
+ <td class="text-center">
|
|
|
+ <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-model="reply.lapQty" min="{{reply.lapQty == 0 ? 0 : 1}}"
|
|
|
+ ng-readonly="inquiryItem.custLap == 1 || reply.lapQty == 0 ? true : false"
|
|
|
+ placeholder="数量" /> <span class="input-group-btn"
|
|
|
+ ng-show="!inquiryItem.custLap && (reply.lapQty == null || reply.lapQty > 0)">
|
|
|
+ <button class="btn btn-default" type="button"
|
|
|
+ ng-click="removeStep(inquiryItem, $index)">
|
|
|
+ <i class="fa fa-trash-o"></i>
|
|
|
+ </button>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <a ng-click="addStep(inquiryItem)"
|
|
|
+ class="btn btn-default btn-xs" ng-show="!inquiryItem.custLap">添加分段</a>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td class="text-center">
|
|
|
+ <div ng-show="!inquiryItem.$editing">
|
|
|
+ <div ng-repeat="reply in inquiryItem.replies">
|
|
|
+ <span ng-bind="reply.price"></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}}</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-model="reply.price" placeholder="价格" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td class="text-center" ng-bind="::inquiryItem.currency"></td>
|
|
|
+ <td class="text-center"><span
|
|
|
+ ng-bind="::inquiryItem.taxrate || 0"></span>%</td>
|
|
|
+ <td class="text-center">
|
|
|
+ <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-model="inquiryItem.minOrderQty" placeholder="最小订购">
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td class="text-center">
|
|
|
+ <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-model="inquiryItem.minPackQty" placeholder="最小包装">
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td class="text-center">
|
|
|
+ <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">
|
|
|
+ <div
|
|
|
+ ng-if="inquiryItem.status == 201 && inquiryItem.agreed == null"
|
|
|
+ class="block">
|
|
|
+ <span class="text-trans warning">已报价</span>
|
|
|
+ </div>
|
|
|
+ <div ng-if="inquiryItem.status == 201 && inquiryItem.agreed == 1"
|
|
|
+ class="block">
|
|
|
+ <span class="text-trans success">报价已采纳</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-show="!inquiryItem.$editing">
|
|
|
+ <a ng-click="inquiryItem.$editing=!inquiryItem.$editing">报
|
|
|
+ 价</a>
|
|
|
+ </div>
|
|
|
+ <div ng-show="inquiryItem.$editing">
|
|
|
+ <div>
|
|
|
+ <a ng-click="inquiryItem.$editing=!inquiryItem.$editing">取消</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>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</div>
|