| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- <!-- 前台导入wxmlUtil.wxs -->
- <wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
- <!-- 单据信息 -->
- <loading wx:if="{{loading}}" loadingName="加载中" backgroundColor="#f2f2f2;" opacity="0.8"></loading>
- <view style="margin: 10px 32rpx 10px 32rpx;margin-top: 10px;border-radius: 15rpx;box-shadow:2px 2px 5px #e5e5e6;">
- <view style="background: #FFFFFF;box-shadow: 0rpx 10rpx 20rpx rgba(225, 229, 238, 0.6);border-radius: 15rpx;">
- <van-radio-group value="{{ radio_follow_up }}" style="display:flex;background:white; padding-left: 7vw;" bind:change="onRadio_Follow_Up">
- <view style="flex: 1;">
- <van-radio name="2" style="margin: 2vw;font-size: 15px;" checked-color="#1B365D">客户接待 <text wx:if="{{pageFlag!='edit'}}" style='color:red;font-size:15px;'>*</text>
- <view style="color: #95A8CB;font-size: 25rpx;">
- 留资客户
- </view>
- </van-radio>
- </view>
- <view style="flex: 1;">
- <van-radio name="1" style="margin: 2vw;font-size: 15px;" checked-color="#1B365D">陌生接待
- <view style="color: #95A8CB;font-size: 25rpx;">
- 无客户联系方式
- </view>
- </van-radio>
- </view>
- </van-radio-group>
- </view>
- </view>
- <view>
- <view class="table-show">
- <view class="table-show-detail">
- <view wx:if="{{radio_follow_up == 2}}">
- <van-field label="客户名称" data-index="{{index}}" label-class="red-label" value="{{ form.customerName }}" data-key="customerName" input-align="left" maxlength="50" placeholder="请输入客户名称" border="{{ false }}" bind:change="onCustomerNameChange" use-button-slot>
- <view slot="button" style="text-align: right; ">
- <view catchtap="onChooseCustomerClear" style="justify-content: space-between;flex-flow: row nowrap;display: flex;">
- <view Cell Slot="value" style="text-align: right;color: #95A8CB;">
- <view catchtap="onChooseCustomer">
- <view>
- <van-icon name="user-o" color="#95A8CB" />选客户
- </view>
- </view>
- </view>
- <view style="width: 10rpx;"></view>
- <view catchtap="onnavigateToAddCustomer" slot="button" style="text-align: right; ">
- <view style="justify-content: flex-end;flex-flow: row nowrap;display: flex;">
- <view>
- <image src="../../../../static/image/wx.png" style="width:38rpx;height:38rpx;" />
- </view>
- </view>
- </view>
- </view>
- </view>
- </van-field>
- <!-- 联系电话 -->
- <dk-number-phone-input disabled="{{EditFlag||form.customerId}}" dataKey="phone" value="{{form.customerPhone}}" bind:changeField="changeCustomerFormFieldPhone" bind:changeFieldblur="blurCustomerPhone" errorMessage="联系电话格式错误" labelClass="{{form.noTelephone ? '' : 'red-label'}}" rightIcon="{{form.customerId?'edit':'phone'}}" label="客户电话" placeholder="请输入客户电话" bind:onEditphone="editPhone" bind:clickFieldInput="editPhone" disabledInput="{{EditFlag||form.customerId}}"></dk-number-phone-input>
- <van-field catchtap="onClickWxchartAddress" readonly="{{true}}" value="{{ wxmlUtil.addressToIndexOf((form.addressArea.province?form.addressArea.province:'') + (form.addressArea.city?form.addressArea.city:'') + (form.addressArea.district?form.addressArea.district:'') + (form.addressName?form.addressName:''))}}" input-align="left" label="客户地址" placeholder="请输入客户地址" autosize border="{{ false }}" bind:change="change" use-button-slot>
- <view slot="button" style="text-align: right; ">
- <view style="justify-content: space-between;flex-flow: row nowrap;display: flex;">
- <view>
- <van-icon name="location" color="#95A8CB" size="38rpx" />
- </view>
- </view>
- </view>
- </van-field>
- <van-field value="{{ form.addressNo }}" input-align="left" label="门牌号" placeholder="请输入门牌号" autosize border="{{ false }}" bind:change="onAddressNoChange" use-button-slot>
- </van-field>
- <van-field readonly="{{ true }}" label-class="red-label" value="{{ form.CustomerIntentionsName }}" input-align="left" label-width="180rpx" label="客户意向" placeholder="请选择" border="{{ false }}" data-type='CustomerIntentions' catchtap="showCustomerIntentionsPopup" is-link />
- <!--客户来源-->
- <van-field focus="{{showMore}}" input-width="200rpx" input-class="dk-cell-value-class" label-class="red-label" input-align="left" data-key="customerFrom" maxlength="25" type="text" value="{{ form.customerFromName }}" label="客户来源" placeholder="请选择客户来源" autosize border="{{ false }}" right-icon="arrow" color="#95A8CB" data-type='customerFrom' catchtap="showCustomerIntentionsPopup" readonly="{{true}}">
- </van-field>
- <view wx:if="{{competitionBrandFlag}}">
- <van-field value="{{ form.CompetitionBrand }}" input-align="left" label-class="red-label" label="竞品品牌" placeholder="请输入竞品品牌" autosize border="{{ false }}" bind:change="change">
- </van-field>
- </view>
-
- <dk-accordion-box titleName="意向品类" dataList="{{specsList}}" bind:onDataChange="onDataChange" showOtherFlag="{{true}}" showFieldFlag="{{true}}" disabledFlag="{{false}}" checkboxClinkFlag="{{true}}">
- </dk-accordion-box>
- </view>
- <view style="height:1px;background: #f3f3f3;"></view>
- <van-field rows="5" label-class="red-label" autosize label="跟进内容" value="{{ form.FollowUpContent }}" input-class="input-class" type="textarea" maxlength="1000" placeholder="请输入跟进内容" show-word-limit="{{true}}" bind:change="onFollowUpContentChange" border="{{false}}">
- </van-field>
- <!--分割线 -->
- <view wx:if="{{radio_follow_up == 2}}">
- <van-field rows="5" autosize label="下次跟进计划" value="{{ form.NextFollowUpPlan }}" type="textarea" maxlength="1000" placeholder="请输入下次跟进计划" show-word-limit input-class="input-class" bind:change="onNextFollowUpPlanChange" border="{{ false }}" />
- <van-field readonly="{{ true }}" label-width="29%" value="{{ form.NextFollowTime }}" value-class="PickDate_Month" input-align="left" label="提醒时间" placeholder="请输入下次跟进计划" border="{{ false }}" catchtap="onChangePickDate" is-link />
- </view>
- <van-field readonly="{{ true }}" label-width="180rpx" label-class="red-label" value="{{ form.LeaveTime }}" input-align="left" label="留店时长" placeholder="请选择" border="{{ false }}" catchtap="showPopup" is-link />
- <van-popup position="bottom" show="{{ selectflag }}" bind:close="onClose" class="popup" style="width:100%">
- <van-picker show-toolbar="{{true}}" columns="{{ columns }}" bind:confirm="onChange" bind:cancel="onCancel" />
- </van-popup>
- <view style="background-color: white; height: 180px;padding-left:32rpx;padding-top:11rpx; ">
- <view style="margin-left: 15px;padding-top:10px; color:#95A8CB;">
- 图片
- </view>
- <van-uploader max-count="5" accept="image" style="margin-left: 4%;" preview-size="160rpx;" file-list="{{ fileList }}" bind:delete="deleteImg" bind:after-read="afterRead" multiple="true" imageFit="aspectFit" />
- <view style="margin-left: 15px;color: #95A8CB">
- 图片最多上传5张
- </view>
- </view>
- </view>
- </view>
- <view style="height:78px;">
- </view>
- </view>
- <!--联系电话-->
- <van-popup show="{{ telephoneFlag }}" style="z-index: 999;" round="{{true}}" position="bottom" bind:close="closeCustomerPhonePop">
- <van-cell-group>
- <van-cell border="{{ false }}">
- <view style="display: flex;">
- <view style="width:80%;font-size:16px;color:#34495e;text-align:left;">
- 联系电话修改
- </view>
- <view style="text-align: right; width:20%; ">
- <!-- <view style="width: 100%;text-align: right;">
- <view style=" border-radius: 15rpx; background-color: #1B365D;text-align: center; height: 60rpx;" bindtap="updateCustomerPhone">
- <view style="color: white;padding-top: 5rpx;">确定</view>
- </view>
- </view> -->
- </view>
- </view>
- </van-cell>
- <van-divider />
- <dk-number-phone-input dataKey="customerPhone" value="{{form.customerPhone}}" bind:changeField="changeCustomerPhonePop"></dk-number-phone-input>
- <view style="color:blue;font-size: 14px;padding-left: 30rpx;">注意:仅修改当前客户的联系电话</view>
- <view style="height: 550rpx;"></view>
- <view style="text-align: center;">
- <van-button round size="large" color="#1B365D" custom-style="height:88rpx;width:640rpx;" type="info" size="small" bindtap="updateCustomerPhone">确定</van-button>
- </view>
- <view style="height: 40rpx;"></view>
- </van-cell-group>
- </van-popup>
- <view class="botton-class">
- <view style="padding:40rpx 34rpx 61rpx 43rpx; display: flex; ">
- <view style="width:247rpx;height:88rpx;">
- <van-button custom-style="height:80rpx;width:100%;border-radius: 15rpx;border:1px solid #1B365D;color:#1B365D;" plain disabled="{{loadingButtonFlag}}" loading="{{loadingButtonFlag}}"bind:click="cancle">取消
- </van-button>
- </view>
- <view style="width:50%;height:80rpx; margin-left: 35px;">
- <van-button color="#1B365D" custom-style="height:80rpx;width:100%;border-radius: 15rpx;" loading="{{loadingButtonFlag}}"disabled="{{loadingButtonFlag}}"bind:click="submit" type="info">保存
- </van-button>
- </view>
- </view>
- </view>
- <!-- 购物车 -->
- <view catchtap="toPay" wx:if="{{pageFlag !='edit'}}" data-item="{{form}}" style="position:fixed;z-index: 10;bottom: 250rpx;right: 50rpx;">
- <image style="height:51px;width: 51px;" src="/static/image/Group.png" />
- </view>
- <!-- 客户意向 -->
- <dk-single-dropdown-item show="{{customerIntentionsFlag}}" id='customerIntentions' choooseFlg="true" typeName='customerIntentions' bind:muticommit='mutiSearch' bind:muticlose='muticlose'></dk-single-dropdown-item>
- <!-- 客户来源 -->
- <dk-single-dropdown-item model:show="{{customerSourceFlag}}" id='customerFrom' typeName='customerFrom' bind:muticommit='mutiSearch' bind:muticlose='muticlose'></dk-single-dropdown-item>
- <!-- 意向品类- 其他 -->
- <dk-single-dropdown-item show="{{otherFlag}}" id='other' typeName='other' bind:muticommit='mutiSearch' bind:muticlose='muticlose'></dk-single-dropdown-item>
- <!-- 提醒时间 -->
- <van-popup position="bottom" show="{{ show }}" data-key="nextFollowTime" bind:close="onCloseChooseDate" class="popup" style="width:100%">
- <view style="display:flex;justify-content: space-around;height:80rpx;">
- <view style="width:45%;text-align: left;color:#b6b6b6;line-height:80rpx;" data-key="nextFollowTime" catchtap="onCloseChooseDate">取消</view>
- <view style="width:45%;text-align: right;color:#1989fa;line-height:80rpx;" data-key="nextFollowTime" catchtap="onConfirmChooseDate">确定</view>
- </view>
- <van-datetime-picker min-date="{{ minDate }}" show-toolbar="{{false}}" bindonlyinput="changeDate" data-key="nextFollowTime" data-index="0" type="datetime" loading="{true}" value="{{ nextFollowTimeSearch }}" formatter="{{formatter}}" />
- </van-popup>
|