Files
PropertyDeployment/resources/Web/MicroCommunityWeb/html/components/common/chooseResourceStaff/chooseResourceStaff.html
2025-12-09 20:22:03 +08:00

169 lines
11 KiB
HTML

<div id="chooseResourceStaffModel" class="modal fade" tabindex="-1" role="dialog"
aria-labelledby="chooseResourceStoreModelLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title" id="chooseResourceStoreModelLabel3">
<span><vc:i18n name="选择物品管理" namespace="chooseResourceStaff"></vc:i18n></span>
</h3>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div class="row">
<div class="col-lg-12">
<div class="ibox ">
<div class="row">
<!-- <div class="col-sm-3">
<div class="input-group">
<select class="custom-select custom-select-sm" v-model="chooseResourceStaffInfo.shId">
<option selected value="">{{vc.i18n('请选择仓库','chooseResourceStaff')}}</option>
<option v-for="(item,index) in chooseResourceStaffInfo.storehouses" :key="index" v-bind:value="item.shId">
{{item.shName}}
</option>
</select>
</div>
</div> -->
<div class="col-sm-3">
<div class="input-group">
<select class="custom-select custom-select-sm"
v-model="chooseResourceStaffInfo.parentRstId"
@change="_listResourceStoreSonTypes">
<option selected value="">
{{vc.i18n('请选择物品类型','chooseResourceStaff')}}
</option>
<option v-for="(item,index) in chooseResourceStaffInfo.resourceStoreTypes"
:key="index" v-bind:value="item.rstId">{{item.name}}
</option>
</select>
</div>
</div>
<div class="col-sm-3">
<div class="input-group">
<select class="custom-select custom-select-sm"
v-model="chooseResourceStaffInfo.rstId">
<option selected value="">
{{vc.i18n('请选择二级分类','chooseResourceStaff')}}
</option>
<option v-for="(item,index) in chooseResourceStaffInfo.resourceStoreSonTypes"
:key="index" v-bind:value="item.rstId">{{item.name}}
</option>
</select>
</div>
</div>
<div class="col-sm-5">
<div class="input-group">
<input :placeholder="vc.i18n('输入物品管理名称','chooseResourceStaff')" type="text"
v-model.trim="chooseResourceStaffInfo._currentResourceStoreName"
class="form-control form-control-sm">
<span class="input-group-append">
<button type="button" class="btn btn-sm btn-primary"
v-on:click="queryResourceStores()" style="margin-left:10px;">
<i class="fa fa-search"></i>
<span>
<vc:i18n name="查询" namespace="chooseResourceStaff"></vc:i18n>
</span>
</button>
<button type="button" class="btn btn-sm btn-primary"
v-on:click="resetResourceStores()" style="margin-left:10px;">
<i class="fa fa-repeat"></i>
<span>
<vc:i18n name="重置" namespace="chooseResourceStaff"></vc:i18n>
</span>
</button>
</span>
</div>
</div>
</div>
<div class="table-responsive" style="margin-top:15px">
<table class="table table-striped">
<thead>
<tr>
<th class="text-center">
<input type="checkbox" class="i-checks " @click="checkAll($event)"
id="quan">
</th>
<!--<th class="text-center">
<span><vc:i18n name="仓库" namespace="chooseResourceStaff"></vc:i18n></span>
</th>-->
<th class="text-center">
<span><vc:i18n name="物品类型" namespace="chooseResourceStaff"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="物品名称" namespace="chooseResourceStaff"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="物品编码" namespace="chooseResourceStaff"></vc:i18n></span>
</th>
<th class="text-center">
<span>
<vc:i18n name="是否是固定物品" namespace="chooseResourceStaff"></vc:i18n>
</span>
</th>
<!--<th class="text-center">
<span><vc:i18n name="物品价格" namespace="chooseResourceStaff"></vc:i18n></span>
</th>-->
<th class="text-center">
<span><vc:i18n name="物品库存" namespace="chooseResourceStaff"></vc:i18n></span>
</th>
<th class="text-center">
<span>
<vc:i18n name="最小计量总数" namespace="chooseResourceStaff"></vc:i18n>
</span>
</th>
</tr>
</thead>
<tbody>
<tr v-for="resourceStore in chooseResourceStaffInfo.resourceStores">
<td class="text-center">
<input type="checkbox" class="i-checks checkItem"
v-bind:value="resourceStore.resId"
v-model="chooseResourceStaffInfo.selectResourceStores">
</td>
<!-- <td class="text-center">{{resourceStore.shName}}</td> -->
<td class="text-center">
{{resourceStore.parentRstName ? resourceStore.parentRstName : '-'}} >
{{resourceStore.rstName ? resourceStore.rstName : '-'}}
</td>
<td class="text-center">{{resourceStore.resName}}</td>
<td class="text-center">{{resourceStore.resCode}}</td>
<td class="text-center">{{resourceStore.isFixedName}}</td>
<!-- <td class="text-center">{{resourceStore.price}}</td> -->
<td class="text-center">
{{resourceStore.stock}}{{resourceStore.unitCodeName}}
</td>
<td class="text-center">
{{resourceStore.miniStock}}{{resourceStore.miniUnitCodeName}}
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="8">
<ul class="pagination float-right"></ul>
</td>
</tr>
</tfoot>
</table>
<!-- 分页 -->
<vc:create path="frame/pagination"></vc:create>
<div class="ibox-content" v-if="chooseResourceStaffInfo.resourceStores.length > 0">
<button class="btn btn-primary float-right" type="button"
v-on:click="getSelectResourceStores()">
<i class="fa fa-check"></i>&nbsp; {{vc.i18n('提交','chooseResourceStaff')}}
</button>
<button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
data-dismiss="modal">
<i class="fa fa-close"></i>&nbsp; {{vc.i18n('取消','chooseResourceStaff')}}
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>