SYB 订单商品页 (web/src/views/goauto/syb-products/index.vue): - 「匹配退货」按钮,作用于勾选行中处于参与匹配阶段的商品(与服务端 returnmatch.participatingStages 同一口径),canPurchase 门禁,忙碌时 loading,无候选时禁用。 - 批量结果对话框:成功匹配/无候选/阶段不参与跳过/并发冲突跳过四类计数 + 逐行原因表格。 - 处理阶段筛选与展示新增「退货待确认」「已用退货」两个选项/标签(复用 sybimport 现有的、基于 purchase.ProcessStages 的阶段筛选机制,无需 额外服务端改动——process_stage.go 上一次提交已让这两个阶段参与其中)。 - 新增「匹配到的退货商品」列(缩略图/退货订单号/规格/销毁截止),逐行 「查看对比」「备注」「取消匹配」(后两者仅 canPurchase 可见)。 - 已有效匹配的行不可勾选(isReturnMatchCandidate 排除 return_pending/ return_used 两个阶段)。 - 匹配详情对话框:SYB/yeeke 双方字段与归一化规格文字并排对比、备注 编辑、操作日志列表、确认(仅 matched 状态可用)/取消匹配(matched 或 confirmed 可用)按钮,取消前均有二次确认。 退货商品页 (web/src/views/goauto/yeeke-returns/index.vue): - 新增「匹配状态」筛选(全部/未匹配/退货待确认/已用退货),对所有用户 可见(纯只读筛选,不需要 canPurchase)。 - 新增「被占用 SYB 订单商品」列(订单号 + 当前阶段,点击跳转 SYB 商品 页)。 New file web/src/api/goauto/return-matches.js: listReturnMatches/ getReturnMatch/batchMatchReturns/confirmReturnMatch/cancelReturnMatch/ remarkReturnMatch. Backend support for the match column: returnmatch.Service.List now returns ListItem (match + orderSn/image/variationName/destroyDeadline) via one bounded join over the page's yeeke_return_item ids, so the SYB product page's match column never needs a second request per row (service.go, service_test.go: TestList_EnrichesWithYeekeReturnDisplayFields). 采购创建拦截的 UI 呈现沿用现有机制:ProcessStageReturnPending/ ProcessStageReturnUsed 让 isPurchaseCandidate(row) 天然为 false(与其余 非 purchase_ready 阶段的既有行为一致),「采购」按钮不显示,处理阶段列 展示服务端返回的拦截原因文案;未额外改动采购创建流程/UI。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NTDbDcwbDw1TSAcE6wfh2F
go-admin
English | 简体中文
The front-end and back-end separation authority management system based on Gin + Vue + Element UI is extremely simple to initialize the system. You only need to modify the database connection in the configuration file. The system supports multi-instruction operations. Migration instructions can make it easier to initialize database information. Service instructions It's easy to start the api service.
✨ Feature
-
Follow RESTful API design specifications
-
Based on the GIN WEB API framework, it provides rich middleware support (user authentication, cross-domain, access log, tracking ID, etc.)
-
RBAC access control model based on Casbin
-
JWT authentication
-
Support Swagger documents (based on swaggo)
-
Database storage based on GORM, which can expand multiple types of databases
-
Simple model mapping of configuration files to quickly get the desired configuration
-
Code generation tool
-
Form builder
-
Multi-command mode
-
TODO: unit test
🎁 Internal
- User management: The user is the system operator, this function mainly completes the system user configuration.
- Department management: configure the system organization (company, department, group), and display the tree structure to support data permissions.
- Position management: configure the positions of system users.
- Menu management: configure the system menu, operation authority, button authority identification, interface authority, etc.
- Role management: Role menu permission assignment and role setting are divided into data scope permissions by organization.
- Dictionary management: Maintain some relatively fixed data frequently used in the system.
- Parameter management: dynamically configure common parameters for the system.
- Operation log: system normal operation log record and query; system abnormal information log record and query.
- Login log: The system login log record query contains login exceptions.
- Interface documentation: Automatically generate related api interface documents according to the business code.
- Code generation: According to the data table structure, generate the corresponding addition, deletion, modification, and check corresponding business, and the whole process of visual operation, so that the basic business can be implemented with zero code.
- Form construction: Customize the page style, drag and drop to realize the page layout.
- Service monitoring: View the basic information of some servers.
- Content management: demo function, including classification management and content management. You can refer to the easy to use quick start.
Ready to work
You need to install locally [go] [gin] node 和 git
At the same time, a series of tutorials including videos and documents are provided. How to complete the downloading to the proficient use, it is strongly recommended that you read these tutorials before you practice this project! ! !
Easily implement go-admin to write the first application-documentation tutorial
Step 1 - basic content introduction
Step 2 - Practical application - writing database operations
Teach you from getting started to giving up-video tutorial
Easily implement business using build tools
v1.1.0 version code generation tool-free your hands [Advanced]
Explanation of multi-command startup mode and IDE configuration
Configuration instructions for go-admin menu [Must see]
How to configure menu information and interface information [Must see]
go-admin permission configuration instructions [Must see]
Instructions for use of go-admin data permissions [Must see]
If you have any questions, please read the above-mentioned usage documents and articles first. If you are not satisfied, welcome to issue and pr. Video tutorials and documents are being updated continuously.
📦 Local development
Environmental requirements
go 1.26.5
nodejs: v22+ (v24 LTS recommended)
package manager: pnpm v9+ (this project uses pnpm, lockfile is pnpm-lock.yaml)
Development directory creation
# Create a development directory
mkdir goadmin
cd goadmin
Get the code
Important note: the two projects must be placed in the same folder;
# Get backend code
git clone https://github.com/go-admin-team/go-admin.git
# Get the front-end code
git clone https://github.com/go-admin-team/go-admin-ui.git
Startup instructions
Server startup instructions
# Enter the go-admin backend project
cd ./go-admin
# Compile the project
go build
# Change setting
# File path go-admin/config/settings.yml
vi ./config/setting.yml
# 1. Modify the database information in the configuration file
# Note: The corresponding configuration data under settings.database
# 2. Confirm the log path
:::tip ⚠️Note that this problem will occur if CGO is not installed in the windows environment;
E:\go-admin>go build
# github.com/mattn/go-sqlite3
cgo: exec /missing-cc: exec: "/missing-cc": file does not exist
or
D:\Code\go-admin>go build
# github.com/mattn/go-sqlite3
cgo: exec gcc: exec: "gcc": executable file not found in %PATH%
Solve the cgo problem and enter
:::
Initialize the database, and start the service
# The first configuration needs to initialize the database resource information
# Use under macOS or linux
$ ./go-admin migrate -c=config/settings.dev.yml
# ⚠️Note: Use under windows
$ go-admin.exe migrate -c=config/settings.dev.yml
# Start the project, you can also use the IDE for debugging
# Use under macOS or linux
$ ./go-admin server -c config/settings.yml
# ⚠️Note: Use under windows
$ go-admin.exe server -c config/settings.yml
Use docker to compile and start
# Compile the image
docker build -t go-admin .
# Start the container, the first go-admin is the container name, and the second go-admin is the image name
# -v Mapping configuration file Local path: container path
docker run --name go-admin -p 8000:8000 -v /config/settings.yml:/config/settings.yml -d go-admin-server
Generation Document
go generate
Cross compile
# windows
env GOOS=windows GOARCH=amd64 go build main.go
# or
# linux
env GOOS=linux GOARCH=amd64 go build main.go
UI interactive terminal startup instructions
# Install pnpm if you don't have it
npm install -g pnpm
# Installation dependencies
pnpm install
# Start service
pnpm dev
🎬 Online Demo
admin / 123456
📨 Interactive
![]() |
![]() |
![]() |
💎 Members
JetBrains open source certificate support
The go-admin project has always been developed in the GoLand integrated development environment under JetBrains, based on the free JetBrains Open Source license(s) genuine free license. I would like to express my gratitude.
🤝 Thanks
🤟 Sponsor Us
If you think this project helped you, you can buy a glass of juice for the author to show encouragement 🍹
🤝 Link
🔑 License
Copyright (c) 2020 wenjianzhang



