<template>
|
<div class="fa-card-a" style="height: calc(100vh - 130px)">
|
<el-form ref="form" :inline="true" :model="form" label-width="100px" class="oldFormAuto">
|
<div class="el-flex el-border">
|
<div class="DWidth DAlign DHold">
|
委托单位
|
</div>
|
<div class="DOldForm">
|
<!-- 单位名称 -->
|
<el-form-item label="单位名称" style="width: 49%">
|
<el-input v-model="form.delegateUnitName" placeholder="请输入单位名称"></el-input>
|
</el-form-item>
|
<!-- 联系人 -->
|
<el-form-item label="联系人" style="width: 49%">
|
<el-input v-model="form.delegateUnitContactPerson" placeholder="请输入联系人"></el-input>
|
</el-form-item>
|
<!-- 详细地址 -->
|
<el-form-item label="详细地址" style="width: 49%">
|
<el-input v-model="form.delegateUnitAddress" placeholder="请输入详细地址"></el-input>
|
</el-form-item>
|
<!-- 联系方式 -->
|
<el-form-item label="联系方式" style="width: 49%">
|
<el-input v-model="form.delegateUnitContact" placeholder="请输入联系方式"></el-input>
|
</el-form-item>
|
</div>
|
</div>
|
<div class="el-flex el-border">
|
<div class="DWidth DAlign DHold">
|
开发单位
|
</div>
|
<div class="DOldForm">
|
<!-- 单位名称 -->
|
<el-form-item label="单位名称" style="width: 49%">
|
<el-input v-model="form.developmentUnitName" placeholder="请输入单位名称"></el-input>
|
</el-form-item>
|
<!-- 联系人 -->
|
<el-form-item label="联系人" style="width: 49%">
|
<el-input v-model="form.developmentContactPerson" placeholder="请输入联系人"></el-input>
|
</el-form-item>
|
<!-- 详细地址 -->
|
<el-form-item label="详细地址" style="width: 49%">
|
<el-input v-model="form.developmentAddress" placeholder="请输入详细地址"></el-input>
|
</el-form-item>
|
<!-- 联系方式 -->
|
<el-form-item label="联系方式" style="width: 49%">
|
<el-input v-model="form.developmentContact" placeholder="请输入联系方式"></el-input>
|
</el-form-item>
|
</div>
|
</div>
|
<div class="el-flex el-border">
|
<div class="DWidth-Unt DAlign DHold">
|
被测件信息
|
</div>
|
<div class="DOldForm">
|
<!-- 单位名称 -->
|
<el-form-item label="软件名称" style="width: 49%">
|
<el-input v-model="form.softwareName" placeholder="请输入软件名称"></el-input>
|
</el-form-item>
|
<!-- 联系人 -->
|
<el-form-item label="软件标识" style="width: 49%">
|
<el-input v-model="form.identification" placeholder="请输入软件标识"></el-input>
|
</el-form-item>
|
<!-- 详细地址 -->
|
<el-form-item label="密级" style="width: 49%">
|
<el-input v-model="form.secretClass" placeholder="请输入密级"></el-input>
|
</el-form-item>
|
<!-- <zt-form-item label="保密级别" prop="secretClass" style="width: 25%">-->
|
<!-- <zt-dict v-model="dataForm.secretClass" dict="secret_class" placeholder="保密级别" style="width:200px"></zt-dict>-->
|
<!-- </zt-form-item>-->
|
<!-- 联系方式 -->
|
<el-form-item label="关键等级" style="width: 49%">
|
<el-radio-group v-model="form.criticalLevel">
|
<el-radio :label="0">关键</el-radio>
|
<el-radio :label="1">一般</el-radio>
|
<el-radio :label="2">重要</el-radio>
|
</el-radio-group>
|
</el-form-item>
|
<el-form-item label="运行环境" style="width: 49%">
|
<el-input v-model="form.runtimeEnvironment" placeholder="请输入运行环境"></el-input>
|
</el-form-item>
|
<el-form-item label="编程语言" style="width: 49%">
|
<el-input v-model="form.programmingLanguage" placeholder="请输入编程语言"></el-input>
|
</el-form-item>
|
<div class="el-flex">
|
<div class="DWidth DAlign DHold">
|
被测件及其他相关物品清单
|
</div>
|
<div style="width: calc(100% - 120px)">
|
<el-table class="el-software" height="230" border :data="form.tableData"
|
stripe>
|
<el-table-column prop="code" align="center" width="80" label="序号"></el-table-column>
|
<el-table-column prop="name" min-width="300" label="名称"></el-table-column>
|
<el-table-column prop="identification" align="center" width="180" label="标识/版本"></el-table-column>
|
<el-table-column label="是否被测件" width="180" align="center">
|
<template slot-scope="scope">
|
<el-radio-group v-model="scope.row.isTested">
|
<el-radio :label="1">是</el-radio>
|
<el-radio :label="0">否</el-radio>
|
</el-radio-group>
|
</template>
|
</el-table-column>
|
</el-table>
|
</div>
|
</div>
|
<div class="el-flex" style="height: 40px;">
|
<div class="DWidth DAlign DHold">
|
软件类型
|
</div>
|
<div style="width: calc(100% - 120px)">
|
<el-checkbox-group v-model="form.checkList">
|
<el-checkbox :label="0">通用应用软件</el-checkbox>
|
<el-checkbox :label="1">行业应用软件</el-checkbox>
|
<el-checkbox :label="2">嵌入式软件</el-checkbox>
|
</el-checkbox-group>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="el-flex ">
|
<div class="DWidth DAlign DHold">
|
项目责任人
|
</div>
|
<div class="DOldForm">
|
<!-- 单位名称 -->
|
<el-form-item label="项目负责人" style="width: 99%">
|
<el-input v-model="form.delegateUnitName" placeholder="请输入单位名称"></el-input>
|
</el-form-item>
|
<!-- 联系人 -->
|
<el-form-item label="项目测试人员" style="width: 99%">
|
<el-input v-model="form.delegateUnitContactPerson" placeholder="请输入联系人"></el-input>
|
</el-form-item>
|
<!-- 详细地址 -->
|
<el-form-item label="项目审核人" style="width: 99%">
|
<el-input v-model="form.delegateUnitAddress" placeholder="请输入详细地址"></el-input>
|
</el-form-item>
|
<!-- 联系方式 -->
|
<el-form-item label="是否签署合同" style="width: 99%">
|
<el-input v-model="form.delegateUnitContact" placeholder="请输入联系方式"></el-input>
|
</el-form-item>
|
</div>
|
</div>
|
</el-form>
|
</div>
|
</template>
|
|
<script>
|
export default {
|
name: 'SoftwareTestingOrderForm',
|
data() {
|
return {
|
form: {
|
delegateUnitName: '',
|
delegateUnitAddress: '',
|
delegateUnitContactPerson: '',
|
delegateUnitContact: '',
|
developmentUnitName: '',
|
developmentContactPerson: '',
|
developmentAddress: '',
|
developmentContact: '',
|
softwareName: '',
|
identification: '',
|
secretClass: '',
|
criticalLevel: 0,
|
runtimeEnvironment: '',
|
programmingLanguage: '',
|
checkList: [1, 0],
|
tableData: [
|
{code: 1, name: '小鹌鹑', identification: '3/121', isTested: 1},
|
{code: 2, name: '小鹌鹑', identification: '3/122', isTested: 0},
|
{code: 3, name: '小鹌鹑', identification: '3/111', isTested: 0},
|
{code: 4, name: '小鹌鹑', identification: '36/121', isTested: 1},
|
{code: 5, name: '小鹌鹑', identification: '3/121a', isTested: 0},
|
{code: 6, name: '小鹌鹑', identification: '3c/121', isTested: 0},
|
{code: 7, name: '小鹌鹑', identification: '3ac/12ac1', isTested: 0},
|
{code: 8, name: '小鹌鹑', identification: '3aca/ac121', isTested: 1},
|
{code: 9, name: '小鹌鹑', identification: '3ww/ca121', isTested: 1},
|
{code: 10, name: '小鹌鹑', identification: '3aw/12wd1', isTested: 1},
|
{code: 1, name: '小鹌鹑', identification: '3/121', isTested: 1},
|
{code: 2, name: '小鹌鹑', identification: '3/122', isTested: 0},
|
{code: 3, name: '小鹌鹑', identification: '3/111', isTested: 0},
|
{code: 4, name: '小鹌鹑', identification: '36/121', isTested: 1},
|
{code: 5, name: '小鹌鹑', identification: '3/121a', isTested: 1},
|
{code: 6, name: '小鹌鹑', identification: '3c/121', isTested: 0},
|
{code: 7, name: '小鹌鹑', identification: '3ac/12ac1', isTested: 0},
|
{code: 8, name: '小鹌鹑', identification: '3aca/ac121', isTested: 1},
|
{code: 9, name: '小鹌鹑', identification: '3ww/ca121', isTested: 1},
|
{code: 10, name: '小鹌鹑', identification: '3aw/12wd1', isTested: 1}
|
],
|
},
|
}
|
},
|
}
|
</script>
|
|
<style>
|
.oldFormAuto {
|
width: 70%;
|
border: 1px solid;
|
margin: 0 auto;
|
}
|
|
.el-flex {
|
display: flex;
|
align-items: center;
|
}
|
|
.DWidth {
|
width: 100px;
|
}
|
|
.DWidth-Unt {
|
width: 100px;
|
}
|
|
.DAlign {
|
text-align: center;
|
}
|
|
.DOldForm {
|
border-left: 1px solid;
|
width: 100%;
|
}
|
|
.DOldForm > .el-form-item > .el-form-item__content {
|
width: calc(100% - 100px);
|
}
|
|
.el-border {
|
border-bottom: 1px solid;
|
}
|
|
.zt .el-table.el-software th {
|
background: transparent;
|
}
|
|
.zt .el-table.el-software th > .cell {
|
font-weight: 500;
|
}
|
.DHold{
|
font-weight: 600;
|
}
|
.zt .el-table.el-software{
|
font-size: 14px;
|
}
|
</style>
|