@besile/scm-cli 2026.3.34 → 2026.3.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -69,7 +69,7 @@ export function materialOrdersCommand(program) {
|
|
|
69
69
|
program
|
|
70
70
|
.command('material-orders')
|
|
71
71
|
.description('查询物料订单')
|
|
72
|
-
.
|
|
72
|
+
.option('--openId <openId>', '飞书用户 openId')
|
|
73
73
|
// 分页
|
|
74
74
|
.option('--pageNo <pageNo>', '页码', '1')
|
|
75
75
|
.option('--pageSize <pageSize>', '每页条数', '20')
|
|
@@ -94,6 +94,10 @@ export function materialOrdersCommand(program) {
|
|
|
94
94
|
// 输出
|
|
95
95
|
.option('--format <format>', '输出格式: table|json|pretty', 'table')
|
|
96
96
|
.action(async (opts) => {
|
|
97
|
+
if (!opts.openId) {
|
|
98
|
+
console.error('error: missing required option \'--openId <openId>\'');
|
|
99
|
+
process.exit(1);
|
|
100
|
+
}
|
|
97
101
|
const config = loadConfig();
|
|
98
102
|
|
|
99
103
|
const tokenCheck = await checkToken(opts.openId);
|
|
@@ -81,7 +81,7 @@ export function productionOrdersCommand(program) {
|
|
|
81
81
|
.command('production-orders')
|
|
82
82
|
.alias('orders')
|
|
83
83
|
.description('查询大货生产订单')
|
|
84
|
-
.
|
|
84
|
+
.option('--openId <openId>', '飞书用户 openId')
|
|
85
85
|
// 分页
|
|
86
86
|
.option('--pageNo <pageNo>', '页码', '1')
|
|
87
87
|
.option('--pageSize <pageSize>', '每页条数', '20')
|
|
@@ -112,6 +112,10 @@ export function productionOrdersCommand(program) {
|
|
|
112
112
|
// 输出
|
|
113
113
|
.option('--format <format>', '输出格式: table|json|pretty', 'table')
|
|
114
114
|
.action(async (opts) => {
|
|
115
|
+
if (!opts.openId) {
|
|
116
|
+
console.error('error: missing required option \'--openId <openId>\'');
|
|
117
|
+
process.exit(1);
|
|
118
|
+
}
|
|
115
119
|
const config = loadConfig();
|
|
116
120
|
const log = createLogger(opts.debug || config.debug);
|
|
117
121
|
|
|
@@ -54,7 +54,7 @@ export function qcOrdersCommand(program) {
|
|
|
54
54
|
.command('qc-orders')
|
|
55
55
|
.alias('qc')
|
|
56
56
|
.description('查询 QC 质检订单')
|
|
57
|
-
.
|
|
57
|
+
.option('--openId <openId>', '飞书用户 openId')
|
|
58
58
|
// 分页
|
|
59
59
|
.option('--pageNo <pageNo>', '页码', '1')
|
|
60
60
|
.option('--pageSize <pageSize>', '每页条数', '20')
|
|
@@ -80,6 +80,10 @@ export function qcOrdersCommand(program) {
|
|
|
80
80
|
// 输出
|
|
81
81
|
.option('--format <format>', '输出格式: table|json|pretty', 'table')
|
|
82
82
|
.action(async (opts) => {
|
|
83
|
+
if (!opts.openId) {
|
|
84
|
+
console.error('error: missing required option \'--openId <openId>\'');
|
|
85
|
+
process.exit(1);
|
|
86
|
+
}
|
|
83
87
|
const config = loadConfig();
|
|
84
88
|
|
|
85
89
|
const tokenCheck = await checkToken(opts.openId);
|