|
|
@@ -3,10 +3,10 @@
|
|
|
<view class="ex-page">
|
|
|
<view class="input-wrap">
|
|
|
<view style="padding:0 0upx 0 20upx;" >
|
|
|
- <button class="admin-button-com middle blue" style="background-color:green;border:1upx solid green;margin-right:20upx;" @click="allShow()">全部花材显示</button>
|
|
|
+ <button class="admin-button-com middle blue" style="background-color:green;border:1upx solid green;margin-right:20upx;" @click="allShow()">全部取消隐藏</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view style="margin-left:30upx;padding-top:10upx;padding-bottom:10upx;font-size:28upx;">点击红色的成本可以将花材显示</view>
|
|
|
+ <view style="margin-left:30upx;padding-top:10upx;padding-bottom:10upx;font-size:28upx;">点击红色的成本可以将花材取消隐藏</view>
|
|
|
<scroll-view scroll-y scroll-with-animation class="main-view">
|
|
|
<view class="space-view ex-table">
|
|
|
<t-table :headerBackgroundColor="'#F0F2F6'">
|
|
|
@@ -28,7 +28,9 @@
|
|
|
{{ classItem.className }}
|
|
|
</text>
|
|
|
</t-td>
|
|
|
- <t-td></t-td>
|
|
|
+ <t-td>
|
|
|
+ <text style="margin-left:30upx;color:green;font-weight:bold;" @click="cancelClassHide(classItem)">取消隐藏</text>
|
|
|
+ </t-td>
|
|
|
<t-td></t-td>
|
|
|
<t-td></t-td>
|
|
|
<t-td></t-td>
|
|
|
@@ -47,38 +49,38 @@
|
|
|
</view>
|
|
|
</t-td>
|
|
|
<t-td>
|
|
|
- <view v-if="productItem.stock>0" style="color:#333333;font-weight:bold;font-size:29upx;" @click="pageTo({url:'/admin/item/detail?id='+productItem.id})">
|
|
|
+ <view v-if="productItem.stock>0" style="color:#333333;font-weight:bold;font-size:29upx;">
|
|
|
{{productItem.stock?parseFloat(productItem.stock):0}}
|
|
|
</view>
|
|
|
- <view v-else style="color:#b5b3b3;font-weight:bold;font-size:29upx;" @click="pageTo({url:'/admin/item/detail?id='+productItem.id})">
|
|
|
+ <view v-else style="color:#b5b3b3;font-weight:bold;font-size:29upx;">
|
|
|
{{productItem.stock?parseFloat(productItem.stock):0}}
|
|
|
</view>
|
|
|
</t-td>
|
|
|
<t-td>
|
|
|
- <text v-if="Number(productItem.onStock)>0" style="color:#0a97a9;font-size:30upx; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;" @click="pageTo({url:'/admin/item/detail?id='+productItem.id,})">
|
|
|
+ <text v-if="Number(productItem.onStock)>0" style="color:#0a97a9;font-size:30upx; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;">
|
|
|
{{productItem.onStock}}
|
|
|
</text>
|
|
|
- <text v-else style="color:#0a97a9;font-size:30upx; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;" @click="pageTo({url:'/admin/item/detail?id='+productItem.id,})">
|
|
|
+ <text v-else style="color:#0a97a9;font-size:30upx; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;">
|
|
|
-
|
|
|
</text>
|
|
|
</t-td>
|
|
|
<t-td>
|
|
|
- <view style="font-size:28upx;" @click="pageTo({url:'/admin/item/detail?id='+productItem.id})">
|
|
|
+ <view style="font-size:28upx;">
|
|
|
¥{{productItem.hjPrice?parseFloat(productItem.hjPrice):0}}
|
|
|
</view>
|
|
|
</t-td>
|
|
|
<t-td>
|
|
|
- <view style="color:#3385FF;font-size:30upx;" @click="pageTo({url:'/admin/item/detail?id='+productItem.id})">
|
|
|
+ <view style="color:#3385FF;font-size:30upx;">
|
|
|
¥{{productItem.price?parseFloat(productItem.price):0}}
|
|
|
</view>
|
|
|
</t-td>
|
|
|
<t-td>
|
|
|
- <view style="font-size:28upx;" @click="pageTo({url:'/admin/item/detail?id='+productItem.id})">
|
|
|
+ <view style="font-size:28upx;">
|
|
|
¥{{productItem.skPrice?parseFloat(productItem.skPrice):0}}
|
|
|
</view>
|
|
|
</t-td>
|
|
|
<t-td>
|
|
|
- <view style="font-size:28upx;color:red;" @click="pageTo({url:'/admin/item/detail?id='+productItem.id})">
|
|
|
+ <view style="font-size:28upx;color:red;" @click="showCurrentItme(productItem)">
|
|
|
¥{{productItem.avCost?parseFloat(productItem.avCost):0}}
|
|
|
</view>
|
|
|
</t-td>
|
|
|
@@ -98,12 +100,11 @@
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
import SelectList from "@/components/plugin/selectList";
|
|
|
import { getProductDataApi } from "@/api/product";
|
|
|
-import { allHideShow,classItemShow } from "@/api/item";
|
|
|
-import { allOut } from "@/api/stock-out"
|
|
|
+import { allHideShow,classItemShow,changeFrontHide } from "@/api/item";
|
|
|
import { list } from "@/mixins";
|
|
|
import ShopSelect from "@/components/module/shopSelect";
|
|
|
import DateSelect from "@/components/module/dateSelect";
|
|
|
-import {mapActions, mapGetters} from "vuex";
|
|
|
+import {mapGetters} from "vuex";
|
|
|
import AppSearchModule from "@/components/module/app-search";
|
|
|
export default {
|
|
|
components: { SelectList, AppWrapperEmpty,ShopSelect,DateSelect,AppSearchModule},
|
|
|
@@ -137,6 +138,22 @@ export default {
|
|
|
methods: {
|
|
|
init(){
|
|
|
},
|
|
|
+ cancelClassHide(classInfo){
|
|
|
+ classItemShow({classId:classInfo.id}).then(res=>{
|
|
|
+ this.$msg('操作成功')
|
|
|
+ this.showHideItem()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ showCurrentItme(item){
|
|
|
+ this.$util.confirmModal({content:'取消隐藏此花材?'},() => {
|
|
|
+ changeFrontHide({id:item.id,status:0}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ this.$msg('操作成功')
|
|
|
+ this.showHideItem()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
allShow(){
|
|
|
allHideShow().then(res=>{
|
|
|
if(res.code == 1){
|