mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
优化采购相关 功能
This commit is contained in:
parent
8631a920b6
commit
e75cd61218
@ -3,7 +3,7 @@
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h3 class="modal-title" id="chooseResourceStoreModelLabel2"><span><vc:i18n name="选择物品管理" namespace="chooseResourceStore4"></vc:i18n></span></h3>
|
||||
<h3 class="modal-title" id="chooseResourceStoreModelLabel2"><span><vc:i18n name="选择物品" namespace="chooseResourceStore4"></vc:i18n></span></h3>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
@ -75,7 +75,7 @@
|
||||
<th class="text-center"><span><vc:i18n name="物品名称" namespace="chooseResourceStore4"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="物品规格" namespace="chooseResourceStore4"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="物品编码" namespace="chooseResourceStore4"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="是否是固定物品" namespace="chooseResourceStore4"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="固定物品" namespace="chooseResourceStore4"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="物品价格" namespace="chooseResourceStore4"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="物品库存" namespace="chooseResourceStore4"></vc:i18n></span></th>
|
||||
</tr>
|
||||
|
||||
@ -21,17 +21,11 @@
|
||||
<span><vc:i18n name="物品类型" namespace="viewResourceStoreInfo2"></vc:i18n></span>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<span><vc:i18n name="物品名称" namespace="viewResourceStoreInfo2"></vc:i18n></span>
|
||||
<span><vc:i18n name="物品名称(编码)" namespace="viewResourceStoreInfo2"></vc:i18n></span>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<span><vc:i18n name="物品规格" namespace="viewResourceStoreInfo2"></vc:i18n></span>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<span><vc:i18n name="物品编码" namespace="viewResourceStoreInfo2"></vc:i18n></span>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<span><vc:i18n name="是否是固定物品" namespace="viewResourceStoreInfo2"></vc:i18n></span>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<span><vc:i18n name="参考价格" namespace="viewResourceStoreInfo2"></vc:i18n></span>
|
||||
</th>
|
||||
@ -58,12 +52,10 @@
|
||||
{{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.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.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}}
|
||||
|
||||
@ -15,10 +15,8 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center"><span><vc:i18n name="物品类型" namespace="viewResourceStoreInfo4"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="物品名称" namespace="viewResourceStoreInfo4"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="名称(编码)" namespace="viewResourceStoreInfo4"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="物品规格" namespace="viewResourceStoreInfo4"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="物品编码" namespace="viewResourceStoreInfo4"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="是否是固定物品" namespace="viewResourceStoreInfo4"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="参考价格" namespace="viewResourceStoreInfo4"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="物品库存" namespace="viewResourceStoreInfo4"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="申请数量" namespace="viewResourceStoreInfo4"></vc:i18n></span></th>
|
||||
@ -34,35 +32,33 @@
|
||||
{{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.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.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;">
|
||||
<td class="text-center" style="vertical-align: inherit;width: 150px;">
|
||||
<input v-model="resourceStore.quantity" type="number" :placeholder="vc.i18n('必填,请填写申请数量','viewResourceStoreInfo4')"
|
||||
class="form-control" style="width: 80%;display:inline; margin: auto"> {{resourceStore.unitCodeName}}
|
||||
</td>
|
||||
<td class="text-center" style="vertical-align: inherit;">
|
||||
<td class="text-center" style="vertical-align: inherit;width: 150px;">
|
||||
<input v-model="resourceStore.urgentPrice" type="number" :placeholder="vc.i18n('必填,请填写采购单价','viewResourceStoreInfo4')"
|
||||
class="form-control" style="width: 100%;display:inline; margin: auto">
|
||||
</td>
|
||||
<td class="text-center" style="vertical-align: inherit;">
|
||||
<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('必填','viewResourceStoreInfo4')}},请选择目标仓库</option>
|
||||
<option value="">{{vc.i18n('必填,请选择目标仓库','viewResourceStoreInfo4')}}</option>
|
||||
<option v-for="(item,index) in viewResourceStoreInfo4.storehouses"
|
||||
:key="index" v-bind:value="item.shId"
|
||||
v-if="item.shId != resourceStore.shId">
|
||||
:key="index" v-bind:value="item.shId">
|
||||
{{item.shName}}
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="text-center" style="vertical-align: inherit;">
|
||||
<td class="text-center" style="vertical-align: inherit;width: 150px;">
|
||||
<input v-model="resourceStore.remark" type="text" class="form-control"
|
||||
:placeholder="vc.i18n('选填,请填写备注','viewResourceStoreInfo4')">
|
||||
</td>
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
<div class="col-sm-10">
|
||||
<select class="custom-select" v-model="addStorehouseInfo.shType">
|
||||
<option selected disabled value="">
|
||||
{{vc.i18n('必填','addStorehouse')}},请选择仓库类型
|
||||
{{vc.i18n('必填,请选择仓库类型','addStorehouse')}}
|
||||
</option>
|
||||
<option v-for="(item,index) in addStorehouseInfo.shTypes" :key="index"
|
||||
:value="item.statusCd">{{item.name}}
|
||||
@ -35,12 +35,12 @@
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">
|
||||
<span><vc:i18n name="是否对外开放" namespace="addStorehouse"></vc:i18n></span>
|
||||
<span><vc:i18n name="对外开放" namespace="addStorehouse"></vc:i18n></span>
|
||||
</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="custom-select" v-model="addStorehouseInfo.isShow">
|
||||
<option selected disabled value="">
|
||||
{{vc.i18n('必填','addStorehouse')}},请选择是否对外开放
|
||||
{{vc.i18n('必填,请选择是否对外开放','addStorehouse')}}
|
||||
</option>
|
||||
<option value="true">{{vc.i18n('是','addStorehouse')}}</option>
|
||||
<option value="false">{{vc.i18n('否','addStorehouse')}}</option>
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
shName: '',
|
||||
shType: '',
|
||||
shDesc: '',
|
||||
isShow: '',
|
||||
isShow: 'true',
|
||||
shTypes: []
|
||||
}
|
||||
},
|
||||
|
||||
@ -60,7 +60,7 @@
|
||||
<i class="fa fa-plus"></i>
|
||||
<span><vc:i18n name="领用申请" namespace="itemOutManage"></vc:i18n></span>
|
||||
</button>
|
||||
<button type="button" class="btn btn-primary btn-sm" v-on:click="_exportExcel()">
|
||||
<button type="button" class="btn btn-white btn-sm" v-on:click="_exportExcel()">
|
||||
<i class="fa fa-plus"></i>
|
||||
<span><vc:i18n name="导出" namespace="itemOutManage"></vc:i18n></span>
|
||||
</button>
|
||||
|
||||
@ -107,11 +107,11 @@
|
||||
<tr>
|
||||
<th class="text-center"><span><vc:i18n name="物品类型" namespace="purchaseApplyDetail"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="物品名称" namespace="purchaseApplyDetail"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="物品所属仓库" namespace="purchaseApplyDetail"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="所属仓库" namespace="purchaseApplyDetail"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="物品规格" namespace="purchaseApplyDetail"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="供应商" namespace="purchaseApplyDetail"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="物品编码" namespace="purchaseApplyDetail"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="是否是固定物品" namespace="purchaseApplyDetail"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="固定物品" namespace="purchaseApplyDetail"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="参考单价" namespace="purchaseApplyDetail"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="原有库存" namespace="purchaseApplyDetail"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="现有库存" namespace="purchaseApplyDetail"></vc:i18n></span></th>
|
||||
|
||||
@ -146,19 +146,16 @@
|
||||
<span><vc:i18n name="物品类型" namespace="resourceStoreManage"></vc:i18n></span>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<span><vc:i18n name="物品名称" namespace="resourceStoreManage"></vc:i18n></span>
|
||||
<span><vc:i18n name="物品名称(编号)" namespace="resourceStoreManage"></vc:i18n></span>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<span><vc:i18n name="物品规格" namespace="resourceStoreManage"></vc:i18n></span>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<span><vc:i18n name="物品编码" namespace="resourceStoreManage"></vc:i18n></span>
|
||||
<span><vc:i18n name="固定物品" namespace="resourceStoreManage"></vc:i18n></span>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<span><vc:i18n name="是否固定物品" namespace="resourceStoreManage"></vc:i18n></span>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<span><vc:i18n name="采购参考价格" namespace="resourceStoreManage"></vc:i18n></span>
|
||||
<span><vc:i18n name="参考价格" namespace="resourceStoreManage"></vc:i18n></span>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<span><vc:i18n name="收费标准" namespace="resourceStoreManage"></vc:i18n></span>
|
||||
@ -192,9 +189,8 @@
|
||||
{{resourceStore.parentRstName}}{{resourceStore.rstName ? ' > ' + resourceStore.rstName :
|
||||
''}}
|
||||
</td>
|
||||
<td class="text-center">{{resourceStore.resName}}</td>
|
||||
<td class="text-center">{{resourceStore.resName}}({{resourceStore.resCode}})</td>
|
||||
<td class="text-center">{{resourceStore.rssName ? resourceStore.rssName : '-'}}</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.outHighPrice == resourceStore.outLowPrice ? '¥' +
|
||||
|
||||
@ -111,11 +111,12 @@
|
||||
let _json = JSON.parse(json);
|
||||
if (_json.code == 0) {
|
||||
//关闭model
|
||||
if (vc.component.addPurchaseApplyStepInfo.purchaseApply.resOrderType == "10000") {
|
||||
vc.jumpToPage("/#/pages/common/purchaseApplyManage");
|
||||
} else {
|
||||
vc.jumpToPage("/#/pages/common/itemOutManage");
|
||||
}
|
||||
// if (vc.component.addPurchaseApplyStepInfo.purchaseApply.resOrderType == "10000") {
|
||||
// vc.jumpToPage("/#/pages/common/purchaseApplyManage");
|
||||
// } else {
|
||||
// vc.jumpToPage("/#/pages/common/itemOutManage");
|
||||
// }
|
||||
vc.goBack();
|
||||
return;
|
||||
}
|
||||
vc.toast(_json.msg);
|
||||
|
||||
@ -95,7 +95,7 @@
|
||||
<span><vc:i18n name="描述" namespace="storehouseManage"></vc:i18n></span>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<span><vc:i18n name="是否对外开放" namespace="storehouseManage"></vc:i18n></span>
|
||||
<span><vc:i18n name="对外开放" namespace="storehouseManage"></vc:i18n></span>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<span><vc:i18n name="创建时间" namespace="storehouseManage"></vc:i18n></span>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user