Commit deb89830 authored by 张子雨's avatar 张子雨

feat: 商品库修改

parent 3d9a1eea
...@@ -2,14 +2,14 @@ const isProduction = process.env.NODE_ENV === 'production'; ...@@ -2,14 +2,14 @@ const isProduction = process.env.NODE_ENV === 'production';
const isPre = process.env.PRE_ENV === 'pre'; const isPre = process.env.PRE_ENV === 'pre';
const envAPi = { const envAPi = {
api: '//backstms-test2.liangkebang.net', api: '//backstms-gyl2.liangkebang.net',
kdspOpApi: 'https://kdsp-operation-test2.liangkebang.net', kdspOpApi: 'https://kdsp-operation-gyl2.liangkebang.net',
kdspApi: 'https://sc-op-api-test2.liangkebang.net', kdspApi: 'https://sc-op-api-gyl2.liangkebang.net',
goodsApi: 'https://sc-op-api-test2.liangkebang.net', goodsApi: 'https://sc-op-api-gyl2.liangkebang.net',
// goodsApi: '//192.168.28.107:7000', // goodsApi: '//192.168.28.107:7000',
prologueDomain: 'https://mall-test2.liangkebang.net', prologueDomain: 'https://mall-gyl2.liangkebang.net',
qiniuHost: 'https://appsync.lkbang.net', qiniuHost: 'https://appsync.lkbang.net',
opapiHost: 'https://opapi-test2.liangkebang.net', opapiHost: 'https://opapi-gyl2.liangkebang.net',
}; };
const prodApi = { const prodApi = {
......
...@@ -459,7 +459,7 @@ class goodsManage extends Component { ...@@ -459,7 +459,7 @@ class goodsManage extends Component {
if (isFirstSame) first.pop(); if (isFirstSame) first.pop();
if (isSecondSame) second.pop(); if (isSecondSame) second.pop();
let colorKeys = isEdit let colorKeys = isEdit
? initData.firstSpecList.concat(first || this.state.initForm.first || []) ? initData?.firstSpecList?.concat(first || this.state.initForm.first || [])
: first || this.state.initForm.first || []; : first || this.state.initForm.first || [];
if (isEdit && !Object.keys(this.state.initForm).length && !this.state.isCancel) { if (isEdit && !Object.keys(this.state.initForm).length && !this.state.isCancel) {
...@@ -614,6 +614,27 @@ class goodsManage extends Component { ...@@ -614,6 +614,27 @@ class goodsManage extends Component {
</div> </div>
)} )}
</Col> </Col>
<Col span={24}>
<FormItem label="商品卖点" labelCol={{ span: 2 }}>
{getFieldDecorator('name', {
initialValue: initData.name,
})(
<Input
style={{ width: 690 }}
maxLength="50"
placeholder="好的卖点信息有利于提高商品转化,限50字"
allowClear
/>,
)}
</FormItem>
</Col>
<Col span={24}>
<FormItem label="商品服务" labelCol={{ span: 2 }}>
{getFieldDecorator('name', {
initialValue: initData.name,
})(<Checkbox>七天无理由退货</Checkbox>)}
</FormItem>
</Col>
</Row> </Row>
</Card> </Card>
<Card className={styles.card} bordered={false}> <Card className={styles.card} bordered={false}>
......
...@@ -27,7 +27,7 @@ class goodsManage extends Component { ...@@ -27,7 +27,7 @@ class goodsManage extends Component {
priceInfo: {}, priceInfo: {},
logVisible: false, logVisible: false,
previewVisible: false, previewVisible: false,
createVisible: false, // 新增or编辑普通商品modal createVisible: true, // 新增or编辑普通商品modal
selectedRowKeys: [], selectedRowKeys: [],
updateStockVisible: false, updateStockVisible: false,
initData: {}, initData: {},
......
...@@ -129,7 +129,12 @@ export function column() { ...@@ -129,7 +129,12 @@ export function column() {
dataIndex: 'stateDesc', dataIndex: 'stateDesc',
width: 200, width: 200,
align: 'center', align: 'center',
render: (_, row) => <span>{row.state >= 5 ? '审核通过' : _}</span>, render: (_, row) => (
<div>
<p>{row.state >= 5 ? '审核通过' : _}</p>
<p>信息变更待审核</p>
</div>
),
}, },
{ {
title: '操作', title: '操作',
......
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