Pārlūkot izejas kodu

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/estateagents-admin-manager into dev

zhoulisen 5 gadus atpakaļ
vecāks
revīzija
9f520606f5

+ 1
- 7
config/routes.js Parādīt failu

@@ -712,13 +712,7 @@ export default [
712 712
                 name: '合同模板详情',
713 713
                 hideInMenu: true,
714 714
                 component: './eContract/template/detail',
715
-              },
716
-              {
717
-                path: '/eContract/template/pdfDetail',
718
-                name: '合同pdf查看页',
719
-                hideInMenu: true,
720
-                component: './eContract/template/pdfDetail',
721
-              },
715
+              }
722 716
             ],
723 717
           },
724 718
           // {

+ 1
- 0
src/components/Wangedit/Wangedit.jsx Parādīt failu

@@ -70,6 +70,7 @@ class Wangedit extends React.Component {
70 70
         /<[a-zA-Z0-9]+\:[^>]+>[^>]*<\/[a-zA-Z0-9]+\:[^>]+>/ig,
71 71
         /<[a-zA-Z0-9]+\:[^>]+\/>/ig,
72 72
         /<style>[\s\S]*?<\/style>/ig,
73
+        new RegExp('\u2029', 'ig'),     // 替换word分隔符 序号 8233
73 74
       ]
74 75
 
75 76
       return regs.reduce((acc, reg) => {

+ 0
- 1
src/pages/eContract/businessConfig/add.jsx Parādīt failu

@@ -66,7 +66,6 @@ const header = props => {
66 66
     setContractTemplateName(e.name)
67 67
     request({ ...apis.taEcontract.taContractTemplateById, urlData: {id: e.id} }).then((data) => {
68 68
       setContractTemplateLink(data.contractTemplateAddress)
69
-      console.log(contractTemplateLink,'dddddddddd')
70 69
     })
71 70
   }
72 71
 

+ 19
- 3
src/pages/eContract/businessConfig/list.jsx Parādīt failu

@@ -18,7 +18,7 @@ const header = props => {
18 18
   const sampleName = props.location.query.sampleName;
19 19
   const [data, setData] = useState({})
20 20
   const [demend, setDemend] = useState({})
21
-  const [demandIds, setDemandIds] = useState([])
21
+  const [contractBusinessList, setContractBusinessList] = useState([])
22 22
   const [batchDel, setBatchDel] = useState({visable:false,demandIds:''})
23 23
   const [addDemand, setAddDemand] = useState({visable:false})
24 24
 
@@ -126,7 +126,7 @@ const header = props => {
126 126
   const rowSelection = {
127 127
     onChange: (selectedRowKeys, selectedRows) => {
128 128
       console.log('selectedRowKeys:', selectedRowKeys, 'selectedRows: ', selectedRows);
129
-      setDemandIds(selectedRows)
129
+      setContractBusinessList(selectedRows)
130 130
     },
131 131
   };
132 132
 
@@ -162,6 +162,22 @@ const header = props => {
162 162
     }
163 163
   }
164 164
 
165
+  function batchDelTaContractBusiness(){
166
+    Modal.confirm({
167
+      title: '确认将所选的' + contractBusinessList.length + '条业务配置删除?',
168
+      okText: '确认',
169
+      cancelText: '取消',
170
+      onOk () {
171
+        request({ ...apis.taEcontract.batchDelTaContractBusiness, data: {contractBusinessList} }).then((data) => {
172
+          message.info('操作成功!')
173
+          getList({ pageNum: 1, pageSize: 10 })
174
+        }).catch((err) => {
175
+          console.log('111111', err)
176
+        })
177
+      }
178
+    });
179
+  }
180
+
165 181
   function addContractManage(){
166 182
     router.push({
167 183
       pathname: '/eContract/businessConfig/add',
@@ -232,7 +248,7 @@ const header = props => {
232 248
         <Button type="danger" onClick={() => addContractManage()} className={styles.addBtn}>新增</Button>
233 249
       </AuthButton>
234 250
       <AuthButton name="admin.h5Demand.del" noRight={null}>
235
-        <Button type="primary" onClick={() => showBatchDel({visable:true, demandIds: demandIds})} className={styles.addBtn} style={{marginLeft:'30px'}}>删除</Button>
251
+        <Button type="primary" onClick={() => batchDelTaContractBusiness()} className={styles.addBtn} style={{marginLeft:'30px'}}>删除</Button>
236 252
       </AuthButton>
237 253
       <Table rowSelection={rowSelection}
238 254
         style={{marginTop:'30px'}} dataSource={data.records} columns={columns} pagination={false} rowKey="activityList" />

+ 1
- 1
src/pages/eContract/template/add.jsx Parādīt failu

@@ -90,7 +90,7 @@ const header = props => {
90 90
         { required: true, message: '请选择合同文件' },
91 91
       ],
92 92
       render: <div><Upload {...uploaderProps}><Button disabled={flag}>{uploadTip}</Button></Upload></div>,
93
-      help: "仅支持pdf格式,合同必须按规则生成,否则无法正确签章。未按规则生成合同导致的问题,橙蕉免除相关责任。详细要求查看合同模板制作要求"
93
+      help: <span>仅支持pdf格式,合同必须按规则生成,否则无法正确签章。未按规则生成合同导致的问题,橙蕉免除相关责任。详细要求查看<a href='https://easydoc.xyz/s/24703398/3SqDkJDw/odnmIIwl' style={{ color: '#66B3FF' }} target='_blank'>合同模板制作要求</a></span>
94 94
     },
95 95
 
96 96
   ]

+ 1
- 1
src/pages/eContract/template/detail.jsx Parādīt failu

@@ -33,7 +33,7 @@ const header = props => {
33 33
           <span>{data.contractTemplateName}</span>
34 34
         </Form.Item>
35 35
         <Form.Item label="合同文件">
36
-          <div><a href={data.contractTemplateAddress} style={{ color: '#66B3FF', fontSize: '14px' }}>点击链接查看内容</a></div>
36
+          <div><a href={data.contractTemplateAddress} target='_blank' style={{ color: '#66B3FF', fontSize: '14px' }}>点击链接查看内容</a></div>
37 37
         </Form.Item>
38 38
         <Form.Item wrapperCol={{ span: 15, offset: 7 }}>
39 39
           <div style={{ margin: '0.16rem 0 0.06rem' }}>

+ 3
- 3
src/pages/h5SampleManager/h5Sample/list.jsx Parādīt failu

@@ -48,7 +48,7 @@ function CartBody(props) {
48 48
     <Card
49 49
       hoverable
50 50
       onClick={() => toEdi(data)}
51
-      style={{ minWidth: '330px', borderRadius: '12px', margin: '10px', boxShadow: '0px 0px 16px 2px rgba(0,0,0,0.12)' }}
51
+      style={{ minWidth: '330px', borderRadius: '12px', margin: '10px 20px 10px 0', boxShadow: '0px 0px 16px 2px rgba(0,0,0,0.12)' }}
52 52
     // cover={}
53 53
     // bodyStyle={{ padding: '10px 20px' }}
54 54
     >
@@ -61,7 +61,7 @@ function CartBody(props) {
61 61
 
62 62
       }
63 63
       <img className={Styles.cover} style={{ backgroundImage: `url('` + data.coverImg + `')` }}   ></img>
64
-      <p className={Styles.cardText} style={{ padding: '0.05rem 0.096rem' }}>
64
+      <p className={Styles.cardText} style={{ padding: '0.1rem 0.096rem',marginBottom:'0px' }}>
65 65
         {/* <span className={Styles.title}>样例名</span> */}
66 66
         <span style={{ textOverflow: 'ellipsis', whiteSpace: 'nowrap', overflow: 'hidden' }}>{data.sampleName}</span>
67 67
       </p>
@@ -177,7 +177,7 @@ function body(props) {
177 177
       </Form>
178 178
 
179 179
       {/* 卡片内容,显示楼盘项目  */}
180
-      <Row style={{ padding: ' 0 10px' }}>
180
+      <Row style={{ paddingTop: ' 16px' }}>
181 181
         {
182 182
           dataSource.records.map((item, _) => (
183 183
             <Col span={8}>

+ 20
- 0
src/services/apis.js Parādīt failu

@@ -1477,6 +1477,26 @@ export default {
1477 1477
       url: `${prefix}/taContractBusiness`,
1478 1478
       action: 'admin.taContractBusiness.post',
1479 1479
     },
1480
+    updateTaContractBusinessById: {
1481
+      method: 'PUT',
1482
+      url: `${prefix}/taContractBusiness/:id`,
1483
+      action: 'admin.taContractBusiness.put',
1484
+    },
1485
+    batchDelTaContractBusiness: {
1486
+      method: 'PUT',
1487
+      url: `${prefix}/batchDelBusinessConfig`,
1488
+      action: 'admin.taContractBusiness.del',
1489
+    },
1490
+    taContractBusinessById: {
1491
+      method: 'GET',
1492
+      url: `${prefix}/taContractBusiness/:id`,
1493
+      action: 'admin.taContractBusiness.get',
1494
+    },
1495
+    taContractTemplateList: {
1496
+      method: 'GET',
1497
+      url: `${prefix}/taContractTemplate`,
1498
+      action: 'admin.listContractTemplate.get',
1499
+    },
1480 1500
     listContractTemplate: {
1481 1501
       method: 'GET',
1482 1502
       url: `${prefix}/taContractTemplate`,