mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 21:59:12 +08:00
优化采购申请
This commit is contained in:
parent
64445442c9
commit
35475e941d
@ -11,17 +11,21 @@
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">所属公司</label>
|
||||
<div class="col-sm-10">
|
||||
<vc:create path="frame/orgSelect2" parentModal="purchaseApprovers"
|
||||
<!-- <vc:create path="frame/orgSelect2" parentModal="purchaseApprovers"
|
||||
callBackListener="purchaseApprovers" callBackFunction="notify"
|
||||
namespace="purchaseApprovers"></vc:create>
|
||||
namespace="purchaseApprovers"></vc:create> -->
|
||||
<input placeholder="必填,请填写所属公司" class="form-control"
|
||||
v-model="purchaseApproversInfo.companyName" readonly />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">所属部门</label>
|
||||
<div class="col-sm-10">
|
||||
<vc:create path="frame/departmentSelect2" parentModal="purchaseApprovers"
|
||||
<!-- <vc:create path="frame/departmentSelect2" parentModal="purchaseApprovers"
|
||||
callBackListener="purchaseApprovers" callBackFunction="notify"
|
||||
namespace="purchaseApprovers"></vc:create>
|
||||
namespace="purchaseApprovers"></vc:create> -->
|
||||
<input placeholder="必填,请填写所属部门" class="form-control"
|
||||
v-model="purchaseApproversInfo.departmentName" readonly />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
|
||||
@ -10,6 +10,10 @@
|
||||
flowComponent: 'purchaseApprovers',
|
||||
staffId: '',
|
||||
staffName: '',
|
||||
companyName: '',
|
||||
departmentName: '',
|
||||
departmentId:'',
|
||||
companyId:''
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@ -21,7 +25,8 @@
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
|
||||
$that._loadStaffOrg();
|
||||
|
||||
},
|
||||
_initEvent: function () {
|
||||
vc.on("purchaseApprovers", "notify", function (_param) {
|
||||
@ -32,6 +37,43 @@
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_loadStaffOrg: function () {
|
||||
let _userInfo = vc.getData("/nav/getUserInfo");
|
||||
if (_userInfo == null || _userInfo == undefined) {
|
||||
vc.toast('用户可能还没有登陆,无法获取用户信息');
|
||||
return;
|
||||
}
|
||||
let _staffId = _userInfo.userId;
|
||||
var param = {
|
||||
params: {
|
||||
staffId: _staffId,
|
||||
page: 1,
|
||||
row: 1
|
||||
}
|
||||
};
|
||||
//发送get请求
|
||||
vc.http.apiGet('org.listOrgs',
|
||||
param,
|
||||
function (json) {
|
||||
var _staffInfo = JSON.parse(json);
|
||||
if (_staffInfo.total == 1) {
|
||||
let _tmpOrg = _staffInfo.orgs[0];
|
||||
$that.purchaseApproversInfo.companyName = _tmpOrg.parentOrgName;
|
||||
$that.purchaseApproversInfo.departmentName = _tmpOrg.orgName;
|
||||
$that.purchaseApproversInfo.departmentId = _tmpOrg.orgId;
|
||||
$that.purchaseApproversInfo.companyId = _tmpOrg.parentOrgId;
|
||||
|
||||
vc.emit('purchaseApprovers','staffSelect2', 'setStaff',{
|
||||
companyId:_tmpOrg.parentOrgId,
|
||||
departmentId:_tmpOrg.orgId
|
||||
});
|
||||
|
||||
}
|
||||
}, function () {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
purchaseApproversValidate: function () {
|
||||
return vc.validate.validate({
|
||||
purchaseApproversInfo: vc.component.purchaseApproversInfo
|
||||
@ -63,7 +105,8 @@
|
||||
vc.emit($props.callBackListener, $props.callBackFunction, vc.component.purchaseApproversInfo);
|
||||
return;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@ -65,6 +65,7 @@
|
||||
},
|
||||
_nextStep: function () {
|
||||
vc.emit('viewResourceStoreInfo2', 'getSelectResourceStores', null);
|
||||
let _resourceStores = vc.component.addPurchaseApplyStepInfo.purchaseApply.resourceStores;
|
||||
var _currentData = vc.component.addPurchaseApplyStepInfo.infos[vc.component.addPurchaseApplyStepInfo.index];
|
||||
if (_currentData == null || _currentData == undefined) {
|
||||
vc.toast("请选择或填写必选信息");
|
||||
|
||||
@ -64,9 +64,10 @@
|
||||
<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>
|
||||
<th class="text-center">总计价格</th>
|
||||
<th class="text-center">参考价格</th>
|
||||
<th class="text-center">当前处理人</th>
|
||||
<th class="text-center">审批状态</th>
|
||||
<th class="text-right">操作</th>
|
||||
@ -76,7 +77,8 @@
|
||||
<tr v-for="purchaseApply in purchaseApplyManageInfo.purchaseApplys">
|
||||
<td class="text-center">{{purchaseApply.applyOrderId}}</td>
|
||||
<td class="text-center">{{purchaseApply.userName}}</td>
|
||||
<td class="text-center">{{purchaseApply.userName}}</td>
|
||||
<td class="text-center">{{purchaseApply.endUserName}}</td>
|
||||
<td class="text-center">{{purchaseApply.endUserTel}}</td>
|
||||
<td class="text-center">{{purchaseApply.resourceNames}}</td>
|
||||
<td class="text-center">{{purchaseApply.createTime}}</td>
|
||||
<td class="text-center">{{purchaseApply.totalPrice}}</td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user