Browse Source

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

zhoulisen 5 years ago
parent
commit
9f520606f5

+ 1
- 7
config/routes.js View File

712
                 name: '合同模板详情',
712
                 name: '合同模板详情',
713
                 hideInMenu: true,
713
                 hideInMenu: true,
714
                 component: './eContract/template/detail',
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 View File

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

+ 0
- 1
src/pages/eContract/businessConfig/add.jsx View File

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

+ 19
- 3
src/pages/eContract/businessConfig/list.jsx View File

18
   const sampleName = props.location.query.sampleName;
18
   const sampleName = props.location.query.sampleName;
19
   const [data, setData] = useState({})
19
   const [data, setData] = useState({})
20
   const [demend, setDemend] = useState({})
20
   const [demend, setDemend] = useState({})
21
-  const [demandIds, setDemandIds] = useState([])
21
+  const [contractBusinessList, setContractBusinessList] = useState([])
22
   const [batchDel, setBatchDel] = useState({visable:false,demandIds:''})
22
   const [batchDel, setBatchDel] = useState({visable:false,demandIds:''})
23
   const [addDemand, setAddDemand] = useState({visable:false})
23
   const [addDemand, setAddDemand] = useState({visable:false})
24
 
24
 
126
   const rowSelection = {
126
   const rowSelection = {
127
     onChange: (selectedRowKeys, selectedRows) => {
127
     onChange: (selectedRowKeys, selectedRows) => {
128
       console.log('selectedRowKeys:', selectedRowKeys, 'selectedRows: ', selectedRows);
128
       console.log('selectedRowKeys:', selectedRowKeys, 'selectedRows: ', selectedRows);
129
-      setDemandIds(selectedRows)
129
+      setContractBusinessList(selectedRows)
130
     },
130
     },
131
   };
131
   };
132
 
132
 
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
   function addContractManage(){
181
   function addContractManage(){
166
     router.push({
182
     router.push({
167
       pathname: '/eContract/businessConfig/add',
183
       pathname: '/eContract/businessConfig/add',
232
         <Button type="danger" onClick={() => addContractManage()} className={styles.addBtn}>新增</Button>
248
         <Button type="danger" onClick={() => addContractManage()} className={styles.addBtn}>新增</Button>
233
       </AuthButton>
249
       </AuthButton>
234
       <AuthButton name="admin.h5Demand.del" noRight={null}>
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
       </AuthButton>
252
       </AuthButton>
237
       <Table rowSelection={rowSelection}
253
       <Table rowSelection={rowSelection}
238
         style={{marginTop:'30px'}} dataSource={data.records} columns={columns} pagination={false} rowKey="activityList" />
254
         style={{marginTop:'30px'}} dataSource={data.records} columns={columns} pagination={false} rowKey="activityList" />

+ 1
- 1
src/pages/eContract/template/add.jsx View File

90
         { required: true, message: '请选择合同文件' },
90
         { required: true, message: '请选择合同文件' },
91
       ],
91
       ],
92
       render: <div><Upload {...uploaderProps}><Button disabled={flag}>{uploadTip}</Button></Upload></div>,
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 View File

33
           <span>{data.contractTemplateName}</span>
33
           <span>{data.contractTemplateName}</span>
34
         </Form.Item>
34
         </Form.Item>
35
         <Form.Item label="合同文件">
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
         </Form.Item>
37
         </Form.Item>
38
         <Form.Item wrapperCol={{ span: 15, offset: 7 }}>
38
         <Form.Item wrapperCol={{ span: 15, offset: 7 }}>
39
           <div style={{ margin: '0.16rem 0 0.06rem' }}>
39
           <div style={{ margin: '0.16rem 0 0.06rem' }}>

+ 3
- 3
src/pages/h5SampleManager/h5Sample/list.jsx View File

48
     <Card
48
     <Card
49
       hoverable
49
       hoverable
50
       onClick={() => toEdi(data)}
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
     // cover={}
52
     // cover={}
53
     // bodyStyle={{ padding: '10px 20px' }}
53
     // bodyStyle={{ padding: '10px 20px' }}
54
     >
54
     >
61
 
61
 
62
       }
62
       }
63
       <img className={Styles.cover} style={{ backgroundImage: `url('` + data.coverImg + `')` }}   ></img>
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
         {/* <span className={Styles.title}>样例名</span> */}
65
         {/* <span className={Styles.title}>样例名</span> */}
66
         <span style={{ textOverflow: 'ellipsis', whiteSpace: 'nowrap', overflow: 'hidden' }}>{data.sampleName}</span>
66
         <span style={{ textOverflow: 'ellipsis', whiteSpace: 'nowrap', overflow: 'hidden' }}>{data.sampleName}</span>
67
       </p>
67
       </p>
177
       </Form>
177
       </Form>
178
 
178
 
179
       {/* 卡片内容,显示楼盘项目  */}
179
       {/* 卡片内容,显示楼盘项目  */}
180
-      <Row style={{ padding: ' 0 10px' }}>
180
+      <Row style={{ paddingTop: ' 16px' }}>
181
         {
181
         {
182
           dataSource.records.map((item, _) => (
182
           dataSource.records.map((item, _) => (
183
             <Col span={8}>
183
             <Col span={8}>

+ 20
- 0
src/services/apis.js View File

1477
       url: `${prefix}/taContractBusiness`,
1477
       url: `${prefix}/taContractBusiness`,
1478
       action: 'admin.taContractBusiness.post',
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
     listContractTemplate: {
1500
     listContractTemplate: {
1481
       method: 'GET',
1501
       method: 'GET',
1482
       url: `${prefix}/taContractTemplate`,
1502
       url: `${prefix}/taContractTemplate`,