From e2cef6c358e57c2bc63e67a05c88c52585bb96db Mon Sep 17 00:00:00 2001 From: wente <329538422@qq.com> Date: 星期五, 29 十二月 2023 11:22:29 +0800 Subject: [PATCH] 项目表 --- web/src/views/modules/configAuditReport/ConfigAuditReport-AddOrUpdate.vue | 210 ++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 193 insertions(+), 17 deletions(-) diff --git a/web/src/views/modules/configAuditReport/ConfigAuditReport-AddOrUpdate.vue b/web/src/views/modules/configAuditReport/ConfigAuditReport-AddOrUpdate.vue index b67de3d..d8a2415 100644 --- a/web/src/views/modules/configAuditReport/ConfigAuditReport-AddOrUpdate.vue +++ b/web/src/views/modules/configAuditReport/ConfigAuditReport-AddOrUpdate.vue @@ -1,15 +1,121 @@ <template> <zt-dialog ref="dialog" @confirm="formSubmit"> - <el-form :model="dataForm" ref="dataForm" :disabled="dataForm.disabled" label-width="120px"> - <zt-form-item label="缂栧彿" prop="code" rules="required"> - <el-input v-model="dataForm.code"></el-input> - </zt-form-item> - <zt-form-item label="瀹℃牳浜�" prop="auditor" rules="required"> - <el-input v-model="dataForm.auditor"></el-input> - </zt-form-item> - <zt-form-item label="瀹℃牳鏃堕棿" prop="auditorDate" rules="required"> - <el-input v-model="dataForm.auditorDate"></el-input> - </zt-form-item> + <el-form :model="dataForm" :inline="true" ref="dataForm" style="padding-top: 0" :disabled="dataForm.disabled" + label-width="120px" class="configAuditFormAuto"> + <div> + <el-form-item label-width="60px" label="缂栧彿:" style="width:100%;margin-bottom: -5px"> + <span>{{dataForm.circulatOrder.code || '缂栧彿鑷姩鐢熸垚'}}</span> + </el-form-item> + </div> + <div style="border: 1px solid rgba(0,0,0,.2);width: 99%"> + <div style="border-bottom: 1px solid rgba(0,0,0,.2);" class="configAuditContentWidth"> + <el-form-item class="marginTopAndMarginBottom" label="椤圭洰鍚嶇О" style="width: 48%"> + <el-input v-model="dataForm.testAgencyInfo.agencyName" placeholder="椤圭洰鍚嶇О"></el-input> + </el-form-item> + <el-form-item class="marginTopAndMarginBottom" label="椤圭洰鏍囪瘑" style="width: 48%"> + <el-input v-model="dataForm.project.softwareIdentity" placeholder="椤圭洰鏍囪瘑"></el-input> + </el-form-item> + </div> + <div style="border-bottom: 1px solid rgba(0,0,0,.2);"> + <div> + <div style="text-align: center;font-weight: 600;border-bottom:1px solid rgba(0,0,0,.2);height: 40px;line-height: 40px;font-size: 18px">瀹℃牳鍐呭</div> + <el-form-item label="鐘舵�佹爣璁�" label-width="150px" style="width:100%;padding-left:20px;margin-bottom:0"> + <zt-dict v-model="dataForm.circulatOrder.itemRequire" :radio="true" + dict="is_or_not"></zt-dict> + </el-form-item> + <div class="table-container"> + <el-table ref="tableConfigAuditList" class="el-software el-margin-top-bot" border + :data="dataForm.technicalList" + stripe> + <el-table-column prop="no" align="center" width="60" label="搴忓彿"> + <template slot-scope="scope"> + <span v-html="indexFormat(scope.$index)"></span> + </template> + </el-table-column> + <el-table-column prop="infoName" min-width="180" label="鎶�鏈祫鏂欏悕绉�"> + <template v-slot="{ row }"> + <el-input v-model="row.name" placeholder="鎶�鏈祫鏂欏悕绉�"></el-input> + </template> + </el-table-column> + <el-table-column prop="identify" align="center" width="150" label="鏍囪瘑"> + <template v-slot="{ row }"> + <el-input v-model="row.version" placeholder="鏍囪瘑"></el-input> + </template> + </el-table-column> + <el-table-column prop="remark" label="澶囨敞" width="100" align="center"> + <template v-slot="{ row }"> + <el-input v-model="row.remark" placeholder="澶囨敞"></el-input> + </template> + </el-table-column> + <el-table-column fixed="right" prop="files" label="涓婁紶闄勪欢" width="300" align="center"> + <template v-slot="{ row }"> + <table-uploader busi-type="circulat_order" model-name="row" :dataForm="row" + v-model="row.files"/> + </template> + </el-table-column> + </el-table> + </div> + </div> + <div> + <div style="text-align: center;font-weight: 600;height: 40px;line-height: 40px;font-size: 18px">鍙戠幇鐨勯棶棰�</div> + <div class="table-container"> + <el-table ref="tableConfigAuditList" class="el-software el-margin-top-bot" border + :data="dataForm.technicalList" + stripe> + <el-table-column prop="no" align="center" width="60" label="搴忓彿"> + <template slot-scope="scope"> + <span v-html="indexFormat(scope.$index)"></span> + </template> + </el-table-column> + <el-table-column prop="infoName" min-width="180" label="鎶�鏈祫鏂欏悕绉�"> + <template v-slot="{ row }"> + <el-input v-model="row.name" placeholder="鎶�鏈祫鏂欏悕绉�"></el-input> + </template> + </el-table-column> + <el-table-column prop="identify" align="center" width="150" label="鏍囪瘑"> + <template v-slot="{ row }"> + <el-input v-model="row.version" placeholder="鏍囪瘑"></el-input> + </template> + </el-table-column> + <el-table-column prop="remark" label="澶囨敞" width="100" align="center"> + <template v-slot="{ row }"> + <el-input v-model="row.remark" placeholder="澶囨敞"></el-input> + </template> + </el-table-column> + <el-table-column fixed="right" prop="files" label="涓婁紶闄勪欢" width="300" align="center"> + <template v-slot="{ row }"> + <table-uploader busi-type="circulat_order" model-name="row" :dataForm="row" + v-model="row.files"/> + </template> + </el-table-column> + </el-table> + <div class="icon-container" @click="addConfigAuditRow()"> + <!-- 鏀剧疆鍥哄畾鐨勫浘鏍� --> + <i class="el-icon-plus"></i> + </div> + </div> + </div> + </div> + <div class="el-flexConfigAuditDialog"> + <div style="width: 112px;text-align: center;font-weight: 600"> + 瀹℃牳浜哄憳锛� + </div> + <div class="el-border-left-right" style="width: 20%;height: 40px;"> + <el-form-item style="width: 100%;padding-left:20px;margin:0;"> + {{dataForm.circulatOrder.calibratDetector}} + </el-form-item> + </div> + <div style="width: 52px;text-align: center;font-weight: 600"> + 鏃� 鏈� + </div> + <div class="el-border-left" style="width: 20%;height: 40px;"> + <el-form-item style="width: 100%;padding-left:20px;margin:0;"> + <!-- {{dataForm.circulatOrder.detectDate}}--> + {{ dataForm.circulatOrder.detectDate | filterTime('YYYY骞碝M鏈圖D鏃�') }} + </el-form-item> + </div> + </div> + </div> </el-form> <template v-slot:footer> <el-button v-if="dataForm.disabled" type="primary" @click="print()">鎵撳嵃</el-button> @@ -24,19 +130,51 @@ export default { data() { return { + // dataForm: { + // id: '', + // configAuditReport:{ + // code: '', + // auditor: '', + // auditorDate: '', + // }, + // project: { + // softwareIdentity: '', + // softwareName: '' + // }, + // problemList:[], + // contentList:[] + // }, dataForm: { id: '', - configAuditReport:{ - code: '', - auditor: '', - auditorDate: '', + circulatOrder: { + code: '1', + itemAccept: '', + itemRequire: '', + itemOther: '', + acceptSituation: '', + acceptDate: '', + calibratDetector: '', + detectDate: '', + detectSituation: '', + warehouse: '', + warehouseDate: '', + warehouseSituation: '', + itemIssuer: '', + issueDate: '', + issueSituation: '', + remark: '', + virusLibraryVersion:'', + itemAcceptor:'' }, project: { softwareIdentity: '', - softwareName: '' + softwareName: '', }, - problemList:[], - contentList:[] + testAgencyInfo: { + agencyName: '', + }, + technicalList: [], + flowInfoDto: {} } } }, @@ -72,6 +210,13 @@ } console.log(this.dataForm, "getInfo this.dataForm") }, + addConfigAuditRow() { + this.dataForm.technicalList.push({}) + this.$nextTick(() => { + const tableBody = this.$refs.tableConfigAuditList.$el.querySelector('.el-table__body-wrapper') + tableBody.scrollTop = tableBody.scrollHeight; + }) + }, async print(){ var params = qs.stringify({ token: Cookies.get('token'), @@ -92,3 +237,34 @@ } } </script> +<style> +.el-flexConfigAuditDialog{ + display: flex; + align-items: center +} +.configAuditContentWidth > .el-form-item > .el-form-item__content { + width: calc(100% - 120px); +} +.configAuditFormAuto .marginTopAndMarginBottom { + margin-top: 0 !important; + margin-bottom: 0 !important; +} + +.configAuditFormAuto .marginTopAndMarginBottom2 { + margin-top: -10px !important; + margin-bottom: 10px !important; +} + +.configAuditFormAuto .marginTopAndMarginBottom3 { + margin-top: 0 !important; + margin-bottom: 10px !important; +} + +.acceptDate > .el-form-item > .el-form-item__content { + line-height: 80px; +} + +.configAuditFormAuto .el-radio { + margin-right: 10px; +} +</style> -- Gitblit v1.9.1