소스 검색

软件锁升级+备注功能

outaozhen 5 년 전
부모
커밋
d0fb1aae16

+ 4 - 0
src/basic/css/common.scss

@@ -184,6 +184,10 @@
   }
   }
 }
 }
 
 
+.zh-block {
+  display:inline-block !important;
+}
+
 /** flex布局 */
 /** flex布局 */
 .zh-flex {
 .zh-flex {
   display: flex;
   display: flex;

+ 7 - 7
src/basic/css/variable.scss

@@ -7,11 +7,10 @@ $zh-blue: #007bff !default;
 $zh-red: #dc3545 !default;
 $zh-red: #dc3545 !default;
 $zh-yellow: #ffc170 !default;
 $zh-yellow: #ffc170 !default;
 $zh-white: #ffffff !default;
 $zh-white: #ffffff !default;
-$zh-line-color: rgba(0,0,0,.125) !default;
-$zh-danger:#fd3995 !default;
-$zh-warning:#ffc241 !default;
-$zh-success:#1dc9b7 !default;
-
+$zh-line-color: rgba(0, 0, 0, 0.125) !default;
+$zh-danger: #fd3995 !default;
+$zh-warning: #ffc241 !default;
+$zh-success: #1dc9b7 !default;
 
 
 // 实现0.5px的效果
 // 实现0.5px的效果
 @mixin zh-border {
 @mixin zh-border {
@@ -38,13 +37,14 @@ $zh-success:#1dc9b7 !default;
   .ant-table-scroll,
   .ant-table-scroll,
   .ant-table-body-inner,
   .ant-table-body-inner,
   .ant-table-fixed-left,
   .ant-table-fixed-left,
-  .ant-table-content        {
+  .ant-table-content {
     height: 100%;
     height: 100%;
   }
   }
   .ant-table-content {
   .ant-table-content {
     position: relative;
     position: relative;
   }
   }
-  .ant-table-body, .ant-table-body-inner {
+  .ant-table-body,
+  .ant-table-body-inner {
     overflow-y: auto !important;
     overflow-y: auto !important;
   }
   }
   .ant-table-header {
   .ant-table-header {

+ 1 - 1
src/pages/Product/Lock/Lockstore/components/LocksDetail/LockModal.jsx

@@ -50,7 +50,7 @@ const LockModal = props => {
           </Form.Item>
           </Form.Item>
         ) : null}
         ) : null}
         {type === lockTypeEnum.UPDATE ? (
         {type === lockTypeEnum.UPDATE ? (
-          <Form.Item name="name" label="新增产品">
+          <Form.Item name="product" label="新增产品">
             <Select>
             <Select>
               <Option key="重庆养护(营改增)">重庆养护(营改增)</Option>
               <Option key="重庆养护(营改增)">重庆养护(营改增)</Option>
               <Option key="广东算量新定额">广东算量新定额</Option>
               <Option key="广东算量新定额">广东算量新定额</Option>

+ 4 - 2
src/pages/Product/Lock/Lockstore/components/LocksDetail/LockTabList.jsx

@@ -26,7 +26,7 @@ const LockTabList = props => {
     setAddLonglelog({ ...addLonglelog, loading: true })
     setAddLonglelog({ ...addLonglelog, loading: true })
     const { code = -1 } = await apiSoftwareAddLonglelog({
     const { code = -1 } = await apiSoftwareAddLonglelog({
       ...values,
       ...values,
-      clientId,
+      // clientId,
       longleId
       longleId
     })
     })
     if (code === consts.RET_CODE.SUCCESS) {
     if (code === consts.RET_CODE.SUCCESS) {
@@ -65,6 +65,7 @@ const LockTabList = props => {
                         /> */}
                         /> */}
                       </Col>
                       </Col>
                       <Col span="16">
                       <Col span="16">
+                        {/* <ProductLabel data={item.product} /> */}
                         <RenderLongleCon longleService={item} />
                         <RenderLongleCon longleService={item} />
                       </Col>
                       </Col>
                     </Row>
                     </Row>
@@ -137,10 +138,11 @@ const LockTabList = props => {
 }
 }
 
 
 const RenderLongleCon = ({ longleService }) => {
 const RenderLongleCon = ({ longleService }) => {
+  // console.log(longleService)
   return (
   return (
     <>
     <>
       {showProductsStatus.includes(longleService.status) ? (
       {showProductsStatus.includes(longleService.status) ? (
-        <ProductLabel longgleService={longleService.product} />
+        <ProductLabel data={longleService.product} />
       ) : null}
       ) : null}
       {showNewLongleStatus.includes(longleService.status) ? (
       {showNewLongleStatus.includes(longleService.status) ? (
         <span>{longleService.NewKeyNum}</span>
         <span>{longleService.NewKeyNum}</span>

+ 1 - 1
src/pages/Product/Lock/Lockstore/components/LocksDetail/consts.js

@@ -9,6 +9,6 @@ export const servicelogEnum = {
   9: '赠送'
   9: '赠送'
 }
 }
 
 
-export const showProductsStatus = [3, 4, 9]
+export const showProductsStatus = [3, 4, 5, 9]
 export const showNewLongleStatus = [6]
 export const showNewLongleStatus = [6]
 export const showMarkStatus = [8]
 export const showMarkStatus = [8]

+ 1 - 1
src/pages/Product/Lock/Lockstore/components/LocksDetail/index.jsx

@@ -53,7 +53,7 @@ const Index = props => {
             <LockTabList
             <LockTabList
               longleLog={state.longleLog}
               longleLog={state.longleLog}
               longleId={state.longle.id}
               longleId={state.longle.id}
-              clientId={state.longle.clientId}
+              // clientId={state.longle.clientId}
               keyNum={state.longle.keyNum}
               keyNum={state.longle.keyNum}
               status={state.longle.status}
               status={state.longle.status}
             />
             />

+ 1 - 1
src/pages/Product/Lock/Lockstore/index.jsx

@@ -18,7 +18,7 @@ export const ProductLabel = ({ data }) => {
   return (
   return (
     <div>
     <div>
       {newData.map((item, index) => (
       {newData.map((item, index) => (
-        <Tag key={index} color="#886ab5">
+        <Tag key={index} color="#886ab5" className="zh-mg-bottom-5 zh-block">
           {item}
           {item}
         </Tag>
         </Tag>
       ))}
       ))}