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