Compare commits

...

2 Commits

Author SHA1 Message Date
Teng b3a26b23c2 Merge branch 'main' of http://47.115.223.229:8888/yangjun/hldy_app_mini 2025-11-21 14:46:05 +08:00
Teng 042b049cf9 合并一下 2025-11-21 14:45:52 +08:00
6 changed files with 159 additions and 46 deletions

View File

@ -480,7 +480,7 @@
placeholder="采购单号/采购日期/供应商" @confirm="search()" />
<image v-show="plzinfo.cgdParamInfo" class="title-input-img" src="@/static/x.png"
@click="plzinfo.cgdParamInfo='';search()" />
<view class="title-input-button" @click="search()">
<view :class="jiansuotarget?`title-input-button-target`:`title-input-button`" @click="search();getdonghua()">
检索
</view>
<view class="filter">
@ -2013,6 +2013,13 @@
onUnmounted(() => {
if (timer) clearInterval(timer);
});
const jiansuotarget = ref(false);
const getdonghua = () => {
jiansuotarget.value = true;
setTimeout(()=>{
jiansuotarget.value = false;
},200)
}
</script>
<style lang="less" scoped>
@ -2208,6 +2215,20 @@
align-items: center;
box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.1);
}
.title-input-button-target {
width: 20%;
margin-left: 2%;
height: 5vh;
border-radius: 40rpx;
font-size: 28rpx;
background: linear-gradient(-45deg, rgba(223, 244, 252, 1), rgba(204, 228, 249, 0.43));
border: 1px solid #1083F8;
color: #1083F8;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.1);
}
}
.statues-father {

View File

@ -133,7 +133,7 @@
</view>
<view class="">
<view class="small-father">
<view class="small-select" v-for="(item,index) in allserve" @click="changeServe(item.serverUrl)">
<view class="small-select" v-for="(item,index) in allserve" @click="changeServe(item)">
{{ item.departName }}
</view>
</view>
@ -206,6 +206,7 @@
if (res.result.code == `0`) {
uni.setStorageSync('serverUrl', res.result.orgList[0].serverUrl);
uni.setStorageSync('orgList', res.result.orgList);
uni.setStorageSync('orgListName', res.result.orgList[0].departName);
allserve.value = res.result.orgList
time.value = Date.now();
@ -216,6 +217,7 @@
})
} else {
uni.setStorageSync('serverUrl', "");
uni.setStorageSync('orgListName', "");
allserve.value = [];
uni.showToast({
title: res.result.msg,
@ -276,8 +278,9 @@
}, 500)
}
}
const changeServe = (url : string) => {
uni.setStorageSync('serverUrl', url);
const changeServe = (item : any) => {
uni.setStorageSync('serverUrl', item.serverUrl);
uni.setStorageSync('orgListName', item.departName);
setTimeout(() => {
jumpTo(`/pages/watch/index`)
}, 500)

View File

@ -24,11 +24,11 @@
<text style="white-space: nowrap;"> 规格型号: {{v.specificationModel}}</text>
</view>
<view>
<text v-if="v.multiUnitType=='1'">采购单价: {{v.oneUnitPrice}} </text>
<text v-if="v.multiUnitType=='1'">采购单价: {{Number(v.oneUnitPrice).toFixed(2) }} </text>
<text v-if="v.multiUnitType=='1'">采购单位: {{ v.oneUnit}}</text>
<text v-if="v.multiUnitType=='2'">采购单价: {{v.twoUnitPrice}} </text>
<text v-if="v.multiUnitType=='2'">采购单价: {{Number(v.twoUnitPrice).toFixed(2) }} </text>
<text v-if="v.multiUnitType=='2'">采购单位: {{ v.twoUnit}}</text>
<text v-if="v.multiUnitType=='3'">采购单价: {{v.referenceUnitPrice}} </text>
<text v-if="v.multiUnitType=='3'">采购单价: {{ Number(v.referenceUnitPrice).toFixed(2)}} </text>
<text v-if="v.multiUnitType=='3'">采购单位: {{ v.materialUnits}}</text>
</view>
<view>

View File

@ -29,7 +29,7 @@
<text style="white-space: nowrap;"> 规格型号: {{v.wlSpecificationModel}}</text>
</view>
<view>
<text>采购单价: {{v.referenceUnitPrice}}</text>
<text>采购单价: {{Number(v.referenceUnitPrice).toFixed(2) }}</text>
<text>采购单位: {{v.wlUnits}}</text>
</view>
<view>

View File

@ -7,9 +7,9 @@
placeholder="采购单号/采购日期/供应商" @confirm="search()" />
<image v-show="plzinfo.cgdParamInfo" class="title-input-img" src="@/static/x.png"
@click="plzinfo.cgdParamInfo=``;search()" />
<view class="title-input-button" @click="search()">
<button :class="jiansuotarget?`title-input-button-target`:`title-input-button`" @click="search();getdonghua()">
检索
</view>
</button>
</view>
<view class="left-menu-father">
<scroll-view scroll-y="true" scroll-with-animation class="left-menu-scroll" :scroll-top="leftscrolltop"
@ -38,7 +38,7 @@
</text>
<view class="title-right-big">
{{ v.totalPrice }}
{{ Number(v.totalPrice ).toFixed(2) }}
</view>
<image class="title-right-img" src="/static/more.png" @click="openmore(i)" />
@ -358,7 +358,7 @@
</text>
<text class="dollar-text">
{{plsbuy[lefttarget]?.totalPrice}}
{{Number(plsbuy[lefttarget]?.totalPrice).toFixed(2) }}
</text>
</view>
<view class="caigou-font">
@ -371,17 +371,32 @@
<view class="share-bottom">
<view style="display: flex;align-items: center;">
<image class="share-bottom-img" src="/static/index/youngman.png"></image>
<view style="margin-left: -20rpx;margin-top: 10rpx;">
<view style="display: flex;">
<view class="share-name">
{{ plsbuy[lefttarget]?.createBy_dictText }}
{{ uni.getStorageSync('realname') }}
</view>
<view class="share-font">
采购人
</view>
</view>
<view class="share-phone">
{{ uni.getStorageSync('username') }}
</view>
</view>
</view>
<view class="company-father">
<view class="company">
{{ uni.getStorageSync('orgListName') }}
</view>
<view class="blue-button" @click="clickshare">
分享
</view>
</view>
</view>
</view>
</view>
</view>
@ -426,13 +441,13 @@
pageNo: 1,
pageSize: 10,
canpull: true,
cgdParamInfo:""
cgdParamInfo: ""
})
const mobanplzinfo = {
pageNo: 1,
pageSize: 10,
canpull: true,
cgdParamInfo:""
cgdParamInfo: ""
}
const leftscrolltop = ref(0)
@ -441,7 +456,7 @@
const firstgetqueryCgdList = () => {
queryCgdList(plzinfo).then((res : any) => {
plsbuy.value.push(...res.result.records)
// console.log("zzzz", plsbuy.value)
console.log("zzzz", plsbuy.value)
if (!res.result.total) {
nomessageshow.value = true;
}
@ -517,8 +532,8 @@
wlUpperLimit: "",
wlLowerLimit: "",
suppliersName: "",
categoryId_dictText:"",
typeId_dictText:"",
categoryId_dictText: "",
typeId_dictText: "",
})
const goback = () => {
@ -557,7 +572,7 @@
const InvoicingList = ref([])
const queryInvo = () => {
queryCgdInfoList(form).then(res => {
console.log(res.result.records,form)
// console.log(res.result.records,form)
InvoicingList.value = [];
InvoicingList.value.push(...res.result.records);
clickmiddle(middletarget.value);
@ -619,7 +634,7 @@
provider: "weixin",
scene: "WXSceneSession",
type: 0,
href: "https://www.baidu.com/",
href: `${uni.getStorageSync('serverUrl')}/h5/advisoryInfo`,
title: "采购单分享",
summary: "采购单",
imageUrl: "https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/uni@2x.png",
@ -667,6 +682,13 @@
}
})
}
const jiansuotarget = ref(false);
const getdonghua = () => {
jiansuotarget.value = true;
setTimeout(()=>{
jiansuotarget.value = false;
},200)
}
</script>
<style lang="less" scoped>
@ -704,14 +726,28 @@
margin-left: 2%;
height: 5vh;
border-radius: 40rpx;
font-size: 30rpx;
background: linear-gradient(to bottom, #e7f4ff, #c5e5ff);
border: 2rpx solid #9AD1FF;
color: #007CFF;
font-size: 28rpx;
background-color: #fff;
border: 1rpx solid #D9DADC;
color: #555555;
display: flex;
justify-content: center;
align-items: center;
-webkit-tap-highlight-color: transparent;
box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.1);
}
.title-input-button-target {
width: 20%;
margin-left: 2%;
height: 5vh;
border-radius: 40rpx;
font-size: 28rpx;
background: linear-gradient(-45deg, rgba(223, 244, 252, 1), rgba(204, 228, 249, 0.43));
border: 1px solid #1083F8;
color: #1083F8;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.1);
}
}
@ -1180,7 +1216,9 @@
z-index: 1;
width: 100%;
height: 100%;
padding: 50rpx;
padding: 70rpx;
padding-top: 60rpx;
// padding-top: 70rpx;
position: relative;
.share-main {
@ -1189,23 +1227,48 @@
.share-weight {
font-weight: 600;
font-size: 30rpx;
font-size: 36rpx;
margin-bottom: 13rpx;
}
.share-font {
color: #666666;
font-size: 30rpx;
margin-top: 20rpx;
margin-top: 7rpx;
width: 450rpx;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
.right-flex {
margin-top: -7rpx;
color: #666666;
.dollar-text {
margin-left: -5rpx;
font-weight: 600;
font-size: 55rpx;
}
.caigou-font {
font-size: 23rpx;
color: #888D99;
text-align: end;
}
}
}
.popup-share-content {
position: absolute;
display: flex;
flex-direction: column;
width: 1000rpx;
height: 500rpx;
width: 900rpx;
height: 480rpx;
background-color: #fff;
border-radius: 30rpx;
transition: opacity 0.4s ease;
@ -1284,21 +1347,29 @@
width: 100%;
padding: 0 50rpx;
height: 120rpx;
bottom: 70rpx;
bottom: 90rpx;
left: 0;
display: flex;
justify-content: space-between;
align-items: center;
justify-content: center;
align-items: space-between;
flex-direction: column;
.share-bottom-img {
width: 150rpx;
height: 140rpx;
}
.share-phone {
color: #888D99;
margin-left: 15rpx;
// margin-top: 7rpx;
font-size: 30rpx;
}
.share-name {
margin: 0 20rpx;
margin: 0 15rpx;
font-size: 35rpx;
color: #555555;
color: #666666;
font-weight: 600;
}
@ -1307,10 +1378,24 @@
margin-top: 10rpx;
font-size: 24rpx;
}
.company-father {
width: 100%;
display: flex;
// align-items: center;
justify-content: space-between;
}
.company {
color: #888D99;
margin-top: 10rpx;
margin-left: 10rpx;
font-size: 30rpx;
}
}
.blue-button {
margin-top: 60rpx;
margin-top: -30rpx;
width: 150rpx;
height: 70rpx;
border-radius: 40rpx;
@ -1413,4 +1498,6 @@
font-size: 35rpx;
}
}
</style>

View File

@ -49,7 +49,7 @@
注销登录
</view>
<view class="text-center">
<view>长春市朝阳区久泰开运养老服务有限公司</view>
<view>{{ uni.getStorageSync('orgListName') }}</view>
</view>
<exit :show="exitshow" @close="exitshow=false" />
@ -80,7 +80,7 @@
<view class="small-father">
<view class="small-select"
:style="serverUrl==item.serverUrl?{color:`#0083FF`,borderColor:`#0083FF`}:{}"
v-for="(item,index) in allserve" @click="changeServe(item.serverUrl)">
v-for="(item,index) in allserve" @click="changeServe(item)">
{{ item.departName }}
</view>
</view>
@ -113,8 +113,9 @@
const selectserve = ref(false)
const allserve = ref(uni.getStorageSync('orgList'))
const changeServe = (url : string) => {
uni.setStorageSync('serverUrl', url);
const changeServe = (item:any) => {
uni.setStorageSync('serverUrl', item.serverUrl);
uni.setStorageSync('orgListName', item.departName);
uni.showToast({
title: '切换机构成功',
icon: 'success', //
@ -346,6 +347,7 @@
.text-center {
margin-top: 40rpx;
height: 60rpx;
width: 100%;
display: flex;
justify-content: center;