|
|
@@ -3,19 +3,27 @@
|
|
|
<view v-if="!$util.isEmpty(list.data)" style="padding-bottom:120upx;">
|
|
|
<t-table :headerBackgroundColor="'#F0F2F6'">
|
|
|
<t-tr header>
|
|
|
- <t-th>名称</t-th>
|
|
|
- <t-th>排序</t-th>
|
|
|
- <t-th>保持期(天)</t-th>
|
|
|
+ <t-th><view style="color:black;">名称</view></t-th>
|
|
|
+ <t-th><view style="color:black;">排序</view></t-th>
|
|
|
+ <t-th><view style="color:black;">保鲜天数</view></t-th>
|
|
|
</t-tr>
|
|
|
<view v-for="(item, index) in list.data" :key="index">
|
|
|
<t-tr>
|
|
|
- <t-td align="center" color="info"><view>{{item.name}}</view></t-td>
|
|
|
+ <t-td align="center" color="info">
|
|
|
+ <view style="color:black;font-weight:bold;">{{item.name}}</view>
|
|
|
+ </t-td>
|
|
|
<t-td align="center" color="info">
|
|
|
- <view><input v-model="item.inTurn" @focus="item.inTurn=''" name="inTurn" type="number" style="border:1upx solid #cccccc;" /></view>
|
|
|
+ <view>
|
|
|
+ <input v-model="item.inTurn" @focus="item.inTurn=''" name="inTurn"
|
|
|
+ type="number" style="border:1upx solid #cccccc;color:#333333;" />
|
|
|
+ </view>
|
|
|
</t-td>
|
|
|
<t-td align="center" color="info">
|
|
|
- <view><input v-model="item.shelfLife" @focus="item.shelfLife=''" name="shelfLife" type="digit" style="border:1upx solid #cccccc;" /></view>
|
|
|
- </t-td>
|
|
|
+ <view>
|
|
|
+ <input v-model="item.shelfLife" @focus="item.shelfLife=''" name="shelfLife"
|
|
|
+ type="digit" style="border:1upx solid #cccccc;color:#333333;" />
|
|
|
+ </view>
|
|
|
+ </t-td>
|
|
|
</t-tr>
|
|
|
</view>
|
|
|
</t-table>
|
|
|
@@ -24,16 +32,18 @@
|
|
|
<AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(list.data)" />
|
|
|
</view>
|
|
|
<view class="app-footer">
|
|
|
- <view class="admin-button-com middle blue" @click="showBatchUpdate('add')">整列累加</view>
|
|
|
- <view style="margin-left:20upx;" class="admin-button-com middle blue" @click="showBatchUpdate('update')">整列改为</view>
|
|
|
- <view style="margin-left:20upx;" class="admin-button-com middle blue" @click="savePrice">全部保存</view>
|
|
|
+ <view style="margin-left:20upx;" class="admin-button-com middle blue" @click="showBatchUpdate('update')">选择要修改的列</view>
|
|
|
+ <view style="margin-left:20upx;" class="admin-button-com middle blue" @click="savePrice">保存修改</view>
|
|
|
</view>
|
|
|
|
|
|
- <modal-module :show="batchModel" @click="affirmBatch" title="批量操作" color="#333" :size="32" padding="30upx 30upx" >
|
|
|
+ <modal-module :show="batchModel" @click="affirmBatch" title="批量操作" color="#333" :size="32" padding="30rpx 30rpx" >
|
|
|
<template slot="customContent">
|
|
|
<view class="select-cmd_bx">
|
|
|
<view class="num_bx" style="margin:60upx 0 60upx 0;font-size:35upx;">
|
|
|
- <view class="flex">数值:<input v-model="batchNum" type="digit" style="border:1upx solid #CCCCCC;height:60upx;" /></view>
|
|
|
+ <view class="flex">数值:
|
|
|
+ <input v-model="batchNum" placeholder="填写要批量修改的数值"
|
|
|
+ type="digit" style="border:1upx solid #CCCCCC;height:60upx;" />
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -70,7 +80,7 @@ export default {
|
|
|
}
|
|
|
this.batchStyle = styleInfo
|
|
|
let self = this
|
|
|
- let levelList = ['请选择列:','排序', '保持期']
|
|
|
+ let levelList = ['请选择:','排序', '保持期']
|
|
|
uni.showActionSheet({
|
|
|
itemList: levelList,
|
|
|
success: function (respond) {
|