This commit is contained in:
Teng 2025-11-20 15:38:41 +08:00
commit 2d93dc8751
6 changed files with 53 additions and 19 deletions

View File

@ -182,14 +182,13 @@
cgdwflag.value = false; cgdwflag.value = false;
type.value = {}; type.value = {};
sx.value = false; sx.value = false;
gysidnum.value = 0
} }
}) })
const jssl=()=>{ const jssl=()=>{
let num = Number(props.caigouobj.upperLimit)-Number(props.caigouobj.kcsl); let num = Number(props.caigouobj.upperLimit)-Number(props.caigouobj.kcsl);
let m = Math.floor(num/type.value.num) let m = Math.floor(num/type.value.num)
console.log(m)
huansuan(m) huansuan(m)
console.log(stringShow.value)
} }
const huansuan=(m:number)=>{ const huansuan=(m:number)=>{
relNumber.value = m; relNumber.value = m;

View File

@ -215,6 +215,11 @@
getTreelnum() getTreelnum()
} }
} }
defineExpose({
typescroll,
config,
qingkong
})
</script> </script>
<style scoped lang="less"> <style scoped lang="less">

View File

@ -13,8 +13,9 @@
<image src="/static/index/procurement/sx.png" mode="aspectFill"></image> <image src="/static/index/procurement/sx.png" mode="aspectFill"></image>
筛选 筛选
</view> </view>
<view class="shx" @click="chongzhi"> <view class="shx" @click="chongzhi"
<image src="/static/index/procurement/sx.png" mode="aspectFill"></image> v-if="form.categoryId!=''||form.wlParamInfo!=''||form.suppliers!=''"
>
重置 重置
</view> </view>
<view class="back" @click="uni.navigateBack()"> <view class="back" @click="uni.navigateBack()">
@ -95,7 +96,7 @@
<calculator :show="addflag" @jjnum="jjnum" :caigouobj="caigouobj" @colse="qk" @right="right"></calculator> <calculator :show="addflag" @jjnum="jjnum" :caigouobj="caigouobj" @colse="qk" @right="right"></calculator>
<!-- 筛选 --> <!-- 筛选 -->
<view class="mengban" v-if="ification" @click="qk"></view> <view class="mengban" v-if="ification" @click="qk"></view>
<classification @confirm="confirm" :show="ification" :typenum="0"></classification> <classification @confirm="confirm" :show="ification" :typenum="0" ref="classication"></classification>
<!-- more --> <!-- more -->
<view class="mengban" v-if="Invenshow" @click="Invenshow = false;moredex=0"></view> <view class="mengban" v-if="Invenshow" @click="Invenshow = false;moredex=0"></view>
<Inventory @addcartory="addcartory" :show="Invenshow" :InvoicingList="Material" <Inventory @addcartory="addcartory" :show="Invenshow" :InvoicingList="Material"
@ -160,11 +161,8 @@
wlParamInfo: '', wlParamInfo: '',
isWaring: 1 isWaring: 1
}) })
const parentMethod = inject('typescroll','qingkong'); const classication = ref<InstanceType<typeof ChildComponent>>()
const chongzhi=()=>{
typescroll(1,-1,{});
qingkong()
}
onLoad(() => { onLoad(() => {
serverUrl.value = uni.getStorageSync('serverUrl') + '/sys/common/static/'; serverUrl.value = uni.getStorageSync('serverUrl') + '/sys/common/static/';
}) })
@ -241,6 +239,18 @@
queryInvo(); queryInvo();
qk() qk()
} }
const chongzhi=()=>{
form.categoryId = '';
form.typeId = '';
form.medicationId = '';
form.suppliers = '';
form.pageNo=1;
form.wlParamInfo= '',
InvoicingList.value = [];
classication.value.typescroll(1,-1,{});
classication.value.qingkong();
classication.value.config();
}
const search = (x : number) => { const search = (x : number) => {
if (x === 0) { form.wlParamInfo = '' } if (x === 0) { form.wlParamInfo = '' }
form.pageNo = 1; form.pageNo = 1;
@ -717,7 +727,7 @@
.ipt { .ipt {
display: flex; display: flex;
align-items: center; align-items: center;
width: 22vw; width: 24.2vw;
background: #E2E4E9; background: #E2E4E9;
border-radius: 1.65vw; border-radius: 1.65vw;
height: 3.3vw; height: 3.3vw;
@ -731,7 +741,7 @@
input { input {
width: 25vw; width: 25vw;
height: 3.3vw; height: 3.3vw;
font-size: 1.1vw; font-size: 1.5vw;
padding-left: 1.6vw; padding-left: 1.6vw;
} }
@ -771,7 +781,7 @@
height: 3.3vw; height: 3.3vw;
background: linear-gradient(-45deg, rgba(223, 244, 252, 1), rgba(204, 228, 249, 0.43)); background: linear-gradient(-45deg, rgba(223, 244, 252, 1), rgba(204, 228, 249, 0.43));
border: 1px solid #1083F8; border: 1px solid #1083F8;
margin: 0 1.2vw; margin: 0 0 0 1.2vw;
} }
.shx { .shx {
@ -787,6 +797,7 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
box-shadow: 0.5rpx 5rpx 5rpx #dadee1; box-shadow: 0.5rpx 5rpx 5rpx #dadee1;
margin: 0 0 0 1.2vw;
image { image {
width: 1.5vw; width: 1.5vw;

View File

@ -14,6 +14,11 @@
<image src="/static/index/procurement/sx.png" mode="aspectFill"></image> <image src="/static/index/procurement/sx.png" mode="aspectFill"></image>
筛选 筛选
</view> </view>
<view class="shx" @click="chongzhi"
v-if="form.categoryId!=''||form.wlParamInfo!=''||form.suppliers!=''"
>
重置
</view>
</view> </view>
<view class="rightbtn"> <view class="rightbtn">
<view @click="open = 1"> <view @click="open = 1">
@ -37,7 +42,7 @@
<!-- 筛选 --> <!-- 筛选 -->
<view class="mengban" v-if="ification" @click="ification = false"></view> <view class="mengban" v-if="ification" @click="ification = false"></view>
<classification @confirm="confirm" :show="ification" :typenum="1"></classification> <classification @confirm="confirm" :show="ification" :typenum="1" ref="classication"></classification>
<defaultr cont="暂无数据" v-if="status=='nomore'&&InvoicingList.length==0"></defaultr> <defaultr cont="暂无数据" v-if="status=='nomore'&&InvoicingList.length==0"></defaultr>
<view class="mengban" v-if="addflag" @click="addflag = false"></view> <view class="mengban" v-if="addflag" @click="addflag = false"></view>
@ -76,6 +81,19 @@
onLoad(()=>{ onLoad(()=>{
queryInvo() queryInvo()
}) })
const classication = ref<InstanceType<typeof ChildComponent>>()
const chongzhi=()=>{
form.categoryId = '';
form.typeId = '';
form.medicationId = '';
form.suppliers = '';
form.pageNo=1;
form.wlParamInfo= '',
InvoicingList.value = [];
classication.value.typescroll(1,-1,{});
classication.value.qingkong();
classication.value.config();
}
const queryInvo = () => { const queryInvo = () => {
queryShoppingCartList(form).then(res => { queryShoppingCartList(form).then(res => {
res.result.records.forEach((item,i)=>{ res.result.records.forEach((item,i)=>{
@ -264,7 +282,7 @@
.ipt { .ipt {
display: flex; display: flex;
align-items: center; align-items: center;
width: 30vw; width: 27vw;
background: #E2E4E9; background: #E2E4E9;
border-radius: 1.65vw; border-radius: 1.65vw;
height: 3.3vw; height: 3.3vw;
@ -278,7 +296,7 @@
input { input {
width: 25vw; width: 25vw;
height: 3.3vw; height: 3.3vw;
font-size: 1.1vw; font-size: 1.5vw;
padding-left: 1.6vw; padding-left: 1.6vw;
} }
@ -316,7 +334,7 @@
height: 3.3vw; height: 3.3vw;
background: linear-gradient(-45deg, rgba(223, 244, 252, 1), rgba(204, 228, 249, 0.43)); background: linear-gradient(-45deg, rgba(223, 244, 252, 1), rgba(204, 228, 249, 0.43));
border: 1px solid #1083F8; border: 1px solid #1083F8;
margin: 0 1.2vw; margin:0 0 0 1.2vw;
} }
.shx { .shx {
@ -332,6 +350,7 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
box-shadow: 0.5rpx 5rpx 5rpx #dadee1; box-shadow: 0.5rpx 5rpx 5rpx #dadee1;
margin:0 0 0 1.2vw;
image { image {
width: 1.5vw; width: 1.5vw;

View File

@ -574,7 +574,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
) )
]); ]);
} }
const camera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/hldy_app_mini/pages/camera.nvue"]]); const camera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/项目/hldy_app_mini/pages/camera.nvue"]]);
export { export {
camera as default camera as default
}; };

View File

@ -577,7 +577,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
) )
]); ]);
} }
const fullcamera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/hldy_app_mini/pages/fullcamera.nvue"]]); const fullcamera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/项目/hldy_app_mini/pages/fullcamera.nvue"]]);
export { export {
fullcamera as default fullcamera as default
}; };