fix: recheck linked documents after Excel generation
This commit is contained in:
Vendored
+5
-4
@@ -1,9 +1,10 @@
|
||||
// Synthetic UI fixture, never a claim of official tender eligibility.
|
||||
import {sourceRows,bidSourceOptions,bidSourceSnapshot} from '../../src/services/bidSource.js';
|
||||
import {documentKey,HEALTH_CHECKS} from '../../src/services/preparationChecks.js';
|
||||
import {documentKey,documentRevision,HEALTH_CHECKS} from '../../src/services/preparationChecks.js';
|
||||
|
||||
export function readyBid(tender) {
|
||||
const document={document:'QA isteğe bağlı belge',mandatory:false,note:'Yalnız sentetik senaryo'};
|
||||
export function readyBid(tender, file) {
|
||||
const document={document:file?'QA zorunlu belge':'QA isteğe bağlı belge',mandatory:!!file,note:'Yalnız sentetik senaryo'};
|
||||
const documentCheck=file?{status:'verified',evidence:'QA belge sürümü kontrol edildi.',documentId:file.id,documentRevision:documentRevision(file)}:{status:'notApplicable',evidence:'QA senaryosunda istenmiyor.'};
|
||||
const analysis={documentChecklist:[document]},itemSource={};
|
||||
const partialBid={enabled:false,source:'',selected:[],assignments:{}};
|
||||
const options=bidSourceOptions(tender,analysis,itemSource);
|
||||
@@ -14,7 +15,7 @@ export function readyBid(tender) {
|
||||
teklifTuru:'birim',gecerlilikGun:'120',kisim:'',goturuBedel:'',priceSchema:1,
|
||||
pricesBySource:Object.fromEntries(rows.map(row=>[row.priceKey,'125.50'])),
|
||||
sourceSnapshot,reviewedSource:sourceSnapshot,manualDocuments:[],partialBid,itemSource,analysisSource:analysis,
|
||||
checks:{documents:{[documentKey(document)]:{status:'notApplicable',evidence:'QA senaryosunda istenmiyor.'}},
|
||||
checks:{documents:{[documentKey(document)]:documentCheck},
|
||||
products:Object.fromEntries(rows.map(row=>[row.priceKey,{status:'suitable',product:'QA sentetik ürün',source:'QA teknik madde 1',
|
||||
...Object.fromEntries(HEALTH_CHECKS.map(([key])=>[key,{status:'notApplicable',evidence:'QA senaryosu.'}]))}]))},
|
||||
}};
|
||||
|
||||
Reference in New Issue
Block a user