This commit is contained in:
wangweidong 2025-12-12 17:32:23 +08:00
commit 2747b32521
15 changed files with 455 additions and 382 deletions

View File

@ -1,5 +1,5 @@
<!-- 使用示例 已经全局暴露了直接用-->
<!-- <errorshow :show="openerror" font="确定将本次请领清单中的所有物料都移除吗?" @close="openerror=false" /> -->
<!-- <errorshow :show="openmessage" :font="errormessage" @close="openmessage=false" /> -->
<template>
<view>
<view class="addall" v-if="show">

View File

@ -140,7 +140,7 @@
method: 'GET',
dataType:'json',
success: (res) => {
console.log("?????",res)
// console.log("?????",res)
// this.$emit('chuandinew',this.updated2version)
if(res.statusCode===404){
return

View File

@ -22,7 +22,7 @@
<view>-</view>
</view>
</view>
<view class="que" v-if="Material.length==0&&timeout">
<view class="que guodu" v-if="Material.length==0&&timeout" :style="qb?'width:65.8vw':'' " >
<image src="/static/index/procurement/que.png" mode="aspectFill"></image>
<view>暂无数据</view>
</view>
@ -30,19 +30,28 @@
style="position: absolute;width: 10vw;height: 10vw;"></defaultr> -->
</scroll-view>
<view class="kjlt more guodu" :style="qb?'width:15vw':'' " @touchstart="ts" @touchmove="canmove"
v-if="Material.length>0">
>
<view @click="zksq" class="righ0">
{{!qb?'更多':'收起'}}
<image class="guodu" :style="qb?'transform: rotate(180deg);':''"
src="/static/index/procurement/zjt.png" mode="aspectFill"></image>
</view>
<view class="guodu" :class="qb?(moredex==1?'avt':''):'righ0'" @click="moredex = moredex==1?0:1; ">
<view class="guodu" v-if="Material.length" :class="qb?(moredex==1?'avt':''):'righ0'" @click="moredex = moredex==1?0:1; ">
批量移除
</view>
<view class="guodu" :class="qb?(moredex==2?'avt':''):'righ0'" @click="moredex=2; ">
<view class="guodu" v-if="Material.length" :class="qb?(moredex==2?'avt':''):'righ0'" @click="moredex=2; ">
清空列表
</view>
<view class="guodu" :class="qb?(moredex==3?'avt':''):'righ0'" @click="moredex=3;emit('submit')">
<view class="guodu" v-if="Material.length" :class="qb?(moredex==3?'avt':''):'righ0'" @click="moredex=3;emit('submit')">
提交请领单
</view>
<view class="guodu" v-if="!Material.length" style="background-color: #e8e8e8;" :class="qb?(moredex==1?'avt':''):'righ0'">
批量移除
</view>
<view class="guodu" v-if="!Material.length" style="background-color: #e8e8e8;" :class="qb?(moredex==2?'avt':''):'righ0'">
清空列表
</view>
<view class="guodu" v-if="!Material.length" style="background-color: #e8e8e8;" :class="qb?(moredex==3?'avt':''):'righ0'">
提交请领单
</view>
</view>
@ -63,7 +72,7 @@
});
const emit = defineEmits(['delall', 'del', 'submit'])
const serverUrl = ref(uni.getStorageSync('serverUrl') + '/sys/common/static/')
const qb = ref(false)
const qb = ref(true)
const moredex = ref(0)
watch(() => props.Material,
() => {
@ -71,6 +80,11 @@
qb.value = false;
moredex.value = 0;
}
if(props.Material.length == 1) {
if(!qb.value){
qb.value = true;
}
}
})
const delall = () => {
emit('delall');
@ -83,13 +97,13 @@
emit('del', v)
}
const zksq = () => {
if (props.Material.length == 0) {
uni.showToast({
icon: 'none',
title: '请添加请领物料!'
})
return
}
// if (props.Material.length == 0) {
// uni.showToast({
// icon: 'none',
// title: ''
// })
// return
// }
qb.value = !qb.value;
moredex.value = 0;
moveleft();
@ -166,7 +180,7 @@
display: flex;
justify-content: center;
letter-spacing: 3px;
font-size: 1.4vw;
font-size: 1.5vw;
position: relative;
z-index: 10;
@ -198,9 +212,11 @@
margin-left: 0.6vw;
position: relative;
background: RGBA(239, 240, 244, 1);
.righ0 {
right: 0 !important;
}
view {
@ -350,7 +366,7 @@
position: fixed;
top: 0;
left: 0;
width: 82.2vw;
width: 77.5vw;
height: 10vw;
background: rgba(245, 246, 248, 1);
display: flex;

View File

@ -27,11 +27,11 @@
<view>
<view>
<text>{{v.qlNum?v.qlNum:'--'}}</text>
<text>退货数量</text>
<text>请领数量</text>
</view>
<view>
<text>{{v.materialInfo?.materialUnits}}</text>
<text>退货单位</text>
<text>请领单位</text>
</view>
</view>
</view>
@ -366,12 +366,10 @@
}
}
.itembox{
width: 55vw;
height: calc(100vh - 15vw);
padding:1vw 0.5vw 1vw;
height: calc(100vh - 11.5vw);
padding:0vw 0.5vw 1vw;
.box{
width: 100%;
display: grid;

View File

@ -1,7 +1,7 @@
<template>
<view>
<view class="mengban" @click="emit('fill')" v-if="show"> </view>
<view class="takitem guodu" :class="show?'':'unclass'" :style="showbox?'z-index:220':'z-index:-2'">
<view class="takitem guodu" :class="show?'':'unclass'" :style="showbox?'z-index:220':'z-index:-2'">
<view class="tit">
请领物料
</view>
@ -9,7 +9,9 @@
<view class="zuo">
<view class="carp">
<view class="zuoimg tp">
<image :src="objtake?.materialImg?serverUrl+objtake?.materialImg:'/static/index/procurement/k.png'" mode="aspectFill"/>
<image
:src="objtake?.materialImg?serverUrl+objtake?.materialImg:'/static/index/procurement/k.png'"
mode="aspectFill" />
</view>
<view class="youcont">
<view>{{objtake?.materialName}}</view>
@ -26,29 +28,30 @@
<view>
<view>
规格型号
<text style="white-space: nowrap;">{{objtake?.specificationModel}}</text>
<text style="white-space: nowrap;width:20vw ;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{objtake?.specificationModel}}</text>
</view>
</view>
</view>
</view>
<view class="qinggou-font">
数量
数量
</view>
<view class="stringShow-father">
<view class="jj" @click="jjnum(-1)" @longpress="handleTouchStart(-1)" @touchend="handleTouchEnd">
<view class="jj" @click="jjnum(-1)" @longpress="handleTouchStart(-1)"
@touchend="handleTouchEnd">
-
</view>
<view class="stringShow-kuai">
<view v-for="(item,index) in stringShow" :key="index" :style="sx==true?'color: red':''">
<view v-for="(item,index) in stringShow" :key="index" :style="sx==true?'color: red':''">
{{item}}
</view>
</view>
<view class="jj" @click="jjnum(1)" @longpress="handleTouchStart(1)" @touchend="handleTouchEnd">
+
</view>
</view>
</view>
<view class="you">
<view class="calculator-father">
@ -57,18 +60,17 @@
@click="clickKuai(item,index)">
清零
</view>
<view class="calculator-kuai" v-else-if="item==`AE`"
@click="clickKuai(item,index)">
<image src="/static/cleanone.png" mode="aspectFill" style="width: 50%;height: 50%;margin-left: -5rpx;"></image>
<view class="calculator-kuai" v-else-if="item==`AE`" @click="clickKuai(item,index)">
<image src="/static/cleanone.png" mode="aspectFill"
style="width: 50%;height: 50%;margin-left: -5rpx;"></image>
</view>
<view class="calculator-kuai" v-else
@click="clickKuai(item,index)">
<view class="calculator-kuai" v-else @click="clickKuai(item,index)">
{{item}}
</view>
</view>
</view>
<view class="plsbuy-bottom">
<view class="quxiao" @click="emit('fill')">
<view class="quxiao" @click="emit('fill')">
取消
</view>
<view class="plsbuy-bottom-blue" @click="closeIt">
@ -82,321 +84,346 @@
</template>
<script setup lang="ts">
import { ref, onMounted, onBeforeUnmount, computed, nextTick, watch, reactive } from 'vue';
import { ref, onMounted, onBeforeUnmount, computed, nextTick, watch, reactive } from 'vue';
const props = defineProps({
objtake: {
type: Object,
required: true
required: true
},
show: {
type: Boolean
},
num:{
type:Number
num: {
type: Number
}
})
const serverUrl = ref(uni.getStorageSync('serverUrl') + '/sys/common/static/')
const emit = defineEmits([ 'fill' ,'right'])
const emit = defineEmits(['fill', 'right'])
const showbox = ref(false)
watch(()=>props.show,
()=>{
if(props.show==true){
watch(() => props.show,
() => {
if (props.show == true) {
relNumber.value = props.num ? props.num : 1;
stringShow.value = toFixed4ByPadStart(relNumber.value)
setTimeout(()=>{
setTimeout(() => {
showbox.value = true
},50)
}else{
}, 50)
} else {
showbox.value = false;
isZero.value = false;
}
})
const sx = ref(false)
const calculatorArray = [1, 2, 3, 4, 5, 6, 7, 8, 9, "AC", 0, "AE"];
const stringShow = ref("0000");
const relNumber = ref(1);
const isZero = ref(false);
const clickKuai = (item : any, index : number) => {
if (item == "AC") {
relNumber.value = 0;
stringShow.value = "0000";
return
}
if (item == "AE") {
relNumber.value = Math.trunc(relNumber.value / 10)
stringShow.value = toFixed4ByPadStart(relNumber.value);
return
}
if(isZero.value == false&&item>0){
isZero.value = true;
relNumber.value = item;
stringShow.value = toFixed4ByPadStart(relNumber.value);
return
}
if (digitCountByString(relNumber.value) > 3) {
const sx = ref(false)
const calculatorArray = [1, 2, 3, 4, 5, 6, 7, 8, 9, "AC", 0, "AE"];
const stringShow = ref("0000");
const relNumber = ref(1);
const isZero = ref(false);
const clickKuai = (item : any, index : number) => {
if (item == "AC") {
relNumber.value = 0;
stringShow.value = "0000";
return
}
if (item == "AE") {
relNumber.value = Math.trunc(relNumber.value / 10)
stringShow.value = toFixed4ByPadStart(relNumber.value);
return
}
if (isZero.value == false && item > 0) {
isZero.value = true;
relNumber.value = item;
stringShow.value = toFixed4ByPadStart(relNumber.value);
return
}
if (digitCountByString(relNumber.value) > 3) {
} else {
if (!relNumber.value) {
relNumber.value = item
} else {
if (!relNumber.value) {
relNumber.value = item
} else {
relNumber.value = relNumber.value * 10 + item;
}
stringShow.value = toFixed4ByPadStart(relNumber.value)
relNumber.value = relNumber.value * 10 + item;
}
}
const InteroutId = ref(null)
const handleTouchStart = (e:number)=> {
Interval(e)
}
const handleTouchEnd=()=> {
clearInterval(InteroutId.value);
//
}
const Interval = (e:number)=>{
InteroutId.value = setInterval(() => {
jjnum(e);
}, 120);
}
const jjnum = (e:number)=>{
let num = 9999;
if(relNumber.value>=num&&e==1){relNumber.value = num; return}
if(relNumber.value<=1&&e==-1){relNumber.value = 1; return}
relNumber.value+=e;
stringShow.value = toFixed4ByPadStart(relNumber.value)
// emit('jjnum',e)
}
const times = ref(false)
const closeIt = () => {
if(relNumber.value == 0){
uni.showToast({
icon:'none',
title:"数量不能为0"
})
return
}
if(times.value == false){
times.value = true;
emit('right', relNumber.value,props.objtake )
setTimeout(()=>{
times.value = false;
},1500)
}
}
const InteroutId = ref(null)
const handleTouchStart = (e : number) => {
Interval(e)
}
const handleTouchEnd = () => {
clearInterval(InteroutId.value);
//
}
const Interval = (e : number) => {
InteroutId.value = setInterval(() => {
jjnum(e);
}, 120);
}
const jjnum = (e : number) => {
let num = 9999;
if (relNumber.value >= num && e == 1) { relNumber.value = num; return }
if (relNumber.value <= 1 && e == -1) { relNumber.value = 1; return }
relNumber.value += e;
stringShow.value = toFixed4ByPadStart(relNumber.value)
// emit('jjnum',e)
}
const times = ref(false)
const closeIt = () => {
if (relNumber.value == 0) {
uni.showToast({
icon: 'none',
title: "数量不能为0"
})
return
}
function digitCountByString(n) {
const s = Math.abs(n).toString();
return s.length;
}
function toFixed4ByPadStart(n) {
const intPart = Math.floor(Math.abs(n));
return String(intPart).padStart(4, '0');
if (times.value == false) {
times.value = true;
emit('right', relNumber.value, props.objtake)
setTimeout(() => {
times.value = false;
}, 1500)
}
}
function digitCountByString(n) {
const s = Math.abs(n).toString();
return s.length;
}
function toFixed4ByPadStart(n) {
const intPart = Math.floor(Math.abs(n));
return String(intPart).padStart(4, '0');
}
</script>
<style scoped lang="less">
.takitem{
width: 53.3vw;
height: 36vw;
background: rgba(255, 255, 255, 0.98);
box-shadow: 0rpx 0rpx 1.3vw 0rpx rgba(163,167,182,0.16);
border-radius: 1.6vw;
position: fixed;
z-index: 100;
top: 13vw;
right: 23.4vw;
padding: 2vw;
.you{
.plsbuy-bottom {
width: 100%;
margin-top: 3vw;
height: 7vw;
display: flex;
justify-content: flex-end;
font-size: 35rpx;
view{
display: flex;
justify-content: center;
align-items: center;
width: 9.1vw;
height: 3.8vw;
color: rgba(92, 121, 146, 1);
border-radius:1.9vw;
font-size: 1.8vw;
border: 1px solid #EDEDEF;
margin-left: 1vw;
}
.quxiao{
background: #EDEDEF;
color: #888888;
}
.plsbuy-bottom-blue {
background: linear-gradient(0deg, #CAE0F9, #E9F4FF);
border: 1px solid rgba(3,133,250,0.34);
color: #0385FA;
}
}
.calculator-father {
width: 19vw;
height: 20vw;
margin :0 auto 0;
flex-wrap: wrap;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
.calculator-kuai {
display: flex;
justify-content: center;
align-items: center;
background: url('/static/index/procurement/bt.png') no-repeat;
background-size: 100% 100%;
font-size: 42rpx;
font-weight: 500;
margin: 12rpx 20rpx 0 20rpx;
width: 4.4vw;
height: 4.4vw;
}
.calculator-kuai:active{
background: linear-gradient(to bottom, #00C9FF, #0076FF);
color: #fff;
font-size: 45rpx;
font-weight: 500;
border-radius: 1.6vw;
}
}
}
.stringShow-father {
width: 100%;
height:7vw;
margin-top:0.5vw;
display: flex;
align-items: center;
justify-content: flex-end;
.jj{
width: 5vw;
height: 5vw;
margin: 0 1vw;
display: flex;
justify-content: center;
align-items: center;
background: url('/static/index/procurement/bt.png') no-repeat;
background-size: 100% 100%;
border-radius: 45rpx;
font-size: 42rpx;
}
.jj:active{
background: linear-gradient(to bottom, #00C9FF, #0076FF);
color: #fff;
display: flex;
justify-content: center;
align-items: center;
background-color: #DCDCEE;
border-radius: 45rpx;
font-size: 45rpx;
font-weight: 500;
}
.stringShow-kuai {
display: flex;
align-items: center;
width: 11.5vw;
height: 5vw;
background: #F3F5F9;
border-radius: 1vw;
border: 1px solid #CBCFD0;
justify-content: space-around;
box-shadow: 0rpx 0.1vw 0.3vw 0rpx rgba(140,143,153,0.17) inset;
view{
display: flex;
justify-content: center;
align-items: center;
font-size: 42rpx;
font-weight: 500;
width:2.5vw;
height: 5vw;
}
}
}
.qinggou-font {
font-size: 1.4vw;
font-weight: 500;
text-align: center;
margin-left: 1.5vw;
.takitem {
width: 53.3vw;
height: 36vw;
background: rgba(255, 255, 255, 0.98);
box-shadow: 0rpx 0rpx 1.3vw 0rpx rgba(163, 167, 182, 0.16);
border-radius: 1.6vw;
position: fixed;
z-index: 100;
top: 13vw;
right: 23.4vw;
padding: 2vw;
.you {
.plsbuy-bottom {
width: 100%;
margin-top: 3vw;
height: 7vw;
display: flex;
justify-content: flex-end;
font-size: 35rpx;
view {
display: flex;
justify-content: center;
align-items: center;
width: 9.1vw;
height: 3.8vw;
color: rgba(92, 121, 146, 1);
border-radius: 1.9vw;
font-size: 1.8vw;
border: 1px solid #EDEDEF;
margin-left: 1vw;
}
.cont{
width: 100%;
height: 26.5vw;
display: flex;
justify-content: space-between;
padding-top: 1.7vw;
.zuo{
width: 27vw;
height: 100%;
.carp{
width: 100%;
height: 16vw;
display: flex;
justify-content: space-between;
padding-top: 1.8vw;
.youcont{
width: 17vw;
height: 100%;
>view{
&:nth-child(2),&:nth-child(3){
width: 100%;
height: 3.6vw;
display: flex;
justify-content: space-between;
margin-top: 1.8vw;
>view{
font-weight: 400;
font-size: 1.1vw;
color: #888888;
display: flex;
flex-direction: column;
justify-content: space-between;
text{
font-weight: 300;
font-size: 1.4vw;
color: #222222;
}
}
}
&:nth-child(1){
width: 17vw;
height: 1.8vw;
font-weight: bold;
font-size: 1.6vw;
color: #222222;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
line-height: 1.8vw;
}
}
}
.zuoimg{
width: 8vw;
height: 8vw;
image{
width: 100%;
height: 100%;
}
}
}
}
}
.tit{
width: 100%;
height: 2.6vw;
border-bottom: 1px solid #E5E5E5;
font-weight: 400;
font-size: 1.6vw;
color: #333333;
line-height: 2.1vw;
}
}
.mengban{
.quxiao {
background: #EDEDEF;
color: #888888;
}
.plsbuy-bottom-blue {
background: linear-gradient(0deg, #CAE0F9, #E9F4FF);
border: 1px solid rgba(3, 133, 250, 0.34);
color: #0385FA;
}
}
.calculator-father {
width: 19vw;
height: 20vw;
margin: 0 auto 0;
flex-wrap: wrap;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
.calculator-kuai {
display: flex;
justify-content: center;
align-items: center;
background: url('/static/index/procurement/bt.png') no-repeat;
background-size: 100% 100%;
font-size: 42rpx;
font-weight: 500;
margin: 12rpx 20rpx 0 20rpx;
width: 4.4vw;
height: 4.4vw;
}
.calculator-kuai:active {
background: linear-gradient(to bottom, #00C9FF, #0076FF);
color: #fff;
font-size: 45rpx;
font-weight: 500;
border-radius: 1.6vw;
}
}
}
.stringShow-father {
width: 100%;
height: 7vw;
margin-top: 0.5vw;
display: flex;
align-items: center;
justify-content: flex-end;
.jj {
width: 5vw;
height: 5vw;
margin: 0 1vw;
display: flex;
justify-content: center;
align-items: center;
background: url('/static/index/procurement/bt.png') no-repeat;
background-size: 100% 100%;
border-radius: 45rpx;
font-size: 42rpx;
}
.jj:active {
background: linear-gradient(to bottom, #00C9FF, #0076FF);
color: #fff;
display: flex;
justify-content: center;
align-items: center;
background-color: #DCDCEE;
border-radius: 45rpx;
font-size: 45rpx;
font-weight: 500;
}
.stringShow-kuai {
display: flex;
align-items: center;
width: 11.5vw;
height: 5vw;
background: #F3F5F9;
border-radius: 1vw;
border: 1px solid #CBCFD0;
justify-content: space-around;
box-shadow: 0rpx 0.1vw 0.3vw 0rpx rgba(140, 143, 153, 0.17) inset;
view {
display: flex;
justify-content: center;
align-items: center;
font-size: 42rpx;
font-weight: 500;
width: 2.5vw;
height: 5vw;
}
}
}
.qinggou-font {
font-size: 1.4vw;
font-weight: 500;
text-align: center;
margin-left: 1.5vw;
}
.cont {
width: 100%;
height: 26.5vw;
display: flex;
justify-content: space-between;
padding-top: 1.7vw;
.zuo {
width: 27vw;
height: 100%;
.carp {
width: 100%;
height: 16vw;
display: flex;
justify-content: space-between;
padding-top: 1.8vw;
.youcont {
width: 17vw;
height: 100%;
>view {
&:nth-child(2),
&:nth-child(3) {
width: 100%;
height: 3.6vw;
display: flex;
justify-content: space-between;
margin-top: 1.8vw;
>view {
font-weight: 400;
font-size: 1.1vw;
color: #888888;
display: flex;
flex-direction: column;
justify-content: space-between;
text {
font-weight: 300;
font-size: 1.4vw;
color: #222222;
}
}
}
&:nth-child(1) {
width: 17vw;
height: 1.8vw;
font-weight: bold;
font-size: 1.6vw;
color: #222222;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
line-height: 1.8vw;
}
}
}
.zuoimg {
width: 8vw;
height: 8vw;
image {
width: 100%;
height: 100%;
}
}
}
}
}
.tit {
width: 100%;
height: 2.6vw;
border-bottom: 1px solid #E5E5E5;
font-weight: 400;
font-size: 1.6vw;
color: #333333;
line-height: 2.1vw;
}
}
.mengban {
width: 100vw;
height: 100vh;
position: fixed;
@ -405,18 +432,22 @@
left: 0;
background: RGBA(239, 240, 244, 0.55);
}
.hei0 {
height: 0 !important;
view{
view {
height: 0 !important;
}
}
.unclass {
opacity: 0 !important;
}
.guodu {
transition: .4s;
-webkit-transform-style: preserve-3d;
-webkit-overflow-scrolling: touch;
-webkit-overflow-scrolling: touch;
}
</style>
</style>

View File

@ -93,9 +93,10 @@
</view>
<view class="middle-heng-father">
<image class="middle-ball-img" style="width: 32rpx;height: 32rpx;" v-if="v?.status === '2' || v?.status === '3'" src="/static/index/requestform/iserror.png" />
<view class="middle-ball"
v-else-if="v?.status === '1'">
<image class="middle-ball-img" style="width: 32rpx;height: 32rpx;"
v-if="v?.status === '2' || v?.status === '3'"
src="/static/index/requestform/iserror.png" />
<view class="middle-ball" v-else-if="v?.status === '1'">
</view>
<image class="middle-ball-img" v-else src="/static/index/requestform/isok.png" />
</view>
@ -210,13 +211,14 @@
</defaultr>
</scroll-view>
</view>
<errorshow :show="openerror" :font="errormessage" @close="openerror=false" />
</view>
</template>
<script setup lang="ts">
import { ref, onMounted, onBeforeUnmount, computed, nextTick, watch, reactive } from 'vue';
import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app"
import { queryQld, queryQldWlInfo, transRead, cancellation,confirmReceipt } from '../api/api.js'
import { queryQld, queryQldWlInfo, transRead, cancellation, confirmReceipt } from '../api/api.js'
import nomessage from '../common/nomessage.vue'
import defaultr from '../common/default.vue'
const props = defineProps({
@ -235,6 +237,7 @@
// console.log("??????",newVal, oldVal)
// falsetrue0.2
if (!oldVal && newVal) {
cannomessage.value = true
transition.value = false;
chongzhi()
// firstgetqueryCgdList();
@ -265,7 +268,7 @@
selectType.value = index
plzinfo.pageNo = 1;
plzinfo.canpull = true;
switch (index) {
case 0:
plzinfo.status = `1,2,4,5`
@ -338,7 +341,7 @@
nomessageshow.value = true;
return
}
cannomessage.value = false
plsbuy.value = []
plsbuy.value.push(...res.result.records)
@ -356,7 +359,7 @@
rightarray.value.push(...element.result)
rightdonghua.value = true;
})
}else{
} else {
rightarray.value = []
}
@ -428,19 +431,22 @@
const serverUrl = ref("")
onLoad(() => {
// console.log("",uni.getStorageSync('NUall'))
serverUrl.value = uni.getStorageSync('serverUrl') + '/sys/common/static/';
// getSelectList();
})
const openerror = ref(false);
const errormessage = ref("")
const badshow = ref(false)
const zuofei = () => {
cancellation({ qldNo: plsbuy.value[lefttarget.value].qldNo }).then((res : any) => {
console.log('作废', res)
badshow.value = false
if(res.success){
if (res.success) {
plsbuy.value[lefttarget.value] = res.result.result
}else{
} else {
plzinfo.pageNo = 1;
plzinfo.canpull = true;
leftscrolltop.value = 1
@ -450,13 +456,19 @@
lefttarget.value = 0
firstgetqueryCgdList();
}
setTimeout(() => {
uni.showToast({
title: res.success?res.result.message:res.message,
icon: 'none', // 'none'
duration: 3000
})
if (res.success) {
uni.showToast({
title: res.result.message,
icon: 'none', // 'none'
duration: 3000
})
} else {
openerror.value = true;
errormessage.value = res.message
}
}, 300)
})
@ -469,11 +481,11 @@
nuId: uni.getStorageSync('nuId')
}
confirmReceipt(param).then((res : any) => {
console.log('收货', param,res)
console.log('收货', param, res)
shouhuoshow.value = false
if(res.success){
if (res.success) {
plsbuy.value[lefttarget.value] = res.result.result
}else{
} else {
plzinfo.pageNo = 1;
leftscrolltop.value = 1
setTimeout(() => {
@ -483,15 +495,20 @@
plzinfo.canpull = true;
firstgetqueryCgdList();
}
setTimeout(() => {
uni.showToast({
title: res.success?res.result.message:res.message,
icon: 'none', // 'none'
duration: 3000
})
if (res.success) {
uni.showToast({
title: res.result.message,
icon: 'none', // 'none'
duration: 3000
})
} else {
openerror.value = true;
errormessage.value = res.message
}
}, 300)
})
}
</script>
@ -883,7 +900,7 @@
.other-contain-right {
width: 64%;
margin-left: 1%;
height: 103.5%;
height: 100.5%;
.right-contain {
width: 100%;

View File

@ -182,6 +182,7 @@
(newVal, oldVal) => {
// falsetrue0.2
if (!oldVal && newVal) {
cannomessage.value = true
transition.value = false;
plzinfo.pageNo = 1;
plzinfo.canpull = true;
@ -415,10 +416,13 @@
let obj = {
nuId:plzinfo.nuId,
elderId:plzinfo.elderId,
qldNo:plsbuy.value[lefttarget.value].qldNo
qldNo:plsbuy.value[lefttarget.value].qldNo,
nuName:uni.getStorageSync('nuName'),
elderName:uni.getStorageSync(`NUall`).elderInfo.name
}
submitQld(obj).then(res=>{
console.log(res)
console.log("?????",obj,res)
if(res.success&&res.result.status=='success'){
uni.showToast({
icon:'success',
@ -581,7 +585,7 @@
.left-menu-scroll {
margin-bottom: 3%;
height: 100%;
height: 100.5%;
width: 100%;
.pls-card {
width: 98%;

View File

@ -38,7 +38,7 @@
</view>
<view class="qlthbtn-red" v-if="isRead"></view>
</view>
<view class="qlthbtn" @click="thshow = true">
<view class="qlthbtn" style="width: 8vw;" @click="thshow = true">
<image src="/static/index/requestform/ql2.png" mode="aspectFill"></image>
<view class="shx-font">
退货
@ -96,9 +96,9 @@
form.medicationId = '';
form.pageNo = 1;
form.wlParamInfo = '',
config()
getreddian()
config()
wuliao()
getreddian()
if (!oldVal && newVal) {
transition.value = false;
setTimeout(() => {
@ -134,7 +134,7 @@
nuId: uni.getStorageSync('nuId')
}
queryQld(plzinfo0).then((res : any) => {
if (res.result.records[0].izYgRead == `N`) {
if ( res.result.records.length) {
isRead.value = true;
} else {
isRead.value = false;
@ -149,7 +149,8 @@
nuId: uni.getStorageSync('nuId')
}
queryQld(plzinfo1).then((res : any) => {
if (res.result.records[0].izYgRead == `N`) {
// console.log("22",res.result)
if (res.result.records.length) {
isQingling.value = true;
} else {
isQingling.value = false;
@ -169,6 +170,7 @@
const listarr = ref([])
const status = ref('loadmore')
const config = () => {
queryInvoicingList(form).then(res => {
res.result.records.forEach(item => {
item.zk = false;
@ -337,9 +339,12 @@
const tijiao = () => {
let obj = {
nuId: form.nuId,
elderId: form.elderId
elderId: form.elderId,
nuName: uni.getStorageSync('nuName'),
elderName: uni.getStorageSync(`NUall`).elderInfo.name
}
submitQld(obj).then(res => {
console.log("?????",obj,res)
if (res.success && res.result.status == 'success') {
uni.showToast({
icon: 'success',
@ -352,7 +357,7 @@
}, 800)
} else {
// console.log("!!!!!",res)
errmsg.value = res.result.message?res.result.message:res.message
errmsg.value = res.result.message ? res.result.message : res.message
openerror.value = true;
}
})

View File

@ -129,7 +129,7 @@
border-radius: 1.65vw;
border: 1rpx solid #D9DADC;
font-weight: 400;
font-size: 1.2vw;
font-size: 1.4vw;
color: #222;
display: flex;
justify-content: center;

View File

@ -30,7 +30,8 @@
<view class="heng-blue" :style="{ left: `${selectType === 0 ? 18 : 18 + selectType * 30}%` }">
</view>
</view>
<view class="right-button" @click="addshow=true">
<view class="right-button" @click="addnew">
<image src="/static/index/requestform/addnew.png" />
<view>
新增
@ -521,13 +522,14 @@
if(res.success){
addshow.value = false
chongzhi()
setTimeout(()=>{
uni.showToast({
title: `新增成功`,
icon: 'none', // 'none'
duration: 2000
})
},50)
uni.navigateTo({url:'/pages/procurement/addtory'})
// setTimeout(()=>{
// uni.showToast({
// title: ``,
// icon: 'none', // 'none'
// duration: 2000
// })
// },50)
}else{
openmessage.value = true
errormessage.value = res.message

View File

@ -416,7 +416,7 @@
const clickLeftMenu = (index : any, item : any) => {
let num = Math.ceil((index + 1))
leftscrolltop.value = (num - 2) * 175.4;
leftscrolltop.value = (num - 2) * 175;
if (item.izYgRead == 'N') {
let param = {
status: `yg`,
@ -793,7 +793,7 @@
.left-menu-scroll {
margin-top: 3%;
height: 91%;
height: 89%;
width: 100%;
// position: relative;
// overflow: auto;

View File

@ -708,7 +708,7 @@
uni.setStorageSync('nuName', filteredMenu.value[savetypeNow.value].nuName);
uni.setStorageSync('customerId', filteredMenu.value[savetypeNow.value].elderInfo ? filteredMenu.value[savetypeNow.value].elderInfo?.id : null);
uni.setStorageSync('NUall', filteredMenu.value[savetypeNow.value]);
// console.log("??????1111", filteredMenu.value[savetypeNow.value])
if (!typeNow.value) {
uni.navigateTo({
url: '/pages/NursingNew/index'

View File

@ -1,8 +1,8 @@
{
"hash": "9e248234",
"configHash": "17f5f5b6",
"lockfileHash": "285de26d",
"browserHash": "f287ed85",
"hash": "63b19973",
"configHash": "f0a71f11",
"lockfileHash": "e88c1aa2",
"browserHash": "b680c5d4",
"optimized": {},
"chunks": {}
}

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 {
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 {
fullcamera as default
};