MicroCommunityWeb/public/components/common/viewResourceStoreInfo4/viewResourceStoreInfo4.html

91 lines
5.5 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="viewResourceStoreInfo4.index != 2" class="btn btn-primary btn-sm"
style="margin-right:10px;" v-on:click="_openSelectResourceStoreInfoModel()">
<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>
<th class="text-center">备注</th>
<th class="text-center">操作</th>
</tr>
</thead>
<tbody>
<tr v-for="(resourceStore, i) in viewResourceStoreInfo4.resourceStores">
<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.resName}}</td>
<td class="text-center" style="vertical-align: inherit;">{{resourceStore.rssName ?
resourceStore.rssName : '-'}}
</td>
<td class="text-center" style="vertical-align: inherit;">{{resourceStore.resCode}}</td>
<td class="text-center" style="vertical-align: inherit;">{{resourceStore.isFixedName}}</td>
<td class="text-center" style="vertical-align: inherit;">{{resourceStore.price}}</td>
<td class="text-center" style="vertical-align: inherit;">
{{resourceStore.stock}}{{resourceStore.unitCodeName}}
</td>
<td class="text-center" style="vertical-align: inherit;">
<input v-model="resourceStore.quantity" type="number" placeholder="必填,请填写申请数量"
class="form-control" style="width: 80%;display:inline; margin: auto">&nbsp;&nbsp;{{resourceStore.unitCodeName}}
</td>
<td class="text-center" style="vertical-align: inherit;">
<input v-model="resourceStore.urgentPrice" type="number" placeholder="必填,请填写采购单价"
class="form-control" style="width: 100%;display:inline; margin: auto">
</td>
<td class="text-center" style="vertical-align: inherit;">
<select class="custom-select" v-model="resourceStore.shzId" style="width: 100%" @change="storeHousesChange($event,i)">
<option value="">必填,请选择目标仓库</option>
<option v-for="(item,index) in viewResourceStoreInfo4.storehouses"
:key="index" v-bind:value="item.shId"
v-if="item.shId != resourceStore.shId">
{{item.shName}}
</option>
</select>
</td>
<td class="text-center" style="vertical-align: inherit;">
<input v-model="resourceStore.remark" 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)">
<i class="fa fa-times"></i> 移除
</button>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="10">
<ul class="pagination float-right"></ul>
</td>
</tr>
</tfoot>
</table>
</div>
</div>
<vc:create path="common/chooseResourceStore4" emitChooseResourceStore="viewResourceStoreInfo"
emitLoadData="viewResourceStoreInfo">
</vc:create>
</div>
</div>