排序更改

master
lynn 4 months ago
parent 729b1d30f3
commit bdfcfb2491

@ -1571,7 +1571,7 @@ export default {
})
this.getPurchaseType()
this.getContracts()
this.getDepartment()
this.getDepartment(-1)
this.getPurchaseWay()
this.getMoneyWay()
@ -1972,8 +1972,12 @@ export default {
this.getBudgets()
},
//
async getDepartment() {
this.departments = await listdeptNoAuth()
async getDepartment(status) {
const params = { show_tree: 1,sort_name:'sortnumber',sort_type:'asc' }
if (status !== undefined) {
params.status = status
}
this.departments = await listdeptNoAuth(params)
},
//
async getPurchaseType() {
@ -3467,9 +3471,11 @@ export default {
//
async handleAddContractByCategory(type) {
this.formType = type
this.loading = true
try {
// 1. id
this.loading = true
try {
// 0.
await this.getDepartment()
// 1. id
const userDeptId = this.$store.state.user.info.department_id
// 2.
this.isShowAdd = true

Loading…
Cancel
Save