|
|
@ -270,15 +270,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { |
|
|
|
deleteCarTransfer, |
|
|
|
selectCarTransferList, |
|
|
|
temporaryExitPermitInfo, |
|
|
|
getErtraState, |
|
|
|
saveCarTransferSiteImage, |
|
|
|
selectWarehouseByUserSid |
|
|
|
} from '@/api/supplychain/cunfangdidianbiangeng' |
|
|
|
import { getUseOrgByUserSid, selectModelName } from '@/api/cheliang/basevehicle' |
|
|
|
import { deleteCarTransfer, selectCarTransferList, temporaryExitPermitInfo, getErtraState, saveCarTransferSiteImage, selectWarehouseByUserSid } from '@/api/supplychain/cunfangdidianbiangeng' |
|
|
|
import ButtonBar from '@/components/ButtonBar' |
|
|
|
import Pagination from '@/components/pagination' |
|
|
|
import pageye from '@/components/pagination/pageye' |
|
|
@ -286,6 +278,7 @@ import cunfangdidianbiangengAdd from '@/views/supplychain/cunfangdidianbiangeng/ |
|
|
|
import cunfangdidianbiangengInfo from '@/views/supplychain/cunfangdidianbiangeng/cunfangdidianbiangengInfo' |
|
|
|
import upload from '../../../components/uploadFile/upload_cunfang' |
|
|
|
import { getStorage } from '@/utils/auth' |
|
|
|
import { selectHaveMessage } from '@/api/cheliang/dictcommons' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'cunfangdidianbiangeng', |
|
|
@ -324,9 +317,6 @@ export default { |
|
|
|
multipleSelection: [], |
|
|
|
sids: [], |
|
|
|
dataList: [], |
|
|
|
modelName_list: [], |
|
|
|
useOrg: '', // 使用组织 |
|
|
|
useOrgSid: '', // 使用组织sid |
|
|
|
formList: {}, |
|
|
|
listQuery: { |
|
|
|
current: 1, |
|
|
@ -340,7 +330,8 @@ export default { |
|
|
|
targetLocationSid: '', |
|
|
|
locationSid: '', |
|
|
|
operator: '', |
|
|
|
userSid: window.sessionStorage.getItem('userSid') |
|
|
|
userSid: '', |
|
|
|
orgPath: '' |
|
|
|
} |
|
|
|
}, |
|
|
|
btnList: [ |
|
|
@ -370,7 +361,6 @@ export default { |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.getList() |
|
|
|
// this.getUseOrg() |
|
|
|
this.getModelName() |
|
|
|
}, |
|
|
|
mounted() { |
|
|
@ -431,8 +421,12 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
toAdd() { |
|
|
|
this.viewState = 2 |
|
|
|
this.$refs['divadd'].showAdd() |
|
|
|
selectHaveMessage({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
this.viewState = 2 |
|
|
|
this.$refs['divadd'].showAdd() |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
toEdit() { |
|
|
|
if (this.multipleSelection.length === 0) { |
|
|
@ -572,24 +566,27 @@ export default { |
|
|
|
targetLocationSid: '', |
|
|
|
locationSid: '', |
|
|
|
operator: '', |
|
|
|
userSid: window.sessionStorage.getItem('userSid') |
|
|
|
userSid: '', |
|
|
|
orgPath: '' |
|
|
|
} |
|
|
|
} |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
loadList() { |
|
|
|
const _this = this |
|
|
|
this.tableLoading = true |
|
|
|
selectCarTransferList(this.listQuery) |
|
|
|
.then(resp => { |
|
|
|
_this.tableLoading = false |
|
|
|
selectCarTransferList(this.listQuery).then((resp) => { |
|
|
|
this.tableLoading = false |
|
|
|
if (resp.success) { |
|
|
|
const data = resp.data |
|
|
|
_this.listQuery.total = data.total |
|
|
|
_this.dataList = data.records |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
_this.tableLoading = false |
|
|
|
}) |
|
|
|
this.listQuery.total = data.total |
|
|
|
this.dataList = data.records |
|
|
|
} else { |
|
|
|
this.listQuery.total = 0 |
|
|
|
this.dataList = [] |
|
|
|
} |
|
|
|
}).catch(() => { |
|
|
|
this.tableLoading = false |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleSelectionChange(row) { |
|
|
|
this.multipleSelection = row |
|
|
@ -644,29 +641,12 @@ export default { |
|
|
|
}, |
|
|
|
// 车型名称下拉框 |
|
|
|
getModelName() { |
|
|
|
selectModelName({ name: '' }).then((response) => { |
|
|
|
if (response.code === '200') { |
|
|
|
this.modelName_list = response.data |
|
|
|
} |
|
|
|
}) |
|
|
|
selectWarehouseByUserSid(window.sessionStorage.getItem('userSid')).then((res) => { |
|
|
|
selectWarehouseByUserSid({ userSid: window.sessionStorage.getItem('userSid'), orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.warehouwarehouse_list = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 根据个人sid查询个人分公司 |
|
|
|
getUseOrg() { |
|
|
|
const userSid = window.sessionStorage.getItem('userSid') |
|
|
|
getUseOrgByUserSid({ userSid: userSid }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.useOrg = res.data.name // 使用组织 |
|
|
|
this.useOrgSid = res.data.sid // 使用组织sid |
|
|
|
this.listQuery.params.useOrgSid = res.data.sid |
|
|
|
this.loadList() |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 序号 |
|
|
|
indexMethod(index) { |
|
|
|
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|
|
|