|
|
@@ -46,7 +46,7 @@
|
|
|
padding: 5px 30px;
|
|
|
line-height: 50px;
|
|
|
}
|
|
|
- .bom-list-detail .bom-info .info-list li {
|
|
|
+ .bom-list-detail .bom-info .info-list .info-list-item {
|
|
|
font-size: 14px;
|
|
|
width: 33%;
|
|
|
overflow: hidden;
|
|
|
@@ -61,20 +61,20 @@
|
|
|
.bom-list-detail .bom-info .info-list.seek .spec {
|
|
|
width: 33%;
|
|
|
}
|
|
|
- .bom-list-detail .bom-info .info-list li b {
|
|
|
+ .bom-list-detail .bom-info .info-list .info-list-item b {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
- .bom-list-detail .bom-info .info-list li .bom-input {
|
|
|
+ .bom-list-detail .bom-info .info-list .info-list-item .bom-input {
|
|
|
height: 30px;
|
|
|
border-radius: 2px;
|
|
|
border: 1px solid #dadada;
|
|
|
padding: 0 10px;
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
- .bom-list-detail .bom-info .info-list li:nth-child(1) input {
|
|
|
+ .bom-list-detail .bom-info .info-list .info-list-item:nth-child(1) input {
|
|
|
width: 218px;
|
|
|
}
|
|
|
- .bom-list-detail .bom-info .info-list li:nth-child(4) input {
|
|
|
+ .bom-list-detail .bom-info .info-list .info-list-item:nth-child(4) input {
|
|
|
width: 253px;
|
|
|
}
|
|
|
.bom-list-detail .bom-info .info-list .expand {
|
|
|
@@ -85,6 +85,14 @@
|
|
|
}
|
|
|
.bom-list-detail .bom-info .info-list .date input {
|
|
|
width: 146px;
|
|
|
+ display: inline-block;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ .bom-list-detail .bom-info .info-list .date .btn-default{
|
|
|
+ border: none;
|
|
|
+ }
|
|
|
+ .bom-list-detail .bom-info .info-list .date > ul {
|
|
|
+ line-height: normal;
|
|
|
}
|
|
|
.bom-list-detail .bom-list-table {
|
|
|
width: 100%;
|
|
|
@@ -166,39 +174,47 @@
|
|
|
}
|
|
|
</style>
|
|
|
<div class="user_right fr bom-list-detail">
|
|
|
- <a class="back" href="user#/seekPurchase?type=bomManage"><返回BOM列表</a>
|
|
|
+ <a class="back" href="user#/seekPurchase?type=bomManage&bomTab=bomList"><返回BOM列表</a>
|
|
|
<div class="operate">
|
|
|
操作:
|
|
|
- <button class="operate-btn" ng-click="setEditSeek(!editSeek)">发布求购</button>
|
|
|
- <button class="operate-btn" ng-click="setEditBom(!editBom)">编辑BOM</button>
|
|
|
+ <button class="operate-btn" ng-click="setEditSeek(true)">发布求购</button>
|
|
|
+ <button class="operate-btn" ng-click="setEditBom(true)">编辑BOM</button>
|
|
|
<button class="operate-btn">删除物料</button>
|
|
|
<button class="operate-btn">删除本BOM</button>
|
|
|
- <div class="fr">
|
|
|
- <button class="sure-btn">确认</button>
|
|
|
- <button class="sure-btn cancel-btn">取消</button>
|
|
|
+ <div class="fr" ng-show="editBom || editSeek">
|
|
|
+ <button class="sure-btn" ng-click="sure(true)">确认</button>
|
|
|
+ <button class="sure-btn cancel-btn" ng-click="sure(false)">取消</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="bom-info">
|
|
|
<ul class="list-inline info-list" ng-class="{'seek': editSeek}">
|
|
|
- <li>
|
|
|
+ <li class="info-list-item">
|
|
|
<b>BOM名称:
|
|
|
<span ng-show="!editBom" ng-bind="bomData.name"></span>
|
|
|
- <input class="bom-input" ng-show="editBom" type="text">
|
|
|
+ <input class="bom-input" ng-show="editBom" ng-model="tmpEditBom.name" type="text">
|
|
|
</b>
|
|
|
</li>
|
|
|
- <li><b>本单共<span class="remind" ng-bind="bomData.amount || 0"></span>个产品</b></li>
|
|
|
- <li>创建时间:{{bomData.releaseDate | date:'yyyy-MM-dd HH:mm:ss'}}</li>
|
|
|
- <li class="spec">规格:
|
|
|
+ <li class="info-list-item"><b>本单共<span class="remind" ng-bind="bomData.amount || 0"></span>个产品</b></li>
|
|
|
+ <li class="info-list-item">创建时间:{{bomData.releaseDate | date:'yyyy-MM-dd HH:mm:ss'}}</li>
|
|
|
+ <li class="spec info-list-item">规格:
|
|
|
<span ng-show="!editBom" ng-bind="bomData.spec || '-'"></span>
|
|
|
- <input class="bom-input" ng-show="editBom" type="text">
|
|
|
+ <input class="bom-input" ng-show="editBom" ng-model="tmpEditBom.spec" type="text">
|
|
|
</li>
|
|
|
- <li class="expand amount" ng-if="editSeek">
|
|
|
+ <li class="expand amount info-list-item" ng-if="editSeek">
|
|
|
<i class="must">*</i>采购数量(套):
|
|
|
- <input class="bom-input" type="text">
|
|
|
+ <input class="bom-input" type="text" ng-model="seekObj.count">
|
|
|
</li>
|
|
|
- <li class="expand date" ng-if="editSeek">
|
|
|
+ <li class="info-list-item expand date" ng-if="editSeek">
|
|
|
<i class="must">*</i>截止时间:
|
|
|
- <input class="bom-input" type="text">
|
|
|
+ <input type="text" ng-model="seekObj.endTime"
|
|
|
+ class="bom-input select-adder" placeholder="截止时间"
|
|
|
+ datepicker-popup="yyyy-MM-dd"
|
|
|
+ is-open="endTimeOpen.open"
|
|
|
+ min-date="startDate" current-text="今天" clear-text="清除" close-text="关闭"
|
|
|
+ ng-click="openDatePicker($event)"
|
|
|
+ datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"
|
|
|
+ ng-change="changeEndTime()"
|
|
|
+ />
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
@@ -207,7 +223,7 @@
|
|
|
<tr>
|
|
|
<th>
|
|
|
<label class="com-check-box">
|
|
|
- <input type="checkbox" id="checkAll">
|
|
|
+ <input type="checkbox" id="checkAll" ng-click="onCheckAllCheck()" ng-model="checkAll">
|
|
|
<label for="checkAll"></label>
|
|
|
<span class="check-all">全选</span>
|
|
|
</label>
|
|
|
@@ -218,11 +234,11 @@
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
- <tr>
|
|
|
+ <tr ng-repeat="detail in bomData.seekPurchaseByBatchs track by $index">
|
|
|
<td>
|
|
|
<label class="com-check-box">
|
|
|
- <input type="checkbox" id="1">
|
|
|
- <label for="1"></label>
|
|
|
+ <input type="checkbox" id="{{$index}}" ng-click="initCheckAll()" ng-model="detail.$checked">
|
|
|
+ <label for="{{$index}}"></label>
|
|
|
</label>
|
|
|
</td>
|
|
|
<td class="base-info">
|
|
|
@@ -231,8 +247,8 @@
|
|
|
<i class="must">*</i>品牌:
|
|
|
</div>
|
|
|
<div class="inline-block">
|
|
|
- <span ng-show="!editBom">123123123123</span>
|
|
|
- <input ng-show="editBom" ng-shw="editBom" type="text">
|
|
|
+ <span ng-show="!editBom || !detail.$checked" ng-bind="detail.brand || '-'"></span>
|
|
|
+ <input ng-show="editBom && detail.$checked" ng-model="tmpEditBom.seekPurchaseByBatchs[$index].brand" type="text">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="content-line">
|
|
|
@@ -240,8 +256,8 @@
|
|
|
<i class="must">*</i>物料名称:
|
|
|
</div>
|
|
|
<div class="inline-block">
|
|
|
- <span ng-show="!editBom">123123123123</span>
|
|
|
- <input ng-show="editBom" type="text">
|
|
|
+ <span ng-show="!editBom || !detail.$checked" ng-bind="detail.kind || '-'"></span>
|
|
|
+ <input ng-show="editBom && detail.$checked" ng-model="tmpEditBom.seekPurchaseByBatchs[$index].kind" type="text">
|
|
|
</div>
|
|
|
</div>
|
|
|
</td>
|
|
|
@@ -251,8 +267,8 @@
|
|
|
<i class="must">*</i>型号:
|
|
|
</div>
|
|
|
<div class="inline-block">
|
|
|
- <span ng-show="!editBom">123123123123</span>
|
|
|
- <input ng-show="editBom" type="text">
|
|
|
+ <span ng-show="!editBom || !detail.$checked" ng-bind="detail.code || '-'"></span>
|
|
|
+ <input ng-show="editBom && detail.$checked" ng-model="tmpEditBom.seekPurchaseByBatchs[$index].code" type="text">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="content-line">
|
|
|
@@ -260,8 +276,8 @@
|
|
|
<i class="must">*</i>规格:
|
|
|
</div>
|
|
|
<div class="inline-block">
|
|
|
- <span ng-show="!editBom">123123123123</span>
|
|
|
- <input ng-show="editBom" type="text">
|
|
|
+ <span ng-show="!editBom || !detail.$checked" ng-bind="detail.spec || '-'"></span>
|
|
|
+ <input ng-show="editBom && detail.$checked" ng-model="tmpEditBom.seekPurchaseByBatchs[$index].spec" type="text">
|
|
|
</div>
|
|
|
</div>
|
|
|
</td>
|
|
|
@@ -271,8 +287,8 @@
|
|
|
单位用量:
|
|
|
</div>
|
|
|
<div class="inline-block">
|
|
|
- <span ng-show="!editBom">123123123123</span>
|
|
|
- <input ng-show="editBom" type="text">
|
|
|
+ <span ng-show="!editBom || !detail.$checked" ng-bind="detail.amount || '-'"></span>
|
|
|
+ <input ng-show="editBom && detail.$checked" ng-model="tmpEditBom.seekPurchaseByBatchs[$index].amount" type="text">
|
|
|
</div>
|
|
|
</div>
|
|
|
</td>
|