|
|
@@ -36,6 +36,17 @@ tbody td .text-waiting {
|
|
|
color: #56a022;
|
|
|
border-color: #56a022;
|
|
|
}
|
|
|
+.table td input.uploadFile{
|
|
|
+ position: absolute;
|
|
|
+ width: 100px;
|
|
|
+ left: 100px;
|
|
|
+ height: 30px;
|
|
|
+ top: 0;
|
|
|
+ opacity: 0;
|
|
|
+}
|
|
|
+a:hover{
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
</style>
|
|
|
<div class="pane base-info" id="order-detail-list">
|
|
|
<div class="pub-com_head">
|
|
|
@@ -105,109 +116,115 @@ tbody td .text-waiting {
|
|
|
<table class="block table table-default table-striped" style="margin-bottom: 0;">
|
|
|
<thead>
|
|
|
<tr class="header">
|
|
|
- <th width="385">模具资料</th>
|
|
|
- <th width="50">币别</th>
|
|
|
- <th width="250">价格 <span>税率:</span><input class="taxrate-input" ng-model="inquiryMould.taxrate" ng-pattern="/^[0-9][0-9]{0,1}$/" style="width: 30px;" ng-disabled="!inquiryMould.$editing">%</th>
|
|
|
+ <th width="380">模具资料</th>
|
|
|
+ <th width="300">币别:<span ng-bind="inquiryMould.currency"></span> 价格 <span>税率:</span><input class="taxrate-input" ng-model="inquiryMould.taxrate" ng-pattern="/^[0-9][0-9]{0,1}$/" style="width: 30px;" ng-disabled="!inquiryMould.$editing">%</th>
|
|
|
+ <th width="150">附件</th>
|
|
|
<th width="100"></th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
- </table>
|
|
|
- <table class="block table table-default table-striped">
|
|
|
<tbody>
|
|
|
- <tr>
|
|
|
- <td class="product" width="385">
|
|
|
- <div class="text-mould" ng-repeat="items in inquiryMould.inquiryMouldItems">
|
|
|
- <div class="text-num text-bold text-ps" >
|
|
|
- {{items.psCode}}-{{items.psName}}
|
|
|
- </div>
|
|
|
- <div class="text-muted text-prod" ng-repeat="prod in items.inquiryMouldDetails">
|
|
|
- <div>{{prod.prodCode}}-{{prod.prodTitle}}-{{prod.prodSpec}}</div>
|
|
|
- </div>
|
|
|
+ <tr>
|
|
|
+ <td class="product" width="380">
|
|
|
+ <div class="text-mould" ng-repeat="items in inquiryMould.inquiryMouldItems">
|
|
|
+ <div class="text-num text-bold text-ps" >
|
|
|
+ {{items.psCode}}-{{items.psName}}
|
|
|
</div>
|
|
|
- <!-- 附件上传先隐藏 -->
|
|
|
- <!-- <div ng-if="inquiryMould.$editing && !inquiryMould.attachs.length"
|
|
|
- class="input-group input-group-sm col-sm-12" style="padding-top: 5px;">
|
|
|
- <span class="input-group-addon">上传附件:</span>
|
|
|
- <input type="file" ng-model="inquiryMould.attachs" ng-file-select
|
|
|
- ng-multiple="false" class="form-control input-sm" name="inquiryMould.attachs"
|
|
|
- id="inquiryMould.attachs">
|
|
|
- <span class="input-group-btn">
|
|
|
- <button ng-click="uploadAttach(mould)"
|
|
|
- ng-diabled="!inquiryMould.attachs.length"
|
|
|
- class="btn btn-success" type="button">确认上传</button>
|
|
|
- </span>
|
|
|
- </div> -->
|
|
|
- </td>
|
|
|
- <td class="text-center" width="50">
|
|
|
- <span ng-bind="inquiryMould.currency"></span>
|
|
|
- </td>
|
|
|
- <td class="text-center" width="250">
|
|
|
- <div ng-repeat="items in inquiryMould.inquiryMouldItems">
|
|
|
- <input type="text" class="text-right input-price input-xs" ng-model="items.price" placeholder="单价(请填数字)" ng-blur="blurPrice(items.price)"
|
|
|
- ng-change="verifyItems(items.price,$index);notZero(inquiryMould)" ng-disabled="!inquiryMould.$editing"/>
|
|
|
- <!-- <span ng-show="canSave">{{inquiryMould_copy.inquiryMouldItems[$index].price}}</span> -->
|
|
|
- <div ng-repeat="prod in items.inquiryMouldDetails">
|
|
|
- <input type="text" class="text-right input-price input-xs" ng-model="prod.price" placeholder="单价(请填数字)" ng-blur="blurPrice(prod.price)"
|
|
|
- ng-change="verifyProds(prod.price,$index,$parent.$index);notZero(inquiryMould)" ng-disabled="!inquiryMould.$editing"/>
|
|
|
- <!-- <span ng-show="canSave">{{inquiryMould_copy.inquiryMouldItems[$parent.$index].inquiryMouldDetails[$index].price}}</span> -->
|
|
|
- </div>
|
|
|
+ <div class="text-muted text-prod" ng-repeat="prod in items.inquiryMouldDetails">
|
|
|
+ <div>{{prod.prodCode}}-{{prod.prodTitle}}-{{prod.prodSpec}}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- 附件上传先隐藏 -->
|
|
|
+ <!--<div ng-if="inquiryMould.$editing && !inquiryMould.attachs.length"
|
|
|
+ class="input-group input-group-sm col-sm-12" style="padding-top: 5px;">
|
|
|
+ <span class="input-group-addon">上传附件:</span>
|
|
|
+ <input type="file" ng-model="inquiryMould.attachs" ng-file-select
|
|
|
+ ng-multiple="false" class="form-control input-sm" name="inquiryMould.attachs"
|
|
|
+ id="inquiryMould.attachs">
|
|
|
+ <span class="input-group-btn">
|
|
|
+ <button ng-click="uploadAttach(mould)"
|
|
|
+ ng-diabled="!inquiryMould.attachs.length"
|
|
|
+ class="btn btn-success" type="button">确认上传</button>
|
|
|
+ </span>
|
|
|
+ </div>-->
|
|
|
+ </td>
|
|
|
+ <td class="text-center" width="300">
|
|
|
+ <div ng-repeat="items in inquiryMould.inquiryMouldItems">
|
|
|
+ <input type="text" class="text-right input-price input-xs" ng-model="items.price" placeholder="单价(请填数字)" ng-blur="blurPrice(items.price)"
|
|
|
+ ng-change="verifyItems(items.price,$index);notZero(inquiryMould)" ng-disabled="!inquiryMould.$editing"/>
|
|
|
+ <!-- <span ng-show="canSave">{{inquiryMould_copy.inquiryMouldItems[$index].price}}</span> -->
|
|
|
+ <div ng-repeat="prod in items.inquiryMouldDetails">
|
|
|
+ <input type="text" class="text-right input-price input-xs" ng-model="prod.price" placeholder="单价(请填数字)" ng-blur="blurPrice(prod.price)"
|
|
|
+ ng-change="verifyProds(prod.price,$index,$parent.$index);notZero(inquiryMould)" ng-disabled="!inquiryMould.$editing"/>
|
|
|
+ <!-- <span ng-show="canSave">{{inquiryMould_copy.inquiryMouldItems[$parent.$index].inquiryMouldDetails[$index].price}}</span> -->
|
|
|
</div>
|
|
|
- <div class="dropdown">
|
|
|
- <a href="javascript:void(0);"
|
|
|
- class="dropdown-toggle text-default"
|
|
|
- ng-mouseover="getHistory(inquiryMould)">历史报价<i
|
|
|
+ </div>
|
|
|
+ <div class="dropdown">
|
|
|
+ <a href="javascript:void(0);"
|
|
|
+ class="dropdown-toggle text-default"
|
|
|
+ ng-mouseover="getHistory(inquiryMould)">历史报价<i
|
|
|
class="fa fa-fw fa-angle-down"></i></a>
|
|
|
- <div class="dropdown-menu pane" style="width: 270px;">
|
|
|
- <div class="pane-body">
|
|
|
- <ul ng-show="inquiryMould.replyDate" class="list-unstyled list-menu">
|
|
|
- <li class="col-xs-12" ng-repeat="item in ::inquiryMould.history.inquiryMouldItems">
|
|
|
- <div ng-repeat="itemReply in item.replies" ng-class="{'text-inverse': $index==0}">
|
|
|
- <span class="col-xs-3">{{itemReply.reply | number:6}}</span>
|
|
|
- <div ng-repeat="prodReply in itemReply.prodReplies">
|
|
|
- <span class="col-xs-3">{{prodReply.reply | number:6}}</span>
|
|
|
- </div>
|
|
|
- <span class="col-xs-12">{{itemReply.replyDate | date:"yyyy-MM-dd HH:mm:ss"}}</span>
|
|
|
- <div class="text-muted col-xs-12">
|
|
|
- {{inquiryMould.enterprise.enName}}
|
|
|
- </div>
|
|
|
+ <div class="dropdown-menu pane" style="width: 270px;">
|
|
|
+ <div class="pane-body">
|
|
|
+ <ul ng-show="inquiryMould.replyDate" class="list-unstyled list-menu">
|
|
|
+ <li class="col-xs-12" ng-repeat="item in ::inquiryMould.history.inquiryMouldItems">
|
|
|
+ <div ng-repeat="itemReply in item.replies" ng-class="{'text-inverse': $index==0}">
|
|
|
+ <span class="col-xs-3">{{itemReply.reply | number:6}}</span>
|
|
|
+ <div ng-repeat="prodReply in itemReply.prodReplies">
|
|
|
+ <span class="col-xs-3">{{prodReply.reply | number:6}}</span>
|
|
|
</div>
|
|
|
- </li>
|
|
|
-
|
|
|
- </ul>
|
|
|
- <div ng-show="!inquiryMould.replyDate"
|
|
|
- class="text-center text-muted">暂无历史报价</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- <td class="text-center" width="100">
|
|
|
- <div ng-if="inquiryMould.status == 200 && inquiryMould.overdue == 0 && inquiryMould.valid != 0 && inquiryMould.adoptStatus == null" class="block">
|
|
|
- <span class="text-waiting">待报价</span>
|
|
|
- </div>
|
|
|
- <!-- 已报价 -->
|
|
|
- <div ng-if="inquiryMould.status == 201 && inquiryMould.adoptStatus == null && inquiryMould.valid != 0" class="block">
|
|
|
- <span class="text-trans warning">已报价</span>
|
|
|
- <div ng-if="inquiryMould.check == 1" class="text-muted"
|
|
|
- style="padding-top: 50px;">
|
|
|
- 客户正在<br>审批...
|
|
|
+ <span class="col-xs-12">{{itemReply.replyDate | date:"yyyy-MM-dd HH:mm:ss"}}</span>
|
|
|
+ <div class="text-muted col-xs-12">
|
|
|
+ {{inquiryMould.enterprise.enName}}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+
|
|
|
+ </ul>
|
|
|
+ <div ng-show="!inquiryMould.replyDate"
|
|
|
+ class="text-center text-muted">暂无历史报价</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div ng-if="inquiryMould.status == 201 && inquiryMould.adoptStatus == 1 && inquiryMould.valid != 0"
|
|
|
- class="block">
|
|
|
- <span class="text-trans success">已采纳</span>
|
|
|
- </div>
|
|
|
- <div ng-if="inquiryMould.status == 201 && inquiryMould.adoptStatus == 0 && inquiryMould.valid != 0"
|
|
|
- class="block">
|
|
|
- <span class="text-trans error">未采纳</span>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td width="150" style="vertical-align: top" class="text-center">
|
|
|
+ <div class="input-group form-group" style="width: 300px; position: relative;">
|
|
|
+ <a style="color: #327ebe">上传附件</a>
|
|
|
+ <input type="file" ng-model="myFiles" ng-file-select multiple="multiple"
|
|
|
+ ng-multiple="false" class="form-control input-sm input-group uploadFile" name="file"
|
|
|
+ ng-change="pushFile()">
|
|
|
+ <div ng-repeat="file in inquiryMould.attachs">
|
|
|
+ <p class="text-left"><a style="color: #0000cc">{{file.name}}</a></p>
|
|
|
</div>
|
|
|
- <div ng-if="inquiryMould.overdue == 1 && inquiryMould.status == 200 && inquiryMould.valid != 0" class="block">
|
|
|
- <span class="text-trans text-muted">已过期</span>
|
|
|
+ </div>
|
|
|
+ </th>
|
|
|
+ <td class="text-center" width="100">
|
|
|
+ <div ng-if="inquiryMould.status == 200 && inquiryMould.overdue == 0 && inquiryMould.valid != 0 && inquiryMould.adoptStatus == null" class="block">
|
|
|
+ <span class="text-waiting">待报价</span>
|
|
|
+ </div>
|
|
|
+ <!-- 已报价 -->
|
|
|
+ <div ng-if="inquiryMould.status == 201 && inquiryMould.adoptStatus == null && inquiryMould.valid != 0" class="block">
|
|
|
+ <span class="text-trans warning">已报价</span>
|
|
|
+ <div ng-if="inquiryMould.check == 1" class="text-muted"
|
|
|
+ style="padding-top: 50px;">
|
|
|
+ 客户正在<br>审批...
|
|
|
</div>
|
|
|
- <div ng-if="inquiryMould.valid == 0" class="block">
|
|
|
- <span class="text-trans text-light">已作废</span>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
+ </div>
|
|
|
+ <div ng-if="inquiryMould.status == 201 && inquiryMould.adoptStatus == 1 && inquiryMould.valid != 0"
|
|
|
+ class="block">
|
|
|
+ <span class="text-trans success">已采纳</span>
|
|
|
+ </div>
|
|
|
+ <div ng-if="inquiryMould.status == 201 && inquiryMould.adoptStatus == 0 && inquiryMould.valid != 0"
|
|
|
+ class="block">
|
|
|
+ <span class="text-trans error">未采纳</span>
|
|
|
+ </div>
|
|
|
+ <div ng-if="inquiryMould.overdue == 1 && inquiryMould.status == 200 && inquiryMould.valid != 0" class="block">
|
|
|
+ <span class="text-trans text-muted">已过期</span>
|
|
|
+ </div>
|
|
|
+ <div ng-if="inquiryMould.valid == 0" class="block">
|
|
|
+ <span class="text-trans text-light">已作废</span>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|