| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313 |
- <!-- 顶部信息 -->
- <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 wx:if="{{listTitle == '商品品牌'}}">
- <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 class="table-row">
- <view class="table-content-row">
- <view style="display: flex;">
- <view class="table-content-row-font">
- <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="品牌编码" copyValue="{{item.code}}"></dk-text>
- </view>
- <view class="table-content-class">
- {{item.code}}
- </view>
- </view>
- </view>
- </view>
- <view class="table-row">
- <view class="table-content-row">
- <view style="display: flex;">
- <view class="table-content-row-font">
- <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="品牌名称" copyValue="{{item.name}}"></dk-text>
- </view>
- <view class="table-content-class">
- {{item.name}}
- </view>
- </view>
- </view>
- </view>
- <view class="table-row">
- <view class="table-content-row">
- <view style="display: flex;">
- <view class="table-content-row-font">
- <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="供应商" copyValue="{{item.supplierName}}"></dk-text>
- </view>
- <view class="table-content-class">
- {{item.supplierName}}
- </view>
- </view>
- </view>
- </view>
- </view>
- <view wx:if="{{listTitle == '商品种类'}}">
- <view class="table-content">
- <view class="table-content-row">
- <view style="display: flex;">
- <view style="width: 10%;" bind:tap="openArrow" data-index="{{index}}">
- <van-icon name="{{item.arrow_1 ? 'arrow-down':'arrow'}}" color="#1B365D" />
- </view>
- <view style="font-size: 14px;font-weight: 600;width: 80%;" bind:tap="openArrow" data-index="{{index}}">
- {{item.name}}
- </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 style="width: 80%;flex-direction: row;margin-top: 0px;" wx:if="{{item.arrow_1}}">
- <view wx:for="{{item.arrow_1_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.name}}
- </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 wx:if="{{listTitle == '商品系列'}}">
- <view class="table-content-row">
- <view style="display: flex;">
- <view style="font-size: 15px;font-weight: 600;width: 80%;">
- {{item.name}}
- </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>
- <view wx:if="{{listTitle == '计量单位'}}">
- <view class="table-content">
- <view class="table-content-row">
- <view style="display: flex;">
- <view style="font-size: 14px;font-weight: 600;width: 50%;">
- {{item.name}}
- </view>
- <view style="font-size: 14px;font-weight: 600;width: 30%;margin-left: 20rpx;">
- {{'小数:' +item.decimal}}
- </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="{{item.list && item.list.length > 0}}">
- <view class="table-content-row" wx:for="{{item.list}}" wx:for-index="index_" wx:for-item="item_">
- <view style="display: flex;">
- <view style="font-size: 14px;font-weight: 600;width: 50%;margin-left: 20rpx;">
- {{item_.name}}
- </view>
- <view style="font-size: 14px;font-weight: 600;width: 30%;margin-left: 20rpx;">
- {{'小数:' +item_.decimal}}
- </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> -->
- </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>{{listTitle}}</view>
- </view>
- <view wx:if="{{listTitle == '商品品牌'}}">
- <van-field disabled="{{false}}" disabled="{{true}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" maxlength="50" value="{{'PP00001'}}" 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" maxlength="50" value="{{'蒙娜丽莎瓷砖'}}" input-align="right" label="品牌名称" placeholder="{{'请输入' + '品牌名称'}}" autosize border="{{ false }}">
- </van-field>
- <van-field label-class="nomal-label" input-width="200rpx" input-class="dk-cell-value-class" input-align="right" data-key="supplier-list" maxlength="25" type="text" value="{{'' }}" label="供应商" placeholder="请选择" autosize border="{{ false }}" right-icon="arrow" color="#95A8CB" catchtap="openSingle" readonly="{{true}}">
- </van-field>
- </view>
- <view wx:if="{{listTitle == '商品种类'}}">
- <van-field disabled="{{false}}" disabled="{{true}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" 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="red-label" maxlength="50" value="{{'浴室柜'}}" input-align="right" label="种类名称" placeholder="{{'请输入' + '种类名称'}}" autosize border="{{ false }}">
- </van-field>
- <van-field label-class="nomal-label" input-width="200rpx" input-class="dk-cell-value-class" input-align="right" data-key="product-types" maxlength="25" type="text" value="{{'' }}" label="父级" placeholder="请选择" autosize border="{{ false }}" right-icon="arrow" color="#95A8CB" catchtap="openSingle" readonly="{{true}}">
- </van-field>
- </view>
- <view wx:if="{{listTitle == '商品系列'}}">
- <van-field disabled="{{false}}" disabled="{{true}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" 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="red-label" maxlength="50" value="{{'浴室柜'}}" input-align="right" label="系列名称" placeholder="{{'请输入' + '系列名称'}}" autosize border="{{ false }}">
- </van-field>
- </view>
- <view wx:if="{{listTitle == '计量单位'}}">
- <van-field disabled="{{false}}" disabled="{{true}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" maxlength="50" value="{{'PP00001'}}" 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" 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" maxlength="50" value="{{'0'}}" 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" maxlength="50" value="" input-align="right" label="备注" placeholder="{{'请输入' + '备注'}}" autosize border="{{ false }}"></van-field>
- <!-- <view style="height: 40rpx;color:#95A8CB;font-size: 12px;text-align: center;">添加辅助单位</view>
- <van-field input-width="200rpx" disabled="{{true}}" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" data-key="addressNo" maxlength="50" value="{{ 'JL00001' }}" 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="red-label" data-key="addressNo" maxlength="50" 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="red-label" data-key="addressNo" maxlength="50" value="{{ '0' }}" 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="red-label" data-key="addressNo" maxlength="50" value="{{ '1' }}" input-align="right" label="单位换算" placeholder="" autosize border="{{ false }}" bind:change="changeCustomerFormField">
- </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" />
|