createOrder.wxml 33.1 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
<wxs src="../../index.wxs" module="filter" />
<block wx:if="{{ flag }}">
  <!-- {{ isFullSucreen?'isFullSucreen':''}}  -->
  <view class="main {{ tipsProps.showTips?'fullSucreen-tips':'' }} {{showTips? 'showTips':'' }}">
    <view class="box">
      <view class="userId">
        <gl-cell border valueAlign="right" label="销售顾问" requiredAfter labelWidth="var(--fontSize140)" required haveArrow bindclick="showPopup" data-show-name="selesBox" placeholder="点击选择" disabled="{{ orderObj.orderSource == 5 }}">
          <block wx:if="{{ orderObj.merchantName && orderObj.employeeName }}">
            <view class="between">
              <view class="start text-hide">{{orderObj.merchantName}}</view>
              <view class="end text-hide">
                <text>|</text>
                {{orderObj.employeeName}}
              </view>
            </view>
          </block>
        </gl-cell>
      </view>
      <view class="subShopMerchantId" wx:if="{{ isShowSubShopMerchant }}">
        <gl-cell border valueAlign="right" label="二级流量方" requiredAfter labelWidth="var(--fontSize180)" required haveArrow bindclick="showPopup" data-show-name="subShopMerchantBox" placeholder="点击选择">
          <block wx:if="{{ orderObj.subShopMerchantName }}">
            <view class="between">{{orderObj.subShopMerchantName}}</view>
          </block>
        </gl-cell>
      </view>
      <view class="sellerUserId">
        <gl-cell border valueAlign="right" label="转化人员" requiredAfter labelWidth="var(--fontSize140)" required haveArrow placeholder="点击选择" bindclick="showPopup" data-show-name="salesmanBox">
          <block wx:if="{{ orderObj.sellerMerchantName && orderObj.sellerName }}">
            <view class="between">
              <view class="start text-hide">{{orderObj.sellerMerchantName}}</view>
              <view class="end text-hide">
                <text>|</text>
                {{orderObj.sellerName}}
              </view>
            </view>
          </block>
        </gl-cell>
      </view>
      <!-- <gl-cell
				wx:if="{{ orderObj.selectPayType !=0 }}"
				border
				valueAlign="right"
				label="订单备注"
				labelWidth="var(--fontSize140)"
				bindclick="showPopup"
				data-show-name="showRemark"
				placeholder="100字以内"
				value="{{ orderObj.remark }}"
			/> -->
    </view>
    <view class="box">
      <!-- <gl-cell border label="客户类型" valueAlign="right" labelWidth="var(--fontSize140)">
				<view class="gender-box">
					<view class="block text-center {{ orderObj.selectPayType !=0?'':'right' }}" />
					<view class="male text-center {{ orderObj.selectPayType !=0 ?'active':'' }}" bindtap="changeSelectPayType" data-experience="2">升级</view>
					<view class="woman text-center {{ orderObj.selectPayType ==0?'active':'' }}" bindtap="changeSelectPayType" data-experience="0">战败</view>
				</view>
			</gl-cell> -->
      <view class="customerName">
        <gl-cell border valueAlign="right" label="车主姓名" requiredAfter titleBtn="客户档案" bindtitleClick="showCustomPop" iconSrc="{{ recordIcon }}" labelWidth="var(--fontSize290)" required>
          <input placeholder="点击输入" class="input" placeholder-class="placeholder-class" maxlength="16" value="{{ orderObj.customer.customerName }}" bindinput="input" data-name="customer.customerName" disabled="{{ orderObj.orderSource == 5 }}" always-embed></input>
        </gl-cell>
      </view>
      <gl-cell border label="客户来源" value="{{ Sourcecolumns[orderObj.customer.salesType].name }}" bind:click="toSelectCustomerSource" haveArrow="{{ true }}" placeholder="点击选择" requiredAfter required valueAlign="right" labelWidth="var(--fontSize140)"></gl-cell>
      <gl-cell border label="性别" valueAlign="right" labelWidth="var(--fontSize140)">
        <view class="gender-box">
          <view class="block text-center {{ orderObj.customer.customerSex==1?'':'right' }}" />
          <view class="male text-center {{ orderObj.customer.customerSex == 1?'active':'' }}" bindtap="changeGender" data-gender="1">男</view>
          <view class="woman text-center {{ orderObj.customer.customerSex == 2?'active':'' }}" bindtap="changeGender" data-gender="2">女</view>
        </view>
      </gl-cell>
      <view class="customerPhone" wx:if="{{ !phoneShow }}">
        <gl-cell border valueAlign="right" label="手机号" requiredAfter labelWidth="var(--fontSize140)" required>
          <input placeholder="点击输入" class="input" type="number" maxlength="11" placeholder-class="placeholder-class" value="{{ orderObj.customer.customerPhone }}" bindinput="input" bindblur="phoneBlur" data-name="customer.customerPhone" disabled="{{ orderObj.orderSource == 5||orderObj.orderSource == 6 }}" always-embed></input>
        </gl-cell>
      </view>
      <gl-cell required="{{ filter.isIncludesItem(requiredList ,'carBrand') }}" border valueAlign="right" label="选择车型" labelWidth="var(--fontSize140)" haveArrow requiredAfter placeholder="点击选择" bindclick="showPopup" data-show-name="carBrandBox">
        <block wx:if="{{ orderObj.customer.carSeriesName }}">
          <view class="between">
            {{orderObj.customer.carBrand}}-{{orderObj.customer.carChildsBrandName}}-{{orderObj.customer.carSeriesName}}
          </view>
        </block>
      </gl-cell>
      <gl-cell wx:if="{{ orderObj.selectPayType !=0 }}" required="{{ filter.isIncludesItem(requiredList ,'standNo') }}" border iconSrc="{{ scanIcon }}" bindtitleClick="navOcr" valueAlign="right" label="车架号( VIN )" requiredAfter data-type="standNo" labelWidth="var(--fontSize280)">
        <input placeholder="点击输入" class="input" placeholder-class="placeholder-class" value="{{ orderObj.customer.standNo }}" bindinput="input" data-name="customer.standNo" maxlength="17" always-embed></input>
      </gl-cell>
      <gl-cell wx:if="{{ orderObj.selectPayType !=0 }}" required="{{ filter.isIncludesItem(requiredList ,'plateNumber') }}" border valueAlign="right" iconSrc="{{ scanIcon }}" bindtitleClick="navOcr" data-type="plateNumber" label="车牌号" requiredAfter labelWidth="var(--fontSize240)">
        <input placeholder="点击输入" class="input" placeholder-class="placeholder-class" value="{{ orderObj.customer.plateNumber }}" bindinput="input" data-name="customer.plateNumber" maxlength="8" always-embed></input>
      </gl-cell>
      <gl-cell wx:if="{{ orderObj.selectPayType !=0 }}" border label="是否体验" valueAlign="right" labelWidth="var(--fontSize140)">
        <view class="gender-box">
          <view class="block text-center {{ orderObj.customer.experienceFlag=='Y'?'':'right' }}" />
          <view class="male text-center {{ orderObj.customer.experienceFlag == 'Y'?'active':'' }}" bindtap="changeExperience" data-experience="Y">是</view>
          <view class="woman text-center {{ orderObj.customer.experienceFlag == 'N'?'active':'' }}" bindtap="changeExperience" data-experience="N">否</view>
        </view>
      </gl-cell>
    </view>
    <view class="box">
      <block wx:if="{{ orderObj.merchantId }}">
        <!-- <gl-cell border label="客户类型" valueAlign="right" labelWidth="var(--fontSize140)">
					<view class="gender-box">
						<view class="block text-center {{orderObj.selectPayType !=0?'':'right'}}" />
						<view class="male text-center {{orderObj.selectPayType !=0 ?'active':''}}" bindtap="changeSelectPayType" data-experience="2">
							升级
						</view>
						<view class="woman text-center {{orderObj.selectPayType ==0?'active':''}}" bindtap="changeSelectPayType" data-experience="0">
							战败
						</view>
					</view>
				</gl-cell> -->
        <gl-cell border valueAlign="right" label="精品礼券" labelWidth="var(--fontSize140)" haveArrow requiredAfter required value="{{ (orderObj.couponName || '') + (orderObj.customerCouponCode || '') }}" placeholder="点击选择" bindclick="showPopup" data-show-name="couponBox" disabled="{{ orderObj.orderSource == 5 }}" />
        <!-- class="{{orderObj.selectPayType ==0?'item-disabled':''}}" -->
        <view class="goods_box">
          <view class="label" style="margin-bottom: {{ !frontGearArr.length && !sideRearGearArr.length && !skylightArr.length&&!sideBeforeRearGearArr.length&&!sideAfterRearGearArr.length ? 'var(--fontSize40)' : '' }};">
            请选择产品
            <text class="required">*</text>
          </view>
          <block wx:if="{{ frontGearArr.length }}">
            <gl-cell border valueAlign="right" label="前挡" logoSrc="{{ windshield }}" labelWidth="var(--fontSize140)" haveArrow placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" data-type="1" />
            <block wx:if="{{ goodsList.length > 0 }}">
              <view class="goods-box">
                <block wx:for="{{ goodsList }}" wx:key="index">
                  <!-- 前挡 -->
                  <view class="goods" wx:if="{{ filter.filterIncludes((item.merchantGoodsPosition || item.upgradeGoodsPosition), [1]) }}">
                    <view class="name_box">
                      <view class="name text-hide">
                        {{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || filter.replaceItemText(item.goodsInfo.goodsName)}}
                      </view>
                    </view>
                    <view class="bottom_box">
                      <!-- merchantGoodsPosition商品列表部位字段 upgradeGoodsPosition订单详情部位字段 -->
                      <view class="position" wx:if="{{ (item.merchantGoodsPosition || item.upgradeGoodsPosition) && (item.goodsInfo.goodsType == 1 || item.upgradeGoodsType == 1 || item.goodsInfo.goodsType == baseConfigData.selfBuildFilmType || item.upgradeGoodsType == baseConfigData.selfBuildFilmType) }}">{{filter.formatPosition((item.merchantGoodsPosition || item.upgradeGoodsPosition), positionTypeList)}}</view>
                      <view class="position red_text" wx:if="{{ (item.goodsInfo.goodsType == 1 || item.upgradeGoodsType == 1 || item.goodsInfo.goodsType == baseConfigData.selfBuildFilmType || item.upgradeGoodsType == baseConfigData.selfBuildFilmType) && !item.merchantGoodsPosition && !item.upgradeGoodsPosition }}">无部位属性</view>
                      <view class="position" wx:else></view>
                      <view class="price_count">
                        <view class="price">
                          <text>¥</text>
                          <input type="digit" value="{{ item.price }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0 }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.errorTarget && (orderObj.selectPayType !=0) ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
                        </view>
                        <view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="1">x{{item.count}}</view>
                      </view>
                    </view>
                    <view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
                      <image src="../../images/del.png" />
                    </view>
                  </view>
                </block>
              </view>
            </block>
          </block>
          <block wx:if="{{ sideBeforeRearGearArr.length }}">
            <gl-cell border valueAlign="right" label="前侧窗玻璃" logoSrc="{{ tricorn }}" labelWidth="var(--fontSize180)" haveArrow placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" data-type="2" data-positionnnum="2" />
            <block wx:if="{{ goodsList.length > 0 }}">
              <view class="goods-box">
                <block wx:for="{{ goodsList }}" wx:key="index">
                  <!-- 前侧窗玻璃 -->
                  <view class="goods" wx:if="{{ filter.filterIncludes((item.merchantGoodsPosition || item.upgradeGoodsPosition), [2]) }}">
                    <view class="name_box">
                      <view class="name text-hide">
                        {{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || filter.replaceItemText(item.goodsInfo.goodsName)}}
                      </view>
                    </view>
                    <view class="bottom_box">
                      <!-- merchantGoodsPosition商品列表部位字段 upgradeGoodsPosition订单详情部位字段 -->
                      <view class="position" wx:if="{{ (item.merchantGoodsPosition || item.upgradeGoodsPosition) && (item.goodsInfo.goodsType == 1 || item.upgradeGoodsType == 1 || item.goodsInfo.goodsType == baseConfigData.selfBuildFilmType || item.upgradeGoodsType == baseConfigData.selfBuildFilmType) }}">{{filter.formatPosition((item.merchantGoodsPosition || item.upgradeGoodsPosition), positionTypeList)}}</view>
                      <view class="position red_text" wx:if="{{ (item.goodsInfo.goodsType == 1 || item.upgradeGoodsType == 1 || item.goodsInfo.goodsType == baseConfigData.selfBuildFilmType || item.upgradeGoodsType == baseConfigData.selfBuildFilmType) && !item.merchantGoodsPosition && !item.upgradeGoodsPosition }}">无部位属性</view>
                      <view class="position" wx:else></view>
                      <view class="price_count">
                        <view class="price">
                          <text>¥</text>
                          <input type="digit" value="{{ item.price }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0 }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.errorTarget && (orderObj.selectPayType !=0) ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
                        </view>
                        <view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="2">x{{item.count}}</view>
                      </view>
                    </view>
                    <view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
                      <image src="../../images/del.png" />
                    </view>
                  </view>
                </block>
              </view>
            </block>
          </block>
          <block wx:if="{{ sideRearGearArr.length }}">
            <gl-cell border valueAlign="right" label="后侧窗玻璃" logoSrc="{{ sideIcorn }}" labelWidth="var(--fontSize180)" haveArrow placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" data-type="2" data-positionnnum="3" />
            <block wx:if="{{ goodsList.length > 0 }}">
              <view class="goods-box">
                <block wx:for="{{ goodsList }}" wx:key="index">
                  <!-- 后侧窗玻璃 -->
                  <view class="goods" wx:if="{{ filter.filterIncludes((item.merchantGoodsPosition || item.upgradeGoodsPosition), [3]) }}">
                    <view class="name_box">
                      <view class="name text-hide">
                        {{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || filter.replaceItemText(item.goodsInfo.goodsName)}}
                      </view>
                    </view>
                    <view class="bottom_box">
                      <!-- merchantGoodsPosition商品列表部位字段 upgradeGoodsPosition订单详情部位字段 -->
                      <view class="position" wx:if="{{ (item.merchantGoodsPosition || item.upgradeGoodsPosition) && (item.goodsInfo.goodsType == 1 || item.upgradeGoodsType == 1 || item.goodsInfo.goodsType == baseConfigData.selfBuildFilmType || item.upgradeGoodsType == baseConfigData.selfBuildFilmType) }}">{{filter.formatPosition((item.merchantGoodsPosition || item.upgradeGoodsPosition), positionTypeList)}}</view>
                      <view class="position red_text" wx:if="{{ (item.goodsInfo.goodsType == 1 || item.upgradeGoodsType == 1 || item.goodsInfo.goodsType == baseConfigData.selfBuildFilmType || item.upgradeGoodsType == baseConfigData.selfBuildFilmType) && !item.merchantGoodsPosition && !item.upgradeGoodsPosition }}">无部位属性</view>
                      <view class="position" wx:else></view>
                      <view class="price_count">
                        <view class="price">
                          <text>¥</text>
                          <input type="digit" value="{{ item.price }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0 }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.errorTarget && (orderObj.selectPayType !=0) ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
                        </view>
                        <view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="2">x{{item.count}}</view>
                      </view>
                    </view>
                    <view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
                      <image src="../../images/del.png" />
                    </view>
                  </view>
                </block>
              </view>
            </block>
          </block>
          <block wx:if="{{ sideAfterRearGearArr.length }}">
            <gl-cell border valueAlign="right" label="后档" logoSrc="{{ afterIcorn }}" labelWidth="var(--fontSize140)" haveArrow placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" data-type="2" data-positionnnum="4" />
            <block wx:if="{{ goodsList.length > 0 }}">
              <view class="goods-box">
                <block wx:for="{{ goodsList }}" wx:key="index">
                  <!-- 后档 -->
                  <view class="goods" wx:if="{{ filter.filterIncludes((item.merchantGoodsPosition || item.upgradeGoodsPosition), [4]) }}">
                    <view class="name_box">
                      <view class="name text-hide">
                        {{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || filter.replaceItemText(item.goodsInfo.goodsName)}}
                      </view>
                    </view>
                    <view class="bottom_box">
                      <!-- merchantGoodsPosition商品列表部位字段 upgradeGoodsPosition订单详情部位字段 -->
                      <view class="position" wx:if="{{ (item.merchantGoodsPosition || item.upgradeGoodsPosition) && (item.goodsInfo.goodsType == 1 || item.upgradeGoodsType == 1 || item.goodsInfo.goodsType == baseConfigData.selfBuildFilmType || item.upgradeGoodsType == baseConfigData.selfBuildFilmType) }}">{{filter.formatPosition((item.merchantGoodsPosition || item.upgradeGoodsPosition), positionTypeList)}}</view>
                      <view class="position red_text" wx:if="{{ (item.goodsInfo.goodsType == 1 || item.upgradeGoodsType == 1 || item.goodsInfo.goodsType == baseConfigData.selfBuildFilmType || item.upgradeGoodsType == baseConfigData.selfBuildFilmType) && !item.merchantGoodsPosition && !item.upgradeGoodsPosition }}">无部位属性</view>
                      <view class="position" wx:else></view>
                      <view class="price_count">
                        <view class="price">
                          <text>¥</text>
                          <input type="digit" value="{{ item.price }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0 }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.errorTarget && (orderObj.selectPayType !=0) ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
                        </view>
                        <view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="2">x{{item.count}}</view>
                      </view>
                    </view>
                    <view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
                      <image src="../../images/del.png" />
                    </view>
                  </view>
                </block>
              </view>
            </block>
          </block>
          <block wx:if="{{ skylightArr.length }}">
            <gl-cell border valueAlign="right" label="天窗" logoSrc="{{ skylight }}" labelWidth="var(--fontSize140)" haveArrow placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" data-type="3" />
            <block wx:if="{{ goodsList.length > 0 }}">
              <view class="goods-box">
                <block wx:for="{{ goodsList }}" wx:key="index">
                  <!-- 天窗 -->
                  <view class="goods" wx:if="{{ filter.filterIncludes((item.merchantGoodsPosition || item.upgradeGoodsPosition), [5, 6, 7]) }}">
                    <view class="name_box">
                      <view class="name text-hide">
                        {{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || filter.replaceItemText(item.goodsInfo.goodsName)}}
                      </view>
                    </view>
                    <view class="bottom_box">
                      <!-- merchantGoodsPosition商品列表部位字段 upgradeGoodsPosition订单详情部位字段 -->
                      <view class="position" wx:if="{{ (item.merchantGoodsPosition || item.upgradeGoodsPosition) && (item.goodsInfo.goodsType == 1 || item.upgradeGoodsType == 1 || item.goodsInfo.goodsType == baseConfigData.selfBuildFilmType || item.upgradeGoodsType == baseConfigData.selfBuildFilmType) }}">{{filter.formatPosition((item.merchantGoodsPosition || item.upgradeGoodsPosition), positionTypeList)}}</view>
                      <view class="position red_text" wx:if="{{ (item.goodsInfo.goodsType == 1 || item.upgradeGoodsType == 1 || item.goodsInfo.goodsType == baseConfigData.selfBuildFilmType || item.upgradeGoodsType == baseConfigData.selfBuildFilmType) && !item.merchantGoodsPosition && !item.upgradeGoodsPosition }}">无部位属性</view>
                      <view class="position" wx:else></view>
                      <view class="price_count">
                        <view class="price">
                          <text>¥</text>
                          <input type="digit" value="{{ item.price }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0 }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.errorTarget && (orderObj.selectPayType !=0) ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
                        </view>
                        <view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="3">x{{item.count}}</view>
                      </view>
                    </view>
                    <view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
                      <image src="../../images/del.png" />
                    </view>
                  </view>
                </block>
              </view>
            </block>
          </block>
          <block>
            <gl-cell border valueAlign="right" label="套餐" labelWidth="var(--fontSize140)" haveArrow placeholder="点击选择" bindclick="showPopup" data-show-name="packageBox" data-type="3" />
            <block wx:if="{{ goodsList.length > 0 }}">
              <view class="goods-box">
                <block wx:for="{{ goodsList }}" wx:key="index">
                  <!-- 套餐 -->
                  <view class="meal-wrap" wx:if="{{ item.packageCode&&item.isType==='meal' }}">
                    <view class="meal-th">
                      <view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
                        <image src="../../images/del-btn.png" />
                      </view>
                      <view class="meal-name">{{item.packageName}}</view>
                      <view class="meal-price">¥{{item.totalPrice}}</view>
                    </view>
                    <view class="goods" wx:for="{{ item.goodsList }}" wx:for-index="gInx" wx:for-item="g">
                      <view class="name_box">
                        <view class="name text-hide">{{g.upgradeGoodsAlias||g.upgradeGoodsName}}</view>
                      </view>
                      <view class="bottom_box">
                        <view class="position" wx:if="{{ (g.upgradeGoodsPosition||g.upgradeGoodsTypeName) }}">{{g.upgradeGoodsType===1?filter.formatPosition((g.upgradeGoodsPosition), positionTypeList): g.upgradeGoodsTypeName}}</view>
                        <view class="position" wx:else></view>
                        <view class="price_count">
                          <view class="price">
                            <text>¥</text>
                            <input type="digit" value="{{ g.price }}" class="{{ g.errorTarget? 'error':'' }}" bindinput="changeMealPrice" data-item="{{ g }}" data-gindex="{{ gInx }}" data-index="{{ index }}" always-embed />
                          </view>
                          <view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="3">x{{item.count}}</view>
                        </view>
                      </view>
                    </view>
                  </view>
                </block>
              </view>
            </block>
          </block>
          <gl-cell border valueAlign="right" label="其它精品" labelWidth="var(--fontSize140)" haveArrow placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" data-type="4" />
          <block wx:if="{{ goodsList.length > 0 }}">
            <view class="goods-box">
              <block wx:for="{{ goodsList }}" wx:key="index">
                <!-- 其它精品 -->
                <view class="goods" wx:if="{{ item.goodsInfo.goodsType !== 1 && item.upgradeGoodsType !== 1 && item.goodsInfo.goodsType !== baseConfigData.selfBuildFilmType && item.upgradeGoodsType !== baseConfigData.selfBuildFilmType&&!item.isType }}">
                  <view class="name_box">
                    <view class="name text-hide">
                      {{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || filter.replaceItemText(item.goodsInfo.goodsName)}}
                    </view>
                  </view>
                  <view class="bottom_box">
                    <!-- merchantGoodsPosition商品列表部位字段 upgradeGoodsPosition订单详情部位字段 -->
                    <view class="position" wx:if="{{ (item.merchantGoodsPosition || item.upgradeGoodsPosition) && (item.goodsInfo.goodsType == 1 || item.upgradeGoodsType == 1) }}">{{filter.formatPosition((item.merchantGoodsPosition || item.upgradeGoodsPosition), positionTypeList)}}</view>
                    <view class="position red_text" wx:if="{{ (item.goodsInfo.goodsType == 1 || item.upgradeGoodsType == 1) && !item.merchantGoodsPosition && !item.upgradeGoodsPosition }}">无部位属性</view>
                    <view class="position" wx:else>{{item.goodsInfo.goodsTypeName || item.upgradeGoodsTypeName}}</view>
                    <view class="price_count">
                      <view class="price">
                        <text>¥</text>
                        <input type="digit" value="{{ item.price }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0 }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.errorTarget && (orderObj.selectPayType !=0) ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
                      </view>
                      <view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="4">x{{item.count}}</view>
                    </view>
                  </view>
                  <view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
                    <image src="../../images/del.png" />
                  </view>
                </view>
              </block>
            </view>
          </block>
          <block wx:if="{{ goodsList.length > 0 }}">
            <view class="goods-box">
              <view class="total-box">
                <view>总价</view>
                <view class="total">¥{{total || 0}}</view>
              </view>
            </view>
          </block>
        </view>
      </block>
      <gl-cell border label="支付方式" valueAlign="right" wx:if="{{ orderCreateType !=  'additionRecordOrder'&& !associateOrderType && !isErrorOrder && orderObj.selectPayType != 0 }}" labelWidth="var(--fontSize152)">
        <view class="payType-box">
          <block wx:for="{{ showPayList }}" wx:key="index">
            <view class="item text-center {{ orderObj.selectPayType == item.value?'active':''}} {{goodsList.length > 0 && item.value == 0?'disabled':'' }}" bindtap="changePayType" data-item="{{ item }}" data-index="{{ index }}">{{item.name}}</view>
          </block>
        </view>
      </gl-cell>
      <!-- 错误订单补录 -->
      <gl-cell border label="支付方式" valueAlign="right" labelStyle="margin-top:-40px" wx:if="{{ isErrorOrder }}" cellHeight="{{ false }}" labelWidth="var(--fontSize152)">
        <view class="payType-box error-box">
          <block wx:for="{{ showPayList }}" wx:key="index">
            <view class="item text-center {{ item.value==2?'active':''}} {{item.value != 2?'disabled':'' }}" data-item="{{ item }}" data-index="{{ index }}">
              <image class="wxPayIcon" src="{{ item.imgurl }}" wx:if="{{ item.imgurl }}" />
              {{item.name}}
              <view class="active-icon">
                <image src="../../images/active.png" />
              </view>
            </view>
          </block>
        </view>
      </gl-cell>
    </view>
    <view class="box">
      <!-- <gl-cell wx:if="{{orderObj.selectPayType==2}}" value="{{successDateTime}}" bind:click="toSelectDate" haveArrow placeholder="请选择时间" required requiredAfter border class="pay-type" label="门店收款时间" valueAlign="right" labelWidth="var(--fontSize200)">
         
        </gl-cell> -->
      <view class="remark_box">
        <view class="label">订单备注</view>
        <view class="textArea_box">
          <textarea value="{{ orderObj.remark }}" placeholder="请输入" class="textarea" maxlength="100" bindinput="remarkInput" />
          <view class="currentWordNumber">{{currentWordNumber || 0}} / 100</view>
        </view>
      </view>
    </view>
  </view>
  <view class="btns {{ isFullSucreen?'isFullSucreen-btn':'' }}">
    <view class="tipsadd" wx:if="{{ showTips }}">
      <image wx:if="{{ !tradeNo }}" class="tipsIcon" src="../../../images/tips.png" />
      <view class="contentText">
        <view>交易参考号:{{tradeNo}}</view>
        <view>支付时间:{{accountDate}}</view>
        <view class="tipsbox">
          <view>支付金额:{{totalFee/100}}</view>
          <view class="btn" wx:if="{{ tradeNo }}" bindtap="tipsEvent">补录订单</view>
        </view>
      </view>
      <!-- <image class="closeIcon" bindtap="closeTips" src="../../images/closeIcon.png" /> -->
    </view>
    <view class="btns-con">
      <view class="save text-center {{ isErrorOrder || isAlreadyExistOrder ?'disabled':'' }}" bindtap="submit" data-save>建档</view>
      <view class="confirm text-center" bindtap="submit">直接下单</view>
    </view>
  </view>
</block>
<!--  &&!outTradeNo -->
<view class="waitOrderCon {{ showTips? 'showTips':'' }}" wx:if="{{ waitInputCount && !associateOrderType && !isErrorOrder&&!outTradeNo }}">
  <tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
</view>
<recording-order-popup wx:if="{{ showOrderpop && !(isErrorOrder) }}" outTradeNo="{{ outTradeNo }}" show="{{ showOrderpop }}" bind:success="navigator" title="请选择交易参考号" />
<merchant-seles show="{{ salesmanBox }}" isDefault="{{ isDefault }}" title="选择园区店" sub-title="选择转化人员" userInfo="{{ userInfo }}" type="2" scene="1" />
<merchant-seles show="{{ selesBox }}" title="选择合作门店" orderObj="{{ orderObj }}" sub-title="选择销售顾问" userInfo="{{ userInfo }}" singleSeller="{{ true }}" type="1" scene="1" />
<sub-shop-merchant show="{{ subShopMerchantBox }}" title="选择二级流量方" selectedSelesMerchantId="{{ orderObj.merchantId }}" selectedCustomerInfo="{{ orderObj.customer.customerId }}" selectedSubShopMerchantId="{{ orderObj.subShopMerchantId }}" />
<car-brands show="{{ carBrandBox }}" bindconfirm="chooseCar" carSeriesId="{{ orderObj.customer.carSeriesId || '' }}" merchantId="{{ orderObj.merchantId || undefined }}" />
<remark-popup wx:if="{{ showRemark }}" show="{{ showRemark }}" bindconfirm="remarkConfirm" placeholder="请填写内容,最多30个字" maxlength="30" value="{{ orderObj.remark }}" />
<coupon id="coupon" show="{{ couponBox }}" class="coupon" orderCreateType="{{ orderCreateType }}" bindconfirm="chooseCoupon" merchantId="{{ orderObj.merchantId }}" customerPhone="{{ orderObj.customer.customerPhone }}" yqMerchantId="{{ orderObj.sellerMerchantId }}" selectPayType="{{ orderObj.selectPayType }}" returnFun="{{ returnFun }}" />
<goods show="{{ goodsBox }}" bindconfirm="chooseGoods" goodsData="{{ goodsData }}" chooseGoodsList="{{ goodsList }}" isSolarFilm="{{ true }}" baseConfigData="{{ baseConfigData }}" />
<customerInfo show="{{ customerInfoBox }}" bindconfirm="chooseCustomerInfo" />
<van-popup show="{{ showSource }}" position="bottom" bind:close="onCloseSource">
  <van-picker show-toolbar title="客户来源" bind:cancel="onCloseSource" columns="{{ Sourcecolumns }}" value-key="name" bind:confirm="onChangeSource" />
</van-popup>
<set-meal wx:if="{{ packageBox }}" show="{{ packageBox }}" bindconfirm="chooseGoods" goodsData="{{ goodsData }}" chooseGoodsList="{{ goodsList }}" isSolarFilm="{{ true }}" baseConfigData="{{ baseConfigData }}" />