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, () => props.isShow,
(newVal, oldVal) => { (newVal, oldVal) => {
// falsetrue0.2 // falsetrue0.2
if (!oldVal && newVal) { if (newVal) {
transition.value = false; transition.value = false;
firstgetqueryCgdList(); firstgetqueryCgdList();
setTimeout(() => { setTimeout(() => {

View File

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

View File

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