耗材问题修复

This commit is contained in:
duan 2024-11-05 10:33:26 +08:00
parent 4bd5d2b643
commit cfed8ea183
6 changed files with 53 additions and 12 deletions

View File

@ -33,7 +33,7 @@
预警值 预警值
</view> </view>
<view> <view>
<input type="text" placeholder="请输入预警值" v-model="datas.form.conWarning" name="" id=""> <input type="number" placeholder="请输入预警值" v-model="datas.form.conWarning" name="" id="">
</view> </view>
</view> </view>
<!-- <li style="justify-content: space-between;"> <!-- <li style="justify-content: space-between;">
@ -110,6 +110,9 @@
let sumbit = () => { let sumbit = () => {
tbConsTypeput([{ tbConsTypeput([{
...datas.form, ...datas.form,
status: datas.form.status * 1,
isCheck: datas.form.isCheck * 1,
conWarning: datas.form.conWarning * 1,
shopId: uni.getStorageSync("shopId"), shopId: uni.getStorageSync("shopId"),
conTypeId: datas.list[datas.nowStatusIndex].id, conTypeId: datas.list[datas.nowStatusIndex].id,
id: datas.form.id id: datas.form.id
@ -132,8 +135,6 @@
} }
</style> </style>
<style scoped lang="less"> <style scoped lang="less">
ul, ul,
li { li {
list-style: none; list-style: none;
@ -186,6 +187,7 @@
.bottombutton { .bottombutton {
margin-top: 84rpx; margin-top: 84rpx;
padding: 0 24rpx; padding: 0 24rpx;
>button { >button {
width: 530rpx; width: 530rpx;
height: 80rpx; height: 80rpx;

View File

@ -45,8 +45,9 @@
</view> </view>
</view> </view>
<view> <view>
<view class=""> <view style="background-color: #fff;" @tap="show=true;showData = filtersSproductId(item.product)">
所属商品: {{ filtersSproductId(item.product)}} 所属商品:
{{ filtersSproductId(item.product).length>7?filtersSproductId(item.product).substring(0,6)+'...':filtersSproductId(item.product)}}
</view> </view>
<view class=""> <view class="">
<up-button shape="circle" type="primary" size="mini" color="#999" <up-button shape="circle" type="primary" size="mini" color="#999"
@ -73,6 +74,19 @@
</view> </view>
<my-action-sheet @itemClick="sheetClick" ref="refMoreSheet" :list="actionSheet.list"></my-action-sheet> <my-action-sheet @itemClick="sheetClick" ref="refMoreSheet" :list="actionSheet.list"></my-action-sheet>
<my-reportDamage ref="reportDamage" title="耗材报损" :item="report.data" @affirm="affirm"></my-reportDamage> <my-reportDamage ref="reportDamage" title="耗材报损" :item="report.data" @affirm="affirm"></my-reportDamage>
<up-popup :show="show" :round="18" mode="center" >
<view class="zhezhaopop">
<view class="">
<span></span>
<span></span>
<up-icon @tap="show=false" name="close-circle-fill"></up-icon>
</view>
<view class="">
{{showData}}
</view>
</view>
</up-popup>
</template> </template>
<script setup> <script setup>
@ -98,6 +112,8 @@
} from '@/http/yskApi/requestAll.js'; } from '@/http/yskApi/requestAll.js';
let reportDamage = ref(null) let reportDamage = ref(null)
let refMoreSheet = ref(null) let refMoreSheet = ref(null)
let show = ref(false)
let showData = ref()
const report = reactive({ const report = reactive({
data: { data: {
// thumbnail: 'https://cashier-oss.oss-cn-beijing.aliyuncs.com/upload/20240918/a17a62b7b55a4b65a2a2542050672b34.png', // thumbnail: 'https://cashier-oss.oss-cn-beijing.aliyuncs.com/upload/20240918/a17a62b7b55a4b65a2a2542050672b34.png',
@ -251,7 +267,6 @@
// const productName = ele.slice(startIndex + 1, ele.length) // const productName = ele.slice(startIndex + 1, ele.length)
str = ele.name + ',' + str str = ele.name + ',' + str
}) })
return str return str
} }
let toUrl = (url, d) => { let toUrl = (url, d) => {
@ -450,6 +465,24 @@
background-color: #fff; background-color: #fff;
} }
.zhezhaopop {
padding: 34rpx 32rpx;
width: 594rpx;
>view:first-child {
.df;
justify-content: space-between;
>span:nth-child(2) {
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: bold;
font-size: 32rpx;
color: #333333;
}
}
}
.df() { .df() {
display: flex; display: flex;

BIN
pageConsumables/time.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 501 B

View File

@ -1,5 +1,5 @@
<template> <template>
<view class="viewrecordsType"> <!-- <view class="viewrecordsType">
<view style="display: flex;align-items: center;" @tap="popPu"> <view style="display: flex;align-items: center;" @tap="popPu">
筛选时间<up-icon style="transform: rotate(90deg);" name="play-right-fill" size="12"></up-icon> 筛选时间<up-icon style="transform: rotate(90deg);" name="play-right-fill" size="12"></up-icon>
</view> </view>
@ -7,6 +7,10 @@
{{datas.statusTitle}} <up-icon style="transform: rotate(90deg);" name="play-right-fill" size="12"></up-icon> {{datas.statusTitle}} <up-icon style="transform: rotate(90deg);" name="play-right-fill" size="12"></up-icon>
</view> </view>
</view> -->
<view style="position: fixed;right: 50rpx;top: 80vh;background-color: #fff;border-radius: 50%;width: 65rpx;height: 65rpx;display: flex;align-items: center;justify-content: center;">
<image src="./time.png" style="width: 50rpx;height: 50rpx;" @tap="popPu"
mode=""></image>
</view> </view>
<view :style="{height:showStatus?statusHeight:0}" class="tranistion status overflow-hide"> <view :style="{height:showStatus?statusHeight:0}" class="tranistion status overflow-hide">
<view @tap="changeNowStatusIndex(index)" class="u-flex u-p-l-30 lh30 u-p-r-30 u-row-between" <view @tap="changeNowStatusIndex(index)" class="u-flex u-p-l-30 lh30 u-p-r-30 u-row-between"

View File

@ -139,6 +139,7 @@
function gettbPlussShopStaffDetail(id) { function gettbPlussShopStaffDetail(id) {
tbPlussShopStaffDetail(id).then(res => { tbPlussShopStaffDetail(id).then(res => {
console.log(res,'编辑员工后的提示')
datas.formData = res datas.formData = res
if (datas.rolesList) { if (datas.rolesList) {
let rolefilter = datas.rolesList.filter(ele => ele.id == res.roleId) let rolefilter = datas.rolesList.filter(ele => ele.id == res.roleId)
@ -266,9 +267,10 @@
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: 32rpx;
color: #FFFFFF; color: #FFFFFF;
margin-top: 50rpx; margin: 0 auto;
margin-left: 50%; // margin-top: 50rpx;
transform: translateX(-50%); // margin-left: 50%;
// transform: translateX(-50%);
} }
.bottomBotton2 { .bottomBotton2 {

View File

@ -46,7 +46,7 @@
<view class="right"> <view class="right">
<view> <view>
<up-checkbox-group><up-checkbox label="免桌位费" v-model:checked="vdata.isTableFee" activeColor="#0FC161" shape="circle" @change="isTableFeeChange"> </up-checkbox></up-checkbox-group> <up-checkbox-group><up-checkbox label="免桌位费" v-model:checked="vdata.isTableFee" activeColor="#0FC161" shape="circle" @change="isTableFeeChange"> </up-checkbox></up-checkbox-group>
</view></up-icon> </view>
</view> </view>
</view> </view>
<view class="page-cell m"> <view class="page-cell m">