- 优化订单列表

- 添加订单发货流程
This commit is contained in:
sin
2019-04-05 17:54:19 +08:00
parent 10807b0c6f
commit 2bcaaf2027
9 changed files with 303 additions and 71 deletions

View File

@@ -4,6 +4,7 @@ const DictionaryConstants = {
GENDER: 'gender',
ORDER_STATUS: 'order_status',
ORDER_CANCEL_REASONS: 'order_cancel_reasons',
LOGISTICS_COMPANY: 'logistics_company',
};
export default DictionaryConstants;

View File

@@ -11,7 +11,13 @@ function filterEmptyStr(params) {
const res = {};
for (const key in object) {
const val = object[key];
if (val !== undefined && val !== 'undefined' && val !== null && val !== 'null') {
if (
new String(val).length > 0 &&
val !== undefined &&
val !== 'undefined' &&
val !== null &&
val !== 'null'
) {
res[key] = val;
}
}