|
|
@ -78,7 +78,7 @@ import ButtonBar from '@/components/ButtonBar' |
|
|
|
import priceAdd from './priceAdd.vue' |
|
|
|
import priceInfo from './priceInfo.vue' |
|
|
|
import req from '@/api/kucunguanli/price' |
|
|
|
import { getPathSidByUserSid } from '@/api/cheliang/dictcommons' |
|
|
|
import { getOrgSidByPath, selectHaveMessage } from '@/api/cheliang/dictcommons' |
|
|
|
import { getStorage } from '@/utils/auth' |
|
|
|
|
|
|
|
export default { |
|
|
@ -215,7 +215,7 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
init() { |
|
|
|
getPathSidByUserSid({ userSid: window.sessionStorage.getItem('userSid') }).then((res) => { |
|
|
|
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.listQuery.params.createOrgSid = res.data |
|
|
|
this.getList() |
|
|
@ -275,8 +275,12 @@ export default { |
|
|
|
this.init() |
|
|
|
}, |
|
|
|
toAdd() { |
|
|
|
this.viewState = 2 |
|
|
|
this.$refs['divAdd'].showAdd(this.listQuery.params.createOrgSid) |
|
|
|
selectHaveMessage({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
this.viewState = 2 |
|
|
|
this.$refs['divAdd'].showAdd(this.listQuery.params.createOrgSid) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
toEdit(row) { |
|
|
|
this.viewState = 3 |
|
|
|