修改状态
This commit is contained in:
parent
e479dae884
commit
f38be5e979
4
.env.dev
4
.env.dev
@ -6,9 +6,9 @@ VITE_OPERATOR_PLUGIN_BASE_URL=${VITE_BASE_URL}:8099
|
|||||||
VITE_AI_SHOP_BASE_URL=http://192.168.0.115:8081
|
VITE_AI_SHOP_BASE_URL=http://192.168.0.115:8081
|
||||||
VITE_WEBSOCKET_BASE_URL=ws://${VITE_HOST}:7025/copyright
|
VITE_WEBSOCKET_BASE_URL=ws://${VITE_HOST}:7025/copyright
|
||||||
# 18634604067
|
# 18634604067
|
||||||
VITE_USERID=80d3365e-0597-4988-979e-18ef1c3ec671
|
# VITE_USERID=80d3365e-0597-4988-979e-18ef1c3ec671
|
||||||
# VITE_USERID=e3e40f95-7a3f-4b53-a1a0-51dd4e881d74
|
# VITE_USERID=e3e40f95-7a3f-4b53-a1a0-51dd4e881d74
|
||||||
# VITE_USERID=5cc90b84-905e-4027-9f6c-ab47e9c320a1
|
VITE_USERID=5cc90b84-905e-4027-9f6c-ab47e9c320a1
|
||||||
# VITE_CURRENT_THEME=fzkj
|
# VITE_CURRENT_THEME=fzkj
|
||||||
VITE_CURRENT_THEME=mzw
|
VITE_CURRENT_THEME=mzw
|
||||||
# VITE_HOST=121.36.71.250:58038
|
# VITE_HOST=121.36.71.250:58038
|
||||||
|
@ -134,7 +134,7 @@ export default function ProductRelease() {
|
|||||||
return {
|
return {
|
||||||
...dataItem,
|
...dataItem,
|
||||||
goodsStatus: 0
|
goodsStatus: 0
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return dataItem;
|
return dataItem;
|
||||||
@ -142,7 +142,7 @@ export default function ProductRelease() {
|
|||||||
|
|
||||||
})
|
})
|
||||||
// console.log('setData', data);
|
// console.log('setData', data);
|
||||||
|
|
||||||
setOffModalOpen(false)
|
setOffModalOpen(false)
|
||||||
messageApi.open({
|
messageApi.open({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
@ -583,18 +583,18 @@ export default function ProductRelease() {
|
|||||||
edit(item)
|
edit(item)
|
||||||
}}>编辑</Button>
|
}}>编辑</Button>
|
||||||
<Button className='goodsBtn' type="primary" style={{
|
<Button className='goodsBtn' type="primary" style={{
|
||||||
width: '163px',
|
width: '163px',
|
||||||
background:'#0FADAB',
|
background: '#0FADAB',
|
||||||
display: item.goodsCheckStatus == '1' || item.goodsCheckStatus == '2' ? 'none' : 'unset'
|
display: item.goodsCheckStatus == '1' || item.goodsCheckStatus == '2' ? 'none' : 'unset'
|
||||||
}} onClick={() => submit(item)}>提交审核</Button>
|
}} onClick={() => submit(item)}>提交审核</Button>
|
||||||
<Button className='goodsBtn' type="primary" style={{
|
<Button className='goodsBtn' type="primary" style={{
|
||||||
width: '80px',
|
width: '80px',
|
||||||
display: item.goodsStatus == '0' && item.goodsCheckStatus == '2' ? 'unset' : 'none'
|
display: item.goodsStatus == '0' && item.goodsCheckStatus == '2' ? 'unset' : 'none'
|
||||||
}} onClick={() => sell(item)}>上架</Button>
|
}} onClick={() => sell(item)}>上架</Button>
|
||||||
<Button className='goodsBtn' type="primary" style={{
|
<Button className='goodsBtn' type="primary" style={{
|
||||||
width: '80px',
|
width: '80px',
|
||||||
background:'rgb(248, 97, 97)',
|
background: 'rgb(248, 97, 97)',
|
||||||
display: item.goodsStatus == '0' || item.goodsOrderStatus == '3' ? 'none' : 'unset'
|
display: item.goodsStatus == '0' || item.goodsOrderStatus == '3' || item.goodsOrderStatus == '4' ? 'none' : 'unset'
|
||||||
}}
|
}}
|
||||||
onClick={() => off(item)}>下架</Button>
|
onClick={() => off(item)}>下架</Button>
|
||||||
<div className='goodsBtnIng' style={{
|
<div className='goodsBtnIng' style={{
|
||||||
@ -602,7 +602,7 @@ export default function ProductRelease() {
|
|||||||
}}>
|
}}>
|
||||||
正在交易中...
|
正在交易中...
|
||||||
</div>
|
</div>
|
||||||
<div className='goodsBtnIng' style={{
|
<div className='goodsBtnIng' style={{
|
||||||
display: item.goodsOrderStatus == '4' ? 'unset' : 'none'
|
display: item.goodsOrderStatus == '4' ? 'unset' : 'none'
|
||||||
}}>
|
}}>
|
||||||
已完成
|
已完成
|
||||||
|
@ -3,17 +3,30 @@ import { Button, Radio, Form, Input } from 'antd'
|
|||||||
import './EditOne.css'
|
import './EditOne.css'
|
||||||
const { TextArea } = Input;
|
const { TextArea } = Input;
|
||||||
export default function EditOne(props: any) {
|
export default function EditOne(props: any) {
|
||||||
const [form] = Form.useForm<any>();
|
const [formA] = Form.useForm<any>(); // 文字商标表单
|
||||||
|
const [formB] = Form.useForm<any>(); // 图形商标表单
|
||||||
const height = window.innerHeight - 350;
|
const height = window.innerHeight - 350;
|
||||||
const [goodsType, setGoodsType] = useState('a')
|
const [goodsType, setGoodsType] = useState('a')
|
||||||
const handleSubmit = () => {
|
const handleSubmit = () => {
|
||||||
// console.log(form);
|
// console.log(form);
|
||||||
// props.setEditProcess(2);
|
// props.setEditProcess(2);
|
||||||
// 调用表单实例的 submit 方法
|
// 调用表单实例的 submit 方法
|
||||||
form.submit();
|
if (goodsType === 'a') {
|
||||||
|
formA.submit();
|
||||||
|
} else if (goodsType === 'b') {
|
||||||
|
formB.submit();
|
||||||
|
} else {
|
||||||
|
// 表单不显示时,直接更新步骤
|
||||||
|
props.setEditProcess(2);
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
const onFinish = (values: any) => {
|
const onFinishA = (values: any) => {
|
||||||
|
console.log(values);
|
||||||
|
props.setEditProcess(2);
|
||||||
|
|
||||||
|
}
|
||||||
|
const onFinishB = (values: any) => {
|
||||||
console.log(values);
|
console.log(values);
|
||||||
props.setEditProcess(2);
|
props.setEditProcess(2);
|
||||||
|
|
||||||
@ -55,9 +68,9 @@ export default function EditOne(props: any) {
|
|||||||
display: goodsType === 'a' ? 'unset' : 'none',
|
display: goodsType === 'a' ? 'unset' : 'none',
|
||||||
}}>
|
}}>
|
||||||
<Form
|
<Form
|
||||||
name="Form"
|
name="FormA"
|
||||||
form={form}
|
form={formA}
|
||||||
onFinish={onFinish}
|
onFinish={onFinishA}
|
||||||
initialValues={{ softWare: '' }}
|
initialValues={{ softWare: '' }}
|
||||||
style={{ marginTop: 20 }}
|
style={{ marginTop: 20 }}
|
||||||
>
|
>
|
||||||
@ -133,6 +146,87 @@ export default function EditOne(props: any) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div style={{
|
||||||
|
display: goodsType === 'b' ? 'unset' : 'none',
|
||||||
|
}}>
|
||||||
|
<Form
|
||||||
|
name="FormB"
|
||||||
|
form={formB}
|
||||||
|
onFinish={onFinishB}
|
||||||
|
initialValues={{ softWare: '' }}
|
||||||
|
style={{ marginTop: 20 }}
|
||||||
|
>
|
||||||
|
<div className='editFormItem '>
|
||||||
|
<div className='editFormItemTitle'>
|
||||||
|
商标名称<span className='redTitle' >*</span>:
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<Form.Item
|
||||||
|
name="titleB"
|
||||||
|
rules={[{ required: true, message: '请输入商标名称!' }]}
|
||||||
|
>
|
||||||
|
<Input style={{
|
||||||
|
width: 600,
|
||||||
|
height: 46,
|
||||||
|
background: '#FFF',
|
||||||
|
color: 'black'
|
||||||
|
}}
|
||||||
|
placeholder="商标名称"
|
||||||
|
>
|
||||||
|
</Input>
|
||||||
|
|
||||||
|
</Form.Item>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div className='editFormItem' style={{
|
||||||
|
marginTop: '20px',
|
||||||
|
}}>
|
||||||
|
<div className='editFormItemTitle'>
|
||||||
|
商标说明<span className='redTitle'>*</span>:
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<Form.Item
|
||||||
|
name="textB"
|
||||||
|
rules={[{ required: true, message: '请输入商标说明' }]}
|
||||||
|
>
|
||||||
|
<TextArea style={{
|
||||||
|
width: 600,
|
||||||
|
height: 150,
|
||||||
|
background: '#FFF',
|
||||||
|
color: 'black',
|
||||||
|
resize: 'none'
|
||||||
|
}}
|
||||||
|
placeholder="商标说明"
|
||||||
|
>
|
||||||
|
</TextArea>
|
||||||
|
|
||||||
|
</Form.Item>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{/* <Form.Item>
|
||||||
|
<div className='trademark-btn'>
|
||||||
|
<Button type="primary" htmlType="submit" style={{
|
||||||
|
width: 273,
|
||||||
|
height: 52
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
提交订单
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</Form.Item> */}
|
||||||
|
</Form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div className='topLine'></div>
|
<div className='topLine'></div>
|
||||||
|
Loading…
Reference in New Issue
Block a user