feat: 订单单独发货

feature/task1.0.0__0514__ch
向文可 2 years ago
parent 5d1d3ea942
commit 9578d3ccb4

@ -43,7 +43,7 @@ const actions = {
if (res) { if (res) {
commit( commit(
'setSummary', 'setSummary',
['allCount', 'unpaidCount', 'closeCount', 'waitDeliveryCount', '', 'deliveredCount', 'finishCount'].map( ['allCount', 'unpaidCount', 'closeCount', 'waitDeliveryCount', 'deliveredCount', '', 'finishCount'].map(
(prop) => res[prop] (prop) => res[prop]
) )
); );

@ -148,7 +148,7 @@
}); });
router.push({ name: 'OrderShip' }); router.push({ name: 'OrderShip' });
} else { } else {
proxy.$message.warning('请选择要删除的数据'); proxy.$message.warning('请选择要发货的订单');
} }
}; };
@ -175,6 +175,7 @@
type: 'selection', type: 'selection',
fixed: 'left', fixed: 'left',
width: 60, width: 60,
selectable: (row) => row.orderStatus === 3,
}, },
{ {
label: '订单编号', label: '订单编号',
@ -200,7 +201,7 @@
{ {
label: '订单来源', label: '订单来源',
width: 120, width: 120,
prop: 'payTypeDesc', prop: 'orderSourceDesc',
}, },
{ {
label: '订单状态', label: '订单状态',
@ -229,6 +230,13 @@
) : ( ) : (
'' ''
)} )}
{row.orderStatus === 3 ? (
<ElButton type="text" onClick={() => handleSend([row])}>
订单发货
</ElButton>
) : (
''
)}
</div> </div>
), ),
}, },

Loading…
Cancel
Save