This commit is contained in:
Teng 2025-12-09 17:02:35 +08:00
parent 0241ae166e
commit 60fc092827
3 changed files with 27 additions and 15 deletions

View File

@ -233,7 +233,7 @@
() => props.isShow,
(newVal, oldVal) => {
// falsetrue0.2
if (!oldVal && newVal) {
if (newVal) {
transition.value = false;
firstgetqueryCgdList();
setTimeout(() => {

View File

@ -287,7 +287,7 @@
cannomessage.value = false
plsbuy.value = [];
console.log(res)
// console.log(res)
plsbuy.value.push(...res.result.records)
// console.log("", plzinfo)
// console.log("", res.result.records)

View File

@ -147,7 +147,8 @@
<view class="middle-heng-father">
<view class="middle-ball" :style="Number(v.status)<4?{backgroundColor: `#E5E5E5`}:{}"
<view class="middle-ball"
:style="Number(v.status)<4?{backgroundColor: `#E5E5E5`}:{}"
v-if="Number(v.status)!=5"></view>
<image class="middle-ball-img" v-else src="/static/index/requestform/isok.png" />
</view>
@ -227,10 +228,10 @@
style="width: 30%;height: 30%;position: absolute;">
</defaultr>
</scroll-view>
<view class="bottom-buttons" v-show="manyselect">
<view class="button-gray" @click="quxiao">
<view class="bottom-buttons" v-show="plsbuy[lefttarget]?.status==`1`">
<!-- <view class="button-gray" @click="quxiao">
取消
</view>
</view> -->
<view class="button-blue" @click="chukushow=true">
出库
</view>
@ -239,6 +240,7 @@
</view>
</view>
<errorshow :show="openerror" font="注意:只能选择待出库的请领单" @close="openerror=false" />
<errorshow :show="qinglingshow" font="注意:批量选择模式请选择一项或以上的请领单" @close="qinglingshow=false" />
</template>
<script setup lang="ts">
@ -535,21 +537,31 @@
const selectarray = ref([]);
const startselect = () => {
selectarray.value = [];
manyselect.value = !manyselect.value
if(!manyselect.value){
lefttarget.value = 0
}
}
const quxiao = () => {
selectarray.value = [];
manyselect.value = false
}
const chukushow = ref(false)
// const quxiao = () => {
// selectarray.value = [];
// manyselect.value = false;
// }
const chukushow = ref(false);
const qinglingshow = ref(false)
const chukuclick = () => {
// outbound
// console.log("",selectarray.value.join(','))
outbound({ qldNo: selectarray.value.join(',') }).then((res : any) => {
// console.log('', res)
if(manyselect.value && !selectarray.value.length){
qinglingshow.value = true
return
}
outbound({ qldNo: manyselect.value ? selectarray.value.join(',') : plsbuy.value[lefttarget.value].qldNo }).then((res : any) => {
selectarray.value = [];
manyselect.value = false
chukushow.value = false
plzinfo.pageNo = 1;
lefttarget.value = 0
plzinfo.canpull = true;
leftscrolltop.value = 1
setTimeout(() => {