浏览代码

商品列表详情

ytf 2 年之前
父节点
当前提交
0e34c741ac
共有 2 个文件被更改,包括 14 次插入5 次删除
  1. 1 1
      seller/src/pages/goods/add_goods.js
  2. 13 4
      seller/src/pages/goods/goods_online_lists.js

+ 1 - 1
seller/src/pages/goods/add_goods.js

@@ -2780,7 +2780,7 @@ export default class AddGoods extends Component {
2780 2780
                     {sldComLanguage('发布')}
2781 2781
                   </div>
2782 2782
                   }
2783
-                  {(query.id != undefined && query.id > 0) &&
2783
+                  {(query.isLock == undefined && query.id != undefined && query.id > 0) &&
2784 2784
                   <div onClick={() => this.handleSaveAllData()}
2785 2785
                        className={`${global.add_goods_bottom_btn} ${global.add_goods_bottom_btn_sel}`}>
2786 2786
                     {sldComLanguage('保存')}

+ 13 - 4
seller/src/pages/goods/goods_online_lists.js

@@ -185,25 +185,34 @@ export default class GoodsOnlineLists extends Component {
185 185
             <Fragment>
186 186
               {sldtbaleOpeBtnText(`${sldComLanguage('查看规格')}`, () => this.viewSpec(record))}
187 187
               <span className={global.splitLine}></span>
188
-              {record.isLock == 0 &&
189 188
               <Link to={{
190 189
                 pathname: '/goods/goods_list_to_add',
191 190
                 query: {
192 191
                   id: record.goodsId,
192
+                  isLock: 1
193 193
                 },
194 194
               }}>
195 195
                 {sldtbaleOpeBtnText(`${sldComLanguage('编辑')}`, () => null)}
196 196
               </Link>
197
-              }
197
+              {/* {record.isLock == 0 &&
198
+              <Link to={{
199
+                pathname: '/goods/goods_list_to_add',
200
+                query: {
201
+                  id: record.goodsId,
202
+                },
203
+              }}>
204
+                {sldtbaleOpeBtnText(`${sldComLanguage('编辑')}`, () => null)}
205
+              </Link>
206
+              } */}
198 207
               {/*商品被锁定*/}
199
-              {record.isLock == 1 &&
208
+              {/* {record.isLock == 1 &&
200 209
               <Tooltip placement="topRight" title={`${sldComLanguage('该商品参加活动期间不能进行编辑、删除等操作')}`}>
201 210
                 <a className={global.tableOperateText} style={{ color: '#fff', background: '#999', cursor: 'auto',whiteSpace:'nowrap',display:'inline-block',marginTop:1,marginLeft:5 }}
202 211
                    href='javascript:void(0)'>
203 212
                   {sldComLanguage('锁定')}
204 213
                 </a>
205 214
               </Tooltip>
206
-              }
215
+              } */}
207 216
             </Fragment>
208 217
           ),
209 218
         },