Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 875c7123
authored
Sep 03, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat 构筑修改
1 parent
76c862bc
Pipeline
#252
for
875c7123
failed
in 0 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
90 additions
and
4 deletions
.ai/generated/domain-index.md
.ai/generated/knowledge-graph.json
src/libs/util.import.production.js
tests/unit/build/productionViewImport.spec.js
src/views/purchase/productId.integration.spec.js → tests/unit/views/purchase/productId.integration.spec.js
.ai/generated/domain-index.md
View file @
875c712
...
...
@@ -79,7 +79,7 @@
-
视图/组件(25):
`src/views/purchase/batchReview.vue`
、
`src/views/purchase/components/addressCom.vue`
、
`src/views/purchase/components/AllocateDialog.vue`
、
`src/views/purchase/components/CardDialog.vue`
、
`src/views/purchase/components/CheckDialog.vue`
、
`src/views/purchase/components/deliveryDetailDialog.vue`
、
`src/views/purchase/components/EditOrderDialog.vue`
、
`src/views/purchase/components/examineRecord.vue`
、
`src/views/purchase/components/factoryDeliveryDetailDialog.vue`
、
`src/views/purchase/components/goodsDetailCom.vue`
、
`src/views/purchase/components/orderDetailDialog.vue`
、
`src/views/purchase/components/rejectDialog.vue`
、
`src/views/purchase/components/shoppingCartCom.vue`
、
`src/views/purchase/directorReview.vue`
、
`src/views/purchase/factoryPurchaseAndDelivery.vue`
、
`src/views/purchase/invoiceRecord.vue`
、
`src/views/purchase/managerReview.vue`
、
`src/views/purchase/managerReviewBatchReview.vue`
、
`src/views/purchase/procurementBusiness.vue`
、
`src/views/purchase/procurementReview.vue`
、
`src/views/purchase/purchaseAndDelivery.vue`
、
`src/views/purchase/purchaseOrder.vue`
、
`src/views/purchase/purchasingMall.vue`
、
`src/views/purchase/singleBusinessReview.vue`
、
`src/views/purchase/singleReview.vue`
-
API/ROP(72):
`addressGet`
、
`addressSave`
、
`checkCard`
、
`deleteShipWarehouse`
、
`deliveryBatchCheck`
、
`deliveryCard`
、
`deliveryPdf`
、
`dj.api.goodsCategoryConfiguration.page.new`
、
`dj.api.goodsinfo.get.byId`
、
`dj.api.goodsInfo.listWithPage.purchaseInfo`
、
`dj.api.servicemerchantref.list`
、
`dj.api.smarcarlife.operatorreview.view`
、
`dj.api.smarcarlife.purchaseOrder.add`
、
`dj.api.smarcarlife.purchaseOrder.cancelOrCheck`
、
`dj.api.smarcarlife.purchaseOrder.checkDeliveryCard`
、
`dj.api.smarcarlife.purchaseOrder.delivery.batch`
、
`dj.api.smarcarlife.purchaseOrder.delivery.batch.check`
、
`dj.api.smarcarlife.purchaseOrder.delivery.detail`
、
`dj.api.smarcarlife.purchaseOrder.delivery.update`
、
`dj.api.smarcarlife.purchaseOrder.delivery.withdraw`
、
`dj.api.smarcarlife.purchaseOrder.generatedDeliveryCard`
、
`dj.api.smarcarlife.purchaseOrder.importDeliveryCard`
、
`dj.api.smarcarlife.purchaseOrder.listShipper`
、
`dj.api.smarcarlife.purchaseOrder.putIn`
、
`dj.api.smarcarlife.purchaseOrder.saveshipper`
;另有 47 项见 JSON 图谱
-
Vuex(2):
`d2admin.user`
、
`d2admin/user/actionSetDownloadList`
-
测试(
1):
`src/views/purchase/productId.integration.spec.js`
-
测试(
0):未发现候选测试
-
文档缺口:尚无人工维护的深度业务文档;不要据此臆造业务规则。
## 910 权益配置
...
...
@@ -177,7 +177,7 @@
-
入口:
`src/views/serviceCentre`
-
路由(10):
`addExamination /addExamination`
、
`addTraining /addTraining`
、
`configureCourse /configureCourse`
、
`courseManagement /courseManagement`
、
`examinationDetail /examinationDetail`
、
`examinationManagement /examinationManagement`
、
`longCourse /longCourse`
、
`serviceCentre /serviceCentre`
、
`shortCourse /shortCourse`
、
`trainingView /trainingView`
-
视图/组件(55):
`src/views/serviceCentre/courseManagement/index.vue`
、
`src/views/serviceCentre/courseManagement/list/components/CategoryTree.vue`
、
`src/views/serviceCentre/courseManagement/list/components/course.vue`
、
`src/views/serviceCentre/courseManagement/list/components/dataView.vue`
、
`src/views/serviceCentre/courseManagement/list/index.vue`
、
`src/views/serviceCentre/courseManagement/training/add.vue`
、
`src/views/serviceCentre/courseManagement/training/components/courseDialog.vue`
、
`src/views/serviceCentre/courseManagement/training/components/courseLevel.vue`
、
`src/views/serviceCentre/courseManagement/training/components/dataView.vue`
、
`src/views/serviceCentre/courseManagement/training/components/empDialog.vue`
、
`src/views/serviceCentre/courseManagement/training/detail.vue`
、
`src/views/serviceCentre/courseManagement/training/index.vue`
、
`src/views/serviceCentre/examinationManagement/add.vue`
、
`src/views/serviceCentre/examinationManagement/components/addLevel.vue`
、
`src/views/serviceCentre/examinationManagement/components/dataTable.vue`
、
`src/views/serviceCentre/examinationManagement/components/detailComp.vue`
、
`src/views/serviceCentre/examinationManagement/components/echartBar.vue`
、
`src/views/serviceCentre/examinationManagement/components/leftView.vue`
、
`src/views/serviceCentre/examinationManagement/components/rightView.vue`
、
`src/views/serviceCentre/examinationManagement/dataView.vue`
、
`src/views/serviceCentre/examinationManagement/detail.vue`
、
`src/views/serviceCentre/examinationManagement/grade.vue`
、
`src/views/serviceCentre/examinationManagement/index.vue`
、
`src/views/serviceCentre/longCourse/components/allocation.vue`
、
`src/views/serviceCentre/longCourse/components/allocationDialog.vue`
;另有 30 项见 JSON 图谱
-
API/ROP(9
1):
`batchUpdateCourseCategory`
、
`customizeList`
、
`deleteCourseCategory`
、
`deleteLevelExam`
、
`dj.api.smartcarlife.contentManagerTask.getById`
、
`dj.api.smartcarlife.contentManagerTask.insertOrUpdate`
、
`dj.api.smartcarlife.longcoursesceneconfig.customizeList`
、
`dj.api.smartcarlife.longcoursesceneconfig.findAllConfig`
、
`dj.api.smartcarlife.longcoursesceneconfig.findAllItem`
、
`dj.api.smartcarlife.longcoursesceneconfig.findAllItemByConfigId`
、
`dj.api.smartcarlife.longcoursesceneconfig.findStaffByMerchantNo`
、
`dj.api.smartcarlife.longcoursesceneconfig.findStoreEmployeePerformance`
、
`dj.api.smartcarlife.longcoursesceneconfig.findStoreInfoByMerchantNo`
、
`dj.api.smartcarlife.servicecenter.contentmanager.staff.course`
、
`dj.api.smartcarlife.servicecenter.contentmanager.staff.tag.course`
、
`dj.api.smartcarlife.servicecenter.course.category.list`
、
`dj.api.smartcarlife.servicecenter.short.course.config.get`
、
`dj.api.smartcarlife.servicecenter.short.course.config.submit`
、
`dj.api.smartcarlife.servicecenter.short.course.phone.import`
、
`dj.api.smartcarlife.servicecenter.short.course.task.detail.get`
、
`dj.api.smartcarlife.servicecenter.short.course.task.punish.update`
、
`dj.api.smartcarlife.servicecenter.sop.config.get`
、
`dj.api.smartcarlife.servicecenter.sop.config.update`
、
`dj.api.smartcarlife.servicecenter.sop.detail.tag.list`
、
`dj.api.smartcarlife.servicecenter.sop.detail.update`
;另有 66
项见 JSON 图谱
-
API/ROP(9
3):
`batchUpdateCourseCategory`
、
`customizeList`
、
`deleteCourseCategory`
、
`deleteLevelExam`
、
`dj.api.smartcarlife.contentManagerTask.getById`
、
`dj.api.smartcarlife.contentManagerTask.insertOrUpdate`
、
`dj.api.smartcarlife.longcoursesceneconfig.customizeList`
、
`dj.api.smartcarlife.longcoursesceneconfig.findAllConfig`
、
`dj.api.smartcarlife.longcoursesceneconfig.findAllItem`
、
`dj.api.smartcarlife.longcoursesceneconfig.findAllItemByConfigId`
、
`dj.api.smartcarlife.longcoursesceneconfig.findStaffByMerchantNo`
、
`dj.api.smartcarlife.longcoursesceneconfig.findStoreEmployeePerformance`
、
`dj.api.smartcarlife.longcoursesceneconfig.findStoreInfoByMerchantNo`
、
`dj.api.smartcarlife.servicecenter.contentmanager.staff.course`
、
`dj.api.smartcarlife.servicecenter.contentmanager.staff.tag.course`
、
`dj.api.smartcarlife.servicecenter.course.category.list`
、
`dj.api.smartcarlife.servicecenter.short.course.config.get`
、
`dj.api.smartcarlife.servicecenter.short.course.config.submit`
、
`dj.api.smartcarlife.servicecenter.short.course.phone.import`
、
`dj.api.smartcarlife.servicecenter.short.course.task.detail.get`
、
`dj.api.smartcarlife.servicecenter.short.course.task.punish.update`
、
`dj.api.smartcarlife.servicecenter.sop.config.get`
、
`dj.api.smartcarlife.servicecenter.sop.config.update`
、
`dj.api.smartcarlife.servicecenter.sop.detail.tag.list`
、
`dj.api.smartcarlife.servicecenter.sop.detail.update`
;另有 68
项见 JSON 图谱
-
Vuex(1):
`d2admin/user/actionSetDownloadList`
-
测试(0):未发现候选测试
-
文档缺口:尚无人工维护的深度业务文档;不要据此臆造业务规则。
...
...
.ai/generated/knowledge-graph.json
View file @
875c712
This diff could not be displayed because it is too large.
src/libs/util.import.production.js
View file @
875c712
module
.
exports
=
file
=>
()
=>
import
(
'@/views/'
+
file
)
module
.
exports
=
file
=>
()
=>
import
(
/* webpackExclude: /\.(?:spec|test)\.js$/ */
"@/views/"
+
file
,
);
tests/unit/build/productionViewImport.spec.js
0 → 100644
View file @
875c712
const
fs
=
require
(
"fs"
);
const
os
=
require
(
"os"
);
const
path
=
require
(
"path"
);
const
webpack
=
require
(
"webpack"
);
const
PROJECT_ROOT
=
path
.
resolve
(
__dirname
,
"../../.."
);
const
VIEW_IMPORTER
=
path
.
resolve
(
PROJECT_ROOT
,
"src/libs/util.import.production.js"
);
globalThis
.
setImmediate
||=
(
callback
,
...
args
)
=>
setTimeout
(
callback
,
0
,
...
args
);
globalThis
.
clearImmediate
||=
handle
=>
clearTimeout
(
handle
);
function
writeFixture
(
filePath
,
content
)
{
fs
.
mkdirSync
(
path
.
dirname
(
filePath
),
{
recursive
:
true
});
fs
.
writeFileSync
(
filePath
,
content
,
"utf8"
);
}
function
compileProductionViewContext
()
{
const
fixtureRoot
=
fs
.
mkdtempSync
(
path
.
join
(
os
.
tmpdir
(),
"dj-view-context-"
));
const
sourceRoot
=
path
.
join
(
fixtureRoot
,
"src"
);
const
outputPath
=
path
.
join
(
fixtureRoot
,
"dist"
);
writeFixture
(
path
.
join
(
sourceRoot
,
"libs/util.import.production.js"
),
fs
.
readFileSync
(
VIEW_IMPORTER
,
"utf8"
),
);
writeFixture
(
path
.
join
(
sourceRoot
,
"views/realPage.js"
),
"module.exports = 'real page';\n"
,
);
writeFixture
(
path
.
join
(
sourceRoot
,
"views/buildBreaker.spec.js"
),
"module.exports = require('fs');\n"
,
);
writeFixture
(
path
.
join
(
sourceRoot
,
"views/buildBreaker.test.js"
),
"module.exports = require('path');\n"
,
);
writeFixture
(
path
.
join
(
fixtureRoot
,
"entry.js"
),
"const loadView = require('./src/libs/util.import.production');\nloadView('realPage');\n"
,
);
return
new
Promise
((
resolve
,
reject
)
=>
{
webpack
({
mode
:
"development"
,
target
:
"web"
,
cache
:
false
,
entry
:
path
.
join
(
fixtureRoot
,
"entry.js"
),
output
:
{
path
:
outputPath
,
filename
:
"bundle.js"
,
},
resolve
:
{
alias
:
{
"@"
:
sourceRoot
,
},
extensions
:
[
".js"
],
},
optimization
:
{
minimize
:
false
,
},
},
(
error
,
stats
)
=>
{
const
result
=
stats
?.
toJson
({
all
:
false
,
errors
:
true
});
fs
.
rmSync
(
fixtureRoot
,
{
recursive
:
true
,
force
:
true
});
if
(
error
)
{
reject
(
error
);
return
;
}
if
(
result
.
errors
.
length
)
{
reject
(
new
Error
(
result
.
errors
.
map
(
item
=>
item
.
message
).
join
(
"\n"
)));
return
;
}
resolve
();
});
});
}
describe
(
"production view import context"
,
()
=>
{
it
(
"excludes spec and test modules from the browser bundle"
,
async
()
=>
{
await
expect
(
compileProductionViewContext
()).
resolves
.
toBeUndefined
();
});
});
src
/views/purchase/productId.integration.spec.js
→
tests/unit
/views/purchase/productId.integration.spec.js
View file @
875c712
const
fs
=
require
(
"fs"
);
const
path
=
require
(
"path"
);
const
SOURCE_ROOT
=
path
.
resolve
(
__dirname
,
"../.."
);
const
SOURCE_ROOT
=
path
.
resolve
(
__dirname
,
"../..
/../../src
"
);
function
readSource
(
file
)
{
return
fs
.
readFileSync
(
path
.
resolve
(
SOURCE_ROOT
,
file
),
"utf8"
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment