Demand background: Purchase a batch of electronic components orders, and the approval process requires microscope quality inspection to generate 5 images: clues, side view, top mark, bottom mark, xRAY, etc.; and automatically submit them to the approval process. Technology stack: Golang (go-zero framework), redis, vue
Technology stack:Golang(go-zero framework), redis, vue
Flowchart

二、Image file name rules: serial number_model_qc image classification name_
For example:
202302010001CG_TM4C1230H6PMI_leads_
202302010001CG_TM4C1230H6PMI_sideView_
202302010001CG_TM4C1230H6PMI_topMarking_
202302010001CG_TM4C1230H6PMI_undersideMarking_
202302010001CG_TM4C1230H6PMI_xRAY_
III. Implementation Process
1. When creating a form, obtain the serial number and store it in Ali Cloud Virtual Machine.
1.1 Configure Ali Cloud Virtual Machine
1.2 Open up cloud forms (third-party procurement systems) and server interfaces
1.3 Develop programs to obtain serial numbers from cloud forms, store serial numbers, and query serial numbers
2. Realize automatic printing of serial number page
2.1 query serial number interface, update printed serial number interface
2.2, to achieve the start, stop printing function, make up the bar code function
2.3 To generate bar code, print bar code control, 60*40mm label paper
3. After barcode printing, QC microscope generates picture file name by scanning barcode. Picture and save shared directory: Z:\QC\2023-02-07(date directory)
Note: 1. Date list updated daily
2. Disk Z is driven by mapping network. There are tutorials on the Internet.
4. Adjust the function of automatically uploading QC pictures
4.1 identify serial number, model number and classified picture name from shared directory every 5 seconds according to file name rule (202302010001CG_TM4C1230H6PMI_leads_) and store them in classified directory: C:/QC/tempDir
4.2 Move from tempDir to Inbox directory, automatically upload to Alibaba Cloud OSS storage return image address, and update image address cloud form
IV. Effect
1. Web interface pulls barcode regularly

