Browse Source

完善厂家采购--与切换机构功能相关修改

master
yunuo970428 2 years ago
parent
commit
c860c28412
  1. 20
      anrui-scm/anrui-scm-ui/src/api/cheliang/dictcommons.js
  2. 2
      anrui-scm/anrui-scm-ui/src/layout/components/Navbar.vue
  3. 17
      anrui-scm/anrui-scm-ui/src/main.js
  4. 6
      anrui-scm/anrui-scm-ui/src/router/modules/codemenu.js
  5. 14
      anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichan.vue
  6. 29
      anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanAdd.vue
  7. 18
      anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/chexingbyconfiguration.vue
  8. 47
      anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/shangzhuangselect/shangzhuangpeizhi.vue
  9. 15
      anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanEdit.vue
  10. 18
      anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/chexingbyconfiguration.vue
  11. 47
      anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/shangzhuangselect/shuangzhuangpeizhi.vue

20
anrui-scm/anrui-scm-ui/src/api/cheliang/dictcommons.js

@ -67,6 +67,16 @@ export function getPathSidByUserSid(data) {
params: data params: data
}) })
} }
// 根据当前登录人orgSidPath(全路径sid)查询分公司
export function getOrgSidByPath(data) {
return request({
url: '/portal/v1/sysstafforg/getOrgSidByPath',
method: 'get',
params: data
})
}
// 根据分公司sid查询分公司名称 // 根据分公司sid查询分公司名称
export function fetchBySid(sid) { export function fetchBySid(sid) {
return request({ return request({
@ -205,3 +215,13 @@ export function selectOrgByLevel(data) {
}) })
} }
// 当前用户创建申请时判断该用户是否有该菜单的操作权限
export function selectHaveMessage(data) {
return request({
url: '/portal/v1/sysuser/selectHaveMessage ',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
}

2
anrui-scm/anrui-scm-ui/src/layout/components/Navbar.vue

@ -28,7 +28,7 @@
mounted() { mounted() {
this.Orgname = window.sessionStorage.getItem('Orgname') this.Orgname = window.sessionStorage.getItem('Orgname')
this.departmentName = window.sessionStorage.getItem('departmentName') this.departmentName = window.sessionStorage.getItem('departmentName')
this.pNameAndDepartmentNameAndPostName = window.sessionStorage.getItem('pNameAndDepartmentNameAndPostName') this.pNameAndDepartmentNameAndPostName = window.sessionStorage.getItem('defaultOrgPathName')
this.name = window.sessionStorage.getItem('name') this.name = window.sessionStorage.getItem('name')
var nowDate = new Date() var nowDate = new Date()
this.year = nowDate.getFullYear() this.year = nowDate.getFullYear()

17
anrui-scm/anrui-scm-ui/src/main.js

@ -16,7 +16,7 @@ import eimage from '@/components/E-image/index.vue'
import moment from 'moment' import moment from 'moment'
import Print from '@/utils/print' // 引入附件的js文件 import Print from '@/utils/print' // 引入附件的js文件
import request from '@/utils/request' import request from '@/utils/request'
import { setStorage } from './utils/auth.js' import { setDefaultOrgPath, setDefaultOrgPathName, setStorage } from './utils/auth.js'
import VueAMap from 'vue-amap' import VueAMap from 'vue-amap'
Vue.use(ElementUI) Vue.use(ElementUI)
@ -52,6 +52,17 @@ if (token) {
// window.location.href = href.slice(0, href.length - 1) // window.location.href = href.slice(0, href.length - 1)
} }
var one = window.location.href.indexOf('&organizationData') + 18
if (parseInt(one) > 18) {
const data = window.location.href.substr(one) // url解码unescape()已从web中移除,尽量不使用
var data1 = decodeURIComponent(data)
if (data1 !== undefined) {
const obj = JSON.parse(data1)
setDefaultOrgPath(obj.defaultOrgPath)
setDefaultOrgPathName(obj.defaultOrgPathName)
}
}
// 获取登录用户信息 // 获取登录用户信息
function getUserInfo() { function getUserInfo() {
return request({ return request({
@ -75,8 +86,7 @@ function getUserInfo() {
Orgname: data.organizationName, Orgname: data.organizationName,
dwjb: data.dwjb, dwjb: data.dwjb,
orgNamePath: data.orgNamePath, // 使用组织全路径名称 orgNamePath: data.orgNamePath, // 使用组织全路径名称
orgSidPath: data.orgSidPath, // 使用组织全路径Sid orgSidPath: data.orgSidPath // 使用组织全路径Sid
pNameAndDepartmentNameAndPostName:data.pNameAndDepartmentNameAndPostName
} }
// 结果存入缓存 // 结果存入缓存
window.sessionStorage.setItem('staffSid', user.staffSid) window.sessionStorage.setItem('staffSid', user.staffSid)
@ -90,7 +100,6 @@ function getUserInfo() {
window.sessionStorage.setItem('departmentSid', user.departmentSid) window.sessionStorage.setItem('departmentSid', user.departmentSid)
window.sessionStorage.setItem('orgNamePath', user.orgNamePath) window.sessionStorage.setItem('orgNamePath', user.orgNamePath)
window.sessionStorage.setItem('orgSidPath', user.orgSidPath) window.sessionStorage.setItem('orgSidPath', user.orgSidPath)
window.sessionStorage.setItem('pNameAndDepartmentNameAndPostName', user.pNameAndDepartmentNameAndPostName)
new Vue({ new Vue({
el: '#app', el: '#app',
router, router,

6
anrui-scm/anrui-scm-ui/src/router/modules/codemenu.js

@ -316,13 +316,13 @@ const codemenu = [
path: '/vehicle/cheliangpaichan', path: '/vehicle/cheliangpaichan',
component: () => import('@/views/supplychain/cheliangpaichan/cheliangpaichan.vue'), component: () => import('@/views/supplychain/cheliangpaichan/cheliangpaichan.vue'),
name: 'cheliangpaichan', name: 'cheliangpaichan',
meta: { title: '厂家采购', noCache: true } meta: { title: '厂家采购', noCache: false }
}, },
{ {
path: '/vehicle/paichandingjintobeconfirmed', path: '/vehicle/paichandingjintobeconfirmed',
component: () => import('@/views/supplychain/paichandingjin/paichandingjintobeconfirmed.vue'), component: () => import('@/views/supplychain/paichandingjin/paichandingjintobeconfirmed.vue'),
name: 'paichandingjindaiqueren', name: 'paichandingjindaiqueren',
meta: { title: '排产订金申请确认', noCache: true } meta: { title: '排产订金申请确认', noCache: false }
} }
] ]
}, },
@ -338,7 +338,7 @@ const codemenu = [
path: '/supplychain/changjiaxitong', path: '/supplychain/changjiaxitong',
component: () => import('@/views/supplychain/changjiaxitong/manufacturers.vue'), component: () => import('@/views/supplychain/changjiaxitong/manufacturers.vue'),
name: 'changjiaxitongrenkuan', name: 'changjiaxitongrenkuan',
meta: { title: '厂家系统认款', noCache: true } meta: { title: '厂家系统认款', noCache: false }
} }
] ]
}, },

14
anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichan.vue

@ -90,6 +90,7 @@ import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye' import pageye from '@/components/pagination/pageye'
import divAdd from './cheliangpaichanAdd' import divAdd from './cheliangpaichanAdd'
import divInfo from './cheliangpaichanInfo' import divInfo from './cheliangpaichanInfo'
import { selectHaveMessage } from '@/api/cheliang/dictcommons'
import { getStorage } from '@/utils/auth' import { getStorage } from '@/utils/auth'
export default { export default {
@ -157,7 +158,8 @@ export default {
applicationDateEnd: '', applicationDateEnd: '',
applyTypeKey: '', applyTypeKey: '',
schedulingTypeKey: '', schedulingTypeKey: '',
userSid: '' userSid: '',
orgPath: ''
} }
}, },
row: {} row: {}
@ -247,9 +249,13 @@ export default {
this.nodeState_list = bb this.nodeState_list = bb
console.log('获取sids数组', this.sids) console.log('获取sids数组', this.sids)
}, },
toAdd(row) { toAdd() {
selectHaveMessage({ menuUrl: this.$route.path, orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => {
if (resp.success) {
this.viewState = 2 this.viewState = 2
this.$refs['divadd'].showAdd() this.$refs['divadd'].showAdd()
}
})
}, },
toInfo(row) { toInfo(row) {
this.viewState = 4 this.viewState = 4
@ -278,7 +284,8 @@ export default {
applicationDateEnd: '', applicationDateEnd: '',
applyTypeKey: '', applyTypeKey: '',
schedulingTypeKey: '', schedulingTypeKey: '',
userSid: '' userSid: '',
orgPath: ''
} }
} }
this.dosearch() this.dosearch()
@ -287,6 +294,7 @@ export default {
loadList() { loadList() {
this.tableLoading = true this.tableLoading = true
this.queryParams.params.userSid = window.sessionStorage.getItem('userSid') this.queryParams.params.userSid = window.sessionStorage.getItem('userSid')
this.queryParams.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
req.listPage(this.queryParams).then(resp => { req.listPage(this.queryParams).then(resp => {
console.log('查询列表', resp) console.log('查询列表', resp)
this.tableLoading = false this.tableLoading = false

29
anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanAdd.vue

@ -187,7 +187,7 @@ import configuration from './chexingbyconfiguration'
import shangzhuangpeizhi from '../../../views/supplychain/cheliangpaichan/shangzhuangselect/shangzhuangpeizhi' import shangzhuangpeizhi from '../../../views/supplychain/cheliangpaichan/shangzhuangselect/shangzhuangpeizhi'
import shangzhuangpeizhiAdd from '../../../views/supplychain/cheliangpaichan/shangzhuangselect/shangzhuangpeizhiAdd' import shangzhuangpeizhiAdd from '../../../views/supplychain/cheliangpaichan/shangzhuangselect/shangzhuangpeizhiAdd'
import vehicleconfiguration from '@/views/cheliang/cheliangcaigou/relation/vehicleconfiguration' import vehicleconfiguration from '@/views/cheliang/cheliangcaigou/relation/vehicleconfiguration'
import { getPathSidByUserSid, fetchBySid, selectSysUserList, fetchDetailsByUseOrgSid, brandDown, selectNameByOrg } from '@/api/cheliang/dictcommons' import { getOrgSidByPath, fetchBySid, selectSysUserList, fetchDetailsByUseOrgSid, brandDown, selectNameByOrg } from '@/api/cheliang/dictcommons'
export default { export default {
name: 'cheliangpaichanAdd', name: 'cheliangpaichanAdd',
@ -238,6 +238,7 @@ export default {
orgDeptSid: '', orgDeptSid: '',
carBrandName: '', carBrandName: '',
carBrandSid: '', carBrandSid: '',
orgPath: '',
busVehicleApplyDetailList: [] busVehicleApplyDetailList: []
}, },
rules: {}, rules: {},
@ -256,14 +257,14 @@ export default {
this.applyType_list = res.data this.applyType_list = res.data
} }
}) })
selectSysUserList({ userSid: window.sessionStorage.getItem('userSid') }).then((resp) => { selectSysUserList({ userSid: window.sessionStorage.getItem('userSid'), orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => {
if (resp.success) { if (resp.success) {
this.user_list = resp.data this.user_list = resp.data
} }
}) })
}, },
getUserOrg() { getUserOrg() {
getPathSidByUserSid({ userSid: window.sessionStorage.getItem('userSid') }).then((resp) => { getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => {
if (resp.success) { if (resp.success) {
this.formobj.createOrgSid = resp.data this.formobj.createOrgSid = resp.data
fetchBySid(this.formobj.createOrgSid).then((response) => { fetchBySid(this.formobj.createOrgSid).then((response) => {
@ -294,17 +295,13 @@ export default {
}) })
}, },
newDate() { newDate() {
let date = new Date() var nowDate = new Date()
let year = date.getFullYear() // var date = {
let month = date.getMonth() + 1 // year: nowDate.getFullYear(),
let day = date.getDate() // month: nowDate.getMonth() + 1,
if (month < 10) { day: nowDate.getDate()
month = '0' + month
} }
if (day < 10) { this.formobj.applicationDate = date.year + '-' + (date.month >= 10 ? date.month : '0' + date.month) + '-' + (date.day >= 10 ? date.day : '0' + date.day)
day = '0' + day
}
this.formobj.applicationDate = year + '-' + month + '-' + day
}, },
oninput(val, limit = 0) { oninput(val, limit = 0) {
val = val.replace(/[^\d]/g, '') // val = val.replace(/[^\d]/g, '') //
@ -328,7 +325,7 @@ export default {
return return
} }
this.viewState = 2 this.viewState = 2
this.$refs['divconfiguration'].showData(this.formobj.busVehicleApplyDetailList, this.formobj.carBrandSid) this.$refs['divconfiguration'].showData(this.formobj.busVehicleApplyDetailList, this.formobj.carBrandSid, this.formobj.createOrgSid)
}, },
handleLook(row) { handleLook(row) {
this.viewState = 5 this.viewState = 5
@ -353,6 +350,7 @@ export default {
}) })
this.dialogStatus = 'add' this.dialogStatus = 'add'
this.viewTitle = '【新增】厂家采购' this.viewTitle = '【新增】厂家采购'
this.formobj.orgPath = window.sessionStorage.getItem('defaultOrgPath')
this.formobj.createBySid = window.sessionStorage.getItem('userSid') this.formobj.createBySid = window.sessionStorage.getItem('userSid')
this.formobj.createByName = window.sessionStorage.getItem('name') this.formobj.createByName = window.sessionStorage.getItem('name')
}, },
@ -574,7 +572,7 @@ export default {
}, },
handleShangZhuang(index) { handleShangZhuang(index) {
this.viewState = 3 this.viewState = 3
this.$refs['divShangzhuangpeizhi'].showData(index) this.$refs['divShangzhuangpeizhi'].showData(index, this.formobj.createOrgSid)
}, },
backPeizhi(val, index) { backPeizhi(val, index) {
this.viewState = 1 this.viewState = 1
@ -665,6 +663,7 @@ export default {
this.formobj.orgDeptSid = '' this.formobj.orgDeptSid = ''
this.formobj.carBrandName = '' this.formobj.carBrandName = ''
this.formobj.carBrandSid = '' this.formobj.carBrandSid = ''
this.formobj.orgPath = ''
this.user_list = [] this.user_list = []
this.submitdisabled = false this.submitdisabled = false
this.formobj.busVehicleApplyDetailList = [] this.formobj.busVehicleApplyDetailList = []

18
anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/chexingbyconfiguration.vue

@ -133,15 +133,6 @@ export default {
handleReturn() { handleReturn() {
this.$emit('doback') this.$emit('doback')
}, },
getPathSid() {
const userSid = window.sessionStorage.getItem('userSid')
getPathSidByUserSid({ userSid: userSid }).then((res) => {
if (res.success) {
this.listQuery.params.useOrgSid = res.data
this.getList()
}
})
},
// //
getList() { getList() {
this.listLoading = true this.listLoading = true
@ -156,7 +147,7 @@ export default {
// //
handleFilter() { handleFilter() {
this.listQuery.current = 1 this.listQuery.current = 1
this.getPathSid() this.getList()
}, },
// //
handresetting() { handresetting() {
@ -168,7 +159,7 @@ export default {
this.listQuery.params.useOrgSid = '' this.listQuery.params.useOrgSid = ''
this.listQuery.params.vehicleStateValue = '' this.listQuery.params.vehicleStateValue = ''
this.listQuery.params.insideCode = '' this.listQuery.params.insideCode = ''
this.getPathSid() this.getList()
}, },
handleSelectionChange(row) { handleSelectionChange(row) {
this.sids = [] this.sids = []
@ -187,7 +178,7 @@ export default {
}) })
this.sids = aa this.sids = aa
}, },
showData(value, carBrandSid) { showData(value, carBrandSid, createOrgSid) {
const aa = [] const aa = []
if (value.length > 0) { if (value.length > 0) {
for (var i = 0; i < value.length; i++) { for (var i = 0; i < value.length; i++) {
@ -204,7 +195,8 @@ export default {
this.listQuery.total = 0 this.listQuery.total = 0
this.listQuery.size = 5 this.listQuery.size = 5
this.listQuery.params.carBrandSid = carBrandSid this.listQuery.params.carBrandSid = carBrandSid
this.getPathSid() this.listQuery.params.useOrgSid = createOrgSid
this.getList()
}, },
// //
AddUpdateReturn() { AddUpdateReturn() {

47
anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/shangzhuangselect/shangzhuangpeizhi.vue

@ -146,13 +146,8 @@ export default {
}, },
methods: { methods: {
init() { init() {
getPathSidByUserSid({ userSid: window.sessionStorage.getItem('userSid') }).then((res) => {
if (res.success) {
this.queryParams.params.createOrgSid = res.data
this.loadList()
}
})
this.DataDictionary() this.DataDictionary()
this.loadList()
}, },
DataDictionary() { DataDictionary() {
// //
@ -193,11 +188,12 @@ export default {
break break
} }
}, },
showData(index) { showData(index, createOrgSid) {
this.tableIndex = index this.tableIndex = index
this.queryParams.current = 1 this.queryParams.current = 1
this.queryParams.total = 0 this.queryParams.total = 0
this.queryParams.size = 5 this.queryParams.size = 5
this.queryParams.params.createOrgSid = createOrgSid
this.init() this.init()
}, },
dosearch() { dosearch() {
@ -205,32 +201,31 @@ export default {
this.init() this.init()
}, },
resetQuery() { resetQuery() {
this.queryParams = { this.queryParams.current = 1
current: 1, this.queryParams.size = 5
size: 5, this.queryParams.total = 0
total: 0, this.queryParams.params.vehicleTypeKey = ''
params: { this.queryParams.params.installNameKey = ''
vehicleTypeKey: '', this.queryParams.params.refitMethodKey = ''
installNameKey: '', this.queryParams.params.refitFactory = ''
refitMethodKey: '', this.queryParams.params.colorKey = ''
refitFactory: '', this.queryParams.params.plateMaterial = ''
colorKey: '',
plateMaterial: '',
createOrgSid: ''
}
}
this.init() this.init()
}, },
loadList() { loadList() {
const _this = this
this.tableLoading = true this.tableLoading = true
req.listPage(this.queryParams).then((resp) => { req.listPage(this.queryParams).then((resp) => {
_this.tableLoading = false this.tableLoading = false
if (resp.success) {
const data = resp.data const data = resp.data
_this.queryParams.total = data.total this.queryParams.total = data.total
_this.dataList = data.records this.dataList = data.records
} else {
this.queryParams.total = 0
this.dataList = []
}
}).catch(() => { }).catch(() => {
_this.tableLoading = false this.tableLoading = false
}) })
}, },
// //

15
anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanEdit.vue

@ -237,6 +237,7 @@ export default {
orgDeptSid: '', orgDeptSid: '',
carBrandSid: '', carBrandSid: '',
carBrandName: '', carBrandName: '',
orgPath: '',
busVehicleApplyDetailList: [] busVehicleApplyDetailList: []
}, },
rules: {}, rules: {},
@ -274,11 +275,6 @@ export default {
this.applyType_list = res.data this.applyType_list = res.data
} }
}) })
selectSysUserList({ userSid: window.sessionStorage.getItem('userSid') }).then((resp) => {
if (resp.success) {
this.user_list = resp.data
}
})
}, },
init() { init() {
@ -305,7 +301,7 @@ export default {
return return
} }
this.viewState = 2 this.viewState = 2
this.$refs['divconfiguration'].showData(this.formobj.busVehicleApplyDetailList, this.formobj.carBrandSid) this.$refs['divconfiguration'].showData(this.formobj.busVehicleApplyDetailList, this.formobj.carBrandSid, this.formobj.createOrgSid)
}, },
handleLook(row) { handleLook(row) {
this.viewState = 5 this.viewState = 5
@ -349,6 +345,11 @@ export default {
this.actualPay_list = res.data this.actualPay_list = res.data
} }
}) })
selectSysUserList({ userSid: window.sessionStorage.getItem('userSid'), orgPath: this.formobj.orgPath }).then((resp) => {
if (resp.success) {
this.user_list = resp.data
}
})
} }
}).catch((e) => { }).catch((e) => {
this.formobj = row this.formobj = row
@ -561,7 +562,7 @@ export default {
}, },
handleShangZhuang(index) { handleShangZhuang(index) {
this.viewState = 3 this.viewState = 3
this.$refs['divShangzhuangpeizhi'].showData(index) this.$refs['divShangzhuangpeizhi'].showData(index, this.formobj.createOrgSid)
}, },
backPeizhi(val, index) { backPeizhi(val, index) {
this.viewState = 1 this.viewState = 1

18
anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/chexingbyconfiguration.vue

@ -133,15 +133,6 @@ export default {
handleReturn() { handleReturn() {
this.$emit('doback') this.$emit('doback')
}, },
getPathSid() {
const userSid = window.sessionStorage.getItem('userSid')
getPathSidByUserSid({ userSid: userSid }).then((res) => {
if (res.success) {
this.listQuery.params.useOrgSid = res.data
this.getList()
}
})
},
// //
getList() { getList() {
this.listLoading = true this.listLoading = true
@ -156,7 +147,7 @@ export default {
// //
handleFilter() { handleFilter() {
this.listQuery.current = 1 this.listQuery.current = 1
this.getPathSid() this.getList()
}, },
// //
handresetting() { handresetting() {
@ -168,7 +159,7 @@ export default {
this.listQuery.params.useOrgSid = '' this.listQuery.params.useOrgSid = ''
this.listQuery.params.vehicleStateValue = '' this.listQuery.params.vehicleStateValue = ''
this.listQuery.params.insideCode = '' this.listQuery.params.insideCode = ''
this.getPathSid() this.getList()
}, },
handleSelectionChange(row) { handleSelectionChange(row) {
this.sids = [] this.sids = []
@ -187,7 +178,7 @@ export default {
}) })
this.sids = aa this.sids = aa
}, },
showData(value, carBrandSid) { showData(value, carBrandSid, createOrgSid) {
const aa = [] const aa = []
if (value.length > 0) { if (value.length > 0) {
for (var i = 0; i < value.length; i++) { for (var i = 0; i < value.length; i++) {
@ -204,7 +195,8 @@ export default {
this.listQuery.total = 0 this.listQuery.total = 0
this.listQuery.size = 5 this.listQuery.size = 5
this.listQuery.params.carBrandSid = carBrandSid this.listQuery.params.carBrandSid = carBrandSid
this.getPathSid() this.listQuery.params.useOrgSid = createOrgSid
this.getList()
}, },
// //
AddUpdateReturn() { AddUpdateReturn() {

47
anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/shangzhuangselect/shuangzhuangpeizhi.vue

@ -146,13 +146,8 @@ export default {
}, },
methods: { methods: {
init() { init() {
getPathSidByUserSid({ userSid: window.sessionStorage.getItem('userSid') }).then((res) => {
if (res.success) {
this.queryParams.params.createOrgSid = res.data
this.loadList()
}
})
this.DataDictionary() this.DataDictionary()
this.loadList()
}, },
DataDictionary() { DataDictionary() {
// //
@ -193,11 +188,12 @@ export default {
break break
} }
}, },
showData(index) { showData(index, createOrgSid) {
this.tableIndex = index this.tableIndex = index
this.queryParams.current = 1 this.queryParams.current = 1
this.queryParams.total = 0 this.queryParams.total = 0
this.queryParams.size = 5 this.queryParams.size = 5
this.queryParams.params.createOrgSid = createOrgSid
this.init() this.init()
}, },
dosearch() { dosearch() {
@ -205,32 +201,31 @@ export default {
this.init() this.init()
}, },
resetQuery() { resetQuery() {
this.queryParams = { this.queryParams.current = 1
current: 1, this.queryParams.size = 5
size: 5, this.queryParams.total = 0
total: 0, this.queryParams.params.vehicleTypeKey = ''
params: { this.queryParams.params.installNameKey = ''
vehicleTypeKey: '', this.queryParams.params.refitMethodKey = ''
installNameKey: '', this.queryParams.params.refitFactory = ''
refitMethodKey: '', this.queryParams.params.colorKey = ''
refitFactory: '', this.queryParams.params.plateMaterial = ''
colorKey: '',
plateMaterial: '',
createOrgSid: ''
}
}
this.init() this.init()
}, },
loadList() { loadList() {
const _this = this
this.tableLoading = true this.tableLoading = true
req.listPage(this.queryParams).then((resp) => { req.listPage(this.queryParams).then((resp) => {
_this.tableLoading = false this.tableLoading = false
if (resp.success) {
const data = resp.data const data = resp.data
_this.queryParams.total = data.total this.queryParams.total = data.total
_this.dataList = data.records this.dataList = data.records
} else {
this.queryParams.total = 0
this.dataList = []
}
}).catch(() => { }).catch(() => {
_this.tableLoading = false this.tableLoading = false
}) })
}, },
// //

Loading…
Cancel
Save