|
|
|
@ -9,7 +9,9 @@ import {
|
|
|
|
|
GetAllSelectData,
|
|
|
|
|
BookingSourcePage,
|
|
|
|
|
CodeCountryList,
|
|
|
|
|
sysOrgTreeList
|
|
|
|
|
sysOrgTreeList,
|
|
|
|
|
GetEnableStatusDictTreeList,
|
|
|
|
|
GetEnableProjectDictTreeList
|
|
|
|
|
} from '@/api/modular/main/BookingLedger'
|
|
|
|
|
|
|
|
|
|
const booking = {
|
|
|
|
@ -19,6 +21,8 @@ const booking = {
|
|
|
|
|
dpTreeList: [],
|
|
|
|
|
copyPages: { number: 0, path: '' },
|
|
|
|
|
yardList: [],
|
|
|
|
|
statusDIct: [],
|
|
|
|
|
projectDict: [],
|
|
|
|
|
saveNeedNumber: '',
|
|
|
|
|
deleteId: '',
|
|
|
|
|
topDown: false,
|
|
|
|
@ -119,6 +123,12 @@ const booking = {
|
|
|
|
|
},
|
|
|
|
|
SET_SAVETOPDOWN: (state, bool) => {
|
|
|
|
|
state.topDown = bool
|
|
|
|
|
},
|
|
|
|
|
SET_STATUSDICT: (state, list) => {
|
|
|
|
|
state.statusDIct = list
|
|
|
|
|
},
|
|
|
|
|
SET_PROJECTDICT: (state, list) => {
|
|
|
|
|
state.projectDict = list
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
@ -173,6 +183,48 @@ const booking = {
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
setStatusDict({ commit }, obj) {
|
|
|
|
|
return new Promise(resolve => {
|
|
|
|
|
GetEnableStatusDictTreeList()
|
|
|
|
|
.then(response => {
|
|
|
|
|
if (response.success) {
|
|
|
|
|
if (response.data) {
|
|
|
|
|
const data = response.data[0].children
|
|
|
|
|
commit('SET_STATUSDICT', data)
|
|
|
|
|
resolve(response.data)
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
// eslint-disable-next-line no-undef
|
|
|
|
|
reject(new Error(data.message))
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(error => {
|
|
|
|
|
// eslint-disable-next-line no-undef
|
|
|
|
|
reject(error)
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
setProjectDict({ commit }, obj) {
|
|
|
|
|
return new Promise(resolve => {
|
|
|
|
|
GetEnableProjectDictTreeList()
|
|
|
|
|
.then(response => {
|
|
|
|
|
if (response.success) {
|
|
|
|
|
if (response.data) {
|
|
|
|
|
const data = response.data[0].children
|
|
|
|
|
commit('SET_PROJECTDICT', data)
|
|
|
|
|
resolve(response.data)
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
// eslint-disable-next-line no-undef
|
|
|
|
|
reject(new Error(data.message))
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(error => {
|
|
|
|
|
// eslint-disable-next-line no-undef
|
|
|
|
|
reject(error)
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
setPackageList({ commit }, obj) {
|
|
|
|
|
return new Promise(resolve => {
|
|
|
|
|
GetPackage({
|
|
|
|
|