This commit is contained in:
parent
88523cc007
commit
18a60b1cdb
|
|
@ -14,7 +14,7 @@
|
|||
<view class="left-menu-father">
|
||||
<scroll-view scroll-y="true" scroll-with-animation class="left-menu-scroll" :scroll-top="leftscrolltop"
|
||||
@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` }">
|
||||
|
||||
<view v-if="moreindex==i" class="more-father">
|
||||
|
|
@ -25,9 +25,11 @@
|
|||
作废
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="pls-card-title">
|
||||
<view class="title-left">
|
||||
{{ v.cgdNo }}
|
||||
{ v.cgdNo }
|
||||
</view>
|
||||
<view class="title-right">
|
||||
<text style="position: absolute;bottom: 4rpx;left: -30rpx;">
|
||||
|
|
@ -425,7 +427,7 @@
|
|||
})
|
||||
}
|
||||
const lefttarget = ref(0);
|
||||
const clickLeftMenu = (index : any) => {
|
||||
const clickLeftMenu = (index : any,item:object) => {
|
||||
let num = Math.ceil((index + 1))
|
||||
leftscrolltop.value = (num - 2) * 186;
|
||||
lefttarget.value = index;
|
||||
|
|
@ -439,6 +441,10 @@
|
|||
clickmiddle(0);
|
||||
}
|
||||
})
|
||||
if(item.izNew=='Y'){
|
||||
item.izNew = 'N';
|
||||
|
||||
}
|
||||
}
|
||||
const showvalue = ref({
|
||||
materialImg: ""
|
||||
|
|
|
|||
|
|
@ -189,3 +189,11 @@ export const getTreeDataWlnum = (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(()=>{
|
||||
this.$emit('config')
|
||||
},800)
|
||||
},1800)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@
|
|||
<view class="fiedright">
|
||||
<view @click="uni.navigateTo({ url:'/pages/procurement/materialcar' })">
|
||||
<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 @click="uni.navigateTo({ url:'/pages/procurement/purchaseorder' })">
|
||||
<image src="/static/index/procurement/cg.png" mode="aspectFill"></image>
|
||||
|
|
@ -187,11 +187,12 @@
|
|||
warn.pageNo=1;
|
||||
Material.value=[];
|
||||
InvoicingList.value=[];
|
||||
shoppcar();
|
||||
queryInvo();
|
||||
getWaringMaterial()
|
||||
moredex.value=0;
|
||||
shoppcar();
|
||||
shoppcar();
|
||||
queryInvo();
|
||||
getWaringMaterial()
|
||||
shoppcar();
|
||||
|
||||
}
|
||||
const carnum = ref(0)
|
||||
const shoppcar=()=>{
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
<view class="left-menu-father">
|
||||
<scroll-view scroll-y="true" scroll-with-animation class="left-menu-scroll" :scroll-top="leftscrolltop"
|
||||
@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` }">
|
||||
|
||||
<view v-if="moreindex==i" class="more-father">
|
||||
|
|
@ -25,6 +25,9 @@
|
|||
作废
|
||||
</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="title-left">
|
||||
{{ v.cgdNo }}
|
||||
|
|
@ -405,7 +408,7 @@
|
|||
|
||||
<script setup lang="ts">
|
||||
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 classification from './components/cgdclass.vue'
|
||||
import nomessageimge from '@/pages/procurement/components/nomessage.vue';
|
||||
|
|
@ -480,14 +483,14 @@
|
|||
if (!plzinfo.canpull) return
|
||||
queryCgdList(plzinfo).then((res : any) => {
|
||||
plsbuy.value.push(...res.result.records)
|
||||
|
||||
clickLeftMenu(lefttarget.value,plsbuy.value[lefttarget.value])
|
||||
if (res.result.records.length < plzinfo.pageSize) {
|
||||
plzinfo.canpull = false;
|
||||
}
|
||||
})
|
||||
}
|
||||
const lefttarget = ref(0);
|
||||
const clickLeftMenu = (index : any) => {
|
||||
const clickLeftMenu = (index : any , item:object) => {
|
||||
let num = Math.ceil((index + 1))
|
||||
leftscrolltop.value = (num - 2) * 186;
|
||||
lefttarget.value = index;
|
||||
|
|
@ -495,6 +498,10 @@
|
|||
form.pageNo = 1
|
||||
form.canpull = true;
|
||||
queryInvo();
|
||||
if(item.izNew=='Y'){
|
||||
item.izNew='N'
|
||||
editIzNew({id:item.id})
|
||||
}
|
||||
}
|
||||
const showvalue = ref({
|
||||
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 {
|
||||
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 {
|
||||
fullcamera as default
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue