Browse Source

完善分公司调车申请--选择车辆列表获取数据传参orgPath

master
yunuo970428 1 year ago
parent
commit
a3f530f65b
  1. 2
      anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangneigou/cheliangneigouAdd.vue
  2. 6
      anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangneigou/vehicleselect.vue
  3. 2
      anrui-scm/anrui-scm-ui/src/views/workFlow/cheliangneigouFlow/neigouguanli/neigouEdit.vue
  4. 34
      anrui-scm/anrui-scm-ui/src/views/workFlow/cheliangneigouFlow/neigouguanli/vehicleselect.vue

2
anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangneigou/cheliangneigouAdd.vue

@ -302,7 +302,7 @@ export default {
return
}
this.viewState = 3
this.$refs['divVehicle'].showData(this.formobj.baseInternalPurchaseVehicles, this.formobj.buyerOrgSid, this.formobj.brandSid)
this.$refs['divVehicle'].showData(this.formobj.baseInternalPurchaseVehicles, this.formobj.buyerOrgSid, this.formobj.brandSid, this.formobj.orgPath)
},
//
dataDelete(index, row) {

6
anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangneigou/vehicleselect.vue

@ -124,6 +124,7 @@ export default {
location: '',
userSid: '',
buyerOrgSid: '',
orgPath: '',
vinNoList: []
},
total: 0
@ -174,7 +175,7 @@ export default {
//
getList() {
this.listLoading = true
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid')
// this.listQuery.params.userSid = window.sessionStorage.getItem('userSid')
req.vehiclePurchaseList(this.listQuery).then((response) => {
this.listLoading = false
if (response.success) {
@ -219,7 +220,7 @@ export default {
})
this.sids = aa
},
showData(value, buyerOrgSid, brandSid) {
showData(value, buyerOrgSid, brandSid, orgPath) {
const aa = []
if (value.length > 0) {
for (var i = 0; i < value.length; i++) {
@ -234,6 +235,7 @@ export default {
this.listQuery.size = 5
this.listQuery.params.buyerOrgSid = buyerOrgSid
this.listQuery.params.brandSid = brandSid
this.listQuery.params.orgPath = orgPath
this.init()
},
//

2
anrui-scm/anrui-scm-ui/src/views/workFlow/cheliangneigouFlow/neigouguanli/neigouEdit.vue

@ -299,7 +299,7 @@ export default {
return
}
this.viewState = 3
this.$refs['divVehicle'].showData(this.formobj.baseInternalPurchaseVehicles, this.formobj.buyerOrgSid, this.formobj.brandSid)
this.$refs['divVehicle'].showData(this.formobj.baseInternalPurchaseVehicles, this.formobj.buyerOrgSid, this.formobj.brandSid, this.formobj.orgPath)
},
//
dataDelete(index, row) {

34
anrui-scm/anrui-scm-ui/src/views/workFlow/cheliangneigouFlow/neigouguanli/vehicleselect.vue

@ -124,6 +124,7 @@ export default {
location: '',
userSid: '',
buyerOrgSid: '',
orgPath: '',
vinNoList: []
},
total: 0
@ -146,20 +147,6 @@ export default {
this.carColor_list = resp.data
}
})
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) {
brandDown({ useOrg: res.data }).then((resp) => {
if (resp.success) {
this.carbrand_list = resp.data
}
})
fetchByUseOrgSid({ sid: res.data }).then((respsone) => {
if (respsone.success) {
this.location_list = respsone.data
}
})
}
})
this.getList()
},
indexMethod(index) {
@ -174,7 +161,7 @@ export default {
//
getList() {
this.listLoading = true
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid')
// this.listQuery.params.userSid = window.sessionStorage.getItem('userSid')
req.vehiclePurchaseList(this.listQuery).then((response) => {
this.listLoading = false
if (response.success) {
@ -219,7 +206,7 @@ export default {
})
this.sids = aa
},
showData(value, buyerOrgSid, brandSid) {
showData(value, buyerOrgSid, brandSid, orgPath) {
const aa = []
if (value.length > 0) {
for (var i = 0; i < value.length; i++) {
@ -234,6 +221,21 @@ export default {
this.listQuery.size = 5
this.listQuery.params.buyerOrgSid = buyerOrgSid
this.listQuery.params.brandSid = brandSid
this.listQuery.params.orgPath = orgPath
getOrgSidByPath({ orgPath: orgPath }).then((res) => {
if (res.success) {
brandDown({ useOrg: res.data }).then((resp) => {
if (resp.success) {
this.carbrand_list = resp.data
}
})
fetchByUseOrgSid({ sid: res.data }).then((respsone) => {
if (respsone.success) {
this.location_list = respsone.data
}
})
}
})
this.init()
},
//

Loading…
Cancel
Save