mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 21:59:12 +08:00
优化采购提示消息不准确问题
This commit is contained in:
parent
e0314e2bb4
commit
7faae5ef0c
@ -1,164 +1,151 @@
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="ibox">
|
||||
<div class="ibox-title">
|
||||
<h5>
|
||||
<vc:i18n name="采购人" namespace="addPurchaseApply"></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-times"></i>
|
||||
<vc:i18n name="返回" namespace="addComplaintStep"></vc:i18n>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="ibox">
|
||||
<div class="ibox-title">
|
||||
<h5>
|
||||
<vc:i18n name="采购人" namespace="addPurchaseApply"></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-times"></i>
|
||||
<vc:i18n name="返回" namespace="addComplaintStep"></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="addPurchaseApply"></vc:i18n>
|
||||
</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="custom-select" v-model="addPurchaseApplyInfo.shId" @change="_computeFlow()">
|
||||
<option selected disabled value="">
|
||||
{{vc.i18n('必填,请选择仓库','addPurchaseApply')}}
|
||||
</option>
|
||||
<option v-for="(item,index) in addPurchaseApplyInfo.storehouses" :key="index"
|
||||
v-bind:value="item.shId">{{item.shName}}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">
|
||||
<vc:i18n name="仓库" namespace="addPurchaseApply"></vc:i18n>
|
||||
</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="custom-select" v-model="addPurchaseApplyInfo.shId" @change="_computeFlow()">
|
||||
<option selected disabled value="">
|
||||
{{vc.i18n('必填,请选择仓库','addPurchaseApply')}}
|
||||
</option>
|
||||
<option v-for="(item,index) in addPurchaseApplyInfo.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">
|
||||
<vc:i18n name="联系人" namespace="addPurchaseApply"></vc:i18n>
|
||||
</label>
|
||||
<div class="col-sm-10">
|
||||
<input :placeholder="vc.i18n('必填,请填写联系人','addPurchaseApply')" class="form-control"
|
||||
v-model="addPurchaseApplyInfo.endUserName"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">
|
||||
<vc:i18n name="联系电话" namespace="addPurchaseApply"></vc:i18n>
|
||||
</label>
|
||||
<div class="col-sm-10">
|
||||
<input :placeholder="vc.i18n('必填,请填写联系电话','addPurchaseApply')" class="form-control"
|
||||
v-model="addPurchaseApplyInfo.endUserTel"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">
|
||||
<vc:i18n name="申请说明" namespace="addPurchaseApply"></vc:i18n>
|
||||
</label>
|
||||
<div class="col-sm-10">
|
||||
<textarea :placeholder="vc.i18n('必填,请填写申请说明','addPurchaseApply')" class="form-control"
|
||||
v-model="addPurchaseApplyInfo.description">
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">
|
||||
<vc:i18n name="联系人" namespace="addPurchaseApply"></vc:i18n>
|
||||
</label>
|
||||
<div class="col-sm-10">
|
||||
<input :placeholder="vc.i18n('必填,请填写联系人','addPurchaseApply')" class="form-control"
|
||||
v-model="addPurchaseApplyInfo.endUserName" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">
|
||||
<vc:i18n name="联系电话" namespace="addPurchaseApply"></vc:i18n>
|
||||
</label>
|
||||
<div class="col-sm-10">
|
||||
<input :placeholder="vc.i18n('必填,请填写联系电话','addPurchaseApply')" class="form-control"
|
||||
v-model="addPurchaseApplyInfo.endUserTel" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">
|
||||
<vc:i18n name="申请说明" namespace="addPurchaseApply"></vc:i18n>
|
||||
</label>
|
||||
<div class="col-sm-10">
|
||||
<textarea :placeholder="vc.i18n('必填,请填写申请说明','addPurchaseApply')" class="form-control"
|
||||
v-model="addPurchaseApplyInfo.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="addPurchaseApply"></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-plus"></i>
|
||||
<vc:i18n name="选择" namespace="addPurchaseApply"></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="addPurchaseApply"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="物品名称(编码)" namespace="addPurchaseApply"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="物品规格" namespace="addPurchaseApply"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="价格" namespace="addPurchaseApply"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="物品库存" namespace="addPurchaseApply"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="申请数量" namespace="addPurchaseApply"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="备注" namespace="addPurchaseApply"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="操作" namespace="addPurchaseApply"></vc:i18n>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(resourceStore, index) in addPurchaseApplyInfo.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('请选择价格','addPurchaseApply')}}</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('必填,请填写申请数量','addPurchaseApply')" 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('选填,请填写备注','addPurchaseApply')">
|
||||
</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="addPurchaseApply"></vc:i18n>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="10">
|
||||
<ul class="pagination float-right"></ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="ibox ">
|
||||
<div class="ibox-title">
|
||||
<h5>
|
||||
<vc:i18n name="采购物品" namespace="addPurchaseApply"></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-plus"></i>
|
||||
<vc:i18n name="选择" namespace="addPurchaseApply"></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="addPurchaseApply"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="物品名称(编码)" namespace="addPurchaseApply"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="物品规格" namespace="addPurchaseApply"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="价格" namespace="addPurchaseApply"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="物品库存" namespace="addPurchaseApply"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="申请数量" namespace="addPurchaseApply"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="备注" namespace="addPurchaseApply"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="操作" namespace="addPurchaseApply"></vc:i18n>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(resourceStore, index) in addPurchaseApplyInfo.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('请选择价格','addPurchaseApply')}}</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('必填,请填写申请数量','addPurchaseApply')" 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('选填,请填写备注','addPurchaseApply')">
|
||||
</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="addPurchaseApply"></vc:i18n>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 审批人 -->
|
||||
<div class="row" v-if="addPurchaseApplyInfo.audit.assignee == '-2'">
|
||||
@ -177,8 +164,8 @@
|
||||
</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" class="form-control"
|
||||
:placeholder="vc.i18n('必填,请选择审批人','addPurchaseApply')" disabled
|
||||
v-model="addPurchaseApplyInfo.audit.staffName">
|
||||
:placeholder="vc.i18n('必填,请选择审批人','addPurchaseApply')" disabled
|
||||
v-model="addPurchaseApplyInfo.audit.staffName">
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button class="btn btn-white " type="button" v-on:click="chooseStaff()">
|
||||
@ -193,14 +180,13 @@
|
||||
<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="_applyPurchaseSummit()">
|
||||
<button type="button" class="btn btn-primary" style="margin-left:10px;" v-on:click="_applyPurchaseSummit()">
|
||||
<vc:i18n name="提交" namespace="addPurchaseApply"></vc:i18n>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<vc:create path="common/chooseResourceStore2" emitChooseResourceStore="addPurchaseApply"
|
||||
emitLoadData="addPurchaseApply">
|
||||
emitLoadData="addPurchaseApply">
|
||||
</vc:create>
|
||||
<vc:create path="property/selectStaff"></vc:create>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user