mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-26 16:19:44 +08:00
161 lines
8.9 KiB
HTML
161 lines
8.9 KiB
HTML
<div>
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="ibox">
|
|
<div class="ibox-title">
|
|
<h5>
|
|
<vc:i18n name="采购人" namespace="editPurchaseApply"></vc:i18n>
|
|
</h5>
|
|
<div class="ibox-tools" style="top:10px;">
|
|
<button type="button" class="btn btn-primary btn-sm" v-on:click="vc.goBack()">
|
|
<i class="fa fa-close"></i>
|
|
<vc:i18n name="返回" namespace="editPurchaseApply"></vc:i18n>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div class="ibox-content">
|
|
<div class="form-group row">
|
|
<label class="col-sm-2 col-form-label">
|
|
<vc:i18n name="联系人" namespace="editPurchaseApply"></vc:i18n>
|
|
</label>
|
|
<div class="col-sm-10">
|
|
<input :placeholder="vc.i18n('必填,请填写联系人','editPurchaseApply')" class="form-control"
|
|
v-model="editPurchaseApplyInfo.endUserName"/>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-sm-2 col-form-label">
|
|
<vc:i18n name="联系电话" namespace="editPurchaseApply"></vc:i18n>
|
|
</label>
|
|
<div class="col-sm-10">
|
|
<input :placeholder="vc.i18n('必填,请填写联系电话','editPurchaseApply')" class="form-control"
|
|
v-model="editPurchaseApplyInfo.endUserTel"/>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-sm-2 col-form-label">
|
|
<vc:i18n name="申请说明" namespace="editPurchaseApply"></vc:i18n>
|
|
</label>
|
|
<div class="col-sm-10">
|
|
<textarea :placeholder="vc.i18n('必填,请填写申请说明','editPurchaseApply')" class="form-control"
|
|
v-model="editPurchaseApplyInfo.description">
|
|
</textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 选择物品 -->
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="ibox ">
|
|
<div class="ibox-title">
|
|
<h5>
|
|
<vc:i18n name="采购物品" namespace="editPurchaseApply"></vc:i18n>
|
|
</h5>
|
|
<div class="ibox-tools" style="top:10px;">
|
|
<button type="button" class="btn btn-primary btn-sm" style="margin-right:10px;"
|
|
v-on:click="_openSelectResourceStoreInfoModel()">
|
|
<i class="fa fa-search"></i>
|
|
<vc:i18n name="选择" namespace="editPurchaseApply"></vc:i18n>
|
|
</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">
|
|
<vc:i18n name="物品类型" namespace="editPurchaseApply"></vc:i18n>
|
|
</th>
|
|
<th class="text-center">
|
|
<vc:i18n name="物品名称(编码)" namespace="editPurchaseApply"></vc:i18n>
|
|
</th>
|
|
<th class="text-center">
|
|
<vc:i18n name="物品规格" namespace="editPurchaseApply"></vc:i18n>
|
|
</th>
|
|
<th class="text-center">
|
|
<vc:i18n name="价格" namespace="editPurchaseApply"></vc:i18n>
|
|
</th>
|
|
<th class="text-center">
|
|
<vc:i18n name="物品库存" namespace="editPurchaseApply"></vc:i18n>
|
|
</th>
|
|
<th class="text-center">
|
|
<vc:i18n name="申请数量" namespace="editPurchaseApply"></vc:i18n>
|
|
</th>
|
|
<th class="text-center">
|
|
<vc:i18n name="备注" namespace="editPurchaseApply"></vc:i18n>
|
|
</th>
|
|
<th class="text-center">
|
|
<vc:i18n name="操作" namespace="editPurchaseApply"></vc:i18n>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr v-for="(resourceStore, index) in editPurchaseApplyInfo.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}}({{resourceStore.resCode}})
|
|
</td>
|
|
<td class="text-center" style="vertical-align: inherit;">{{resourceStore.rssName ?
|
|
resourceStore.rssName : '-'}}
|
|
</td>
|
|
<td class="text-center" style="vertical-align: inherit;">
|
|
<select class="form-control" v-model="resourceStore.timesId"
|
|
@change="_changeTimesId($event, index)">
|
|
<option value="" selected>{{vc.i18n('请选择价格','editPurchaseApply')}}</option>
|
|
<option v-for="time in resourceStore.times" :value="time.timesId">
|
|
{{time.price}}
|
|
</option>
|
|
</select>
|
|
</td>
|
|
<td class="text-center" style="vertical-align: inherit;">
|
|
{{_getTimesStock(resourceStore)}}{{resourceStore.unitCodeName}}
|
|
</td>
|
|
<td class="text-center" style="vertical-align: inherit;">
|
|
<input v-model="resourceStore.quantity" type="number"
|
|
:placeholder="vc.i18n('必填,请填写申请数量','editPurchaseApply')" class="form-control"
|
|
style="width: 70%;display:inline; margin: auto"> {{resourceStore.unitCodeName}}
|
|
</td>
|
|
<td class="text-center" style="vertical-align: inherit;">
|
|
<input v-model="resourceStore.remark" type="text" class="form-control"
|
|
:placeholder="vc.i18n('选填,请填写备注','editPurchaseApply')">
|
|
</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)">
|
|
<vc:i18n name="移除" namespace="editPurchaseApply"></vc:i18n>
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="10">
|
|
<ul class="pagination float-right"></ul>
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-10"></div>
|
|
<div class="col-md-2 " style="margin-bottom:10px; text-align:right">
|
|
<button type="button" class="btn btn-primary" style="margin-left:10px;"
|
|
v-on:click="_editApplyPurchaseSummit()">
|
|
<i class="fa fa-check"></i>
|
|
<vc:i18n name="提交" namespace="editPurchaseApply"></vc:i18n>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<vc:create path="common/chooseResourceStore2" emitChooseResourceStore="editPurchaseApply"
|
|
emitLoadData="editPurchaseApply">
|
|
</vc:create>
|
|
</div> |