Bladeren bron

修改待签

wuhb 1 maand geleden
bovenliggende
commit
d18e91b061
3 gewijzigde bestanden met toevoegingen van 13 en 10 verwijderingen
  1. 1 6
      pages/out/detail.uvue
  2. 11 3
      pages/out/index.uvue
  3. 1 1
      utils/request.uts

+ 1 - 6
pages/out/detail.uvue

@@ -170,12 +170,7 @@
             
             const lines = data['wmProductSalseLineList']
             if (lines != null) {
-                const allLines = lines as UTSJSONObject[]
-                // 只显示当前用户的明细
-                lineList.value = allLines.filter((line: UTSJSONObject) => {
-                    const receiverUserId = line['receiverUserId']
-                    return receiverUserId != null && receiverUserId.toString() === currentUserId
-                })
+                lineList.value = lines as UTSJSONObject[]
             } else {
                 lineList.value = []
             }

+ 11 - 3
pages/out/index.uvue

@@ -65,8 +65,8 @@
 									<text class="info-value">{{ getCreateBy(item) }}</text>
 								</view>
 								<view class="info-item">
-									<text class="info-label">领用</text>
-									<text class="info-value">{{ getReceiverUser(item) }}</text>
+									<text class="info-label">领用对象</text>
+									<text class="info-value">{{ getReceiverDept(item)}}{{ getReceiverUser(item) }}</text>
 								</view>
 							</view>
 							<view class="info-row">
@@ -164,8 +164,16 @@
         if (item == null) return ''
         const jsonItem = item as UTSJSONObject
         const val = jsonItem['receiverUser']
-        return val != null ? val.toString() : ''
+        return val != null ? '-' + val.toString() : ''
     }
+	
+	// 获取领用部门
+	const getReceiverDept = (item: any | null): string => {
+	    if (item == null) return ''
+	    const jsonItem = item as UTSJSONObject
+	    const val = jsonItem['receiverDept']
+	    return val != null ? val.toString() : ''
+	}
 
     // 获取创建时间
     const getCreateTime = (item: any | null): string => {

+ 1 - 1
utils/request.uts

@@ -13,7 +13,7 @@ export type RequestConfig = {
 };
 
 // 基础 URL
-// const BASE_URL = "http://192.168.2.26:83";
+// const BASE_URL = "http://192.168.2.17:83";
 // const BASE_URL = "http://192.168.189.43:83";
 // const BASE_URL = "http://222.243.138.146:8150/prod-api" //测试服务器;
 const BASE_URL = "http://222.243.138.146:880/prod-api" //正式服务器;