排序更改

master
lynn 5 months 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() {
@ -3467,9 +3471,11 @@ export default {
// //
async handleAddContractByCategory(type) { async handleAddContractByCategory(type) {
this.formType = type this.formType = type
this.loading = true this.loading = true
try { try {
// 1. id // 0.
await this.getDepartment()
// 1. id
const userDeptId = this.$store.state.user.info.department_id const userDeptId = this.$store.state.user.info.department_id
// 2. // 2.
this.isShowAdd = true this.isShowAdd = true

Loading…
Cancel
Save