diff --git a/src/api/modular/main/ExpressModule.js b/src/api/modular/main/ExpressModule.js new file mode 100644 index 0000000..03fef34 --- /dev/null +++ b/src/api/modular/main/ExpressModule.js @@ -0,0 +1,122 @@ +import { axios } from '@/utils/request' + +// 分页查询快递主表 +export function BookingOrderSFPage(parameter) { + return axios({ + url: '/BookingOrderSF/Page', + method: 'get', + params: parameter + }) +} +// 保存并返回数据 +export function BookingOrderSFSave(parameter) { + return axios({ + url: '/BookingOrderSF/Save', + method: 'post', + data: parameter + }) +} +// 删除单据 +export function BookingOrderSFDelete(parameter) { + return axios({ + url: '/BookingOrderSF/Delete', + method: 'post', + params: parameter + }) +} +// 获取详情 +export function BookingOrderSFGet(parameter) { + return axios({ + url: '/BookingOrderSF/Get', + method: 'post', + params: parameter + }) +} +// 发送快递 +export function BookingOrderSFSendBooking(parameter) { + return axios({ + url: '/BookingOrderSF/SendBooking', + method: 'post', + params: parameter + }) +} +// 获取省份信息 +export function commondbCodeProvinceList(parameter) { + return axios({ + url: '/commondb/CodeProvinceList', + method: 'get', + params: parameter + }) +} +// 获取城市信息 +export function commondbCodeCityList(parameter) { + return axios({ + url: '/commondb/CodeCityList', + method: 'get', + params: parameter + }) +} +// 查询快递进度 +export function BookingOrderSFQueryKDSchedule(parameter) { + return axios({ + url: `/BookingOrderSF/QueryKDSchedule`, + method: 'post', + params: parameter + }) +} +// ------------------------------------------------- +/** + * 获取目的港映射 + * + * @author Myshipping + */ +export function CommondbMappingportlist(parameter) { + return axios({ + url: '/commondb/mappingportlist', + method: 'get', + params: parameter + }) +} +export function CommondbPageMappingportlist(parameter) { + return axios({ + url: '/commondbpage/mappingportlist', + method: 'get', + params: parameter + }) +} +/** + * 新增编辑目的港映射信息 + * + * @author Myshipping + */ +export function CommondbAddorupdatemappingport(parameter) { + return axios({ + url: '/commondb/addorupdatemappingport', + method: 'post', + data: parameter + }) +} +/** + * 获取目的港信息 + * + * @author Myshipping + */ +export function commondbPortlist(parameter) { + return axios({ + url: '/commondb/portlist', + method: 'get', + params: parameter + }) +} +/** + * 获取船公司列表信息 + * + * @author Myshipping + */ +export function commondbCarrierlist(parameter) { + return axios({ + url: '/commondb/carrierlist', + method: 'get', + params: parameter + }) +} diff --git a/src/store/getters.js b/src/store/getters.js index 5821324..266d979 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -36,7 +36,8 @@ const getters = { saveFlag: state => state.booking.saveFlag, firstFlag: state => state.user.firstFlag, dpTreeList: state => state.booking.dpTreeList, - inBookingDetailsSave: state => state.booking.inBookingDetailsSave + inBookingDetailsSave: state => state.booking.inBookingDetailsSave, + kdAddData: state => state.KD.kdAddData } export default getters diff --git a/src/store/index.js b/src/store/index.js index 36dbaa4..c4ef4cc 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -4,7 +4,7 @@ import Vuex from 'vuex' import app from './modules/app' import user from './modules/user' import booking from './modules/booking' - +import KD from './modules/KD' // default router permission control // import permission from './modules/permission' @@ -19,16 +19,11 @@ export default new Vuex.Store({ app, user, booking, + KD, permission }, - state: { - - }, - mutations: { - - }, - actions: { - - }, + state: {}, + mutations: {}, + actions: {}, getters }) diff --git a/src/store/modules/KD.js b/src/store/modules/KD.js new file mode 100644 index 0000000..330a817 --- /dev/null +++ b/src/store/modules/KD.js @@ -0,0 +1,22 @@ +const KD = { + state: { + kdAddData: {} + }, + + mutations: { + SET_KDADDDATA: (state, list) => { + state.kdAddData[list.WebId] = list + } + }, + + actions: { + setTmsAddData({ commit }, obj) { + return new Promise(resolve => { + commit('SET_KDADDDATA', obj) + resolve() + }) + } + } +} + +export default KD diff --git a/src/views/main/ExpressModule/check.vue b/src/views/main/ExpressModule/check.vue new file mode 100644 index 0000000..fde8cc4 --- /dev/null +++ b/src/views/main/ExpressModule/check.vue @@ -0,0 +1,126 @@ + + diff --git a/src/views/main/ExpressModule/details.vue b/src/views/main/ExpressModule/details.vue new file mode 100644 index 0000000..a1afe6c --- /dev/null +++ b/src/views/main/ExpressModule/details.vue @@ -0,0 +1,1827 @@ + + + + + diff --git a/src/views/main/ExpressModule/editForm.vue b/src/views/main/ExpressModule/editForm.vue new file mode 100644 index 0000000..a69fe4e --- /dev/null +++ b/src/views/main/ExpressModule/editForm.vue @@ -0,0 +1,147 @@ + + + diff --git a/src/views/main/ExpressModule/index.vue b/src/views/main/ExpressModule/index.vue new file mode 100644 index 0000000..34215b2 --- /dev/null +++ b/src/views/main/ExpressModule/index.vue @@ -0,0 +1,539 @@ + + +