MicroCommunityWeb/public/pages/common/urgentPurchaseApplyStep/urgentPurchaseApplyStep.html

185 lines
11 KiB
HTML

<div>
<!-- 联系人 -->
<div class="row">
<div class="col-lg-12">
<div class="ibox">
<div class="ibox-title">
<h5>
<vc:i18n name="申请信息" namespace="urgentPurchaseApplyStep"></vc:i18n>
</h5>
<div class="ibox-tools" style="top:10px;"></div>
</div>
<div class="ibox-content">
<div class="form-group row">
<label class="col-sm-2 col-form-label">
<vc:i18n name="仓库" namespace="urgentPurchaseApplyStep"></vc:i18n>
</label>
<div class="col-sm-10">
<select class="custom-select" v-model="urgentPurchaseApplyStepInfo.shId" @change="_computeFlow()">
<option selected disabled value="">
{{vc.i18n('必填,请选择仓库','urgentPurchaseApplyStep')}}
</option>
<option v-for="(item,index) in urgentPurchaseApplyStepInfo.storehouses" :key="index"
v-bind:value="item.shId">{{item.shName}}
</option>
</select>
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">
<span><vc:i18n name="联系人" namespace="urgentPurchaseApplyStep"></vc:i18n></span>
</label>
<div class="col-sm-10">
<input :placeholder="vc.i18n('必填,请填写联系人','urgentPurchaseApplyStep')" class="form-control"
v-model.trim="urgentPurchaseApplyStepInfo.endUserName"/>
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">
<span><vc:i18n name="联系电话" namespace="urgentPurchaseApplyStep"></vc:i18n></span>
</label>
<div class="col-sm-10">
<input :placeholder="vc.i18n('必填,请填写联系电话','urgentPurchaseApplyStep')" class="form-control"
v-model.trim="urgentPurchaseApplyStepInfo.endUserTel"/>
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">
<span><vc:i18n name="申请说明" namespace="urgentPurchaseApplyStep"></vc:i18n></span>
</label>
<div class="col-sm-10">
<textarea :placeholder="vc.i18n('必填,请填写申请说明','urgentPurchaseApplyStep')"
class="form-control" v-model.trim="urgentPurchaseApplyStepInfo.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="urgentPurchaseApplyStep"></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="urgentPurchaseApplyStep"></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="urgentPurchaseApplyStep"></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name="名称(编码)" namespace="urgentPurchaseApplyStep"></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name="物品规格" namespace="urgentPurchaseApplyStep"></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name="参考价格" namespace="urgentPurchaseApplyStep"></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name="物品库存" namespace="urgentPurchaseApplyStep"></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name="申请数量" namespace="urgentPurchaseApplyStep"></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name="采购单价" namespace="urgentPurchaseApplyStep"></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name="目标仓库" namespace="urgentPurchaseApplyStep"></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name="备注" namespace="urgentPurchaseApplyStep"></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name="操作" namespace="urgentPurchaseApplyStep"></vc:i18n>
</th>
</tr>
</thead>
<tbody>
<tr v-for="(resourceStore, i) in urgentPurchaseApplyStepInfo.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;">{{resourceStore.price}}</td>
<td class="text-center" style="vertical-align: inherit;">
{{resourceStore.stock}}{{resourceStore.unitCodeName}}
</td>
<td class="text-center" style="vertical-align: inherit;width: 150px;">
<input v-model="resourceStore.quantity" type="number"
:placeholder="vc.i18n('必填,请填写申请数量','urgentPurchaseApplyStep')"
class="form-control" style="width: 80%;display:inline; margin: auto">&nbsp;&nbsp;{{resourceStore.unitCodeName}}
</td>
<td class="text-center" style="vertical-align: inherit;width: 150px;">
<input v-model="resourceStore.urgentPrice" type="number"
:placeholder="vc.i18n('必填,请填写采购单价','urgentPurchaseApplyStep')"
class="form-control" style="width: 100%;display:inline; margin: auto">
</td>
<td class="text-center" style="vertical-align: inherit;width: 150px;">
<!-- v-if="item.shId != resourceStore.shId" 搞不明白不能当前仓库 紧急采购 -->
<select class="custom-select" v-model="resourceStore.shzId" style="width: 100%"
@change="storeHousesChange($event,i)">
<option value="">{{vc.i18n('必填,请选择目标仓库','urgentPurchaseApplyStep')}}</option>
<option v-for="(item,index) in urgentPurchaseApplyStepInfo.storehousesB"
:key="index" v-bind:value="item.shId">
{{item.shName}}
</option>
</select>
</td>
<td class="text-center" style="vertical-align: inherit;width: 150px;">
<input v-model="resourceStore.remark" type="text" class="form-control"
:placeholder="vc.i18n('选填,请填写备注','urgentPurchaseApplyStep')">
</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>
<span><vc:i18n name="移除" namespace="urgentPurchaseApplyStep"></vc:i18n></span>
</button>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="12">
<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="_finishStep()">
<vc:i18n name="提交" namespace="urgentPurchaseApplyStep"></vc:i18n>
</button>
</div>
</div>
<vc:create path="common/chooseResourceStore4" emitChooseResourceStore="urgentPurchaseApplyStep"
emitLoadData="urgentPurchaseApplyStep">
</vc:create>
</div>