v1.2.90 - 修复行情编辑保存、编号格式、默认值等问题

This commit is contained in:
甲辰生产 2026-04-13 09:08:19 +08:00
parent 5eb234443b
commit 2306e35dec
5 changed files with 11 additions and 14 deletions

View File

@ -1 +1 @@
VERSION=1.2.84 1.2.90

View File

@ -1,12 +1,12 @@
{ {
"name": "jiachenlong-frontend", "name": "jiachenlong-frontend",
"version": "1.2.81", "version": "1.2.82",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "jiachenlong-frontend", "name": "jiachenlong-frontend",
"version": "1.2.81", "version": "1.2.82",
"dependencies": { "dependencies": {
"axios": "^1.7.9", "axios": "^1.7.9",
"react": "^18.3.1", "react": "^18.3.1",

View File

@ -66,7 +66,7 @@ const getDefaultForm = () => ({
name: '藏品', code: '', category: '自持', rarity: '通货', prefixSerial: '', name: '藏品', code: '', category: '自持', rarity: '通货', prefixSerial: '',
version: '2024 龙', denomination: '', status: 'in_collection', packaging: '单张', version: '2024 龙', denomination: '', status: 'in_collection', packaging: '单张',
material: '塑料钞', issueQuantity: '1 亿', purpose: '收藏', isGraded: false, material: '塑料钞', issueQuantity: '1 亿', purpose: '收藏', isGraded: false,
gradingCompany: '', gradingScore: '', threeStar: false, specialMark: '', gradingCompany: '爱藏', gradingScore: '67+', threeStar: false, specialMark: '',
serialFeature: '', numberCategory: '', issuer: '中国人民银行', issueYear: '2024', serialFeature: '', numberCategory: '', issuer: '中国人民银行', issueYear: '2024',
costPrice: '', targetPrice: '', goalPrice: '', repairFee: '', gradingFee: '', remark: '' costPrice: '', targetPrice: '', goalPrice: '', repairFee: '', gradingFee: '', remark: ''
}) })
@ -78,17 +78,17 @@ export default function Add() {
category: '', category: '',
packaging: '标十', packaging: '标十',
price: '', price: '',
platform: '淘宝', platform: '抖音',
seller: '', seller: '',
buyer: '', buyer: '',
date: new Date().toISOString().split('T')[0], date: new Date().toISOString().split('T')[0],
isGraded: false, isGraded: false,
gradingCompany: '', gradingCompany: '爱藏',
gradingScore: '' gradingScore: '67+'
}) })
const [batchDefaultPackaging, setBatchDefaultPackaging] = useState('') const [batchDefaultPackaging, setBatchDefaultPackaging] = useState('')
const [batchDefaultDate, setBatchDefaultDate] = useState('') const [batchDefaultDate, setBatchDefaultDate] = useState('')
const [batchDefaultPlatform, setBatchDefaultPlatform] = useState('') const [batchDefaultPlatform, setBatchDefaultPlatform] = useState('抖音')
const [dealMode, setDealMode] = useState('single') // single-, batch- const [dealMode, setDealMode] = useState('single') // single-, batch-
const [batchText, setBatchText] = useState('') const [batchText, setBatchText] = useState('')
const [batchResult, setBatchResult] = useState([]) const [batchResult, setBatchResult] = useState([])
@ -851,7 +851,7 @@ export default function Add() {
}) })
if (response.ok) { if (response.ok) {
alert('行情录入成功!') alert('行情录入成功!')
setDealForm({ serial: '', category: '', packaging: '标十', price: '', platform: '淘宝', seller: '', buyer: '', date: new Date().toISOString().split('T')[0] }) setDealForm({ serial: '', category: '', packaging: '标十', price: '', platform: '抖音', seller: '', buyer: '', date: new Date().toISOString().split('T')[0] })
} else { } else {
const data = await response.json() const data = await response.json()
alert('录入失败: ' + (data.detail || '未知错误')) alert('录入失败: ' + (data.detail || '未知错误'))

View File

@ -79,7 +79,7 @@ export default function List() {
} }
try { try {
const user = JSON.parse(userStr) const user = JSON.parse(userStr)
const res = await fetch(`${API_BASE}/api/information/list?info_type=deal&user_id=${user.f99_90_id}&page_size=500`, { const res = await fetch(`${API_BASE}/api/information/list?info_type=deal&page_size=500`, {
headers: { 'Authorization': 'Bearer ' + token } headers: { 'Authorization': 'Bearer ' + token }
}) })
const data = await res.json() const data = await res.json()

View File

@ -33,10 +33,7 @@ export default function News() {
const [matchedStatus, setMatchedStatus] = useState({}) // const [matchedStatus, setMatchedStatus] = useState({}) //
const [showMatchList, setShowMatchList] = useState(false) const [showMatchList, setShowMatchList] = useState(false)
const [dealVersion, setDealVersion] = useState('龙钞') const [dealVersion, setDealVersion] = useState('龙钞')
const [dealDate, setDealDate] = useState(() => { const [dealDate, setDealDate] = useState('')
const today = new Date()
return `${today.getFullYear()}-${String(today.getMonth() + 1).padStart(2, '0')}-${String(today.getDate()).padStart(2, '0')}`
})
const [dealDetailItems, setDealDetailItems] = useState(null) // const [dealDetailItems, setDealDetailItems] = useState(null) //
const [matchCollections, setMatchCollections] = useState([]) const [matchCollections, setMatchCollections] = useState([])
const [networkMatchCollections, setNetworkMatchCollections] = useState([]) const [networkMatchCollections, setNetworkMatchCollections] = useState([])