| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <!-- 顶部信息 -->
- <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'}} - {{'220rpx'}});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 class="table-content-row">
- <view style="display: flex;">
- <view style="font-size: 15px;font-weight: 600;width: 80%;">
- {{fieldData.typeName}}
- </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: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>
- </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>{{fieldData.typeName}}</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>
- <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" />
|