This commit is contained in:
YeMingfei666 2024-10-09 17:46:32 +08:00
commit 13e851da4f
14 changed files with 1788 additions and 145 deletions

View File

@ -32,11 +32,11 @@ export function tbPrintMachineGet(params) {
})
}
// 修改打印机状态
export function shopConfigprinter(params) {
export function shopConfigprinter(data) {
return request({
url: '/api/shop-config/printer',
method: 'put',
params
url: '/api/shop-config/printer/update-status',
method: 'post',
data
})
}

View File

@ -10,6 +10,14 @@ export function summaryTrade(data) {
}
})
}
// 耗材报损
export function tbConsInfoFlowfrmLoss(data) {
return request({
url: '/api/tbConsInfoFlow/frmLoss',
method: 'post',
data
})
}
// 销售排行榜
export function dateProduct(params) {
return request({
@ -33,6 +41,79 @@ export function tbPlussShopStaffDetail(id) {
method: "get"
});
}
// 新增耗材类型
export function tbConsType(data) {
return request({
url: '/api/tbConsType ',
method: 'post',
data
})
}
// 编辑耗材类型
export function tbConsTypeput(data) {
return request({
url: '/api/tbConsInfo ',
method: "put",
data
});
}
// 获取耗材类型列表
export function tbConsTypeList(params) {
return request({
url: '/api/tbConsType',
method: 'get',
params
})
}
// 修改耗材类型
export function edittbConsTypeput(data) {
return request({
url: '/api/tbConsType ',
method: "put",
data
});
}
// 添加耗材列表
export function tbConsInfoAddlist(data) {
return request({
url: '/api/tbConsInfo ',
method: 'post',
data
})
}
// 操作耗材入库
export function tbConsInfostockInOut(data) {
return request({
url: '/api/tbConsInfo/stockInOut ',
method: 'post',
data
})
}
// 获取耗材列表
export function tbConsInfoList(params) {
return request({
url: '/api/tbConsInfo',
method: 'get',
params
})
}
// 耗材盘点
export function tbConsInfotbConCheck(data) {
return request({
url: '/api/tbConCheck ',
method: 'post',
data
})
}
// 获取供应商列表
export function tbShopPurveyor(params) {
return request({
url: '/api/tbShopPurveyor',
method: 'get',
params
})
}
// 桌型列表
export function callTable(params) {
return request({
@ -119,3 +200,11 @@ export function tbPlussShopStaff(data) {
data
});
}
// 耗材列表
export function viewConInfoFlowget(data) {
return request({
url: `/api/viewConInfoFlow/get`,
method: 'post',
data
});
}

View File

@ -0,0 +1,207 @@
<template>
<view class="topTitle">
耗材信息
</view>
<view class="addConsumables">
<ul>
<li>
<view>
单位
</view>
<view>
<input type="text" placeholder="请输入单位" v-model="datas.form.conUnit" name="" id="">
</view>
</li>
<li>
<view>
耗材名称
</view>
<view>
<input type="text" placeholder="请输入耗材名称" v-model="datas.form.conName" name="" id="">
</view>
</li>
<li>
<view>
耗材价格
</view>
<view>
<input type="text" placeholder="请输入耗材价格" v-model="datas.form.price" name="" id="">
</view>
</li>
<li>
<view>
预警值
</view>
<view>
<input type="text" placeholder="请输入预警值" v-model="datas.form.conWarning" name="" id="">
</view>
</li>
<li style="justify-content: space-between;">
<view>
耗材类型
</view>
<view style="width: 54%;" @tap="datas.showStatus = !datas.showStatus">
{{datas.typelist[datas.nowStatusIndex]}}
</view>
<uni-icons type="bottom" size="16"></uni-icons>
</li>
</ul>
</view>
<view :style="{height:datas.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"
v-for="(item,index) in datas.typelist" :key="index">
<view :class="{'color-main':datas.nowStatusIndex===index}">{{item}}</view>
<uni-icons v-if="datas.nowStatusIndex===index" type="checkmarkempty" :color="color.ColorMain"></uni-icons>
</view>
<view :style="{height: '14px'}"></view>
</view>
<view class="bottombutton">
<up-button type="primary" style="background-color: #318AFE;color: #fff;" @tap="sumbit" :plain="true"
text="保存"></up-button>
</view>
</template>
<script setup>
import {
reactive,
computed,
onMounted
} from 'vue';
import {
tbConsTypeList,
tbConsInfoAddlist
} from '@/http/yskApi/requestAll.js';
import color from '@/commons/color.js';
import go from '@/commons/utils/go.js';
let datas = reactive({
form: {
conWarning: 999
},
showStatus: false,
list: [],
typelist: [],
nowStatusIndex: 0
})
// const props = defineProps({
// item: {
// type: String
// }
// })
onMounted(() => {
// console.log(props,'121')
// let obj = JSON.parse(props.item)
// console.log(obj,'121')
gettbConsTypeList()
})
let gettbConsTypeList = () => {
datas.typelist = []
tbConsTypeList({
page: 0,
size: 30,
shopId: uni.getStorageSync("shopId"),
}).then(res => {
datas.list = res.content
res.content.forEach(ele => {
datas.typelist.push(ele.conTypeName)
})
})
}
let sumbit = () => {
tbConsInfoAddlist([{
...datas.form,
shopId: uni.getStorageSync("shopId"),
conTypeId: datas.list[datas.nowStatusIndex].id
}]).then(res => {
go.to('PAGES_SALES_CONSUMABLES')
})
}
const statusHeight = computed(() => {
return 30 * datas.typelist.length + 14 + 'px'
})
function changeNowStatusIndex(i) {
datas.nowStatusIndex = i
datas.showStatus = false
}
</script>
<style scoped lang="less">
page {
background-color: #f9f9f9;
}
ul,
li {
list-style: none;
padding: 0;
}
.topTitle {
font-weight: 400;
font-size: 32rpx;
color: #333333;
margin: 32rpx 28rpx;
}
.addConsumables {
width: 694rpx;
height: 640rpx;
background: #FFFFFF;
border-radius: 18rpx 18rpx 18rpx 18rpx;
margin: 32rpx;
padding: 1rpx 24rpx;
box-sizing: border-box;
>ul {
>li {
width: 646rpx;
height: 84rpx;
background: #fcfcfc;
border: 2rpx solid #F9F9F9;
margin-top: 32rpx;
.df;
>view:first-child {
width: 190rpx;
height: 84rpx;
line-height: 84rpx;
// text-align: left;
padding-left: 24rpx;
background: #F9F9F9;
border-radius: 8rpx 0rpx 0rpx 8rpx;
border: 2rpx solid #F9F9F9;
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400;
font-size: 32rpx;
color: #333333;
}
}
}
}
.bottombutton {
margin-top: 84rpx;
>button {
width: 530rpx;
height: 80rpx;
border-radius: 56rpx 56rpx 56rpx 56rpx;
}
}
.status {
margin: 0 32rpx;
position: absolute;
// top: 100%;
left: 0;
right: 0;
z-index: 10;
background-color: #fff;
}
.df() {
display: flex;
align-items: center;
}
</style>

220
pageConsumables/addType.vue Normal file
View File

@ -0,0 +1,220 @@
<template>
<ul class="addType">
<li v-for="item in datas.list">
<view class="">
{{item.conTypeName}}<up-icon color="#64A7FE" name="edit-pen" @tap="showoneEvent(item)"></up-icon>
</view>
<view class="">
是否启用
<up-switch checked="true" activeValue="1" inactiveValue="0" @change="switchChangeEvent($event,item)"
:modelValue="item.status" style="transform:scale(0.7)" />
</view>
</li>
</ul>
<view class="bottombutton">
<up-button type="primary" style="background-color: #318AFE;color: #fff;margin-top: 100rpx;"
@tap="datas.showtwo=true" :plain="true" text="添加"></up-button>
</view>
<!-- 新增类别 -->
<up-popup :show="datas.showtwo" :round="18" mode="center" @close="close">
<view class="zhezhaopops">
<view class="">
<span></span>
<span>新增类别</span>
<up-icon @tap="datas.showtwo=false" name="close-circle-fill"></up-icon>
</view>
<view class="">
耗材类型名称<input type="text" v-model="datas.conTypeName" />
</view>
<view class="">
是否禁用
<up-switch checked="true" activeValue="1" inactiveValue="0" @change="switchChange"
:modelValue="datas.status" style="transform:scale(0.7)" />
</view>
<up-button text="确认" @tap="confirmtow" type="primary" class="buttomStyle" shape="circle"></up-button>
</view>
</up-popup>
<!-- 编辑 -->
<up-popup :show="datas.showone" :round="18" mode="center" @close="close">
<view class="zhezhaopops" style="height: 466rpx;">
<view class="">
<span></span>
<span>编辑类别</span>
<up-icon @tap="datas.showone=false" name="close-circle-fill"></up-icon>
</view>
<view class="">
耗材类型名称<input type="text" v-model="datas.conTypeName" />
</view>
<up-button text="确认" @tap="confirmone" type="primary" class="buttomStyle" shape="circle"></up-button>
</view>
</up-popup>
</template>
<script setup>
import {
onMounted,
reactive
} from 'vue';
import {
tbConsTypeList,
tbConsType,
edittbConsTypeput
} from '@/http/yskApi/requestAll.js';
let datas = reactive({
list: [],
showtwo: false,
conTypeName: "",
status: "0",
showone: false,
activeData: ""
})
onMounted(() => {
gettbConsTypeList()
})
let showoneEvent = (d) => {
datas.showone = true
datas.conTypeName = d.conTypeName
datas.activeData = d
}
let switchChange = (d) => {
datas.status = d
}
let switchChangeEvent = (d, item) => {
let obj = {
...item
}
obj.status = d
edittbConsTypeput(obj).then(res => {
gettbConsTypeList()
})
}
function confirmtow() {
tbConsType({
conTypeName: datas.conTypeName,
shopId: uni.getStorageSync("shopId"),
status: datas.status
}).then(res => {
datas.showtwo = false
datas.conTypeName = ""
datas.status = 0
gettbConsTypeList()
})
}
let confirmone = () => {
edittbConsTypeput({
...datas.activeData,
conTypeName:datas.conTypeName
}).then(res => {
gettbConsTypeList()
datas.showone = false
})
}
let close = () => {
datas.conName = ""
datas.status = "0"
}
let gettbConsTypeList = () => {
datas.typeLists = ['全部']
tbConsTypeList({
page: 0,
size: 30,
shopId: uni.getStorageSync("shopId"),
}).then(res => {
datas.list = res.content
})
}
</script>
<style scoped lang="less">
page {
background-color: #f9f9f9;
padding: 0 28rpx;
}
ul,
li {
list-style: none;
padding: 0;
}
.addType {
>li {
height: 104rpx;
background: #FFFFFF;
border-radius: 10rpx 10rpx 10rpx 10rpx;
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 32rpx;
padding: 0 24rpx;
>view {
display: flex;
align-items: center;
}
}
}
.zhezhaopops {
padding: 34rpx 32rpx;
width: 594rpx;
height: 566rpx;
background: #FFFFFF;
border-radius: 18rpx 18rpx 18rpx 18rpx;
>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;
}
}
>view:nth-child(2) {
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: bold;
font-size: 14px;
color: #333333;
margin-top: 64rpx;
>input {
margin-top: 24rpx;
width: 492rpx;
height: 84rpx;
background: #FFFFFF;
border-radius: 8rpx 8rpx 8rpx 8rpx;
border: 2rpx solid #E5E5E5;
font-weight: 500;
font-size: 28rpx;
color: #333333;
}
}
>view:nth-child(3) {
margin-top: 48rpx;
.df;
justify-content: space-between;
}
.buttomStyle {
margin-top: 48rpx;
width: 506rpx;
height: 80rpx;
}
}
.df() {
display: flex;
align-items: center;
}
</style>

View File

@ -0,0 +1,108 @@
<template>
<view class="action-sheet" @tap="close" v-if="show">
<view class="box">
<slot name="title">
</slot>
<view class="item" @tap.stop="itemClick(index)" v-for="(item,index) in props.list" :key="index">
<button class="bg-fff btn" hover-class="btn-hover-class" :style="{color:index==0?'red':''}" :class="{'color-main':active==index}">{{item}}</button>
</view>
<view class="bock-gary"></view>
<view class="cancel-btn" @tap="close">
<button>取消</button>
</view>
</view>
</view>
</template>
<script setup>
import { ref } from 'vue';
const props=defineProps({
//
active:{
type:Number,
default:-1
},
autoClose:{
type:Boolean,
default:true
},
title:{
type:String,
default:'耗材报损'
},
list:{
type:Array,
default:['编辑','删除']
},
show:{
type:Boolean,
default:false
}
})
const emits=defineEmits(['itemClick','close'])
let show=ref(false)
function open(){
show.value=true
}
function close(){
show.value=false
emits('close')
}
function itemClick(index){
if(props.autoClose){
close()
}
emits('itemClick',index)
}
defineExpose({
open,close
})
</script>
<style lang="scss">
$bg:rgb(240, 240, 240);
.action-sheet{
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
background-color: rgba(51,51,51,.5);
z-index: 999;
.box{
position: absolute;
left: 0;
right: 0;
bottom: 0;
border-radius: 20rpx 20rpx 0rpx 0rpx;
overflow: hidden;
background-color: #fff;
/* #ifndef H5 */
padding-bottom: calc(24rpx + constant(safe-area-inset-bottom));
padding-bottom: calc(24rpx + env(safe-area-inset-bottom));
/* #endif */
.item{
text-align: center;
font-size: 32rpx;
border-bottom: 1px solid $bg;
.btn{
border-radius: 0;
}
}
}
}
.bock-gary{
background-color: $bg;
height: 20rpx;
}
.cancel-btn{
text-align: center;
font-size: 32rpx;
}
.btn-hover-class{
background-color: rgb(222, 222, 222);
}
</style>

View File

@ -0,0 +1,364 @@
<template>
<up-popup customStyle="overflow: hidden;" :show="show" round="20" mode="bottom" @close="close" @open="open">
<view class="reportDamage">
<view class="reportDamage_head">
<view class="reportDamage_title">{{title}}</view>
<up-icon name="close-circle-fill" color="#333" size="25" @tap="close"></up-icon>
</view>
<view class="reportDamage_content">
<view class="reportDamage_cell">
<view class="cell_lable">
<up-image v-if="type=='product'" class="thumbnail" radius="10" :show-loading="true"
:src="item.coverImg"></up-image>
<view>{{item.name}}</view>
</view>
<view class="cell_value">
<up-icon name="minus-circle" color="#999" size="25" @tap="minus"></up-icon>
<view class="text">{{vdata.stockNumber}}</view>
<up-icon name="plus-circle-fill" color="#318AFE" size="25" @tap="plus"></up-icon>
</view>
</view>
<view class="reportDamage_cell">
<view class="cell_lable">商品单位</view>
<view class="cell_value">
<view>{{item.unit}}</view> <up-icon name="arrow-right" color="#999999" size="15"></up-icon>
</view>
</view>
<view class="reportDamage_cell">
<view class="cell_lable">报损图片</view>
<view class="cell_value file">
<view class="file_img" v-for="(item,index) in vdata.imgUrlList">
<up-image class="file_img_item" :show-loading="true" :src="item"></up-image>
<view class="del" @tap="del(index)">
<up-icon name="trash" color="#fff" size="25" @tap="plus"></up-icon>
</view>
</view>
<view class="file" @tap="chooseAndUploadAvatar()">
<up-icon name="camera-fill" color="#E5E5E5" size="35"></up-icon>
</view>
</view>
</view>
</view>
<view class="reportDamage_footer">
<view class="reportDamage_btn" @tap="affirm">确认</view>
</view>
</view>
</up-popup>
</template>
<script setup>
import {
computed,
ref,
reactive,
onMounted,
watch
} from 'vue';
import {
$uploadFile
} from '@/http/yskApi/file.js'
// import { consumableBreakage , productBreakage } from '@/http/yskApi/breakage.js'
import {
tbConsInfoFlowfrmLoss
} from '@/http/yskApi/requestAll.js';
const props = defineProps({
show: {
type: Boolean,
default: false
},
type: {
type: String,
default: ""
},
title: {
type: String,
default: ""
},
item: {
type: Object,
},
})
const emits = defineEmits(['close', 'open', "affirm"])
const vdata = reactive({
stockNumber: 1,
imgUrlList: [],
})
let show = ref(props.show)
let type = ref(props.type)
let itemData = ref(props.item)
watch(() => props.show, (newval) => {
show.value = newval
})
onMounted(() => {
})
function close() {
show.value = false;
vdata.imgUrlList = [];
vdata.stockNumber = 1;
emits('close')
}
/**
* 打开报损弹窗
*/
function open() {
show.value = true;
emits('open')
}
/**
* 报损数量减少
*/
function minus() {
if (vdata.stockNumber <= 1) {
return;
}
vdata.stockNumber--;
}
/**
* 报损数量增加
*/
function plus() {
vdata.stockNumber++;
}
/**
* 删除报损图片
*/
function del(index) {
vdata.imgUrlList.splice(index, 1)
}
/**
* 上传报损图片
*/
function chooseAndUploadAvatar() {
if (vdata.imgUrlList.length >= 6) {
uni.showToast({
title: '最多只可以上传六张',
icon: 'none'
})
return;
}
//
uni.chooseImage({
count: 1, // 1
sizeType: ['original', 'compressed'], //
sourceType: ['album', 'camera'], //
success: (res) => {
let file = res.tempFiles[0];
console.log(res)
$uploadFile(file).then(res => {
console.log(res);
vdata.imgUrlList.push(res.data[0])
}).catch(res => {
console.log(res);
if (res.errMsg) {
uni.showToast({
title: '图片大小超出限制',
icon: 'error'
})
}
})
},
fail: chooseImageError => {
//
console.log('choose image fail:', chooseImageError);
}
});
}
/**
* 确认
*/
function affirm() {
let params = {
coverImg: vdata.imgUrlList,
consId: itemData.value.consId,
amount: vdata.stockNumber,
shopId: uni.getStorageSync("shopId"),
}
tbConsInfoFlowfrmLoss(params).then((res) => {
show.value = false;
vdata.imgUrlList = [];
vdata.stockNumber = 1;
})
}
defineExpose({
close,
open,
affirm
})
</script>
<style lang="scss">
.mask {
background-color: rgba(51, 51, 51, .5);
}
::v-deep .u-popup__content {
// background-color: transparent;
}
.reportDamage {
width: 100%;
display: flex;
flex-direction: column;
.reportDamage_head {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
padding: 32rpx;
box-sizing: border-box;
background: #F4F4F4;
.reportDamage_title {
font-weight: bold;
font-size: 32rpx;
color: #333333;
}
}
.reportDamage_content {
display: flex;
flex-direction: column;
background-color: #fff;
.reportDamage_cell {
display: flex;
align-items: center;
justify-content: space-between;
padding: 32rpx;
box-sizing: border-box;
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 500;
font-size: 28rpx;
color: #333333;
border-bottom: 2rpx solid #E5E5E5;
.cell_lable {
display: flex;
align-items: center;
flex-shrink: 0;
.thumbnail {
width: 112rpx;
height: 112rpx;
margin-right: 24rpx;
}
::v-deep .u-image,
.u-image__loading,
.u-image__image {
width: 100% !important;
height: 100% !important;
}
::v-deep uni-image {
width: 112rpx !important;
height: 112rpx !important;
}
}
.cell_value {
display: flex;
align-items: center;
justify-content: flex-end;
flex-wrap: wrap;
.text {
margin-left: 20rpx;
margin-right: 20rpx;
}
.file {
padding: 30rpx;
border-radius: 8rpx 8rpx 8rpx 8rpx;
border: 2rpx solid #E5E5E5;
box-sizing: border-box;
margin-left: 20rpx;
}
.file_img {
width: 120rpx;
height: 120rpx;
margin-left: 20rpx;
margin-bottom: 20rpx;
position: relative;
border-radius: 10rpx;
overflow: hidden;
.del {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.2);
display: flex;
align-items: center;
justify-content: center;
}
.file_img_item {
width: 120rpx;
height: 120rpx;
}
::v-deep .u-image,
.u-image__loading,
.u-image__image {
width: 100% !important;
height: 100% !important;
}
::v-deep uni-image {
width: 120rpx !important;
height: 120rpx !important;
}
}
}
.cell_value.file {
// flex-direction: row-reverse;
// justify-content: flex-start;
}
}
.reportDamage_cell:last-child {
border-bottom: none;
}
}
.reportDamage_footer {
background-color: #fff;
padding: 32rpx;
padding-bottom: 68rpx;
box-sizing: border-box;
}
.reportDamage_btn {
width: 100%;
height: 80rpx;
line-height: 80rpx;
text-align: center;
background: #318AFE;
border-radius: 40rpx 40rpx 40rpx 40rpx;
font-weight: 500;
font-size: 32rpx;
color: #FFFFFF;
}
}
</style>

View File

@ -0,0 +1,208 @@
<template>
<view class="topTitle">
耗材信息
</view>
<view class="addConsumables">
<ul>
<li>
<view>
单位
</view>
<view>
<input type="text" placeholder="请输入单位" v-model="datas.form.conUnit" name="" id="">
</view>
</li>
<li>
<view>
耗材名称
</view>
<view>
<input type="text" placeholder="请输入耗材名称" v-model="datas.form.conName" name="" id="">
</view>
</li>
<li>
<view>
耗材价格
</view>
<view>
<input type="text" placeholder="请输入耗材价格" v-model="datas.form.price" name="" id="">
</view>
</li>
<li>
<view>
预警值
</view>
<view>
<input type="text" placeholder="请输入预警值" v-model="datas.form.conWarning" name="" id="">
</view>
</li>
<!-- <li style="justify-content: space-between;">
<view>
耗材类型
</view>
<view style="width: 54%;" @tap="datas.showStatus = !datas.showStatus">
{{datas.typelist[datas.nowStatusIndex]}}
</view>
<uni-icons type="bottom" size="16"></uni-icons>
</li> -->
</ul>
</view>
<!-- <view :style="{height:datas.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"
v-for="(item,index) in datas.typelist" :key="index">
<view :class="{'color-main':datas.nowStatusIndex===index}">{{item}}</view>
<uni-icons v-if="datas.nowStatusIndex===index" type="checkmarkempty" :color="color.ColorMain"></uni-icons>
</view>
<view :style="{height: '14px'}"></view>
</view> -->
<view class="bottombutton">
<up-button type="primary" style="background-color: #318AFE;color: #fff;" @tap="sumbit" :plain="true"
text="保存"></up-button>
</view>
</template>
<script setup>
import {
reactive,
computed,
onMounted
} from 'vue';
import {
tbConsTypeList,
tbConsTypeput
} from '@/http/yskApi/requestAll.js';
import color from '@/commons/color.js';
import go from '@/commons/utils/go.js';
let datas = reactive({
form: {
conWarning: 999
},
showStatus: false,
list: [],
typelist: [],
nowStatusIndex: 0
})
const props = defineProps({
item: {
type: String
}
})
onMounted(() => {
let obj = JSON.parse(props.item)
datas.form = obj
gettbConsTypeList()
})
let gettbConsTypeList = () => {
datas.typelist = []
tbConsTypeList({
page: 0,
size: 30,
shopId: uni.getStorageSync("shopId"),
}).then(res => {
datas.list = res.content
res.content.forEach(ele => {
datas.typelist.push(ele.conTypeName)
})
})
}
let sumbit = () => {
tbConsTypeput([{
...datas.form,
shopId: uni.getStorageSync("shopId"),
conTypeId: datas.list[datas.nowStatusIndex].id,
id: datas.form.consId
}]).then(res => {
go.to('PAGES_SALES_CONSUMABLES')
})
}
const statusHeight = computed(() => {
return 30 * datas.typelist.length + 14 + 'px'
})
function changeNowStatusIndex(i) {
datas.nowStatusIndex = i
datas.showStatus = false
}
</script>
<style scoped lang="less">
page {
background-color: #f9f9f9;
}
ul,
li {
list-style: none;
padding: 0;
}
.topTitle {
font-weight: 400;
font-size: 32rpx;
color: #333333;
margin: 32rpx 28rpx;
}
.addConsumables {
width: 694rpx;
height: 540rpx;
background: #FFFFFF;
border-radius: 18rpx 18rpx 18rpx 18rpx;
margin: 32rpx;
padding: 1rpx 24rpx;
box-sizing: border-box;
>ul {
>li {
width: 646rpx;
height: 84rpx;
background: #fcfcfc;
border: 2rpx solid #F9F9F9;
margin-top: 32rpx;
.df;
>view:first-child {
width: 190rpx;
height: 84rpx;
line-height: 84rpx;
// text-align: left;
padding-left: 24rpx;
background: #F9F9F9;
border-radius: 8rpx 0rpx 0rpx 8rpx;
border: 2rpx solid #F9F9F9;
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400;
font-size: 32rpx;
color: #333333;
}
}
}
}
.bottombutton {
margin-top: 84rpx;
>button {
width: 530rpx;
height: 80rpx;
border-radius: 56rpx 56rpx 56rpx 56rpx;
}
}
.status {
margin: 0 32rpx;
position: absolute;
// top: 100%;
left: 0;
right: 0;
z-index: 10;
background-color: #fff;
}
.df() {
display: flex;
align-items: center;
}
</style>

View File

@ -1,24 +1,35 @@
<template>
<view class="ConsumablesTop">
<view>
货品类别
<view @tap="showStatus = !showStatus">
{{datas.title}}
</view>
<view>
搜索货品ID/货品编码
<input v-model="datas.conName" @input="inputEvent" type="text" placeholder="搜索货品ID/货品编码" />
</view>
<view>
<view @tap="toUrl('PAGES_ADD_TYPE') ">
新增类别
</view>
</view>
<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"
v-for="(item,index) in datas.typeLists" :key="index">
<view :class="{'color-main':nowStatusIndex===index}">{{item}}</view>
<uni-icons v-if="nowStatusIndex===index" type="checkmarkempty" :color="color.ColorMain"></uni-icons>
</view>
<view :style="{height: '14px'}"></view>
</view>
<ul class="ConsumablesConent">
<li>
<li v-for="(item,index) in datas.list" :key="index">
<view>
吸管 <view> 分类 </view>
{{item.conName}}
<view> {{item.conTypeName}} </view>
</view>
<view>
<view>
<view style="color: #333333;">
{{item.conUnit}}
</view>
<view>
耗材单位
@ -26,71 +37,193 @@
</view>
<view>
<view style="color: #318AFE;">
{{item.balance}}
</view>
<view>
耗材单位
剩余库存
</view>
</view>
</view>
<view>
<view class="">
已绑定商品(10)
所属商品: {{ filtersSproductId(item.productId)}}
</view>
<view class="">
<up-button type="primary" color="#999" :plain="true" text="查看记录"></up-button>
<up-button type="primary" @click="toggle" :plain="true" text="更多操作"></up-button>
<up-button type="primary" color="#999" @tap="toUrl('PAGES_VIEWRECORDS',{item:JSON.stringify(item)})" :plain="true" text="查看记录"></up-button>
<up-button type="primary" @click="toggle(item)" :plain="true" text="更多操作"></up-button>
</view>
</view>
</li>
</ul>
<view class="ConsumablesBottom">
<view class="">
<view @tap="toUrl('PAGES_ADD_CONSUMABLES')">
新增耗材
</view>
<view class="">
<view @tap="toUrl">
供应商管理
</view>
</view>
<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>
</template>
<script setup>
import myActionSheet from '@/components/my-components/my-action-sheet';
import myActionSheet from './components/my-action-sheet';
import myReportDamage from './components/my-reportDamage';
import color from '@/commons/color.js';
import {
ref,
reactive
reactive,
onMounted,
computed
} from 'vue';
import go from '@/commons/utils/go.js';
import {
viewConInfoFlowget,
tbConsType,
tbConsTypeList
} from '@/http/yskApi/requestAll.js';
let reportDamage = ref(null)
let refMoreSheet = ref(null)
const actionSheet = reactive({
list: ['报损', '编辑', '清点', '入库', '出库']
const report = reactive({
data: {
// thumbnail: 'https://cashier-oss.oss-cn-beijing.aliyuncs.com/upload/20240918/a17a62b7b55a4b65a2a2542050672b34.png',
name: "美式咖啡",
// title: "",
unit: "杯",
},
})
let datas = reactive({
list: [],
conName: "",
showtwo: false,
status: '0',
//
typeList: [],
//
typeLists: ['全部'],
title: '耗材类型'
})
const statusHeight = computed(() => {
return 30 * datas.typeLists.length + 14 + 'px'
})
let toggle = () => {
refMoreSheet.value.open()
}
let sheetClick = (index) => {
console.log(index)
if (index == 0) {} else if (index == 1) {
const actionSheet = reactive({
list: ['报损', '编辑', '清点', '入库', '出库', ],
activeId: null,
active: ""
})
let showStatus = ref(false)
let nowStatusIndex = ref(0)
onMounted(() => {
getList()
//
gettbConsTypeList()
})
function changeNowStatusIndex(i) {
nowStatusIndex.value = i
showStatus.value = false
if (i == 0) {
datas.title = '全部'
getList()
} else {
datas.title = datas.typeList[i - 1].conTypeName
getList(datas.typeList[i - 1].id)
}
}
let gettbConsTypeList = () => {
datas.typeLists = ['全部']
tbConsTypeList({
page: 0,
size: 30,
shopId: uni.getStorageSync("shopId"),
}).then(res => {
datas.typeList = res.content
res.content.forEach(ele => {
datas.typeLists.push(ele.conTypeName)
})
})
}
/**
* 报损确认
*/
function affirm() {
console.log(2)
}
let toggle = (d) => {
refMoreSheet.value.open()
actionSheet.activeId = d.consId
report.data.consId = d.consId
actionSheet.active = d
}
let sheetClick = (index) => {
if (index == 0) {
//
reportDamage.value.open();
report.data.name = actionSheet.active.conName
report.data.unit = actionSheet.active.conUnit
} else if (index == 1) {
toUrl('PAGES_EDIT_CONSUMABLES', {
item: JSON.stringify(actionSheet.active)
})
} else if (index == 2) {
toUrl('PAGES_SALES_INVENTORYCHECK')
toUrl('PAGES_SALES_INVENTORYCHECK', {
item: JSON.stringify(actionSheet.active)
})
} else if (index == 3) {
toUrl('PAGES_SALES_WAREHOUSEENTRY')
toUrl('PAGES_SALES_WAREHOUSEENTRY', {
consId: actionSheet.activeId
})
} else if (index == 4) {
toUrl('PAGES_SALES_OUTBOUND')
toUrl('PAGES_SALES_OUTBOUND', {
consId: actionSheet.activeId
})
}
}
let toUrl = (url) => {
go.to(url)
async function getList(d = "") {
viewConInfoFlowget({
shopId: uni.getStorageSync("shopId"),
conName: datas.conName,
conTypeId: d
}).then(res => {
datas.list = res.content
})
}
function inputEvent(d) {
datas.conName = d.detail.value
getList()
}
function filtersSproductId(d) {
if (!d) return ''
const dataArr = d.split(',')
let str = ''
dataArr.forEach(ele => {
const startIndex = ele.indexOf('_')
// const productId = ele.slice(0, startIndex)
const productName = ele.slice(startIndex + 1, ele.length)
str = productName + ',' + str
})
return str
}
let toUrl = (url, d) => {
go.to(url, d)
}
</script>
<style scoped lang="less">
page{
page {
background-color: #f9f9f9;
}
ul,
li {
list-style: none;
@ -102,6 +235,7 @@
justify-content: space-around;
align-items: center;
padding-bottom: 22rpx;
background-color: #fff;
>view:first-child,
>view:last-child {
@ -119,6 +253,9 @@
width: 414rpx;
height: 60rpx;
line-height: 60rpx;
display: flex;
align-items: center;
background: #F9F9F9;
border-radius: 32rpx 32rpx 32rpx 32rpx;
@ -262,6 +399,16 @@
}
}
.status {
position: absolute;
// top: 100%;
left: 0;
right: 0;
z-index: 10;
background-color: #fff;
}
.df() {
display: flex;
align-items: center;

View File

@ -3,18 +3,10 @@
<ul>
<li>
<view>
耗材名称
账存数量
</view>
<view>
耗材
</view>
</li>
<li>
<view>
账户库存
</view>
<view>
耗材
{{datas.item.balance}}
</view>
</li>
<li>
@ -22,7 +14,23 @@
实际数量
</view>
<view>
<input type="text" placeholder="输入数量" name="" id="">
<input type="text" v-model="datas.form.balance" placeholder="输入数量" name="" id="">
</view>
</li>
<li>
<view>
单价
</view>
<view>
{{datas.item.price}}
</view>
</li>
<li>
<view>
盈亏数量
</view>
<view>
{{profitNumber}}
</view>
</li>
<li>
@ -30,24 +38,16 @@
总盈亏
</view>
<view>
<input type="text" placeholder="输入总价值(元)" name="" id="">
{{profitPrice}}
</view>
</li>
</ul>
<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"
v-for="(item,index) in status" :key="index">
<view :class="{'color-main':nowStatusIndex===index}">{{item}}</view>
<uni-icons v-if="nowStatusIndex===index" type="checkmarkempty" :color="color.ColorMain"></uni-icons>
</view>
<view :style="{height: '14px'}"></view>
</view>
</view>
<view class="bottombutton">
<up-button type="primary" style="background-color: #318AFE;color: #fff;" @tap="toggle" :plain="true"
text="保存"></up-button>
<up-button type="text" style="background-color: #f9f9f9;color: #999;" @tap="toggle" :plain="true"
text="取消"></up-button>
<!-- <up-button type="text" style="background-color: #f9f9f9;color: #999;" @tap="toggle" :plain="true"
text="取消"></up-button> -->
</view>
</template>
@ -55,24 +55,79 @@
<script setup>
import {
ref,
computed
computed,
onMounted,
reactive
} from 'vue';
import go from '@/commons/utils/go.js';
import color from '@/commons/color.js';
import {
tbConsInfotbConCheck
} from '@/http/yskApi/requestAll.js';
let showStatus = ref(false)
const props = defineProps({
item: {
type: Object
}
})
let datas = reactive({
item: "",
form: {}
})
onMounted(() => {
datas.item = JSON.parse(props.item)
datas.form = {
...datas.item
}
})
let profitPrice = computed(() => {
//
// if (datas.item.balance < 0) {
// let a = datas.item.balance * -1
// return formatDecimal((a - datas.form.balance) * datas.item.price)
// } else {
return formatDecimal((datas.item.balance - datas.form.balance) * datas.item.price)
// }
})
let profitNumber = computed(() => {
//
return datas.item.balance - datas.form.balance
})
function toggle() {
tbConsInfotbConCheck({
stockNumber: datas.item.balance,
conInfoId: datas.form.consId,
lpNum: profitNumber._value
}).then(res => {
go.to('PAGES_SALES_CONSUMABLES')
})
}
/**
* 保留小数n位不进行四舍五入
* num你传递过来的数字,
* decimal你保留的几位,默认保留小数后两位
* isInt 是否保留0
*/
function formatDecimal(num = 0, decimal = 2, isInt = false) {
num = num.toFixed(3).toString();
const index = num.indexOf(".");
if (index !== -1) {
num = num.substring(0, decimal + index + 1);
} else {
num = num.substring(0);
}
//
if (isInt) {
return parseFloat(num);
} else {
return parseFloat(num).toFixed(decimal);
}
}
function showStatusToggle() {
showStatus.value = !showStatus.value
}
let nowStatusIndex = ref(0)
function changeNowStatusIndex(i) {
nowStatusIndex.value = i
showStatus.value = false
}
const status = ['开多钱', '好像上次', '海峡市场']
const statusHeight = computed(() => {
return 30 * status.length + 14 + 'px'
})
</script>
<style scoped lang="less">
@ -94,7 +149,7 @@
.status {
margin: 0 32rpx;
position: absolute;
left: 0;
right: 0;
z-index: 10;
@ -103,7 +158,7 @@
.warehouseEntry {
width: 694rpx;
height: 496rpx;
height: 650rpx;
background: #FFFFFF;
border-radius: 18rpx 18rpx 18rpx 18rpx;
margin: 32rpx;

View File

@ -1,52 +1,52 @@
<template>
<view class="warehouseEntry">
<ul>
<li>
<view>
耗材名称
</view>
<view>
耗材
</view>
</li>
<li>
<view>
现有库存
</view>
<view>
耗材
</view>
</li>
<li>
<view>
出库数量
</view>
<view>
<input type="text" placeholder="输入数量" name="" id="">
<input type="text" placeholder="请输入数量" v-model="datas.form.list.stockNumber" name="" id="">
</view>
</li>
<li>
<view>
进价
</view>
<view>
<input type="text" placeholder="请输入进价(元)" v-model="datas.form.list.price" name="" id="">
</view>
</li>
<li>
<view>
应付金额
</view>
<view>
{{datas.form.list.stockNumber*datas.form.list.price|0}}
</view>
</li>
<li>
<view>
实付金额
</view>
<view>
<input placeholder="请输入现有库存" type="text" v-model="datas.form.actualPayment" />
</view>
</li>
<!-- <li>
<view>
总价值
</view>
<view>
<input type="text" placeholder="输入总价值(元)" name="" id="">
<input type="text" placeholder="输入总价值(元)" name="" id="">
</view>
</li>
<li>
<view>
单价
</view>
<view>
耗材
</view>
</li>
</li> -->
<li style="justify-content: space-between;">
<view>
供应商
</view>
<view style="width: 54%;" @tap="showStatusToggle">
{{status[nowStatusIndex]}}
{{datas.status[nowStatusIndex]}}
</view>
<uni-icons type="bottom" size="16"></uni-icons>
<up-button type="text" style="color: #318AFE;width: 64rpx;" @tap="toggle" :plain="true"
@ -55,7 +55,7 @@
</ul>
<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"
v-for="(item,index) in status" :key="index">
v-for="(item,index) in datas.status" :key="index">
<view :class="{'color-main':nowStatusIndex===index}">{{item}}</view>
<uni-icons v-if="nowStatusIndex===index" type="checkmarkempty" :color="color.ColorMain"></uni-icons>
</view>
@ -63,10 +63,10 @@
</view>
</view>
<view class="bottombutton">
<up-button type="primary" style="background-color: #318AFE;color: #fff;" @tap="toggle" :plain="true"
<up-button type="primary" style="background-color: #318AFE;color: #fff;" @tap="sumbit" :plain="true"
text="保存"></up-button>
<up-button type="text" style="background-color: #f9f9f9;color: #999;" @tap="toggle" :plain="true"
text="取消"></up-button>
<!-- <up-button type="text" style="background-color: #f9f9f9;color: #999;" @tap="toggle" :plain="true"
text="取消"></up-button> -->
</view>
</template>
@ -74,10 +74,51 @@
<script setup>
import {
ref,
computed
computed,
reactive,
onMounted
} from 'vue';
import color from '@/commons/color.js';
import go from '@/commons/utils/go.js';
import {
tbConsInfostockInOut,
tbConsInfoList,
tbShopPurveyor
} from '@/http/yskApi/requestAll.js';
let showStatus = ref(false)
let datas = reactive({
//
list: [],
//
status: [],
form: {
shopId: uni.getStorageSync("shopId"),
type: "out",
list: {},
actualPayment: 0
},
})
const props = defineProps({
consId: {
type: String
}
})
onMounted(() => {
getList()
})
function getList() {
tbShopPurveyor({
shopId: uni.getStorageSync("shopId"),
page: 0,
size: 100,
}).then(res => {
datas.list = res.content
res.content.forEach(ele => {
datas.status.push(ele.purveyorName)
})
})
}
function showStatusToggle() {
showStatus.value = !showStatus.value
@ -88,9 +129,22 @@
nowStatusIndex.value = i
showStatus.value = false
}
const status = ['开多钱', '好像上次', '海峡市场']
function sumbit() {
datas.form.list.conInfoId = props.consId
datas.form.list = [datas.form.list]
tbConsInfostockInOut({
...datas.form,
// id
supplierId: datas.list[nowStatusIndex.value].id,
accountsPayable: datas.form.list[0].stockNumber * datas.form.list[0].price,
}).then(res => {
go.to('PAGES_SALES_CONSUMABLES')
})
}
//
const statusHeight = computed(() => {
return 30 * status.length + 14 + 'px'
return 30 * datas.status.length + 14 + 'px'
})
</script>
@ -122,7 +176,7 @@
.warehouseEntry {
width: 694rpx;
height: 740rpx;
height: 640rpx;
background: #FFFFFF;
border-radius: 18rpx 18rpx 18rpx 18rpx;
margin: 32rpx;

View File

@ -0,0 +1,112 @@
<template>
<ul class="viewrecords">
<li v-for="item in datas.list" :key="item.id">
<view class="">
<view class="">
{{item.conName}}
</view>
<view class="">
{{item.createTime}}
</view>
</view>
<view class="">
<view class="">
<view class="">
{{item.balance}}
</view>
<view style="font-size: 24rpx;color: #666666;">
现有库存
</view>
</view>
<view class="">
<view class="">
{{ item.bizType }}{{ item.amount|0 }}
</view>
<view style="font-size: 24rpx;color: #666666;">
变动库存
</view>
</view>
</view>
</li>
</ul>
</template>
<script setup>
import {
onMounted,
reactive
} from 'vue';
import {
viewConInfoFlowget
} from '@/http/yskApi/requestAll.js';
let props = defineProps({
item: {
type: String
}
})
let datas = reactive({
list: []
})
onMounted(() => {
let items = JSON.parse(props.item)
getlist()
})
let getlist = () => {
viewConInfoFlowget({
page: 0,
shopId: uni.getStorageSync("shopId"),
size: 30,
sort: "createTime,desc"
}).then(res => {
datas.list = res.content
})
}
</script>
<style scoped lang="less">
page {
background-color: #f9f9f9;
}
ul,
li {
list-style: none;
padding: 0;
}
.viewrecords {
padding: 0 28rpx;
>li {
margin-top: 32rpx;
width: 694rpx;
height: 284rpx;
background: #FFFFFF;
border-radius: 10rpx 10rpx 10rpx 10rpx;
padding: 32rpx 16rpx;
box-sizing: border-box;
>view:first-child {
display: flex;
align-items: center;
justify-content: space-between;
font-weight: 400;
font-size: 28rpx;
color: #666666;
}
>view:last-child {
width: 622rpx;
height: 156rpx;
background: #F9F9F9;
border-radius: 12rpx 12rpx 12rpx 12rpx;
margin: 24rpx 16rpx;
align-items: center;
display: flex;
justify-content: space-around;
text-align: center;
}
}
}
</style>

View File

@ -1,52 +1,52 @@
<template>
<view class="warehouseEntry">
<ul>
<li>
<view>
耗材名称
</view>
<view>
耗材
</view>
</li>
<li>
<view>
现有库存
</view>
<view>
耗材
</view>
</li>
<li>
<view>
入库数量
</view>
<view>
<input type="text" placeholder="输入数量" name="" id="">
<input type="text" placeholder="请输入数量" v-model="datas.form.list.stockNumber" name="" id="">
</view>
</li>
<li>
<view>
进价
</view>
<view>
<input type="text" placeholder="请输入进价(元)" v-model="datas.form.list.price" name="" id="">
</view>
</li>
<li>
<view>
应付金额
</view>
<view>
{{datas.form.list.stockNumber*datas.form.list.price|0}}
</view>
</li>
<li>
<view>
实付金额
</view>
<view>
<input placeholder="请输入现有库存" type="text" v-model="datas.form.actualPayment" />
</view>
</li>
<!-- <li>
<view>
总价值
</view>
<view>
<input type="text" placeholder="输入总价值(元)" name="" id="">
<input type="text" placeholder="输入总价值(元)" name="" id="">
</view>
</li>
<li>
<view>
单价
</view>
<view>
耗材
</view>
</li>
</li> -->
<li style="justify-content: space-between;">
<view>
供应商
</view>
<view style="width: 54%;" @tap="showStatusToggle">
{{status[nowStatusIndex]}}
{{datas.status[nowStatusIndex]}}
</view>
<uni-icons type="bottom" size="16"></uni-icons>
<up-button type="text" style="color: #318AFE;width: 64rpx;" @tap="toggle" :plain="true"
@ -55,7 +55,7 @@
</ul>
<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"
v-for="(item,index) in status" :key="index">
v-for="(item,index) in datas.status" :key="index">
<view :class="{'color-main':nowStatusIndex===index}">{{item}}</view>
<uni-icons v-if="nowStatusIndex===index" type="checkmarkempty" :color="color.ColorMain"></uni-icons>
</view>
@ -63,10 +63,10 @@
</view>
</view>
<view class="bottombutton">
<up-button type="primary" style="background-color: #318AFE;color: #fff;" @tap="toggle" :plain="true"
<up-button type="primary" style="background-color: #318AFE;color: #fff;" @tap="sumbit" :plain="true"
text="保存"></up-button>
<up-button type="text" style="background-color: #f9f9f9;color: #999;" @tap="toggle" :plain="true"
text="取消"></up-button>
<!-- <up-button type="text" style="background-color: #f9f9f9;color: #999;" @tap="toggle" :plain="true"
text="取消"></up-button> -->
</view>
</template>
@ -74,10 +74,51 @@
<script setup>
import {
ref,
computed
computed,
reactive,
onMounted
} from 'vue';
import color from '@/commons/color.js';
import go from '@/commons/utils/go.js';
import {
tbConsInfostockInOut,
tbConsInfoList,
tbShopPurveyor
} from '@/http/yskApi/requestAll.js';
let showStatus = ref(false)
let datas = reactive({
//
list: [],
//
status: [],
form: {
shopId: uni.getStorageSync("shopId"),
type: "in",
list: {},
actualPayment: 0
},
})
const props = defineProps({
consId: {
type: String
}
})
onMounted(() => {
getList()
})
function getList() {
tbShopPurveyor({
shopId: uni.getStorageSync("shopId"),
page: 0,
size: 100,
}).then(res => {
datas.list = res.content
res.content.forEach(ele => {
datas.status.push(ele.purveyorName)
})
})
}
function showStatusToggle() {
showStatus.value = !showStatus.value
@ -88,9 +129,23 @@
nowStatusIndex.value = i
showStatus.value = false
}
const status = ['开多钱', '好像上次', '海峡市场']
function sumbit() {
datas.form.list.conInfoId = props.consId
datas.form.list = [datas.form.list]
tbConsInfostockInOut({
...datas.form,
// id
supplierId: datas.list[nowStatusIndex.value].id,
accountsPayable: datas.form.list[0].stockNumber * datas.form.list[0].price,
}).then(res => {
go.to('PAGES_SALES_CONSUMABLES')
})
}
//
const statusHeight = computed(() => {
return 30 * status.length + 14 + 'px'
return 30 * datas.status.length + 14 + 'px'
})
</script>
@ -122,7 +177,7 @@
.warehouseEntry {
width: 694rpx;
height: 740rpx;
height: 640rpx;
background: #FFFFFF;
border-radius: 18rpx 18rpx 18rpx 18rpx;
margin: 32rpx;

View File

@ -53,14 +53,14 @@
<radio value="1" :checked="form.classifyPrint == '1'" class="scale7" />
<text>部分分类</text>
</label>
<label class="radio u-m-r-60">
<!-- <label class="radio u-m-r-60">
<radio value="2" :checked="form.classifyPrint == '2'" class="scale7" />
<text>部分商品</text>
</label>
</label> -->
</radio-group>
</view>
</view>
<view class="u-p-b-24 u-m-b-24 border-bottom">
<!-- <view class="u-p-b-24 u-m-b-24 border-bottom">
<view class="title">桌台打印</view>
<view class="u-m-t-16">
<radio-group class="u-flex u-flex-wrap" @change="sizeChange($event,'tablePrint')">
@ -74,7 +74,7 @@
</label>
</radio-group>
</view>
</view>
</view> -->
<view class="u-p-b-24 u-m-b-24 border-bottom">
<view class="title">打印数量</view>
<view class="u-m-t-16">

View File

@ -1341,6 +1341,30 @@
"style": {
"navigationBarTitleText": "盘点"
}
}, {
"pageId": "PAGES_ADD_CONSUMABLES",
"path": "addConsumables",
"style": {
"navigationBarTitleText": "新增耗材"
}
}, {
"pageId": "PAGES_EDIT_CONSUMABLES",
"path": "editConsumables",
"style": {
"navigationBarTitleText": "编辑耗材"
}
}, {
"pageId": "PAGES_ADD_TYPE",
"path": "addType",
"style": {
"navigationBarTitleText": "新增类别"
}
}, {
"pageId": "PAGES_VIEWRECORDS",
"path": "viewrecords",
"style": {
"navigationBarTitleText": "查看详情"
}
}]
},