|
@@ -57,16 +57,7 @@ const header = props => {
|
57
|
57
|
e.preventDefault();
|
58
|
58
|
props.form.validateFields((err, values) => {
|
59
|
59
|
if (!err){
|
60
|
|
- let {liveTime, ...submitValue} = values
|
61
|
|
- submitValue.liveStartDate = moment(submitValue.liveStartDate._d).format('YYYY-MM-DD HH:mm:ss')
|
62
|
|
- submitValue.liveEndDate = moment(submitValue.liveEndDate._d).format('YYYY-MM-DD HH:mm:ss')
|
63
|
|
-
|
64
|
|
- if (values.liveStartDate > values.liveEndDate){
|
65
|
|
- message.info("直播结束时间大于开始时间")
|
66
|
|
- return;
|
67
|
|
- }
|
68
|
|
-
|
69
|
|
- request({ ...apis.taliveActivity.addTaLiveActivity, data: { ...submitValue },}).then((data) => {
|
|
60
|
+ request({ ...apis.taEcontract.addTaContractBusiness, data: { ...values },}).then((data) => {
|
70
|
61
|
message.info("保存成功")
|
71
|
62
|
router.push({
|
72
|
63
|
pathname: '/activity/liveActivity/list/index',
|
|
@@ -89,9 +80,7 @@ const header = props => {
|
89
|
80
|
})(<SelectContractTemp buildingId={'91073c66168459ca0121697c20c54b82'} onSuccess={e => onSuccess(e)}/>)}
|
90
|
81
|
</Form.Item>
|
91
|
82
|
<Form.Item label="合同文件">
|
92
|
|
- {getFieldDecorator('contractTemplateId', {
|
93
|
|
- rules: [{ required: true, message: '' }],
|
94
|
|
- })}<Button type="danger" style={{marginRight:'20px'}} onClick={openIndexImg}>查看文件</Button>
|
|
83
|
+ {getFieldDecorator('contractTemplateId')}<Button type="danger" style={{marginRight:'20px'}} onClick={openIndexImg}>查看文件</Button>
|
95
|
84
|
</Form.Item>
|
96
|
85
|
<Form.Item label="关联业务类型">
|
97
|
86
|
{getFieldDecorator('targetType', {
|
|
@@ -104,7 +93,7 @@ const header = props => {
|
104
|
93
|
{getFieldDecorator('targetId', {
|
105
|
94
|
rules: [{ required: true, message: ' 请选择关联业务' }],
|
106
|
95
|
})(<SelectRaise onSuccess={e => onSuccess(e)}/>)}
|
107
|
|
- </Form.Item>
|
|
96
|
+ </Form.Item><Input hidden={true} value={123}/>
|
108
|
97
|
<Form.Item label="甲方" help="系统会在业务需要时自动签所选企业印章,比如用户在签署认筹合同前系统会自动签署企业印章。">
|
109
|
98
|
{getFieldDecorator('companyId', {
|
110
|
99
|
rules: [{ required: true, message: ' 请选择关联企业' }],
|
|
@@ -151,80 +140,6 @@ const header = props => {
|
151
|
140
|
<Option value="1">是</Option>
|
152
|
141
|
</Select>)}
|
153
|
142
|
</Form.Item>
|
154
|
|
- {/* <Form.Item label="所属楼盘">
|
155
|
|
- {getFieldDecorator('buildingId')(<BuildSelect2 cityId={props.form.getFieldValue('cityId')}/>)}
|
156
|
|
- </Form.Item>
|
157
|
|
- <Form.Item label="直播活动标题">
|
158
|
|
- {getFieldDecorator('liveActivityTitle', {
|
159
|
|
- rules: [{ required: true, message: '请输入直播活动标题' }],
|
160
|
|
- })(<Input maxLength={20} placeholder="给直播活动起个名字" />)}
|
161
|
|
- </Form.Item>
|
162
|
|
- <Form.Item label="直播开始时间">
|
163
|
|
- {getFieldDecorator('liveStartDate', {
|
164
|
|
- rules: [
|
165
|
|
- {
|
166
|
|
- required: true,
|
167
|
|
- message: '请选择直播开始时间',
|
168
|
|
- },
|
169
|
|
- ],
|
170
|
|
- })(<DatePicker placeholder="预计开始时间"style={{ width: '500px' }}format="YYYY-MM-DD HH:mm:ss" showTime={{ format: 'HH:mm:ss' }}/>)}
|
171
|
|
- </Form.Item>
|
172
|
|
- <Form.Item label="直播结束时间">
|
173
|
|
- {getFieldDecorator('liveEndDate', {
|
174
|
|
- rules: [
|
175
|
|
- {
|
176
|
|
- required: true,
|
177
|
|
- message: '请选择直播结束时间',
|
178
|
|
- },
|
179
|
|
- ],
|
180
|
|
- })(<DatePicker placeholder="预计结束时间" disabledDate={disabledDate} style={{ width: '500px' }}format="YYYY-MM-DD HH:mm:ss" showTime={{ format: 'HH:mm:ss' }}/>)}
|
181
|
|
- </Form.Item>
|
182
|
|
- <Form.Item label="直播小程序">
|
183
|
|
- {getFieldDecorator('liveApp', {
|
184
|
|
- rules: [{ required: true, message: '请选择直播小程序' }],
|
185
|
|
- })((<LivePlatSelect />))}
|
186
|
|
- </Form.Item>
|
187
|
|
- <Form.Item label="房间参数">
|
188
|
|
- {getFieldDecorator('liveRoomParam', {
|
189
|
|
- rules: [{ required: true, message: '请输入房间参数' }],
|
190
|
|
- })(<Input maxLength={1000} placeholder="点击右侧按钮查看如何获取房间参数" style={{width:'680px'}}/>)}<a onClick={openIndexImg} style={{ color: 'blue' }}> 不知道怎么填?查看说明</a>
|
191
|
|
- </Form.Item>
|
192
|
|
- <Form.Item label="封面图1" help="建议尺寸:750px*420px,比例16:9,格式:jpg,用于:活动列表">
|
193
|
|
- {getFieldDecorator('listImg', {
|
194
|
|
- rules: [{ required: true, message: '请上传封面图1' }],
|
195
|
|
- })(
|
196
|
|
- <ImageUpload />,
|
197
|
|
- )}
|
198
|
|
- </Form.Item>
|
199
|
|
- <Form.Item label="封面图2" help="建议尺寸:750*250px,比例3:1,格式:jpg,用于:项目详情页">
|
200
|
|
- {getFieldDecorator('detailImg', {
|
201
|
|
- rules: [{ required: true, message: '请上传封面图2' }],
|
202
|
|
- })(
|
203
|
|
- <ImageUpload />,
|
204
|
|
- )}
|
205
|
|
- </Form.Item>
|
206
|
|
- <Form.Item label="详情图" help="格式:jpg,用于:直播活动详情页,点击可跳转到直播间">
|
207
|
|
- {getFieldDecorator('detailTypeImg', {
|
208
|
|
- rules: [{ required: true, message: '请上传详情图' }],
|
209
|
|
- })(
|
210
|
|
- <ImageUpload />,
|
211
|
|
- )}
|
212
|
|
- </Form.Item>
|
213
|
|
- <Form.Item label="权重">
|
214
|
|
- {getFieldDecorator('weight', {
|
215
|
|
- rules: [{ required: true, message: '请设置权重' }],
|
216
|
|
- })(
|
217
|
|
- <InputNumber placeholder="权重越大越靠前" style={{width:'150px'}}/>
|
218
|
|
- )}
|
219
|
|
- </Form.Item>
|
220
|
|
- <Form.Item label="发布状态">
|
221
|
|
- {getFieldDecorator('status', {
|
222
|
|
- rules: [{ required: true, message: '请选择发布状态' }],
|
223
|
|
- })(<Select placeholder="发布状态" style={{ width: '300px' }}>
|
224
|
|
- <Option value="0">否</Option>
|
225
|
|
- <Option value="1">是</Option>
|
226
|
|
- </Select>)}
|
227
|
|
- </Form.Item>*/}
|
228
|
143
|
<Form.Item wrapperCol={{ span: 15, offset: 7 }}>
|
229
|
144
|
<Button type="primary" htmlType="submit"style={{marginRight:'20px'}}>
|
230
|
145
|
确定
|