MicroCommunityWeb/public/components/common/viewResourceMyGoodsInfo/viewResourceMyGoodsInfo.html

80 lines
4.7 KiB
HTML

<div class="row">
<div class="col-lg-12">
<div class="ibox ">
<div class="ibox-title">
<h5>物品信息</h5>
<div class="ibox-tools" style="top:10px;">
<button type="button" v-if="viewResourceMyGoodsInfo.index != 2" class="btn btn-primary btn-sm"
style="margin-right:10px;" v-on:click="_openSelectResourceMyGoodsInfoModel()">
<i class="fa fa-search"></i> 选择物品
</button>
</div>
</div>
<div class="ibox-content">
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
<thead>
<tr>
<th class="text-center">物品名称</th>
<th class="text-center">物品编码</th>
<th class="text-center">物品类型</th>
<th class="text-center">是否是固定物品</th>
<th class="text-center">物品库存</th>
<th class="text-center">物品最小计量总数</th>
<th class="text-center">损耗数量</th>
<th class="text-center">物品使用类型</th>
<th class="text-center">备注</th>
<th class="text-center">操作</th>
</tr>
</thead>
<tbody>
<tr v-for="(resourceStore, index) in viewResourceMyGoodsInfo.resourceStores">
<td class="text-center" style="vertical-align: inherit;">{{resourceStore.resName}}</td>
<td class="text-center" style="vertical-align: inherit;">{{resourceStore.resCode}}</td>
<td class="text-center" style="vertical-align: inherit;">
{{resourceStore.parentRstName ? resourceStore.parentRstName : '-'}} >
{{resourceStore.rstName ? resourceStore.rstName : '-'}}
</td>
<td class="text-center" style="vertical-align: inherit;">{{resourceStore.isFixedName}}</td>
<td class="text-center" style="vertical-align: inherit;">
{{resourceStore.stock}}{{resourceStore.unitCodeName}}
</td>
<td class="text-center" style="vertical-align: inherit;">
{{resourceStore.miniStock}}{{resourceStore.miniUnitCodeName}}
</td>
<td class="text-center" style="vertical-align: inherit;">
<input v-model="resourceStore.giveQuantity" type="number" placeholder="必填,请填写数量"
class="form-control" style="width: 70%;display:inline; margin: auto">&nbsp;&nbsp;{{resourceStore.miniUnitCodeName}}
</td>
<td class="text-center" style="vertical-align: inherit;">
<select class="custom-select" v-model="resourceStore.state">
<option selected value="">请选择物品使用类型</option>
<option value="1001">报废回收</option>
<option value="3003">公用损耗</option>
</select>
</td>
<td class="text-center" style="vertical-align: inherit;">
<input v-model="resourceStore.purchaseRemark" type="text" class="form-control"
placeholder="必填,请填写备注">
</td>
<td class="text-center" style="vertical-align: inherit;">
<button type="button" class="btn btn-danger btn-sm" style="margin-right:10px;"
v-on:click="_removeSelectResourceStoreItem(resourceStore.resId, index)">
<i class="fa fa-times"></i> 移除
</button>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="9">
<ul class="pagination float-right"></ul>
</td>
</tr>
</tfoot>
</table>
</div>
</div>
<vc:create path="common/chooseResourceStaff" emitChooseResourceStore="viewResourceMyGoodsInfo"
emitLoadData="viewResourceStoreInfo"></vc:create>
</div>
</div>