Commit 63fe498f authored by Gavin Peng's avatar Gavin Peng

feat: 订单能力 - 送货计划管理-待提交送货B2B对接完善

parent ebb26556
...@@ -51,7 +51,8 @@ export const ReceivingAddress = '收货地址'; ...@@ -51,7 +51,8 @@ export const ReceivingAddress = '收货地址';
export const SubmitDeliveryNotice = '提交送货通知单'; export const SubmitDeliveryNotice = '提交送货通知单';
export const ConfirmDeliveryNotice = '确认送货通知单'; export const ConfirmDeliveryNotice = '确认送货通知单';
export const DeliveryPlanText = '送货计划'
export const DeliveryPlanRemark = '最长600个字符,300个汉字'
......
// 公共组装类工具
/**
* 数组转对象 默认赋值 0 (示例:['$04-01','$04-02'] = { '$04-01': {}, '$04-02': {} })
* @param arr
* @returns
*/
const convertArrtoObj = (arr) => {
return arr.reduce((obj,currVal) => {
return{
...obj,
[currVal]: { day: currVal.substr(1), planCount: 0, createNotice: false, createDelivery: false }
}
}, {})
}
export {
convertArrtoObj
}
\ No newline at end of file
// 公共日期类工具
const getDayAll = (starDay: string, endDay: string) => { const getDayAll = (starDay: string, endDay: string) => {
let arr = [] let arr = []
let dates = [] let dates = []
...@@ -24,10 +26,10 @@ const getDayAll = (starDay: string, endDay: string) => { ...@@ -24,10 +26,10 @@ const getDayAll = (starDay: string, endDay: string) => {
let day = time.getDate() >= 10 ? time.getDate() : '0' + time.getDate() let day = time.getDate() >= 10 ? time.getDate() : '0' + time.getDate()
// year + '-' + // year + '-' +
// let YYMMDD = year + '-' + mouth + '-' + day // let YYMMDD = year + '-' + mouth + '-' + day
let MMDD = mouth + '-' + day let MMDD = '$' + mouth + '-' + day
dates.push(MMDD) dates.push(MMDD)
} }
dates.pop() // dates.pop()
return dates return dates
} }
// deliveryPlanManagement - deliveryPlanAwaitB2B - details copy.ts 测试使用,上线前需要删除 // deliveryPlanManagement - deliveryPlanAwaitB2B - details copy.ts 测试使用,上线前需要删除
...@@ -65,5 +67,5 @@ const getDayAll2 = (starDay: string, endDay: string) => { ...@@ -65,5 +67,5 @@ const getDayAll2 = (starDay: string, endDay: string) => {
export { export {
getDayAll, getDayAll,
getDayAll2 getDayAll2,
} }
\ No newline at end of file
export * from './status' export * from './status'
\ No newline at end of file export * from './date'
export * from './assemblyTools'
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment