v1.2.90 - 修复行情编辑保存、编号格式、默认值等问题
This commit is contained in:
parent
5eb234443b
commit
2306e35dec
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "jiachenlong-frontend",
|
||||
"version": "1.2.81",
|
||||
"version": "1.2.82",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "jiachenlong-frontend",
|
||||
"version": "1.2.81",
|
||||
"version": "1.2.82",
|
||||
"dependencies": {
|
||||
"axios": "^1.7.9",
|
||||
"react": "^18.3.1",
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ const getDefaultForm = () => ({
|
|||
name: '藏品', code: '', category: '自持', rarity: '通货', prefixSerial: '',
|
||||
version: '2024 龙', denomination: '', status: 'in_collection', packaging: '单张',
|
||||
material: '塑料钞', issueQuantity: '1 亿', purpose: '收藏', isGraded: false,
|
||||
gradingCompany: '', gradingScore: '', threeStar: false, specialMark: '',
|
||||
gradingCompany: '爱藏', gradingScore: '67+', threeStar: false, specialMark: '',
|
||||
serialFeature: '', numberCategory: '', issuer: '中国人民银行', issueYear: '2024',
|
||||
costPrice: '', targetPrice: '', goalPrice: '', repairFee: '', gradingFee: '', remark: ''
|
||||
})
|
||||
|
|
@ -78,17 +78,17 @@ export default function Add() {
|
|||
category: '',
|
||||
packaging: '标十',
|
||||
price: '',
|
||||
platform: '淘宝',
|
||||
platform: '抖音',
|
||||
seller: '',
|
||||
buyer: '',
|
||||
date: new Date().toISOString().split('T')[0],
|
||||
isGraded: false,
|
||||
gradingCompany: '',
|
||||
gradingScore: ''
|
||||
gradingCompany: '爱藏',
|
||||
gradingScore: '67+'
|
||||
})
|
||||
const [batchDefaultPackaging, setBatchDefaultPackaging] = useState('')
|
||||
const [batchDefaultDate, setBatchDefaultDate] = useState('')
|
||||
const [batchDefaultPlatform, setBatchDefaultPlatform] = useState('')
|
||||
const [batchDefaultPlatform, setBatchDefaultPlatform] = useState('抖音')
|
||||
const [dealMode, setDealMode] = useState('single') // single-单条录入, batch-批量录入
|
||||
const [batchText, setBatchText] = useState('')
|
||||
const [batchResult, setBatchResult] = useState([])
|
||||
|
|
@ -851,7 +851,7 @@ export default function Add() {
|
|||
})
|
||||
if (response.ok) {
|
||||
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 {
|
||||
const data = await response.json()
|
||||
alert('录入失败: ' + (data.detail || '未知错误'))
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ export default function List() {
|
|||
}
|
||||
try {
|
||||
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 }
|
||||
})
|
||||
const data = await res.json()
|
||||
|
|
|
|||
|
|
@ -33,10 +33,7 @@ export default function News() {
|
|||
const [matchedStatus, setMatchedStatus] = useState({}) // 存储各寻号的匹配状态
|
||||
const [showMatchList, setShowMatchList] = useState(false)
|
||||
const [dealVersion, setDealVersion] = 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 [dealDate, setDealDate] = useState('')
|
||||
const [dealDetailItems, setDealDetailItems] = useState(null) // 弹窗显示的详情列表
|
||||
const [matchCollections, setMatchCollections] = useState([])
|
||||
const [networkMatchCollections, setNetworkMatchCollections] = useState([])
|
||||
|
|
|
|||
Loading…
Reference in New Issue