This commit is contained in:
parent
aa52f6bbfa
commit
6cb384e20b
|
|
@ -20,7 +20,7 @@
|
||||||
<!-- 采购增加层级高度方便点击 -->
|
<!-- 采购增加层级高度方便点击 -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="annotation" :class="'annotation'+(i+1)" v-for="(v,i) in ['付款','采购','拣货','完结','护理单元','监控室']"
|
<view class="annotation" :class="'annotation'+(i+1)" v-for="(v,i) in ['付款','采购','拣货','完结','护理单元','监控室','请领出库','退货入库']"
|
||||||
:key='i' @click="onlyjump(i)">
|
:key='i' @click="onlyjump(i)">
|
||||||
<view> </view>
|
<view> </view>
|
||||||
<view class="tp">
|
<view class="tp">
|
||||||
|
|
@ -59,10 +59,53 @@
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const housedex = ref(-1);
|
const housedex = ref(-1);
|
||||||
|
const forthmenuIndex = ref<number>(0);
|
||||||
|
const lastTap = ref(0)
|
||||||
|
const DOUBLE_TAP_DELAY = 300;
|
||||||
|
const setout = ref(null)
|
||||||
const housactive = (index : number) => {
|
const housactive = (index : number) => {
|
||||||
|
housedex.value = index;
|
||||||
|
const now = Date.now()
|
||||||
|
forthmenuIndex.value = i
|
||||||
|
if (now - lastTap.value < DOUBLE_TAP_DELAY) {
|
||||||
|
// 双击成立
|
||||||
|
clearTimeout(setout.value)
|
||||||
|
if (index == 1) {
|
||||||
|
navurl.value = 'pages/procurement/material'
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/' + navurl.value
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if (index == 2) {
|
||||||
|
navurl.value = 'pages/Warehouse/picking'
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/' + navurl.value
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if (index == 3) {
|
||||||
|
navurl.value = 'pages/Warehouse/finish'
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/' + navurl.value
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 重置,避免多次触发
|
||||||
|
lastTap.value = 0
|
||||||
|
} else {
|
||||||
|
setout.value = setTimeout(()=>{
|
||||||
console.log("点击哪个了",index)
|
console.log("点击哪个了",index)
|
||||||
if (index > 5) { return }
|
if (index === 5) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pages/watch/full"
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
},DOUBLE_TAP_DELAY)
|
||||||
|
// 记录本次时间,等待下次点击
|
||||||
|
lastTap.value = now
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(housedex.value == index){
|
if(housedex.value == index){
|
||||||
if (housedex.value == 0) {
|
if (housedex.value == 0) {
|
||||||
navurl.value = 'pages/Warehouse/paymoney'
|
navurl.value = 'pages/Warehouse/paymoney'
|
||||||
|
|
@ -70,34 +113,10 @@
|
||||||
url: '/' + navurl.value
|
url: '/' + navurl.value
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (housedex.value == 1) {
|
|
||||||
navurl.value = 'pages/procurement/material'
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/' + navurl.value
|
|
||||||
})
|
|
||||||
}
|
|
||||||
if (housedex.value == 2) {
|
|
||||||
navurl.value = 'pages/Warehouse/picking'
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/' + navurl.value
|
|
||||||
})
|
|
||||||
}
|
|
||||||
if (housedex.value == 3) {
|
|
||||||
navurl.value = 'pages/Warehouse/finish'
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/' + navurl.value
|
|
||||||
})
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
housedex.value = index;
|
|
||||||
// console.log("index", index)
|
|
||||||
// 只有中心的四个有动画.....所以点不到监控室
|
|
||||||
if (index === 5) {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: "/pages/watch/full"
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
housedex.value = 1
|
housedex.value = 1
|
||||||
|
|
@ -512,6 +531,14 @@
|
||||||
top: 24vw;
|
top: 24vw;
|
||||||
right: 6vw;
|
right: 6vw;
|
||||||
}
|
}
|
||||||
|
.annotation7 {
|
||||||
|
top: 62vh;
|
||||||
|
left: 40vw;
|
||||||
|
}
|
||||||
|
.annotation8 {
|
||||||
|
top: 5vh;
|
||||||
|
left: 28vw;
|
||||||
|
}
|
||||||
|
|
||||||
// title
|
// title
|
||||||
.annotation {
|
.annotation {
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
<view style="width: 100%;margin-top: 50rpx;font-size: 30rpx;">
|
<view style="width: 100%;margin-top: 50rpx;font-size: 30rpx;">
|
||||||
采购单价:
|
采购单价:
|
||||||
<text style="color: #888888;">
|
<text style="color: #888888;">
|
||||||
¥1.50
|
¥{{ gaijia }}
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -47,17 +47,17 @@
|
||||||
<view style="font-size: 30rpx;margin-bottom: 10rpx;">
|
<view style="font-size: 30rpx;margin-bottom: 10rpx;">
|
||||||
到货单价
|
到货单价
|
||||||
</view>
|
</view>
|
||||||
<view class="gray-input">
|
<view class="gray-input" style="width: 410rpx;">
|
||||||
¥1500.00
|
¥ {{ gaijia }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="position: absolute;right: 30rpx;bottom: 30rpx;">
|
<view style="position: absolute;right: 30rpx;bottom: 30rpx;">
|
||||||
<view style="display: flex;">
|
<view style="display: flex;">
|
||||||
<view
|
<view @click="opengaijia=false"
|
||||||
style="width: 160rpx;height: 75rpx;background-color: #ebeced;color: #888888;display: flex;justify-content: center;align-items: center;font-size: 30rpx;border-radius: 40rpx;">
|
style="width: 160rpx;height: 75rpx;background-color: #ebeced;color: #888888;display: flex;justify-content: center;align-items: center;font-size: 30rpx;border-radius: 40rpx;">
|
||||||
取消
|
取消
|
||||||
</view>
|
</view>
|
||||||
<view
|
<view @click="dogaijia"
|
||||||
style="width: 160rpx;height: 75rpx;;color: #0385FA;display: flex;justify-content: center;align-items: center;font-size: 30rpx;border-radius: 40rpx;border: 1rpx solid #0385FA;background: linear-gradient(to bottom,#E9F4FF,#CAE0F9);margin: 0 40rpx;">
|
style="width: 160rpx;height: 75rpx;;color: #0385FA;display: flex;justify-content: center;align-items: center;font-size: 30rpx;border-radius: 40rpx;border: 1rpx solid #0385FA;background: linear-gradient(to bottom,#E9F4FF,#CAE0F9);margin: 0 40rpx;">
|
||||||
确定
|
确定
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -66,50 +66,50 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="jianhuo-jianpan" style="right: -40rpx;bottom: 150rpx;">
|
<view class="jianhuo-jianpan" style="right: -40rpx;bottom: 150rpx;">
|
||||||
<view style="display: flex;width: 480rpx;">
|
<view style="display: flex;width: 480rpx;">
|
||||||
<view class="gray-button-jianpan">
|
<view class="gray-button-jianpan" @click="press('1')">
|
||||||
1
|
1
|
||||||
</view>
|
</view>
|
||||||
<view class="gray-button-jianpan">
|
<view class="gray-button-jianpan" @click="press('2')">
|
||||||
2
|
2
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="gray-button-jianpan">
|
<view class="gray-button-jianpan" @click="press('3')">
|
||||||
3
|
3
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="display: flex;width: 480rpx;">
|
<view style="display: flex;width: 480rpx;">
|
||||||
<view class="gray-button-jianpan">
|
<view class="gray-button-jianpan" @click="press('4')">
|
||||||
4
|
4
|
||||||
</view>
|
</view>
|
||||||
<view class="gray-button-jianpan">
|
<view class="gray-button-jianpan" @click="press('5')">
|
||||||
5
|
5
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="gray-button-jianpan">
|
<view class="gray-button-jianpan" @click="press('6')">
|
||||||
6
|
6
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="display: flex;width: 480rpx;">
|
<view style="display: flex;width: 480rpx;">
|
||||||
<view class="gray-button-jianpan">
|
<view class="gray-button-jianpan" @click="press('7')">
|
||||||
7
|
7
|
||||||
</view>
|
</view>
|
||||||
<view class="gray-button-jianpan">
|
<view class="gray-button-jianpan" @click="press('8')">
|
||||||
8
|
8
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="gray-button-jianpan">
|
<view class="gray-button-jianpan" @click="press('9')">
|
||||||
9
|
9
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="display: flex;width: 480rpx;">
|
<view style="display: flex;width: 480rpx;">
|
||||||
<view class="gray-button-jianpan">
|
<view class="gray-button-jianpan" @click="press('AC')">
|
||||||
AC
|
AC
|
||||||
</view>
|
</view>
|
||||||
<view class="gray-button-jianpan">
|
<view class="gray-button-jianpan" @click="press('0')">
|
||||||
0
|
0
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="gray-button-jianpan">
|
<view class="gray-button-jianpan" @click="press('.')">
|
||||||
.
|
.
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -234,7 +234,7 @@
|
||||||
<image style="width: 100%;height: 100%;" :src="item?item:'/static/zhanwei.png'" mode="aspectFill"
|
<image style="width: 100%;height: 100%;" :src="item?item:'/static/zhanwei.png'" mode="aspectFill"
|
||||||
@click="previewImage(item,index,albumlist)" />
|
@click="previewImage(item,index,albumlist)" />
|
||||||
</view>
|
</view>
|
||||||
<view style="width: 40%;height: 150rpx;margin-right: 4%;margin-top: 3%;">
|
<view style="width: 40%;height: 150rpx;margin-right: 4%;margin-top: 3%;" v-if="albumlist.length<4" @click="uplod">
|
||||||
<view style="
|
<view style="
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
@ -244,8 +244,7 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background-color:#fafdff ;
|
background-color:#fafdff ;
|
||||||
border: 1rpx solid #c4ebff;
|
border: 1rpx solid #c4ebff;
|
||||||
border-radius: 20rpx;" v-if="albumlist.length<4" @click="uplod">
|
border-radius: 20rpx;">
|
||||||
|
|
||||||
<image style="width: 50rpx;height: 50rpx;margin-bottom: 5rpx;"
|
<image style="width: 50rpx;height: 50rpx;margin-bottom: 5rpx;"
|
||||||
src="/static/index/warehouse/procurement/picking/addphoto.png" />
|
src="/static/index/warehouse/procurement/picking/addphoto.png" />
|
||||||
<view style="color: #78B1EB;font-size: 25rpx;">
|
<view style="color: #78B1EB;font-size: 25rpx;">
|
||||||
|
|
@ -263,7 +262,8 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="display: flex;margin-top: 30rpx;margin-left: 20rpx;">
|
<view style="display: flex;margin-top: 30rpx;margin-left: 20rpx;">
|
||||||
<view class="gray-button" @click="jjnum(-1)" @longpress="handleTouchStart(-1)" @touchend="handleTouchEnd">
|
<view class="gray-button" @click="jjnum(-1)" @longpress="handleTouchStart(-1)"
|
||||||
|
@touchend="handleTouchEnd">
|
||||||
-
|
-
|
||||||
</view>
|
</view>
|
||||||
<view class="gray-input" style="width:12vw;">
|
<view class="gray-input" style="width:12vw;">
|
||||||
|
|
@ -379,7 +379,6 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="photowall-other-one" v-if="topbuttontarget==1">
|
<view class="photowall-other-one" v-if="topbuttontarget==1">
|
||||||
|
|
||||||
<view
|
<view
|
||||||
style="width: 100%;height: 70%;display: flex;flex-direction: column;justify-content: center;align-items: center;background-color:#fafdff ;border: 1rpx solid #78B1EB;border-radius: 30rpx;">
|
style="width: 100%;height: 70%;display: flex;flex-direction: column;justify-content: center;align-items: center;background-color:#fafdff ;border: 1rpx solid #78B1EB;border-radius: 30rpx;">
|
||||||
<image style="width: 70rpx;height: 70rpx;margin-bottom: 5rpx;"
|
<image style="width: 70rpx;height: 70rpx;margin-bottom: 5rpx;"
|
||||||
|
|
@ -643,10 +642,10 @@
|
||||||
随行单
|
随行单
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view :class="lefttarget==1?`contain-right-button`: `contain-right-button-bad`"
|
<view :class="!Number(plsbuy[lefttarget]?.status)?`contain-right-button`: `contain-right-button-bad`"
|
||||||
style="border-color: #D9DADC;box-shadow: 0 1rpx 3rpx #D9DADC;">
|
style="border-color: #D9DADC;box-shadow: 0 1rpx 3rpx #D9DADC;" @click="bebad">
|
||||||
<image class="buttont-img"
|
<image class="buttont-img"
|
||||||
:src="`/static/index/warehouse/procurement/picking/bebad${lefttarget==1?``:`target`}.png`" />
|
:src="`/static/index/warehouse/procurement/picking/bebad${!Number(plsbuy[lefttarget]?.status)?``:`target`}.png`" />
|
||||||
<view class="button-font">
|
<view class="button-font">
|
||||||
作废
|
作废
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -1072,26 +1071,71 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="mengban" v-if="open>0" @click="open = 0"> </view>
|
<view class="mengban" v-if="open==1"> </view>
|
||||||
<equiment :open="open==1" @del="del()" @back="open = 0" :content="'是否删除此图片?'"></equiment>
|
<equiment :open="open==1" @del="del()" @back="open = 0" :content="'是否删除此图片?'"></equiment>
|
||||||
<equiment :open="open==2" @del="sctp(1)" @back="open = 0" :content="'是否销账此物料?'"></equiment>
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted, reactive, onBeforeUnmount, computed, nextTick, defineProps, onUnmounted } from 'vue';
|
import { ref, onMounted, reactive, onBeforeUnmount, computed, nextTick, defineProps, onUnmounted } from 'vue';
|
||||||
import { pickingInfo,queryInvoicingList, getCgdMaterialTreeData, queryNuInfoByNuId, updateKfstatus, queryCgdList, queryCgdInfoList, queryWlInfoByWlId, voidedCgdMain, getCgrLis, getGysList, upload } from './api/lunpan.js'
|
import { queryInvoicingList, getCgdMaterialTreeData, queryNuInfoByNuId, updateKfstatus, queryCgdList, queryCgdInfoList, queryWlInfoByWlId, voidedCgdMain, getCgrLis, getGysList, upload, editPrice, pickingInfo } from './api/lunpan.js'
|
||||||
import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app"
|
import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app"
|
||||||
import calendar from '@/component/public/calendar.vue'
|
import calendar from '@/component/public/calendar.vue'
|
||||||
import superpicker from '@/component/public/superpicker.vue'
|
import superpicker from '@/component/public/superpicker.vue'
|
||||||
import equiment from './components/equiment.vue';
|
import equiment from './components/equiment.vue';
|
||||||
const open = ref(0);
|
const open = ref(0);
|
||||||
const typechange = ref(0);
|
const typechange = ref(0);
|
||||||
const stringjh = ref(0)
|
const stringjh = ref("")
|
||||||
const serverUrl = ref("");
|
const serverUrl = ref("");
|
||||||
const opengaijia = ref(false);
|
const opengaijia = ref(false);
|
||||||
const openjianhuo = ref(false);
|
const openjianhuo = ref(false);
|
||||||
const opendata = ref(false);
|
const opendata = ref(false);
|
||||||
|
const gaijia = ref("");
|
||||||
|
|
||||||
|
|
||||||
|
// 改价
|
||||||
|
const dogaijia = () => {
|
||||||
|
// console.log("????",showvalue.value.id,gaijia.value)
|
||||||
|
editPrice({ id: showvalue.value.id, arrivalPrice: gaijia.value }).then((res) => {
|
||||||
|
// console.log("改价", showvalue.value.id,gaijia.value)
|
||||||
|
// console.log("res", res)
|
||||||
|
if (res.code == 200) {
|
||||||
|
showvalue.value.arrivalPrice = gaijia.value;
|
||||||
|
opengaijia.value = false;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 计算器
|
||||||
|
function press(k : string) {
|
||||||
|
if (k === 'AC') {
|
||||||
|
gaijia.value = ''
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// 小数点
|
||||||
|
if (k === '.') {
|
||||||
|
if (!gaijia.value.includes('.')) {
|
||||||
|
gaijia.value = gaijia.value === '' ? '0.' : gaijia.value + '.'
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// 数字
|
||||||
|
if (/^\d$/.test(k)) {
|
||||||
|
// 有小数
|
||||||
|
if (gaijia.value.includes('.')) {
|
||||||
|
const [i, d] = gaijia.value.split('.')
|
||||||
|
if ((d || '').length < 2) gaijia.value += k
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// 无小数,整数部分限制 4 位
|
||||||
|
let intPart = gaijia.value
|
||||||
|
if (intPart === '0') intPart = '' // 防止 01
|
||||||
|
|
||||||
|
if (intPart.length < 4) gaijia.value = intPart + k
|
||||||
|
}
|
||||||
|
}
|
||||||
// 模糊查询
|
// 模糊查询
|
||||||
const gysclick = (res : any) => {
|
const gysclick = (res : any) => {
|
||||||
console.log("///", res);
|
console.log("///", res);
|
||||||
|
|
@ -1109,9 +1153,9 @@
|
||||||
donghuaopo.value = true;
|
donghuaopo.value = true;
|
||||||
}, 100)
|
}, 100)
|
||||||
}
|
}
|
||||||
|
|
||||||
const opengaijiaclick = () => {
|
const opengaijiaclick = () => {
|
||||||
opengaijia.value = true;
|
opengaijia.value = true;
|
||||||
|
gaijia.value = (showvalue.value.arrivalPrice ? showvalue.value.arrivalPrice : showvalue.value.procurementPrice).toString()
|
||||||
donghuaopo.value = false;
|
donghuaopo.value = false;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
donghuaopo.value = true;
|
donghuaopo.value = true;
|
||||||
|
|
@ -1247,6 +1291,7 @@
|
||||||
const opencgr = ref(false);
|
const opencgr = ref(false);
|
||||||
const opengys = ref(false);
|
const opengys = ref(false);
|
||||||
|
|
||||||
|
|
||||||
const cgrlist = ref([]);
|
const cgrlist = ref([]);
|
||||||
const gyslist = ref([]);
|
const gyslist = ref([]);
|
||||||
|
|
||||||
|
|
@ -1256,6 +1301,7 @@
|
||||||
})
|
})
|
||||||
getGysList().then((res : any) => {
|
getGysList().then((res : any) => {
|
||||||
gyslist.value = res.result;
|
gyslist.value = res.result;
|
||||||
|
console.log("isright", res)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1319,10 +1365,12 @@
|
||||||
queryCgdList(plzinfo).then((res : any) => {
|
queryCgdList(plzinfo).then((res : any) => {
|
||||||
plsbuy.value.push(...res.result.records)
|
plsbuy.value.push(...res.result.records)
|
||||||
alltotal.value = res.result.total
|
alltotal.value = res.result.total
|
||||||
|
console.log("请购单数据呢???", res)
|
||||||
if (res.result.records.length) {
|
if (res.result.records.length) {
|
||||||
form.cgdId = plsbuy.value[0].id
|
form.cgdId = plsbuy.value[0].id
|
||||||
queryInvo();
|
queryInvo(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (res.result.records.length < plzinfo.pageSize) {
|
if (res.result.records.length < plzinfo.pageSize) {
|
||||||
plzinfo.canpull = false;
|
plzinfo.canpull = false;
|
||||||
}
|
}
|
||||||
|
|
@ -1360,7 +1408,15 @@
|
||||||
form.cgdId = plsbuy.value[index].id
|
form.cgdId = plsbuy.value[index].id
|
||||||
form.pageNo = 1
|
form.pageNo = 1
|
||||||
form.canpull = true;
|
form.canpull = true;
|
||||||
queryInvo()
|
// console.log("!!!!",form)
|
||||||
|
queryCgdInfoList(form).then(res => {
|
||||||
|
InvoicingList.value = []
|
||||||
|
// console.log("数据呢", res.result.records)
|
||||||
|
InvoicingList.value.push(...res.result.records);
|
||||||
|
if (form.pageNo) {
|
||||||
|
clickmiddle(0);
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
const showvalue = ref({
|
const showvalue = ref({
|
||||||
materialImg: ""
|
materialImg: ""
|
||||||
|
|
@ -1408,10 +1464,10 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
const InvoicingList = ref([])
|
const InvoicingList = ref([])
|
||||||
const queryInvo = () => {
|
const queryInvo = (index:number) => {
|
||||||
queryCgdInfoList(form).then(res => {
|
queryCgdInfoList(form).then(res => {
|
||||||
InvoicingList.value=res.result.records;
|
InvoicingList.value=res.result.records;
|
||||||
clickmiddle(0);
|
clickmiddle(index);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const search = () => {
|
const search = () => {
|
||||||
|
|
@ -1423,7 +1479,7 @@
|
||||||
alltotal.value = res.result.total
|
alltotal.value = res.result.total
|
||||||
if (res.result.records.length) {
|
if (res.result.records.length) {
|
||||||
form.cgdId = plsbuy.value[0].id
|
form.cgdId = plsbuy.value[0].id
|
||||||
queryInvo();
|
queryInvo(0);
|
||||||
}
|
}
|
||||||
if (res.result.records.length < plzinfo.pageSize) {
|
if (res.result.records.length < plzinfo.pageSize) {
|
||||||
plzinfo.canpull = false;
|
plzinfo.canpull = false;
|
||||||
|
|
@ -1436,21 +1492,21 @@
|
||||||
}
|
}
|
||||||
const moreindex = ref(-1);
|
const moreindex = ref(-1);
|
||||||
const zuofeiindex = ref(-1);
|
const zuofeiindex = ref(-1);
|
||||||
const openmore = (index : number) => {
|
// const openmore = (index : number) => {
|
||||||
zuofeiindex.value = index;
|
// zuofeiindex.value = index;
|
||||||
if (plsbuy.value[index].cgdType == '9') {
|
// if (plsbuy.value[index].cgdType == '9') {
|
||||||
setTimeout(() => {
|
// setTimeout(() => {
|
||||||
uni.showToast({
|
// uni.showToast({
|
||||||
title: '该采购单已作废',
|
// title: '该采购单已作废',
|
||||||
icon: 'error', // 不显示小图标
|
// icon: 'error', // 不显示小图标
|
||||||
duration: 2000
|
// duration: 2000
|
||||||
})
|
// })
|
||||||
}, 300)
|
// }, 300)
|
||||||
|
|
||||||
} else {
|
// } else {
|
||||||
moreindex.value = index;
|
// moreindex.value = index;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
const shareShow = ref(false);
|
const shareShow = ref(false);
|
||||||
const deletedownisopacity = ref(false)
|
const deletedownisopacity = ref(false)
|
||||||
const share = () => {
|
const share = () => {
|
||||||
|
|
@ -1481,13 +1537,21 @@
|
||||||
const badshow = ref(false);
|
const badshow = ref(false);
|
||||||
const donghuacs = ref(false)
|
const donghuacs = ref(false)
|
||||||
const bebad = () => {
|
const bebad = () => {
|
||||||
|
// console.log("ceshi",Number(plsbuy.value[lefttarget.value]?.status))
|
||||||
|
// console.log("right?",plsbuy.value[lefttarget.value])
|
||||||
|
if (!Number(plsbuy.value[lefttarget.value]?.status) && plsbuy.value.length) {
|
||||||
badshow.value = true;
|
badshow.value = true;
|
||||||
moreindex.value = -1;
|
moreindex.value = -1;
|
||||||
donghuacs.value = false;
|
donghuacs.value = false;
|
||||||
setTimeout(() => donghuacs.value = true, 50)
|
setTimeout(() => donghuacs.value = true, 50)
|
||||||
|
}
|
||||||
|
// return
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
const zuofei = () => {
|
const zuofei = () => {
|
||||||
voidedCgdMain({ id: plsbuy.value[zuofeiindex.value].id }).then((res : any) => {
|
voidedCgdMain({ id: plsbuy.value[lefttarget.value].id }).then((res : any) => {
|
||||||
|
// console.log("res", res)
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
|
|
@ -1509,6 +1573,7 @@
|
||||||
donghuaopo.value = false;
|
donghuaopo.value = false;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
donghuaopo.value = true;
|
donghuaopo.value = true;
|
||||||
|
console.log("zzz", donghuaopo.value)
|
||||||
}, 100)
|
}, 100)
|
||||||
}
|
}
|
||||||
// 上传
|
// 上传
|
||||||
|
|
@ -1547,7 +1612,6 @@
|
||||||
deldex.value = -1;
|
deldex.value = -1;
|
||||||
open.value = 0;
|
open.value = 0;
|
||||||
}
|
}
|
||||||
//
|
|
||||||
const clickflag = ref(false);
|
const clickflag = ref(false);
|
||||||
const clknum = (item : any) => {
|
const clknum = (item : any) => {
|
||||||
// showvalue.value.maxnum = showvalue.value.purchaseQuantity : showvalue.value.wrksl
|
// showvalue.value.maxnum = showvalue.value.purchaseQuantity : showvalue.value.wrksl
|
||||||
|
|
@ -1585,6 +1649,7 @@
|
||||||
const s = Math.abs(n).toString();
|
const s = Math.abs(n).toString();
|
||||||
return s.length;
|
return s.length;
|
||||||
}
|
}
|
||||||
|
// 数字转化
|
||||||
const toFixed4ByPadStart = (n) => {
|
const toFixed4ByPadStart = (n) => {
|
||||||
const intPart = Math.floor(Math.abs(n));
|
const intPart = Math.floor(Math.abs(n));
|
||||||
return String(intPart).padStart(4, '0');
|
return String(intPart).padStart(4, '0');
|
||||||
|
|
@ -1629,11 +1694,12 @@
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
title: res.message
|
title: res.message
|
||||||
})
|
})
|
||||||
|
albumlist.value = [];
|
||||||
addupimg.value = [];
|
addupimg.value = [];
|
||||||
openjianhuo.value = false;
|
openjianhuo.value = false;
|
||||||
open.value = 0;
|
open.value = 0;
|
||||||
form.cgdId = plsbuy.value[lefttarget.value].id
|
form.cgdId = plsbuy.value[lefttarget.value].id;
|
||||||
queryInvo()
|
queryInvo(middletarget.value)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const xdex = ref(-1)
|
const xdex = ref(-1)
|
||||||
|
|
@ -2087,6 +2153,7 @@
|
||||||
color: #888888;
|
color: #888888;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 25rpx;
|
font-size: 25rpx;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.middle-heng-father {
|
.middle-heng-father {
|
||||||
|
|
@ -3007,10 +3074,11 @@
|
||||||
// width: 100rpx;
|
// width: 100rpx;
|
||||||
padding: 0 30rpx;
|
padding: 0 30rpx;
|
||||||
letter-spacing: 10rpx;
|
letter-spacing: 10rpx;
|
||||||
|
|
||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
border: 1rpx solid #CBCFD0;
|
border: 1rpx solid #CBCFD0;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: flex-end;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding-left: 40rpx;
|
padding-left: 40rpx;
|
||||||
margin-right: 10rpx;
|
margin-right: 10rpx;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue