SecondStep.wxml 13.1 KB
<!-- packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxml -->
<wxs src="index.wxs" module="filter" />
<view class="testFormCon">
  <van-collapse value="{{ activeNames }}">
    <view class="collapse">
      <van-collapse-item name="3" is-link="{{ false }}">
        <view slot="title">
          <view class="collapseBoxTitle">
            <view class="label">
              增值车损险
              <text class="required">*</text>
            </view>
          </view>
        </view>
        <view>
          <gl-cell border valueAlign="right" class="goodsCom" label="购买商品" labelWidth="var(--fontSize140)" haveArrow requiredAfter required placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" />
        </view>
        <block wx:if="{{ orderInfo.vdQuotationGoodsList.length > 0 }}">
          <view class="goods-box">
            <block wx:for="{{ orderInfo.vdQuotationGoodsList }}" wx:key="index">
              <view class="goods" wx:if="{{ item.goods }}">
                <view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
                  <image src="./images/del.png" />
                </view>
                <view class="name ">
                  <!--  -->
                  {{item.goods.goodsAlias || item.goods.goodsNameAlias|| filter.replaceItemText(item.goods.upgradeGoodsName ,( item.goods.specificationData? '/'+item.goods.specificationData:'')) || filter.replaceItemText(item.goods.goodsName, (item.goods.specificationData? '/'+item.goods.specificationData:''))}}
                  <!-- {{filter.replaceItemText(item.goods.goodsAlias) ||filter.replaceItemText(item.goods.upgradeGoodsName) || filter.replaceItemText(item.goods.goodsName)}} -->
                </view>
                <!-- goodsPriceModify:true 价格不可以修改,false价格可以修改 -->
                <view class="price-box-Modify" wx:if="{{item.goods.goodsPriceModify}}">
                  <text>¥</text>
                  <view class="price">
                    {{ item.goods.price}}
                  </view>
                </view>
                <view class="price-box" wx:else>
                  <text>¥</text>
                  <view class="price">
                    <input type="digit" value="{{ item.goods.price }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0||item.goods.goodsPriceModify }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.goods.checkError ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
                  </view>
                </view>
                <view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{item.count||1}}</view>
              </view>
              <!-- {{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || filter.replaceItemText(item.goodsInfo.goodsName)}} -->
              <view class="goods packageList" wx:if="{{ item.packageGoods }}">
                <view class="package">
                  <view class="deleteicon" bindtap="delGoodsList" data-index="{{ index }}">
                    <image src="./images/del.png" />
                  </view>
                  <view class="name ">{{item.packageGoods.packageAlias || item.packageGoods.packageNameAlias || item.packageGoods.packageName}}</view>
                  <view class="package-price">¥{{item.price}}</view>
                  <!-- <view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{item.count||1}}</view> -->
                </view>
                <view class="packageBox">
                  <view class="itemSty" wx:for="{{ item.packageGoods.goodsList }}" wx:key="childind" wx:for-index="childind" wx:for-item="child">
                    <view class="name ">{{child.goodsAlias || child.goodsNameAlias || filter.replaceItemText(child.upgradeGoodsName , (item.specificationData? '/'+child.specificationData: '') ) ||filter.replaceItemText(child.goodsName ,( item.specificationData? '/'+child.specificationData: '') ) }}</view>
                    <view class="price-box-Modify" wx:if="{{child.goodsPriceModify}}">
                      <text>¥</text>
                      <view class="price">
                        {{ child.price}}
                      </view>
                    </view>
                    <view class="price-box" wx:else>
                      <text>¥</text>
                      <view class="price">

                        <input type="digit" value="{{ child.price }}" bindinput="changePricePackage" disabled="{{ orderObj.selectPayType ==0 ||child.goodsPriceModify}}" data-childind="{{ childind }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ child.checkError ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
                      </view>
                    </view>
                    <view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{child.count||1}}</view>
                  </view>
                </view>
              </view>
              <!-- 多规格 -->
              <view class="goods" wx:if="{{ item.multipleSpecificationsGoods }}">
                <view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
                  <image src="./images/del.png" />
                </view>

                <view class="goods-content">
                  <view class="alias" wx:if="{{item.multipleSpecificationsGoods.goods.goodsAlias}}">
                    商品别名:{{item.multipleSpecificationsGoods.goods.goodsAlias}}
                  </view>
                  <view class="bottom_box">
                    <view class="name left">
                      <view class="name">{{item.multipleSpecificationsGoods.baseGoodsName}}</view>
                      <view class="position" wx:if="{{ item.multipleSpecificationsGoods.goods.specificationStr }}">{{item.multipleSpecificationsGoods.goods.specificationStr}}</view>
                    </view>
                    <view class="right">
                      <view class="price-box-Modify" wx:if="{{item.multipleSpecificationsGoods.goods.goodsPriceModify}}">
                        <text>¥</text>
                        <view class="price">
                          {{ item.multipleSpecificationsGoods.goods.price}}
                        </view>
                      </view>
                      <view class="price-box" wx:else>
                        <text>¥</text>
                        <view class="price">
                          <input type="digit" value="{{item.multipleSpecificationsGoods.goods.price}}" bindinput="changeSpecific" disabled="{{ orderObj.selectPayType ==0||item.multipleSpecificationsGoods.goods.goodsPriceModify }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.multipleSpecificationsGoods.goods.checkError ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
                        </view>
                      </view>

                      <view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{item.count||1}}</view>
                    </view>
                  </view>
                </view>
              </view>

            </block>
            <view class="goods total-box">
              <view>总价</view>
              <view class="total">¥{{orderInfo.total || 0}}</view>
            </view>
          </view>
        </block>
      </van-collapse-item>
    </view>
    <view class="collapse">
      <van-collapse-item name="1" is-link="{{ false }}">
        <view slot="title">
          <view class="collapseBoxTitle remark">
            <view class="sprite-icon mr10" />
            <view class="label">其他信息</view>
          </view>
        </view>
        <!-- <gl-cell
					wx:if="{{ !orderInfo.outTradeNo || orderInfo.resetOrder }}"
					border
					class="pay-type"
					label="支付方式"
					valueAlign="right"
					labelWidth="var(--fontSize140)"
				>
					<view class="only-select-text" wx:if="{{ orderInfo.resetOrder }}">门店收款</view>
					<view wx:else class="switch-box">
						<view class="block text-center {{ orderInfo.payType==1?'':'right' }}" />
						<view class="left text-center {{ orderInfo.payType == 1?'active':'' }}" bindtap="changePayType" data-payType="1">线上支付</view>
						<view class="right text-center {{ orderInfo.payType == 2?'active':'' }}" bindtap="changePayType" data-payType="2">门店收款</view>
					</view>
				</gl-cell> -->
        <!-- 新下单非历史单 -->
        <block wx:if="{{paymentMethod || !orderInfo.oldOrder}}">
          <gl-cell border class="pay-type" label="收款方" valueAlign="right" labelWidth="var(--fontSize140)" wx:if="{{!(orderInfo.switchValue == 1 && orderInfo.selectOutTradeNoArr.length == 1)}}">
            <view class="payType-box">
              <view class="text-center payment-text">{{orderInfo.payee == 1 ? '4S店收款' : '嘀加收款'}}</view>
            </view>
          </gl-cell>
          <gl-cell border class="pay-type" label="支付方式" valueAlign="right" labelWidth="var(--fontSize140)" wx:if="{{!(orderInfo.switchValue == 1 && orderInfo.selectOutTradeNoArr.length == 1)}}">
            <view class="payType-box">
              <view class="text-center payment-text">{{payTypeObj[orderInfo.payType]}}</view>
            </view>
          </gl-cell>
        </block>
        <block wx:else>
          <!-- 非正常分账期单流水补录 -->
          <gl-cell border class="pay-type" label="收款方" valueAlign="right" labelWidth="var(--fontSize140)" wx:if="{{!(orderInfo.switchValue == 1 && orderInfo.selectOutTradeNoArr.length == 1)}}">
            <view class="payType-box">
              <block wx:for="{{ payeeList }}" wx:key="index">
                <view class="item text-center {{ orderInfo.payee == item.value?'active':'' }} {{(orderInfo.resetOrder||orderInfo.selectOutTradeNoArr) && orderInfo.payee != item.value ? 'disabled' : ''}}" bindtap="changePayee" data-payee="{{ item.value }}">{{item.name}}</view>
              </block>
            </view>
          </gl-cell>
          <!-- 非正常分账期单流水补录 -->
          <gl-cell border class="pay-type" label="支付方式" valueAlign="right" labelWidth="var(--fontSize140)" wx:if="{{!(orderInfo.switchValue == 1 && orderInfo.selectOutTradeNoArr.length == 1)}}">
            <view class="payType-box">
              <!-- 错误工单或非正常分账期单流水补录 固定显示嘀加收款 -->
              <view class="item text-center active" wx:if="{{ orderInfo.resetOrder || orderInfo.selectOutTradeNoArr}}">嘀加收款</view>
              <block wx:else>
                <block wx:for="{{ payTypeList }}" wx:key="index">
                  <view class="item text-center {{ orderInfo.payType == item.value?'active':'' }}" bindtap="changePayType" data-payType="{{ item.value }}">{{item.name}}</view>
                </block>
              </block>
            </view>
          </gl-cell>
        </block>
        <view class="paytype-tips" wx:if="{{orderInfo.payType == 7}}">其它收款:当客户已向嘀加付款但无法使用流水补录时,新建工单应选择收款方为「嘀加收款」且支付方为「其它收款」。</view>
        <gl-cell wx:if="{{ (orderInfo.payType == 2 ||orderInfo.payType ==5 || orderInfo.payType == 6 || orderInfo.payType == 7 )&&!orderInfo.resetOrder&&!orderInfo.selectOutTradeNoArr }}" value="{{ successDateTime }}" bind:click="toSelectDate" haveArrow="{{ true }}" placeholder="请选择时间" required="{{ true }}" requiredAfter="{{ true }}" border class="pay-type" label="{{orderInfo.payType == 2?'4S店收款时间':'嘀加收款时间'}}" valueAlign="right" labelWidth="var(--fontSize200)"></gl-cell>
        <gl-cell wx:if="{{ orderInfo.selectOutTradeNoArr.length && !(orderInfo.switchValue == 1 && orderInfo.selectOutTradeNoArr.length == 1) }}" value="{{ orderInfo.successDateTime }}" haveArrow="{{ true }}" placeholder="请选择时间" required="{{ true }}" requiredAfter="{{ true }}" border class="pay-type" label="{{orderInfo.payType == 2?'4S店收款时间':'嘀加收款时间'}}" valueAlign="right" labelWidth="var(--fontSize200)"></gl-cell>
        <view class="box">
          <!-- 支付方式为其他收款时,备注必填 -->
          <view class="title remarkTitle">
            备注
            <text wx:if="{{orderInfo.payType == 7}}" class="required">*</text>
          </view>
          <van-field type="textarea" maxlength="30" autosize class="inputBox" border="{{ false }}" data-hold-keyboard value="{{ orderInfo.notes }}" data-attrName="notes" placeholder="请输入(30字以内)" data-attrType="" bindinput="handleInput"></van-field>
        </view>
      </van-collapse-item>
    </view>
  </van-collapse>
  <Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{ textNameObj }}" />
</view>
<goods show="{{ goodsBox }}" bindconfirm="chooseGoods" goodsData="{{ quotationGoodsList }}" chooseGoodsList="{{ orderInfo.vdQuotationGoodsList }}" />
<sku-goods show="{{ skuGoodsBox }}" wx:if="{{skuGoodsBox}}" sceneType="0" goodsData="{{ skuGoodsData }}" chooseGoodsList="{{ orderInfo.vdQuotationGoodsList }}"></sku-goods>
<date-select show="{{ showDateSelect }}" bind:close="closeDateModal" selectPay="{{orderInfo.payType}}" bind:confirm="onChanteSuccessDate"></date-select>