From a3ffaec9c9a81626c34989c7026988cc07b3c3d3 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期二, 16 九月 2025 13:54:24 +0800
Subject: [PATCH] #
---
pages/order/orderDetlList.vue | 44 +++++++++++++++++++++++++++++++++++++++++---
1 files changed, 41 insertions(+), 3 deletions(-)
diff --git a/pages/order/orderDetlList.vue b/pages/order/orderDetlList.vue
index ccc4a24..85b849d 100644
--- a/pages/order/orderDetlList.vue
+++ b/pages/order/orderDetlList.vue
@@ -1,6 +1,10 @@
<template>
<view>
- <view class="card" v-for="item in menuList" @click="chose(item)">
+ <!-- 鎼滅储妗� -->
+ <view class="search-bar">
+ <uni-search-bar v-model="condition" placeholder=" 鎵爜 / 杈撳叆" bgColor="#EEEEEE" @input="search" />
+ </view>
+ <view class="card" v-show="item.enableQty >0" v-for="item in menuList" @click="chose(item)">
<view class="tag-item">鍗曟嵁鍙凤細 {{item.orderNo}}</view>
<view class="tag-item">鐗╂枡鐮侊細 {{item.matnr}}</view>
<view class="tag-item">鐗╂枡鍚嶇О锛� {{item.maktx}}</view>
@@ -16,7 +20,8 @@
export default {
data() {
return {
- data:'',
+ data:'',
+ condition:'',
menuList: [],
order:'',
baseUrl: '',
@@ -33,9 +38,42 @@
},
onShow() {
let that = this
-
+ this.baseUrl = uni.getStorageSync('baseUrl');
+ this.token = uni.getStorageSync('token');
+ that.getOrderNoList(that.order)
},
methods: {
+ search(){
+ let that = this
+ uni.request({
+ url: that.baseUrl + '/orderDetl/search/pda/auth',
+ data: {
+ condition: that.condition,
+ order: that.order.orderNo
+ },
+ // method:"GET",
+ header: {
+ 'token':uni.getStorageSync('token'),
+ },
+ success(result) {
+ console.log(result);
+ var res = result.data
+ if (res.code === 200 ) {
+ that.menuList = res.data
+ // that.save()
+ } else if (res.code == 403) {
+ uni.showToast({title: res.msg, icon: "none", position: 'top'})
+ setTimeout(() => {
+ uni.reLaunch({
+ url: '../login/login'
+ });
+ }, 1000);
+ } else {
+ uni.showToast({title: res.msg, icon: "none",position: 'top'})
+ }
+ }
+ });
+ },
getOrderNoList(order) {
let that = this
uni.request({
--
Gitblit v1.9.1