Browse Source

商配车辆、司机接口调整

fix_bug_pro20231227
kilo 1 year ago
parent
commit
69d4758a0d
  1. 18
      src/api/basicdata/basicdataDriverArtery.js
  2. 14
      src/api/basicdata/basicdataVehicle.js
  3. 6
      src/api/distribution/distributionReservation.js
  4. 168
      src/views/basicdata/vehicle/basicdataVehicle.vue
  5. 8
      src/views/distribution/turndelivery/deliveryDiscuss.vue
  6. 5
      src/views/distribution/turndelivery/deliveryMarket.vue

18
src/api/basicdata/basicdataDriverArtery.js

@ -67,15 +67,19 @@ export const update = (row) => {
}) })
} }
export const getDriverList = (current, size, params) => { /**
* 查询当前仓库司机列表
* @returns {AxiosPromise}
*/
export const getDriverList = () => {
return request({ return request({
url: '/api/logpm-basicdata/driverArtery/list', url: '/api/logpm-basicdata/driverArtery/getDriverList',
method: 'get', method: 'get',
params: { // params: {
...params, // ...params,
current, // current,
size, // size,
} // }
}) })
} }

14
src/api/basicdata/basicdataVehicle.js

@ -65,15 +65,15 @@ export const update = (row) => {
}) })
} }
export const getVehicleList = (current, size, params) => { export const getVehicleList = () => {
return request({ return request({
url: '/api/logpm-basicdata/vehicle/page', url: '/api/logpm-basicdata/vehicle/getVehicleList',
method: 'get', method: 'get',
params: { // params: {
...params, // ...params,
current, // current,
size, // size,
} // }
}) })

6
src/api/distribution/distributionReservation.js

@ -227,11 +227,11 @@ export const getReservationZeroOrderDetail = (reservationId,id) => {
* @param ids * @param ids
* @returns {AxiosPromise} * @returns {AxiosPromise}
*/ */
export const getDeliveryZeroOrderDetail = (deliveryId,id) => { export const getDeliveryZeroOrderDetail = (deliveryId,orderId) => {
return request({ return request({
url: '/api/logpm-distribution/reservation/getDeliveryZeroOrderDetail', url: '/api/logpm-distribution/deliveryList/getDeliveryZeroOrderDetail',
method: 'get', method: 'get',
params: { id,deliveryId } params: { deliveryId,orderId }
}); });
} }

168
src/views/basicdata/vehicle/basicdataVehicle.vue

@ -76,6 +76,174 @@ import NProgress from 'nprogress';
import 'nprogress/nprogress.css'; import 'nprogress/nprogress.css';
import BasicdataVehicleform from '/src/views/basicdata/vehicle/basicdataVehicleform.vue'; import BasicdataVehicleform from '/src/views/basicdata/vehicle/basicdataVehicleform.vue';
// export default {
// components: { BasicdataVehicleform },
// data() {
// return {
// form: {},
// query: {},
// search: {},
// loading: true,
// vehicleformdata: {},
// dicDatas: [],
// edit: true, //
// page: {
// pageSize: 30,
// currentPage: 1,
// total: 0
// },
// selectionList: [],
// option: {
// height: 'auto',
// calcHeight: 30,
// tip: false,
// searchShow: false,
// searchMenuSpan: 6,
// border: true,
// index: true,
// viewBtn: false,
// editBtn: false,
// selection: true,
// dialogClickModal: false,
// column: [
// {
// label: '',
// prop: 'id',
// type: 'input',
// addDisplay: false,
// editDisplay: false,
// viewDisplay: false,
// hide: true
// },
// {
// label: '',
// prop: 'tenantId',
// type: 'input',
// addDisplay: false,
// editDisplay: false,
// viewDisplay: false,
// hide: true
// },
// {
// label: '',
// prop: 'createUser',
// type: 'input',
// addDisplay: false,
// editDisplay: false,
// viewDisplay: false,
// hide: true
// },
// {
// label: '',
// prop: 'createTime',
// type: 'input',
// addDisplay: false,
// editDisplay: false,
// viewDisplay: false,
// hide: true
// },
// {
// label: '',
// prop: 'updateUser',
// type: 'input',
// addDisplay: false,
// editDisplay: false,
// viewDisplay: false,
// hide: true
// },
// {
// label: '',
// prop: 'updateTime',
// type: 'input',
// addDisplay: false,
// editDisplay: false,
// viewDisplay: false,
// hide: true
// },
// {
// label: '',
// prop: 'status',
// type: 'input',
// addDisplay: false,
// editDisplay: false,
// viewDisplay: false,
// hide: true
// },
// {
// label: ';1-2-',
// prop: 'isDeleted',
// type: 'input',
// addDisplay: false,
// editDisplay: false,
// viewDisplay: false,
// hide: true
// },
// {
// label: '',
// prop: 'createDept',
// type: 'input',
// addDisplay: false,
// editDisplay: false,
// viewDisplay: false,
// hide: true
// },
// {
// label: '',
// prop: 'vehicleNub',
// type: 'input',
// search: true,
// labelWidth: '150',
// width: '100px',
// align: 'center',
// span: 11
// },
// {
// label: '',
// labelWidth: '150',
// // width: 'fit-content',
// width: '100px',
// align: 'center',
// span: 11,
// prop: 'carrierName',
// type: 'input',
// editDisplay: false,
// addDisplay: false
// },
// {
// label: '',
// prop: 'vehicleOwners',
// type: 'select',
// labelWidth: '150',
// width: '200px',
// align: 'center',
// span: 11,
// multiple: true,
// dicData: []
// // dicUrl: '/api/logpm-basicdata/vehicle/dictionary',
// // props: {
// // label: 'vehicleNub',
// // value: 'id',
// // },
// // addDisplay: false,
// // editDisplay: false,
// // viewDisplay: false,
// // hide: true,
// },
// {
// label: '',
// prop: 'vehicleSource',
// type: 'select',
// search: true,
// labelWidth: '150',
// width: '100px',
// align: 'center',
// span: 11,
// dicUrl: '/api/blade-system/dict-biz/dictionary?code=basic_vehicle_source',
// props: {
// label: 'dictValue',
// value: 'dictKey'
// }
// }
export default { export default {
components: { BasicdataVehicleform }, components: { BasicdataVehicleform },
data() { data() {

8
src/views/distribution/turndelivery/deliveryDiscuss.vue

@ -873,8 +873,6 @@ import { ElMessage } from 'element-plus'
}, },
methods: { methods: {
// //
async getFork() { async getFork() {
await getListUser().then(res => { await getListUser().then(res => {
@ -932,7 +930,10 @@ import { ElMessage } from 'element-plus'
}, },
// //
async getTeam() { async getTeam() {
let params = this.deptId; const info = JSON.parse(localStorage.getItem('TWMS-userInfo'))
console.log('info >>>>>>>>', info);
// let params = this.deptId;
let params = info.content.dept_id;
console.log('%%%%%%%%%', params); console.log('%%%%%%%%%', params);
getListTeamInfo(params).then(res => { getListTeamInfo(params).then(res => {
console.log('aaaaaaaaa', res.data.data); console.log('aaaaaaaaa', res.data.data);
@ -1197,6 +1198,7 @@ import { ElMessage } from 'element-plus'
return; return;
} }
} }
entryNum(this.zeroOrderData).then(res => { entryNum(this.zeroOrderData).then(res => {
if (res) { if (res) {
this.$message({ this.$message({

5
src/views/distribution/turndelivery/deliveryMarket.vue

@ -798,7 +798,10 @@
}, },
// //
async getTeam() { async getTeam() {
let params = this.deptId; const info = JSON.parse(localStorage.getItem('TWMS-userInfo'))
console.log('info >>>>>>>>', info);
// let params = this.deptId;
let params = info.content.dept_id;
console.log('%%%%%%%%%', params); console.log('%%%%%%%%%', params);
getListTeamInfo(params).then(res => { getListTeamInfo(params).then(res => {
console.log('aaaaaaaaa', res.data.data); console.log('aaaaaaaaa', res.data.data);

Loading…
Cancel
Save