|
|
@@ -1,15 +1,13 @@
|
|
|
-<wxs module="txtIndexOf">
|
|
|
- function toIndexOf(value, value2) {
|
|
|
- return value.indexOf(value2)
|
|
|
- }
|
|
|
-</wxs>
|
|
|
-
|
|
|
<!-- 顶部信息 -->
|
|
|
<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='pick' title="全部、有效、无效" bind:open='openSearchPop' bind:close='closeSearchPop' data-type="pick" />
|
|
|
+ <!-- <van-dropdown-item id='pick' title="全部、有效、无效" bind:open='openSearchPop' bind:close='closeSearchPop' data-type="pick" /> -->
|
|
|
+ <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;">
|
|
|
<!-- 左侧菜单列表 -->
|
|
|
@@ -70,13 +68,23 @@
|
|
|
<view>{{fieldData.typeName}}</view>
|
|
|
</view>
|
|
|
|
|
|
-
|
|
|
- <view wx:for="{{fieldData}}" wx:for-index="key" wx:for-item="value" wx:if="{{'typeName' != key}}">
|
|
|
-
|
|
|
- <van-field 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 }}">
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <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">
|
|
|
@@ -97,9 +105,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
- <view class="popup-button">
|
|
|
- <van-button type="default" custom-class="pop-button-class" size="large" catchtap="onClosePopup">取消
|
|
|
- </van-button>
|
|
|
+ <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="submit" 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>
|
|
|
|