This commit is contained in:
parent
88523cc007
commit
18a60b1cdb
|
|
@ -14,7 +14,7 @@
|
||||||
<view class="left-menu-father">
|
<view class="left-menu-father">
|
||||||
<scroll-view scroll-y="true" scroll-with-animation class="left-menu-scroll" :scroll-top="leftscrolltop"
|
<scroll-view scroll-y="true" scroll-with-animation class="left-menu-scroll" :scroll-top="leftscrolltop"
|
||||||
@scrolltolower="plsbuytolower" :lower-threshold="400">
|
@scrolltolower="plsbuytolower" :lower-threshold="400">
|
||||||
<view class="pls-card" v-for="(v,i) in plsbuy" :key='i' @click="clickLeftMenu(i)"
|
<view class="pls-card" v-for="(v,i) in plsbuy" :key='i' @click="clickLeftMenu(i,v)"
|
||||||
:style="{borderColor: i==lefttarget? ``:`#fff` }">
|
:style="{borderColor: i==lefttarget? ``:`#fff` }">
|
||||||
|
|
||||||
<view v-if="moreindex==i" class="more-father">
|
<view v-if="moreindex==i" class="more-father">
|
||||||
|
|
@ -25,9 +25,11 @@
|
||||||
作废
|
作废
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<view class="pls-card-title">
|
<view class="pls-card-title">
|
||||||
<view class="title-left">
|
<view class="title-left">
|
||||||
{{ v.cgdNo }}
|
{ v.cgdNo }
|
||||||
</view>
|
</view>
|
||||||
<view class="title-right">
|
<view class="title-right">
|
||||||
<text style="position: absolute;bottom: 4rpx;left: -30rpx;">
|
<text style="position: absolute;bottom: 4rpx;left: -30rpx;">
|
||||||
|
|
@ -425,7 +427,7 @@
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const lefttarget = ref(0);
|
const lefttarget = ref(0);
|
||||||
const clickLeftMenu = (index : any) => {
|
const clickLeftMenu = (index : any,item:object) => {
|
||||||
let num = Math.ceil((index + 1))
|
let num = Math.ceil((index + 1))
|
||||||
leftscrolltop.value = (num - 2) * 186;
|
leftscrolltop.value = (num - 2) * 186;
|
||||||
lefttarget.value = index;
|
lefttarget.value = index;
|
||||||
|
|
@ -439,6 +441,10 @@
|
||||||
clickmiddle(0);
|
clickmiddle(0);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
if(item.izNew=='Y'){
|
||||||
|
item.izNew = 'N';
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const showvalue = ref({
|
const showvalue = ref({
|
||||||
materialImg: ""
|
materialImg: ""
|
||||||
|
|
|
||||||
|
|
@ -189,3 +189,11 @@ export const getTreeDataWlnum = (params) => {
|
||||||
data: params,
|
data: params,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const editIzNew = (params) => {
|
||||||
|
return request({
|
||||||
|
url: `${uni.getStorageSync('serverUrl')}/api/pad/invoicing/editIzNew`,
|
||||||
|
method: 'post',
|
||||||
|
data: params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
})
|
})
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
this.$emit('config')
|
this.$emit('config')
|
||||||
},800)
|
},1800)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@
|
||||||
<view class="fiedright">
|
<view class="fiedright">
|
||||||
<view @click="uni.navigateTo({ url:'/pages/procurement/materialcar' })">
|
<view @click="uni.navigateTo({ url:'/pages/procurement/materialcar' })">
|
||||||
<image src="/static/index/procurement/gc.png" mode="aspectFill"></image>
|
<image src="/static/index/procurement/gc.png" mode="aspectFill"></image>
|
||||||
<text v-if="carnum>0">{{carnum>99?'99':carnum}}</text>
|
<text v-if="carnum>0">{{carnum>99?'99+':carnum}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view @click="uni.navigateTo({ url:'/pages/procurement/purchaseorder' })">
|
<view @click="uni.navigateTo({ url:'/pages/procurement/purchaseorder' })">
|
||||||
<image src="/static/index/procurement/cg.png" mode="aspectFill"></image>
|
<image src="/static/index/procurement/cg.png" mode="aspectFill"></image>
|
||||||
|
|
@ -187,11 +187,12 @@
|
||||||
warn.pageNo=1;
|
warn.pageNo=1;
|
||||||
Material.value=[];
|
Material.value=[];
|
||||||
InvoicingList.value=[];
|
InvoicingList.value=[];
|
||||||
shoppcar();
|
|
||||||
queryInvo();
|
|
||||||
getWaringMaterial()
|
|
||||||
moredex.value=0;
|
moredex.value=0;
|
||||||
shoppcar();
|
shoppcar();
|
||||||
|
queryInvo();
|
||||||
|
getWaringMaterial()
|
||||||
|
shoppcar();
|
||||||
|
|
||||||
}
|
}
|
||||||
const carnum = ref(0)
|
const carnum = ref(0)
|
||||||
const shoppcar=()=>{
|
const shoppcar=()=>{
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
<view class="left-menu-father">
|
<view class="left-menu-father">
|
||||||
<scroll-view scroll-y="true" scroll-with-animation class="left-menu-scroll" :scroll-top="leftscrolltop"
|
<scroll-view scroll-y="true" scroll-with-animation class="left-menu-scroll" :scroll-top="leftscrolltop"
|
||||||
@scrolltolower="plsbuytolower" :lower-threshold="400">
|
@scrolltolower="plsbuytolower" :lower-threshold="400">
|
||||||
<view class="pls-card" v-for="(v,i) in plsbuy" :key='i' @click="clickLeftMenu(i)"
|
<view class="pls-card" v-for="(v,i) in plsbuy" :key='i' @click="clickLeftMenu(i,v)"
|
||||||
:style="{borderColor: i==lefttarget? ``:`#fff` }">
|
:style="{borderColor: i==lefttarget? ``:`#fff` }">
|
||||||
|
|
||||||
<view v-if="moreindex==i" class="more-father">
|
<view v-if="moreindex==i" class="more-father">
|
||||||
|
|
@ -25,6 +25,9 @@
|
||||||
作废
|
作废
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<text style="display: block;background: #ff5757;
|
||||||
|
position: absolute;width: 1.3vw;height: 1.3vw;border-radius: 50%;right: -0.1vw;top: -0.1vw;"
|
||||||
|
v-if="v.izNew=='Y'"></text>
|
||||||
<view class="pls-card-title">
|
<view class="pls-card-title">
|
||||||
<view class="title-left">
|
<view class="title-left">
|
||||||
{{ v.cgdNo }}
|
{{ v.cgdNo }}
|
||||||
|
|
@ -405,7 +408,7 @@
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted, reactive, onBeforeUnmount, computed, nextTick, defineProps } from 'vue';
|
import { ref, onMounted, reactive, onBeforeUnmount, computed, nextTick, defineProps } from 'vue';
|
||||||
import { queryInvoicingList, getCgdMaterialTreeData, queryNuInfoByNuId, updateKfstatus, queryCgdList, queryCgdInfoList, queryWlInfoByWlId, voidedCgdMain } from './api/lunpan.js'
|
import { editIzNew,queryInvoicingList, getCgdMaterialTreeData, queryNuInfoByNuId, updateKfstatus, queryCgdList, queryCgdInfoList, queryWlInfoByWlId, voidedCgdMain } from './api/lunpan.js'
|
||||||
import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app"
|
import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app"
|
||||||
import classification from './components/cgdclass.vue'
|
import classification from './components/cgdclass.vue'
|
||||||
import nomessageimge from '@/pages/procurement/components/nomessage.vue';
|
import nomessageimge from '@/pages/procurement/components/nomessage.vue';
|
||||||
|
|
@ -480,14 +483,14 @@
|
||||||
if (!plzinfo.canpull) return
|
if (!plzinfo.canpull) return
|
||||||
queryCgdList(plzinfo).then((res : any) => {
|
queryCgdList(plzinfo).then((res : any) => {
|
||||||
plsbuy.value.push(...res.result.records)
|
plsbuy.value.push(...res.result.records)
|
||||||
|
clickLeftMenu(lefttarget.value,plsbuy.value[lefttarget.value])
|
||||||
if (res.result.records.length < plzinfo.pageSize) {
|
if (res.result.records.length < plzinfo.pageSize) {
|
||||||
plzinfo.canpull = false;
|
plzinfo.canpull = false;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const lefttarget = ref(0);
|
const lefttarget = ref(0);
|
||||||
const clickLeftMenu = (index : any) => {
|
const clickLeftMenu = (index : any , item:object) => {
|
||||||
let num = Math.ceil((index + 1))
|
let num = Math.ceil((index + 1))
|
||||||
leftscrolltop.value = (num - 2) * 186;
|
leftscrolltop.value = (num - 2) * 186;
|
||||||
lefttarget.value = index;
|
lefttarget.value = index;
|
||||||
|
|
@ -495,6 +498,10 @@
|
||||||
form.pageNo = 1
|
form.pageNo = 1
|
||||||
form.canpull = true;
|
form.canpull = true;
|
||||||
queryInvo();
|
queryInvo();
|
||||||
|
if(item.izNew=='Y'){
|
||||||
|
item.izNew='N'
|
||||||
|
editIzNew({id:item.id})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const showvalue = ref({
|
const showvalue = ref({
|
||||||
materialImg: "",
|
materialImg: "",
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
export {
|
||||||
camera as default
|
camera as default
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
export {
|
||||||
fullcamera as default
|
fullcamera as default
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue