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, 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) => { export const queryQld = (params) => {

View File

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

View File

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