排序更改

master
lynn 1 year ago
parent 729b1d30f3
commit bdfcfb2491

@ -1571,7 +1571,7 @@ export default {
}) })
this.getPurchaseType() this.getPurchaseType()
this.getContracts() this.getContracts()
this.getDepartment() this.getDepartment(-1)
this.getPurchaseWay() this.getPurchaseWay()
this.getMoneyWay() this.getMoneyWay()
@ -1972,8 +1972,12 @@ export default {
this.getBudgets() this.getBudgets()
}, },
// 获取科室 // 获取科室
async getDepartment() { async getDepartment(status) {
this.departments = await listdeptNoAuth() const params = { show_tree: 1,sort_name:'sortnumber',sort_type:'asc' }
if (status !== undefined) {
params.status = status
}
this.departments = await listdeptNoAuth(params)
}, },
// 获取购买形式列表 // 获取购买形式列表
async getPurchaseType() { async getPurchaseType() {
@ -3469,6 +3473,8 @@ export default {
this.formType = type this.formType = type
this.loading = true this.loading = true
try { try {
// 0. 先获取最新执行部门信息
await this.getDepartment()
// 1. 获取当前用户所在部门id // 1. 获取当前用户所在部门id
const userDeptId = this.$store.state.user.info.department_id const userDeptId = this.$store.state.user.info.department_id
// 2. 显示弹窗、初始化表单 // 2. 显示弹窗、初始化表单

Loading…
Cancel
Save