|
|
@ -136,18 +136,12 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { getPathSidByUserSid } from '@/api/cheliang/basevehiclemodel' |
|
|
|
import { fetchByUseOrgSid } from '@/api/cheliang/dictcommons' |
|
|
|
import { getOrgSidByPath, fetchByUseOrgSid } from '@/api/cheliang/dictcommons' |
|
|
|
import ButtonBar from '@/components/ButtonBar' |
|
|
|
import Pagination from '@/components/pagination' |
|
|
|
import pageye from '@/components/pagination/pageye' |
|
|
|
import hegezhengpandianjiluAdd from '@/views/supplychain/hegezhengpandianjilu/hegezhengpandianjiluAdd' |
|
|
|
import { |
|
|
|
certInventoryHandle, |
|
|
|
generateInventoryRecords, |
|
|
|
getInventoryRecords, |
|
|
|
listPage |
|
|
|
} from '@/api/supplychain/hegezhengpandian' |
|
|
|
import { certInventoryHandle, generateInventoryRecords, getInventoryRecords, listPage } from '@/api/supplychain/hegezhengpandian' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'hegezhengpandianjilu', |
|
|
@ -192,7 +186,7 @@ export default { |
|
|
|
inventoryEndDate: '', // 最新盘库结束日期 |
|
|
|
inventoryState: '', // 盘库状态 1通过/2未通过 |
|
|
|
createOrgSid: '', // 创建组织sid |
|
|
|
userSid: window.sessionStorage.getItem('userSid') |
|
|
|
userSid: '' |
|
|
|
} |
|
|
|
}, |
|
|
|
btnList: [ |
|
|
@ -232,12 +226,11 @@ export default { |
|
|
|
this.viewState = 1 |
|
|
|
}, |
|
|
|
getPathSid() { |
|
|
|
const userSid = window.sessionStorage.getItem('userSid') |
|
|
|
getPathSidByUserSid({ userSid: userSid }).then((res) => { |
|
|
|
if (res.code === '200') { |
|
|
|
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.listQuery.params.createOrgSid = res.data |
|
|
|
this.useOrg = res.data |
|
|
|
this.getList() |
|
|
|
this.loadList() |
|
|
|
this.getLocation(res.data) |
|
|
|
} |
|
|
|
}) |
|
|
@ -248,7 +241,7 @@ export default { |
|
|
|
fetchByUseOrgSid({ |
|
|
|
sid: useOrg |
|
|
|
}).then((res) => { |
|
|
|
if (res.code === '200') { |
|
|
|
if (res.success) { |
|
|
|
this.location_list = res.data |
|
|
|
console.log('存放地点', this.location_list) |
|
|
|
} |
|
|
@ -306,18 +299,24 @@ export default { |
|
|
|
inventoryEndDate: '', // 最新盘库结束日期 |
|
|
|
inventoryState: '', // 盘库状态 1通过/2未通过 |
|
|
|
createOrgSid: '', // 创建组织sid |
|
|
|
userSid: window.sessionStorage.getItem('userSid') |
|
|
|
userSid: '' |
|
|
|
} |
|
|
|
} |
|
|
|
this.getPathSid() |
|
|
|
}, |
|
|
|
loadList() { |
|
|
|
this.tableLoading = true |
|
|
|
listPage(this.listQuery).then(resp => { |
|
|
|
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid') |
|
|
|
listPage(this.listQuery).then((resp) => { |
|
|
|
this.tableLoading = false |
|
|
|
const data = resp.data |
|
|
|
this.listQuery.total = data.total |
|
|
|
this.dataList = data.records |
|
|
|
if (resp.success) { |
|
|
|
const data = resp.data |
|
|
|
this.listQuery.total = data.total |
|
|
|
this.dataList = data.records |
|
|
|
} else { |
|
|
|
this.listQuery.total = 0 |
|
|
|
this.dataList = [] |
|
|
|
} |
|
|
|
}).catch(() => { |
|
|
|
this.tableLoading = false |
|
|
|
}) |
|
|
|