diff --git a/config/index.js b/config/index.js index 0185ce8..2255e2a 100644 --- a/config/index.js +++ b/config/index.js @@ -39,6 +39,7 @@ module.exports = { // target: 'http://api.jxc4.com/v2', // target: 'http://alpha.jxc4.com/v2', // 对应真实数据,修改后不会向平台提交 target: 'http://www.jxc4.com/beta/v2', // 正式环境 + // target: 'http://beta.jxc4.com/v2', // 测试环境 // target: 'http://192.168.56.1:8080/', // 后端api // target: 'http://alpha3.jxc4.com/v2', // 对应京东,修改后会提交 // target: 'http://www-gblm.jxc4.com/v2', // 百货 / 宠物 @@ -63,7 +64,7 @@ module.exports = { // target: 'http://api.jxc4.com/v2', // target: 'http://alpha.jxc4.com/v2', // 对应真实数据,修改后不会向平台提交 target: 'http://www.jxc4.com/v2', // 正式环境 - // target: 'http://192.168.56.1:8080', // 后端api + // target: 'http://192.168.0.75:8080/v2', // 后端api // target: 'http://www-jxgy.jxc4.com/v2', // 京西果园 // target: 'http://www-gblm.jxc4.com/v2', // 百货 / 宠物 changeOrigin: true, diff --git a/src/apis/APIOrder.js b/src/apis/APIOrder.js index a3377cf..e1cf33d 100644 --- a/src/apis/APIOrder.js +++ b/src/apis/APIOrder.js @@ -179,7 +179,7 @@ export const APIGetInvoiceRecord = async (json,page,noLoading=true) => { */ export const APIUploadOrderInvoice = async (json,noLoading=true) => { try { - let res = await api('v2/order/UploadOrderInvoice ', { + let res = await api('v2/order/UploadOrderInvoice', { method: 'POST', data: json, noLoading @@ -189,4 +189,66 @@ export const APIUploadOrderInvoice = async (json,noLoading=true) => { console.error('UploadOrderInvoice ', e) throw e } +} + + +/** + * @Title 上传订单拣货图片 https://tscc.meituan.com/home/doc/market/10143 + * @Description 上传订单拣货图片 + * @Param token header string true "认证token" + * @Param orderId formData string true "订单ID" + * @Param vendorID formData int true "平台ID" + * @Param mediaList formData string true "返图参数" + * + * @Success 200 {object} controllers.CallResult + * @Failure 200 {object} controllers.CallResult + * + * @mediaList + * Url string `json:"url"` + * Type int `json:"type"` + * ConfigSnapshotId int64 `json:"configSnapshotId"` + * ItemId int64 `json:"itemId"` + * Seq int `json:"seq"` + * InnerSeq int `json:"innerSeq"` + * RequireId int64 `json:"requireId"` + * MediaCode string `json:"mediaCode"` + */ +export const uploadOrderPickingMt = async (json,noLoading=true) => { + try { + let res = await api('v2/jxorder/UploadOrderPicking', { + method: 'POST', + data: json, + noLoading + }) + return res + } catch (e) { + console.error('UploadOrderPicking ', e) + throw e + } +} + + +/** + * 获取订单返图详情 https://tscc.meituan.com/home/doc/market/134 + * @Title 获取订单返图详情 + * @Description 获取订单返图详情 + * @Param token header string true "认证token" + * + * @Param orderId formData string true "订单ID" + * @Param vendorID formData int false "平台ID" + * + * @Success 200 {object} controllers.CallResult + * @Failure 200 {object} controllers.CallResult + */ +export const getOrderRequirePicture = async (json,noLoading=true) => { + try { + let res = await api('v2/jxorder/GetOrderRequirePicture', { + params: json, + noLoading + }) + return res + } catch (e) { + console.error('GetOrderPickingDetail ', e) + throw e + } } \ No newline at end of file diff --git a/src/components/cmp/uploadFile/index.vue b/src/components/cmp/uploadFile/index.vue index 71a95bd..527b792 100644 --- a/src/components/cmp/uploadFile/index.vue +++ b/src/components/cmp/uploadFile/index.vue @@ -77,7 +77,7 @@ - +