This commit is contained in:
2026-04-14 11:09:04 +08:00
parent 503b6ddd4f
commit 4c16617e6c
5 changed files with 12 additions and 13 deletions
+1 -1
View File
@@ -13,5 +13,5 @@
}
]
},
"lastUpdated": 1776086663736
"lastUpdated": 1776135998489
}
+3 -4
View File
@@ -2,7 +2,6 @@ package routers
import (
"encoding/json"
"fmt"
"ops/models"
"strings"
"time"
@@ -324,7 +323,7 @@ func ApiPurchase(r *gin.RouterGroup) {
var jsondata From_purchase_getorders
if err := decodeJSON(data, &jsondata); err == nil {
fmt.Println(jsondata)
//fmt.Println(jsondata)
is_data_ok := true
@@ -373,7 +372,7 @@ func ApiPurchase(r *gin.RouterGroup) {
//fmt.Println(user)
//DebugPrintJson(data)
var jsondata From_purchase_addorder
fmt.Println(data)
//fmt.Println(data)
if err := decodeJSON(data, &jsondata); err == nil {
//jsonStr, _ := json.MarshalIndent(jsondata, "", " ")
@@ -402,7 +401,7 @@ func ApiPurchase(r *gin.RouterGroup) {
//判断字符串是否包含标点符号
if models.IsContainsSpecialChar(jsondata.Photos[i]) {
is_data_ok = false
fmt.Println("err4")
//fmt.Println("err4")
}
}
+1 -1
View File
@@ -80,7 +80,7 @@
"add_part": "Add Order",
"exp_report": "Export Report",
"There_are_a_total_of": ",There are a total of",
"items": "items.",
"items": "orders.",
"order_detail": "Order Detail",
"back_to_list": "Back to List",
"order_not_found": "Order Not Found",
+2 -2
View File
@@ -75,12 +75,12 @@
"completed": "已完成",
"pending": "待处理",
"show": "显示",
"entries": "个物件",
"entries": "个订单",
"search": "搜索",
"add_part": "添加订单",
"exp_report": "生成报告",
"There_are_a_total_of": ",一共",
"items": "个物件",
"items": "个订单",
"order_detail": "订单详情",
"back_to_list": "返回列表",
"order_not_found": "订单不存在",
@@ -120,12 +120,12 @@ onMounted(fetchOrders)
<table class="w-full text-left text-sm text-gray-900">
<thead>
<tr class="border-b border-gray-200 bg-gray-50 text-gray-500 dark:border-dk-muted dark:bg-dk-base">
<th class="px-6 py-3 font-medium text-gray-500 dark:text-gray-400">No.</th>
<th class="px-6 py-3 font-medium text-gray-500 dark:text-gray-400">{{ t('purchase.item_name') }}</th>
<th class="px-6 py-3 font-medium text-gray-500 dark:text-gray-400">{{ t('purchase.purpose') }}</th>
<th class="px-6 py-3 font-medium text-gray-500 dark:text-gray-400 w-16">No.</th>
<th class="px-6 py-3 font-medium text-gray-500 dark:text-gray-400 w-48">{{ t('purchase.item_name') }}</th>
<th class="px-6 py-3 font-medium text-gray-500 dark:text-gray-400 w-64">{{ t('purchase.purpose') }}</th>
<th class="px-6 py-3 font-medium text-gray-500 dark:text-gray-400 whitespace-nowrap">{{ t('purchase.created_at') }}</th>
<th class="px-6 py-3 font-medium text-gray-500 dark:text-gray-400">{{ t('purchase.status') }}</th>
<th class="px-6 py-3 font-medium text-gray-500 dark:text-gray-400 whitespace-nowrap w-32">{{ t('purchase.created_at') }}</th>
<th class="px-6 py-3 font-medium text-gray-500 dark:text-gray-400 w-32">{{ t('purchase.status') }}</th>
</tr>
</thead>
<tbody>