Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
T
topjs3 study
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Scott Sun
topjs3 study
Commits
4372cebd
Commit
4372cebd
authored
5 years ago
by
Scott Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s
parent
b4045894
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
179 additions
and
50 deletions
+179
-50
confirmation-201912270900(1).XLSX
2019-12-31/rxlsx/confirmation-201912270900(1).XLSX
+0
-0
README.md
2019-12-31/scott/README.md
+12
-0
config.json
2019-12-31/scott/config.json
+1
-1
index.js
2019-12-31/scott/index.js
+166
-49
confirmation-201912270900(1).XLSX
2019-12-31/xlsx/confirmation-201912270900(1).XLSX
+0
-0
No files found.
2019-12-31/rxlsx/confirmation-201912270900(1).XLSX
View file @
4372cebd
No preview for this file type
This diff is collapsed.
Click to expand it.
2019-12-31/scott/README.md
0 → 100644
View file @
4372cebd
## config.json说明
*
dirPath 存放xlsx的文件夹路径
*
isUseing 判断脚本是否在运行 如果正在运行 则不执行脚本
*
rdir 读取过的xlsx会剪切到这里
*
dbconfig 数据库的配置
*
dataKeys 数据库的字段 key是excel读取到的表的md5加密 值是对象 值的name是对应的字段名 dbkey是数据库对应的字段名
*
attr_data是特殊字段 存放新增的excel表字段
*
如果运行不了 可能是某些错误导致isUseing未及时变成未运行状态 所以这种情况手动将isUseing改为false
This diff is collapsed.
Click to expand it.
2019-12-31/scott/config.json
View file @
4372cebd
{
"dirPath"
:
"../xlsx"
,
"isUseing"
:
false
,
"rdir"
:
"../rxlsx"
,
"dbconfig"
:{
"database_type"
:
"pg"
,
"database_host"
:
"139.196.104.13:5433"
,
"database_name"
:
"PMO_TRAINING"
,
"database_user"
:
"toplinker"
,
"database_pwd"
:
"TopLinker0510"
},
"keys"
:[
"order_no"
,
"confirmation"
,
"plant"
,
"material"
,
"material_description"
,
"posting_date"
,
"confirmation_entry_time"
,
"activity"
,
"work_center"
,
"confirmed_yield"
,
"base_unit"
,
"confirmed_scrap"
,
"reason_for_variance"
,
"rework"
,
"confirmation_text"
,
"entered_by_user"
,
"ind_final_confirmation"
,
"milestone_confirmed"
,
"ind_delete_doc"
],
"dataKeys"
:{
"135aa36437beb6571531ca8e898ad57a"
:{
"name"
:
"Order
\n
生管投料单号"
,
"dbkey"
:
"order_no"
},
"a1deefe94c73d05d2a3b247c23362042"
:{
"name"
:
"Confirmation
\n
总数量"
,
"dbkey"
:
"confirmation"
},
"c46b4eb1d67a08b863072b33b646a810"
:{
"name"
:
"Plant
\n
厂别"
,
"dbkey"
:
"plant"
},
"e5018abee57b7f610ef8bb4d9eecc112"
:{
"name"
:
"Material
\n
批号"
,
"dbkey"
:
"material"
},
"f19e926ffab820b96d5a6aabf9aae616"
:{
"name"
:
"Material Description
\n
批次说明"
,
"dbkey"
:
"material_description"
},
"7e51e12322207097a84891f9d7445ad4"
:{
"name"
:
"Posting Date
\n
生产时间"
,
"dbkey"
:
"posting_date"
},
"8dba6faf3484a91f3b3940bb2e9ea459"
:{
"name"
:
"Confirmation Entry Time
\n
确认时间"
,
"dbkey"
:
"confirmation_entry_time"
},
"ecfc2dffe568c10a67dbc6d3724cfde2"
:{
"name"
:
"Activity"
,
"dbkey"
:
"activity"
},
"657a1d49f3e92290e56b692ff58a0a2d"
:{
"name"
:
"Work Center
\n
生产站别"
,
"dbkey"
:
"work_center"
},
"62f5f57f24ea1d0bc12aa535d6add05d"
:{
"name"
:
"Confirmed Yield (GMEIN)"
,
"dbkey"
:
"confirmed_yield"
},
"7c8590875b72ce8eca3c92f76b2c451b"
:{
"name"
:
"Base Unit of Measure (=GMEIN)"
,
"dbkey"
:
"base_unit"
},
"37c9b123cc9f488d3f7f8480146795e9"
:{
"name"
:
"Confirmed scrap (MEINH)
\n
报废数量"
,
"dbkey"
:
"confirmed_scrap"
},
"91b8b2e603be16c0a94658f0ced49c0b"
:{
"name"
:
"Reason for Variance
\n
报废代码"
,
"dbkey"
:
"reason_for_variance"
},
"55979da7be6e74a5ce14bd81cd31028d"
:{
"name"
:
"Rework
\n
重工数量"
,
"dbkey"
:
"rework"
},
"e820bdb5f699f28fb15c5d5e759f164b"
:{
"name"
:
"Confirmation text"
,
"dbkey"
:
"confirmation_text"
},
"da01091b1f5ddb363d498e844449a961"
:{
"name"
:
"Entered by User"
,
"dbkey"
:
"entered_by_user"
},
"664152bb1a151874f332b55ec47bc54d"
:{
"name"
:
"Ind.Final Confirmation"
,
"dbkey"
:
"ind_final_confirmation"
},
"196c6ed505a0dabe34f0aed4e2800535"
:{
"name"
:
"Milestone confirmed"
,
"dbkey"
:
"milestone_confirmed"
},
"0b9bf2967b86c25513ff839bcf3eab83"
:{
"name"
:
"Ind. delete doc."
,
"dbkey"
:
"ind_delete_doc"
}}}
\ No newline at end of file
{
"dirPath"
:
"../xlsx"
,
"isUseing"
:
false
,
"rdir"
:
"../rxlsx"
,
"dbconfig"
:{
"database_type"
:
"pg"
,
"database_host"
:
"139.196.104.13:5433"
,
"database_name"
:
"PMO_TRAINING"
,
"database_user"
:
"toplinker"
,
"database_pwd"
:
"TopLinker0510"
},
"dataKeys"
:{
"135aa36437beb6571531ca8e898ad57a"
:{
"name"
:
"Order
\n
生管投料单号"
,
"dbkey"
:
"order_no"
},
"a1deefe94c73d05d2a3b247c23362042"
:{
"name"
:
"Confirmation
\n
总数量"
,
"dbkey"
:
"confirmation"
},
"c46b4eb1d67a08b863072b33b646a810"
:{
"name"
:
"Plant
\n
厂别"
,
"dbkey"
:
"plant"
},
"e5018abee57b7f610ef8bb4d9eecc112"
:{
"name"
:
"Material
\n
批号"
,
"dbkey"
:
"material"
},
"f19e926ffab820b96d5a6aabf9aae616"
:{
"name"
:
"Material Description
\n
批次说明"
,
"dbkey"
:
"material_description"
},
"7e51e12322207097a84891f9d7445ad4"
:{
"name"
:
"Posting Date
\n
生产时间"
,
"dbkey"
:
"posting_date"
},
"8dba6faf3484a91f3b3940bb2e9ea459"
:{
"name"
:
"Confirmation Entry Time
\n
确认时间"
,
"dbkey"
:
"confirmation_entry_time"
},
"ecfc2dffe568c10a67dbc6d3724cfde2"
:{
"name"
:
"Activity"
,
"dbkey"
:
"activity"
},
"657a1d49f3e92290e56b692ff58a0a2d"
:{
"name"
:
"Work Center
\n
生产站别"
,
"dbkey"
:
"work_center"
},
"62f5f57f24ea1d0bc12aa535d6add05d"
:{
"name"
:
"Confirmed Yield (GMEIN)"
,
"dbkey"
:
"confirmed_yield"
},
"7c8590875b72ce8eca3c92f76b2c451b"
:{
"name"
:
"Base Unit of Measure (=GMEIN)"
,
"dbkey"
:
"base_unit"
},
"37c9b123cc9f488d3f7f8480146795e9"
:{
"name"
:
"Confirmed scrap (MEINH)
\n
报废数量"
,
"dbkey"
:
"confirmed_scrap"
},
"91b8b2e603be16c0a94658f0ced49c0b"
:{
"name"
:
"Reason for Variance
\n
报废代码"
,
"dbkey"
:
"reason_for_variance"
},
"55979da7be6e74a5ce14bd81cd31028d"
:{
"name"
:
"Rework
\n
重工数量"
,
"dbkey"
:
"rework"
},
"e820bdb5f699f28fb15c5d5e759f164b"
:{
"name"
:
"Confirmation text"
,
"dbkey"
:
"confirmation_text"
},
"da01091b1f5ddb363d498e844449a961"
:{
"name"
:
"Entered by User"
,
"dbkey"
:
"entered_by_user"
},
"664152bb1a151874f332b55ec47bc54d"
:{
"name"
:
"Ind.Final Confirmation"
,
"dbkey"
:
"ind_final_confirmation"
},
"196c6ed505a0dabe34f0aed4e2800535"
:{
"name"
:
"Milestone confirmed"
,
"dbkey"
:
"milestone_confirmed"
},
"0b9bf2967b86c25513ff839bcf3eab83"
:{
"name"
:
"Ind. delete doc."
,
"dbkey"
:
"ind_delete_doc"
},
"attr_data"
:{
"9518cf9f761a3441ba3fe75395cf364d"
:{
"name"
:
"Rf Data"
,
"dbkey"
:
"rf_data"
},
"5e55ab86da1ba43504940280f4877f6e"
:{
"name"
:
"New Data"
,
"dbkey"
:
"new_data"
},
"c7d681312342eb41005e286d676ee1ad"
:{
"name"
:
"other data"
,
"dbkey"
:
"other_data"
}}}}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
2019-12-31/scott/index.js
View file @
4372cebd
This diff is collapsed.
Click to expand it.
2019-12-31/xlsx/confirmation-201912270900(1).XLSX
deleted
100644 → 0
View file @
b4045894
File deleted
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment