| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- <!-- 顶部信息 -->
- <van-sticky scroll-top="0">
- <van-search model:value="{{ searchText }}" bind:change="onSearchText" bind:search="doSearch" placeholder="请输入资料名称/备注"> </van-search>
- <van-dropdown-menu active-color="#1B365D">
- <van-dropdown-item id="status" title="{{statusItem.text }}">
- <dk-dropdown-switch dataList="{{statusList}}" bind:commit='dropdownSwitchCommit'></dk-dropdown-switch>
- </van-dropdown-item>
- </van-dropdown-menu>
- </van-sticky>
- <view style="display: flex;">
- <!-- 左侧菜单列表 -->
- <van-sidebar activeKey="{{sideKey}}" bindchange="changeSidebar" custom-class="left-class">
- <view style="height:calc({{windowHeight+'px'}} - {{'390rpx'}});overflow: scroll;">
- <van-sidebar-item wx:key="index" custom-class="{{sideKey - 1 == index? 'sidebar-item-before': (sideKey + 1 == index?'sidebar-item-next':'sidebar-item')}}" title="{{item.name}}" data-id="{{item.id}}" wx:for="{{leftData}}" />
- </view>
- </van-sidebar>
- <!-- 内容列表 -->
- <view style="margin-left: 140rpx;width: 100%;">
- <view wx:for="{{tableData}}" wx:key="index" class="main-class">
- <van-swipe-cell right-width="{{ 65 }}">
- <view bind:tap="toDetail" data-index="{{index}}" class="main-foot" style="border-radius:15rpx;">
- <view class="table-content">
- <view wx:if="{{fieldData.typeName != '客户标签'}}" class="table-content-row">
- <view style="display: flex;">
- <view style="font-size: 15px;font-weight: 600;width: 80%;">
- {{fieldData.typeName}}
- </view>
- <view wx:if="{{item.defFlag}}" style="height: 49rpx;border-radius: 6rpx;background-color:#CAA977;text-align: center;width: 20%;margin-right: 10rpx;">
- <text style=" font-size: 13px;color: #FFFFFF;">{{'默认'}}</text>
- </view>
- <view style="height: 49rpx;border-radius: 6rpx;background-color: {{ item.flagValue ?'#77C5D5':'rgba(228, 0, 43, 1)'}};text-align: center;width: 20%;">
- <text style=" font-size: 13px;color: #FFFFFF;">{{item.flagValue ? '启用' : '停用'}}</text>
- </view>
- </view>
- </view>
- <view wx:if="{{fieldData.typeName != '客户标签'}}" wx:for="{{fieldData}}" wx:for-index="key" wx:for-item="value">
- <view class="table-row" wx:if="{{'typeName' != key}}">
- <view class="table-content-row">
- <view style="display: flex;">
- <view class="table-content-row-font">
- <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="{{value}}" copyValue="{{item[key]}}"></dk-text>
- </view>
- <view class="table-content-class">
- {{item[key]?item[key]:''}}
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="table-content-row" wx:if="{{fieldData.typeName == '客户标签'}}">
- <view style="display: flex;">
- <view style="font-size: 15px;font-weight: 600;width: 80%;">
- {{item.code}}
- </view>
- <view style="width: 20%;text-align: right;" bind:tap="openArrow" data-index="{{index}}">
- <van-icon name="{{'arrow-down'}}" color="#1B365D" />
- </view>
- </view>
- </view>
- <view wx:if="{{fieldData.typeName == '客户标签'}}">
- <view class="table-content">
- <view style="width: 80%;flex-direction: row;margin-top: 0px;" wx:if="{{item.list}}">
- <view wx:for="{{item.list}}" wx:for-index="arrow_1_index" wx:for-item="arrow_1_item" class="table-content-row" style="width:100%;margin-left: 20rpx;">
- <view style="display: flex;">
- <view style="width: 10%;" bind:tap="openArrow" data-index="{{index}}">
- <van-icon name="{{arrow_1_item.arrow_2 ? 'arrow-down':'arrow'}}" color="#1B365D" />
- </view>
- <view style="font-size: 14px;font-weight: 600;width: 80%;" bind:tap="openArrow" data-index="{{arrow_1_index}}">
- {{arrow_1_item.code}}
- </view>
- <view style="height: 49rpx;border-radius: 6rpx;background-color: {{ arrow_1_item.flagValue ?'#77C5D5':'rgba(228, 0, 43, 1)'}};text-align: center;width: 20%;">
- <text style=" font-size: 13px;color: #FFFFFF;">{{arrow_1_item.flagValue ? '启用' : '停用'}}</text>
- </view>
- </view>
- <view class="table-row" style="width: 100%;" wx:if="{{arrow_1_item.arrow_2}}">
- <view wx:for="{{arrow_1_item.arrow_2_list}}" wx:for-index="arrow_2_index" wx:for-item="arrow_2_item" class="table-content-row" style="width:100%;padding-left:10px;padding-right: 2rpx;">
- <view style="display: flex;">
- <view style="width: 10%;" bind:tap="openArrow" data-index="{{index}}">
- <van-icon name="{{arrow_2_item.arrow_2 ? 'arrow-down':'arrow'}}" color="#1B365D" />
- </view>
- <view style="font-size: 14px;font-weight: 600;width: 80%;" bind:tap="openArrow" data-index="{{arrow_2_index}}">
- {{arrow_2_item.name}}
- </view>
- <view style="height: 49rpx;border-radius: 6rpx;background-color: {{ arrow_2_item.flagValue ?'#77C5D5':'rgba(228, 0, 43, 1)'}};text-align: center;width: 20%;">
- <text style=" font-size: 13px;color: #FFFFFF;">{{arrow_2_item.flagValue ? '启用' : '停用'}}</text>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view data-index="{{index}}" bind:tap="onCloseDel" slot="right">{{item.flagValue ? '停用' : '启用'}}</view>
- </van-swipe-cell>
- </view>
- <!-- 保留高度 -->
- <view style="height: 220rpx;"></view>
- </view>
- </view>
- <!-- 弹窗 编辑/新建-->
- <van-popup show="{{showPopup}}" position="bottom" bind:close="onClosePopup" custom-class="function-pop-class">
- <view style="background-color:#F8F9FD;color:#1B365D;font-size: 17px;font-weight: 600;display: flex;justify-content: left;align-items: center;padding: 40rpx;">
- <view style="width: 70%;">{{fieldData.typeName}}</view>
- <view wx:if="{{fieldData.typeName !== '客户标签'}}" style="display: flex;justify-content: center;align-items: center;width: 30%;">
- <van-checkbox size="13" value="{{true}}" data-index="{{index}}" checked-color="#1989FA" /><view style="margin-left: 20rpx;font-size: 13px;">默认</view>
- </view>
- </view>
- <view wx:for="{{fieldData}}" wx:for-index="key" wx:for-item="value" wx:if="{{'typeName' != key}}">
- <van-field wx:if="{{key == 'warehouseCode' || key == 'channelCode' || key =='incomeCode' || key =='expenditureCode' || key =='reasonCode'|| key =='paymentCode' }}" disabled="{{true}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" maxlength="50" value="{{ showPopupItem[key] }}" input-align="right" label="{{ value}}" placeholder="{{'请输入' + value}}" autosize border="{{ false }}">
- </van-field>
- <van-field wx:if="{{key !== 'warehouseCode' && key !== 'channelCode' && key !=='incomeCode' && key !=='expenditureCode' && key !=='reasonCode' && key !=='paymentCode' }}" disabled="{{false}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="{{(key == 'warehouseName' || key == 'channelName' || key =='incomeName' && key =='expenditureName' || key =='reasonName'|| key =='paymentName' ) ? 'red-label':'' }}" maxlength="50" value="{{ showPopupItem[key] }}" input-align="right" label="{{ value}}" placeholder="{{'请输入' + value}}" autosize border="{{ false }}">
- </van-field>
- </view>
-
- <view wx:if="{{fieldData.typeName == '客户标签'}}">
-
- <van-field disabled="{{false}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" disabled="{{true}}" maxlength="50" value="ZL00001" input-align="right" label="标签编码" placeholder="{{'请输入' + '标签编码'}}" autosize border="{{ false }}">
- </van-field>
- <van-field disabled="{{false}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" disabled="{{true}}" maxlength="50" value="年龄构成" input-align="right" label="标签分类" placeholder="{{'请输入' + '标签分类'}}" autosize border="{{ false }}">
- </van-field>
- <van-field disabled="{{false}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="red-label" disabled="{{true}}" maxlength="50" value="90后" input-align="right" label="标签名称" placeholder="{{'请输入' + '标签名称'}}" autosize border="{{ false }}">
- </van-field>
-
- </view>
- <van-field disabled="{{false}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" maxlength="50" value="" input-align="right" label="备注" placeholder="{{'请输入' + '备注'}}" autosize border="{{ false }}">
- </van-field>
- <!-- <van-field input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="red-label" data-key="addressNo" maxlength="50" value="{{ showPopupItem.name }}" input-align="right" label="仓库名称" placeholder="请输入仓库名称" autosize border="{{ false }}" bind:change="changeCustomerFormField">
- </van-field>
- <van-field input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" data-key="addressNo" maxlength="50" value="{{ showPopupItem.value }}" input-align="right" label="仓库主管" placeholder="请输入仓库主管" autosize border="{{ false }}" bind:change="changeCustomerFormField">
- </van-field>
- <van-field input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" data-key="addressNo" maxlength="50" value="{{ showPopupItem.value }}" input-align="right" label="主管电话" placeholder="请输入主管电话" autosize border="{{ false }}" bind:change="changeCustomerFormField">
- </van-field>
- <van-field input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" data-key="addressNo" maxlength="50" value="{{ showPopupItem.remark }}" input-align="right" label="备注" placeholder="请输入备注" autosize border="{{ false }}" bind:change="changeCustomerFormField">
- </van-field> -->
- <!-- 保留 -->
- <!-- <van-field input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" data-key="addressNo" maxlength="50" value="{{ form.customerForm.addressNo }}" input-align="right" label="仓库名称" placeholder="请输入仓库名称" autosize border="{{ false }}" bind:change="changeCustomerFormField">
- </van-field> -->
- <view style="display: flex; padding:35rpx 34rpx 62rpx 34rpx;">
- <view style="width:48%">
- <van-button size="large" plain round color="#1B365D" custom-style="height:88rpx;" bind:click="onClosePopup" type="default">取消
- </van-button>
- </view>
- <view style="width: 4%;"></view>
- <view style="width:48%;">
- <van-button size="large" round color="#1B365D" custom-style="height:88rpx;" bind:click="allClean" type="default">保存
- </van-button>
- </view>
- </view>
- </van-popup>
- <!-- 底部信息 -->
- <dk-save-bottom flagTypeName="basic-data" bottomClass="{{true}}" bind:submit="toClose" bind:allClean="toAdd" />
|