for(constcomponentof['project-budget','project-products','purchase-page','stock-page','project-loans','production-tasks','project-costs'])assert.ok(workspace.includes('<'+component),'missing embedded business '+component);
for(constremovedof['expectedDate','预计到货','期望到货','label="申请人"','queryParams.applicantName'])assert.ok(!purchase.includes(removed),'removed purchase field returned: '+removed);
constmobilePurchase=read('views/mobile/components/MobilePurchase.vue');for(constremovedof['expectedDate','预计到货','期望到货','query.applicantName','筛选申请人','item.applicantName'])assert.ok(!mobilePurchase.includes(removed),'removed mobile purchase field returned: '+removed);
constprojectInfo=read('views/project/info/index.vue');for(constremovedof['managerId','memberIds','startDate','endDate','项目负责人','项目成员','开始日期','结束日期','项目优先级','资金状态'])assert.ok(!projectInfo.includes(removed),'removed project field returned: '+removed);
assert.ok(projectInfo.includes(':selectable="canSelectProject"'),'protected legacy project must not be selectable for edit/delete');
for(constretiredof['TRIAL','OTHER','LEGACY'])assert.ok(!purchase.includes(`expenseCategoryCode: '${retired}'`),'retired category leaked into purchase page: '+retired);
assert.ok(fs.readFileSync(path.join(root,'ruoyi-ui/src/assets/styles/index.scss'),'utf8').includes("@import './business-ui.scss'"),'unified business theme is not loaded');
assert.ok(pending.includes(':selectable="canSelectPendingRecord"'),'inbound selection must only include pending records');
conststock=read('views/warehouse/stock/index.vue');for(constmarkerof['finishedProduct','canSelectStock','SCRAP_STOCK','SCRAP_FINISHED','DELIVERY'])assert.ok(stock.includes(marker),'stock business control missing '+marker);
constproductionTasks=read('views/production/tasks/index.vue');for(constmarkerof['canSelectTask','needOutstanding','hasIssuableNeeds',"detail.status==='OPEN'"])assert.ok(productionTasks.includes(marker),'production task state control missing '+marker);
for(constmarkerof['继续生产','reopenTask','await this.$confirm','settleTask(id,version)','production-task-dialog','command="SCRAP_ASSEMBLY"'])assert.ok(productionTasks.includes(marker),'production usability control missing '+marker);
assert.ok(read('components/BomEditor/ProjectProducts.vue').includes('<product-picker v-model="form.itemId"'),'project association must select product archives');
assert.ok(read('components/BomEditor/index.vue').includes('<product-picker v-if="!form.id"'),'BOM output must select product archives');
assert.ok(actionDialog.includes('task.needs||[]'),'issue stock choices must match the task BOM');
assert.ok(actionDialog.includes('loadOperationTasks')&&actionDialog.includes('领料记录'),'scrap operations must identify task/source');
conststockCheck=read('views/warehouse/stockCheck/index.vue');assert.ok(stockCheck.includes(':selectable="canSelectCheck"'),'stock-check selection must only include drafts');
constoutRecord=read('views/warehouse/outRecord/index.vue');assert.ok(outRecord.includes('remainingOut(s.row)>0'),'return action must require an outstanding quantity');
for(constmarkerof['canBatchArrivalSelection','canBulkEditSelection','canLockSelection','canDeleteSelection','canEditPrice','receivedQuantity'])assert.ok(purchase.includes(marker),'purchase business control missing '+marker);
for(constmigrationof['018_web_business_navigation.sql','022_confirmed_web_navigation.sql']){constsql=fs.readFileSync(path.join(root,'sql/projectdev',migration),'utf8');for(constmatchofsql.matchAll(/'((?:warehouse|production|system)\/[a-zA-Z]+\/index)'/g))assert.ok(fs.existsSync(path.join(root,'ruoyi-ui/src/views',match[1]+'.vue')),match[1]+' missing menu page');}