This commit is contained in:
Teng 2025-12-09 09:07:42 +08:00
commit 16e520f574
3 changed files with 24 additions and 14 deletions

View File

@ -307,6 +307,13 @@ export const queryCrkInfoList = (params) => {
data: params,
})
}
export const thdMaterialList = (params) => {
return request({
url: `${uni.getStorageSync('serverUrl')}/api/pad/invoicing/thd/thdMaterialList`,
method: 'get',
data: params,
})
}
// 请领单所有的接口
// 获得左侧
export const queryQld = (params) => {

View File

@ -144,7 +144,7 @@
<script setup lang="ts">
import { ref, onMounted, reactive, onBeforeUnmount, computed, nextTick, defineComponent } from 'vue';
import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app"
import { thcList,thdList,transRead ,thdNuMaterialList} from './api/lunpan.js'
import { thcList,thdList,transRead ,thdNuMaterialList,thdMaterialList} from './api/lunpan.js'
const serverUrl = ref(uni.getStorageSync('serverUrl') + '/sys/common/static/')
const form = reactive({
pageNo: 1,
@ -184,6 +184,7 @@
const leftscrolltop = ref(0);
const cardarr = ref([])
const clickLeftMenu = (index : any, item : object) => {
console.log(item)
if (lefttarget.value != index) {
middletarget.value = sctop.value;
nextTick(()=>{
@ -193,8 +194,7 @@
let num = Math.ceil((index + 1))
leftscrolltop.value = (num - 2) * 186;
lefttarget.value = index;
form.pageNo = 1
thdNuMaterialList({ nuId: item.nuId, id: item.id }).then(res => {
thdMaterialList({ thdNo: item.thdNo }).then(res => {
cardarr.value = res.result
})
if (item.izRead == 'N') {

View File

@ -113,16 +113,19 @@
thlist()
})
onShow(()=>{
let forms = {
pageNo: 1,
pageSize: 10,
status:3,
searchContent: ''
}
thdList(forms).then(res => {
carnum.value = res.result.total;
})
ritbot();
})
const ritbot = () =>{
let forms = {
pageNo: 1,
pageSize: 10,
status:3,
searchContent: ''
}
thdList(forms).then(res => {
carnum.value = res.result.total;
})
}
const submit = () => {
cardcon(tharrlist.value[cardindex.value], cardindex.value);
nextTick(() => {
@ -148,8 +151,8 @@
const th = (v,i) =>{
let obj = {refreshDataKey:v.id}
thdList(obj).then(res => {
console.log(res)
tharrlist.value[i] = res.result.records[0]
tharrlist.value[i] = res.result.records[0];
ritbot();
})
}
const start = (v,i) =>{