|
|
|
@ -557,10 +557,13 @@ const columns: Ref<DataTableColumns<DataType>> = ref([
|
|
|
|
'2': { label: '已排产', type: 'success' },
|
|
|
|
'2': { label: '已排产', type: 'success' },
|
|
|
|
'3': { label: '生产中', type: 'warning' },
|
|
|
|
'3': { label: '生产中', type: 'warning' },
|
|
|
|
'4': { label: '已完成', type: 'success' },
|
|
|
|
'4': { label: '已完成', type: 'success' },
|
|
|
|
'5': { label: '已完成', type: 'success' },
|
|
|
|
'5': { label: '已发货', type: 'success' },
|
|
|
|
|
|
|
|
'6': { label: '已驳回', type: 'error' },
|
|
|
|
'8': { label: '申请发货中', type: 'primary' },
|
|
|
|
'8': { label: '申请发货中', type: 'primary' },
|
|
|
|
'9': { label: '已发货', type: 'success' },
|
|
|
|
'9': { label: '已通过待发货', type: 'success' },
|
|
|
|
'6': { label: '已驳回', type: 'error' }
|
|
|
|
'10': { label: '发货申请未通过', type: 'error' },
|
|
|
|
|
|
|
|
'11': { label: '出库中', type: 'success' },
|
|
|
|
|
|
|
|
'12': { label: '已发货', type: 'success' }
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const { label, type } = statusMap[row.status || '0'];
|
|
|
|
const { label, type } = statusMap[row.status || '0'];
|
|
|
|
return <NTag type={type}>{label}</NTag>;
|
|
|
|
return <NTag type={type}>{label}</NTag>;
|
|
|
|
@ -597,6 +600,7 @@ const columns: Ref<DataTableColumns<DataType>> = ref([
|
|
|
|
title: '操作',
|
|
|
|
title: '操作',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
key: 'actions',
|
|
|
|
key: 'actions',
|
|
|
|
|
|
|
|
fixed: 'right',
|
|
|
|
width: 220,
|
|
|
|
width: 220,
|
|
|
|
render: row => {
|
|
|
|
render: row => {
|
|
|
|
const actions:any[] = [];
|
|
|
|
const actions:any[] = [];
|
|
|
|
@ -748,7 +752,7 @@ const workorderHandleCancel = () => {
|
|
|
|
function handleSend(row){
|
|
|
|
function handleSend(row){
|
|
|
|
return dialog.warning({
|
|
|
|
return dialog.warning({
|
|
|
|
title: '提示',
|
|
|
|
title: '提示',
|
|
|
|
content:"申请后需仓管审核后发货,确认申请发货?",
|
|
|
|
content:"申请后需仓管审核后发货,确认申请?",
|
|
|
|
style: {
|
|
|
|
style: {
|
|
|
|
borderRadius: '10px'
|
|
|
|
borderRadius: '10px'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -759,7 +763,7 @@ function handleSend(row){
|
|
|
|
console.log(1);
|
|
|
|
console.log(1);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onPositiveClick: () => {
|
|
|
|
onPositiveClick: () => {
|
|
|
|
editSaleOrder({id: row.id, status: '8'}).then((res: any) => {
|
|
|
|
editSaleOrder({id: row.id, status: '8', attr1:'send'}).then((res: any) => {
|
|
|
|
if (res.code === 200) {
|
|
|
|
if (res.code === 200) {
|
|
|
|
message.success('申请成功');
|
|
|
|
message.success('申请成功');
|
|
|
|
init();
|
|
|
|
init();
|
|
|
|
|