SecondStep.wxml 15.2 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429
<!--packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxml-->
<wxs src="find.wxs" module="find" />
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<view>
	<view class="box">
		<view class="title">
			<view>车辆信息</view>
			<view class="flex">
				<view class="ocrBtn" data-type="vehicleCertificate" bind:tap="navOcr">
					<image
						data-type="vehicleCertificate"
						data-ocrType="car"
						class="pictureIcon"
						src="/packageEquity/images/pictureIcon.png"
						binderror=""
						bindload=""
					/>
					<view class="text" data-type="vehicleCertificate">拍照识别</view>
				</view>
				<view class="up-down-box" bindtap="handleUpDown" data-attr="car">
					<view class="up-down-arrow">
						<view class="arrow-up {{ isShowObj.car ? '' : 'arrow-down' }}"></view>
					</view>
				</view>
			</view>
		</view>
		<gl-form
			wx:if="{{ isShowObj.car }}"
			id="car"
			formData="{{ serviceInfo }}"
			dataAttrName="{{ dataAttrName }}"
			formDataList="{{ secondObj.carFormList }}"
		></gl-form>
	</view>
	<view class="box">
		<view class="title">
			<view>客户信息</view>
			<view class="flex">
				<view class="ocrBtn" data-type="idCard" bind:tap="navOcr">
					<image
						data-type="idCard"
						data-ocrType="idCard"
						class="pictureIcon"
						src="/packageEquity/images/pictureIcon.png"
						binderror=""
						bindload=""
					/>
					<view class="text" data-type="idCard">拍照识别</view>
				</view>
				<view class="up-down-box" bindtap="handleUpDown" data-attr="customer">
					<view class="up-down-arrow">
						<view class="arrow-up {{ isShowObj.customer ? '' : 'arrow-down' }}"></view>
					</view>
				</view>
			</view>
		</view>
		<gl-form
			wx:if="{{ isShowObj.customer }}"
			id="customer"
			formData="{{ serviceInfo }}"
			dataAttrName="{{ dataAttrName }}"
			formDataList="{{ secondObj.customerFormList }}"
		></gl-form>
	</view>
	<view class="box">
		<view class="title">
			<view>产品信息</view>
			<view class="up-down-box" bindtap="handleUpDown" data-attr="product">
				<view class="up-down-arrow">
					<view class="arrow-up {{ isShowObj.product ? '' : 'arrow-down' }}"></view>
				</view>
			</view>
		</view>
		<gl-form
			wx:if="{{ isShowObj.product }}"
			id="product"
			formData="{{ serviceInfo }}"
			dataAttrName="{{ dataAttrName }}"
			formDataList="{{ secondObj.productFormList }}"
		>
			<!-- 多商品 -->
			<view slot="goodInfoList">
				<view wx:for="{{ serviceInfo.goodInfoList }}" wx:key="index">
					<view>
						<view class="pro-head">
							<view>{{item.goodName}}</view>
							<view class="pro-service">包含{{item.items}}</view>
						</view>
						<view class="pro-list">
							<view wx:if="{{ item.printType == 2 }}">
								<!-- itemsCode标识:YB0001-延保-6大件,YB0002-延保-3电,YB0003-延保-油车 -->
								<gl-form
									wx:if="{{ item.itemsCode == 'YB0003' }}"
									id="{{ 'oil' + index }}"
									background="#F4F5F7"
									formData="{{ item }}"
									dataAttrName="{{ 'serviceInfo.goodInfoList[' + index +']' }}"
									formDataList="{{ secondObj.productFormList[0].oilProFormList }}"
								>
									<view slot="warranty" class="warranty">
										<van-field
											class="textarea between"
											custom-style="width: var(--fontSize100);font-size: var(--fontSize28); padding: var(--fontSize30) 0; background: #F4F5F7;"
											border="{{ false }}"
											value="{{ item.warrantyPeriod }}"
											input-align="right"
											autosize
											hold-keyboard
											type="number"
											placeholder="请输入"
											maxlength="140"
											data-attr="warrantyPeriod"
											data-idx="{{ index }}"
											data-curitem="{{ item }}"
											bindinput="handleWarrantyInput"
										/>
										<text class="input-suffix">年或</text>
										<van-field
											class="textarea between"
											custom-style="width: var(--fontSize100);font-size: var(--fontSize28); padding: var(--fontSize30) 0 var(--fontSize30) var(--fontSize12); background: #F4F5F7;"
											border="{{ false }}"
											value="{{ item.warrantyKm }}"
											input-align="right"
											autosize
											hold-keyboard
											type="number"
											placeholder="请输入"
											maxlength="140"
											data-attr="warrantyKm"
											data-idx="{{ index }}"
											data-curitem="{{ item }}"
											bindinput="handleWarrantyInput"
										/>
										<text class="input-suffix">万公里</text>
									</view>
									<view
										slot="gearbox"
										class="selectItem gearbox"
										data-attr="gearbox"
										data-idx="{{ index }}"
										data-typename="gearboxtype"
										catchtap="handlePopupShow"
									>
										{{item.gearbox}}
										<image class="arrow" src="/components/images/arrow-x.png" mode="widthFix" binderror="" bindload="" />
									</view>
								</gl-form>
								<gl-form
									wx:if="{{ item.itemsCode == 'YB0001' || item.itemsCode == 'YB0002' }}"
									id="{{ 'energy' + index }}"
									background="#F4F5F7"
									formData="{{ item }}"
									dataAttrName="{{ 'serviceInfo.goodInfoList[' + index +']' }}"
									formDataList="{{ secondObj.productFormList[0].energyProFormList }}"
								>
									<view slot="warranty" class="warranty">
										<van-field
											class="textarea between"
											custom-style="width: var(--fontSize100);font-size: var(--fontSize28); padding: var(--fontSize30) 0; background: #F4F5F7;"
											border="{{ false }}"
											value="{{ item.warrantyPeriod }}"
											input-align="right"
											autosize
											hold-keyboard
											type="number"
											placeholder="请输入"
											maxlength="140"
											data-attr="warrantyPeriod"
											data-idx="{{ index }}"
											data-curitem="{{ item }}"
											bindinput="handleWarrantyInput"
										/>
										<text class="input-suffix">年或</text>
										<van-field
											class="textarea between"
											custom-style="width: var(--fontSize100);font-size: var(--fontSize28); padding: var(--fontSize30) 0 var(--fontSize30) var(--fontSize12); background: #F4F5F7;"
											border="{{ false }}"
											value="{{ item.warrantyKm }}"
											input-align="right"
											autosize
											hold-keyboard
											type="number"
											placeholder="请输入"
											maxlength="140"
											data-attr="warrantyKm"
											data-curitem="{{ item }}"
											data-idx="{{ index }}"
											bindinput="handleWarrantyInput"
										/>
										<text class="input-suffix">万公里</text>
									</view>
								</gl-form>
                <gl-form 
                  wx:if="{{ item.itemsCode != 'YB0001' && item.itemsCode != 'YB0002' && item.itemsCode != 'YB0003' }}"
									id="{{ 'extendService' + index }}"
									background="#F4F5F7"
									formData="{{ item }}"
									dataAttrName="{{ 'serviceInfo.goodInfoList[' + index +']' }}"
									formDataList="{{ secondObj.productFormList[0].extendServiceFormList }}">
                  <view slot="displacementPower" class="displacementPower">
                    <view class="tab-box">
                      <view class="tab-item {{item.displacementPowerFlag == 0 ? 'active' : ''}}" data-type="0" data-index="{{index}}" bindtap="changeType">排量</view>
                      <view class="tab-item {{item.displacementPowerFlag == 1 ? 'active' : ''}}" data-type="1" data-index="{{index}}" bindtap="changeType">功率</view>
                    </view>
                    <view class="value">
                      <van-field
                        class="textarea between"
                        custom-style="width: var(--fontSize100);font-size: var(--fontSize28); padding: var(--fontSize30) 0; background: #F4F5F7;"
                        border="{{ false }}"
                        value="{{ item.displacementPowerValue }}"
                        input-align="right"
                        autosize
                        hold-keyboard
                        type="number"
                        placeholder="请输入"
                        maxlength="140"
                        data-attr="displacementPowerValue"
                        data-idx="{{ index }}"
                        data-curitem="{{ item }}"
                        bindinput="handleWarrantyInput"
                      />
                      <text class="input-suffix">{{item.displacementPowerFlag == 0 ? 'L' : 'KW'}}</text>
                    </view>
                  </view>
                </gl-form>
							</view>
							<gl-form
								wx:else
								id="proList"
								background="#F4F5F7"
								formData="{{ item }}"
								dataAttrName="{{ 'serviceInfo.goodInfoList[' + index +']' }}"
								formDataList="{{ secondObj.productFormList[0].equityProFormList }}"
							></gl-form>
						</view>
					</view>
				</view>
			</view>
			<view wx:if="{{ serviceInfo.tireFlag == 1 }}" class="pro-rule" slot="tireRule">
				<view class="pro-rule-view" data-type="rule" bind:tap="onClickShow">位置示例</view>
				<gl-form
					id="tireRule"
					formData="{{ serviceInfo }}"
					dataAttrName="{{ dataAttrName }}"
					formDataList="{{ find.find(secondObj.productFormList,'tireRule','name').list }}"
				></gl-form>
			</view>
			<view slot="tire" wx:if="{{ serviceInfo.tireFlag == 1 }}">
				<view wx:for="{{ find.find(secondObj.productFormList,'tire','name').tireItem }}" wx:key="index">
					<view class="pro-head flex-b">
						<view class="pro-service">{{item.name}}</view>
						<view class="pro-view" bind:tap="onClickShow" wx-if="{{ item.imgUrl }}" data-type="dot">位置示例</view>
					</view>
					<view class="pro-list">
						<gl-form
							id="{{ 'tire' + index }}"
							background="#F4F5F7"
							formData="{{ serviceInfo }}"
							dataAttrName="{{ dataAttrName }}"
							formDataList="{{ item.list }}"
						></gl-form>
					</view>
				</view>
			</view>
		</gl-form>
	</view>
	<!-- 延保附件展示标识,0-展示,1-不展示 -->
	<view wx:if="{{ serviceInfo.ybAttachmentFlag == 0 }}" class="box m-b-40">
		<view class="title">
			<view>上传资料</view>
			<view class="up-down-box" bindtap="handleUpDown" data-attr="info">
				<view class="up-down-arrow">
					<view class="arrow-up {{ isShowObj.info ? '' : 'arrow-down' }}"></view>
				</view>
			</view>
		</view>
		<gl-form
			wx:if="{{ isShowObj.info }}"
			id="store"
			formData="{{ serviceInfo }}"
			dataAttrName="{{ dataAttrName }}"
			formDataList="{{ secondObj.infoFormList }}"
		>
			<view slot="upload" class="upload">
				<view class="label">购车发票</view>
				<van-uploader
					class="plus"
					file-list="{{ imgObj.invoice }}"
					upload-text="上传照片"
					max-count="1"
					deletable
					preview-size="var(--fontSize192)"
					bind:after-read="upLoad"
					bind:delete="handleDeleteImg"
					data-attr="invoice"
				></van-uploader>
				<view class="label">行驶证或车辆合格证</view>
				<view class="flex">
					<van-uploader
						class="driveFront"
						file-list="{{ imgObj.driveFront }}"
						upload-text="行驶证主页/车辆合格证"
						max-count="1"
						deletable
						preview-size="var(--fontSize192)"
						bind:after-read="upLoad"
						bind:delete="handleDeleteImg"
						data-attr="driveFront"
					></van-uploader>
					<van-uploader
						class="driveBack"
						file-list="{{ imgObj.driveBack }}"
						upload-text="行驶证副页/车辆合格证"
						max-count="1"
						deletable
						preview-size="var(--fontSize192)"
						bind:after-read="upLoad"
						bind:delete="handleDeleteImg"
						data-attr="driveBack"
					></van-uploader>
				</view>
				<view class="label">合同购买时里程数</view>
				<van-uploader
					class="plus"
					file-list="{{ imgObj.contract }}"
					upload-text="上传照片"
					max-count="1"
					deletable
					preview-size="var(--fontSize192)"
					bind:after-read="upLoad"
					bind:delete="handleDeleteImg"
					data-attr="contract"
				></van-uploader>
				<view class="label">其他</view>
				<van-uploader
					class="plus"
					file-list="{{ imgObj.other }}"
					upload-text="上传照片\n最多9张"
					max-count="9"
					deletable
					preview-size="var(--fontSize192)"
					bind:after-read="upLoad"
					bind:delete="handleDeleteImg"
					data-attr="other"
				></van-uploader>
			</view>
		</gl-form>
	</view>
	<!-- 改装件信息 -->
	<view wx:if="{{ serviceInfo.qsFlag==1 }}" class="box m-b-40">
		<view class="title">
			<view>改装件信息</view>
			<view class="up-down-box" bindtap="handleUpDown" data-attr="retrofit">
				<view class="up-down-arrow">
					<view class="arrow-up {{ isShowObj.retrofit ? '' : 'arrow-down' }}"></view>
				</view>
			</view>
		</view>
		<gl-form
			wx:if="{{ isShowObj.retrofit }}"
			id="retrofit"
			formData="{{ serviceInfo }}"
			dataAttrName="{{ dataAttrName }}"
			formDataList="{{ secondObj.retrofitList }}"
		>
			<view slot="upload" class="{{ retrofitInfo.inclueType==1?'upload':'' }}">
				<gl-cell border class="pay-type" label="含加改装件" valueAlign="right" labelWidth="var(--fontSize140)">
					<view class="switch-box">
						<view class="block text-center {{ retrofitInfo.inclueType==1?'':'right' }}" />
						<view class="left text-center {{ retrofitInfo.inclueType == 1?'active':'' }}" bindtap="changeInclueType" data-types="1">是</view>
						<view class="right text-center {{ retrofitInfo.inclueType == 2?'active':'' }}" bindtap="changeInclueType" data-types="2">否</view>
					</view>
				</gl-cell>
				<block wx:if="{{ retrofitInfo.inclueType==1 }}">
					<view class="label">发票或收据</view>
					<van-uploader
						class="plus"
						file-list="{{ imgObj.retrofitInvoice }}"
						upload-text="上传照片"
						max-count="1"
						deletable
						preview-size="var(--fontSize192)"
						bind:after-read="upLoad"
						bind:delete="handleDeleteImg"
						data-attr="retrofitInvoice"
					></van-uploader>
					<view class="label">加改装部位照片</view>
					<van-uploader
						class="plus"
						file-list="{{ imgObj.retrofit }}"
						upload-text="上传照片"
						max-count="1"
						deletable
						preview-size="var(--fontSize192)"
						bind:after-read="upLoad"
						bind:delete="handleDeleteImg"
						data-attr="retrofit"
					></van-uploader>
				</block>
			</view>
		</gl-form>
	</view>
	<view class="box m-b-40">
		<view class="title">
			<view>店面信息</view>
			<view class="up-down-box" bindtap="handleUpDown" data-attr="store">
				<view class="up-down-arrow">
					<view class="arrow-up {{ isShowObj.store ? '' : 'arrow-down' }}"></view>
				</view>
			</view>
		</view>
		<gl-form
			wx:if="{{ isShowObj.store }}"
			id="store"
			formData="{{ serviceInfo }}"
			dataAttrName="{{ dataAttrName }}"
			formDataList="{{ secondObj.storeFormList }}"
		></gl-form>
	</view>
	<button class="btn" bindtap="handleConfirm">{{serviceInfo.mode?'确认提交':'确认提交(2/2)'}}</button>
	<button class="btn draft-btn" bindtap="handleDraft">存草稿</button>
	<view class="h-40"></view>
</view>
<popup-select show="{{ popupShow }}" popObj="{{ popObj }}" typeName="{{ popObj.typename }}" bindconfirm="handleSelectConfirm" />
<van-overlay show="{{ imgShow }}" bind:click="onClickHide" z-index="99999">
	<view class="wrapper">
		<image src="{{ IMG_URL}}equity/{{imgType }}.png" mode="widthFix" />
	</view>
</van-overlay>