This commit is contained in:
java110 2020-03-28 01:09:02 +08:00
commit e874a603d0
2 changed files with 8 additions and 5 deletions

View File

@ -21,7 +21,6 @@
},
_initEvent: function () {
vc.on("addPurchaseApplyStep", "notify", function (viewResourceStoreInfo2) {
console.log("收到最终参数:"+viewResourceStoreInfo2);
vc.component.addPurchaseApplyStepInfo.purchaseApply.resourceStores = viewResourceStoreInfo2.resourceStores;
});
@ -52,12 +51,12 @@
vc.emit('viewResourceStoreInfo2', 'getSelectResourceStores', null);
var _resourceStores = vc.component.addPurchaseApplyStepInfo.purchaseApply.resourceStores;
if (_resourceStores.length == 0) {
vc.message("请完善需要采购的物品信息");
vc.toast("请完善需要采购的物品信息");
return;
}
for( var i = 0; i < _resourceStores.length; i++){
if(_resourceStores[i].quantity <= 0){
vc.message("请完善需要采购的物品信息");
vc.toast("请完善需要采购的物品信息");
return;
}
}
@ -72,7 +71,7 @@
vc.emit('addPurchaseApplyViewInfo', 'setPurchaseApplyInfo', null);
var _description = vc.component.addPurchaseApplyStepInfo.purchaseApply.description;
if (_description == null || _description == '') {
vc.message("请填写申请说明");
vc.toast("请填写申请说明");
return;
}
vc.http.post(
@ -94,7 +93,7 @@
function (errInfo, error) {
console.log('请求失败处理');
vc.message(errInfo);
vc.toast(errInfo);
});
}
}

View File

@ -64,7 +64,9 @@
>
<thead>
<tr>
<th class="text-center">单号</th>
<th class="text-center">审批状态</th>
<th class="text-center">流程处理人</th>
<th class="text-center">申请人</th>
<th class="text-center">申请时间</th>
<th class="text-center">物品</th>
@ -74,7 +76,9 @@
</thead>
<tbody>
<tr v-for="purchaseApply in purchaseApplyManageInfo.purchaseApplys">
<td class="text-center">{{purchaseApply.applyOrderId}}</td>
<td class="text-center">{{purchaseApply.stateName}}</td>
<td class="text-center">{{purchaseApply.agreeMan}}</td>
<td class="text-center">{{purchaseApply.userName}}</td>
<td class="text-center">{{purchaseApply.createTime}}</td>
<td class="text-center">{{purchaseApply.resourceNames}}</td>