| | |
| | | <template> |
| | | <zt-dialog ref="dialog" column="2" @confirm="formSubmit"> |
| | | <el-form ref="form" :inline="true" :model="dataForm" :disabled="dataForm.disabled" label-width="120px" |
| | | class="weiTuoDanAuto"> |
| | | class="weiTuoDanAuto" style="padding-top: 0"> |
| | | <div class="DManageForm"> |
| | | <el-form-item readonly label-width="60px" label="编号:" style="width: 99% ;margin-bottom:-5px"> |
| | | <span>{{ dataForm.project.code }}</span> |
| | | <el-form-item readonly label-width="50px" label="编号:" style="width: 99% ;margin-bottom:-5px"> |
| | | <span>{{ dataForm.softwareTestOrder.code}}</span> |
| | | </el-form-item> |
| | | </div> |
| | | <div style="border: 1px solid rgba(0,0,0,.2)"> |
| | |
| | | <el-table class="el-software" height="230" border :data="dataForm.measuredList" |
| | | @cell-click="handleCellClick" |
| | | stripe> |
| | | <el-table-column type="index" align="center" width="80" label="序号"/> |
| | | <el-table-column prop="no" align="center" width="80" label="序号"/> |
| | | <el-table-column min-width="300" label="名称"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ (dataForm.project.softwareName||'') + scope.row.name }}</span> |
| | |
| | | <el-table-column label="是否被测件" width="180" align="center"> |
| | | <template slot-scope="scope"> |
| | | <zt-dict v-model="scope.row.isMeasured" dict="is_or_not" :radio="true"></zt-dict> |
| | | <!-- <el-radio-group v-model="scope.row.isMeasured">--> |
| | | <!-- <el-radio :label="1">是</el-radio>--> |
| | | <!-- <el-radio :label="0">否</el-radio>--> |
| | | <!-- </el-radio-group>--> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </div> |
| | | <div style="width: calc(100% - 120px)"> |
| | | <zt-dict v-model="dataForm.project.softwareType" :radio="true" dict="software_type"></zt-dict> |
| | | <!-- <el-checkbox-group v-model="dataForm.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> |
| | |
| | | <el-form-item style="width: 20%;padding-left:5%;margin-bottom: 0"> |
| | | <zt-dict v-model="dataForm.softwareTestOrder.testBasis" :radio="true" dict="test_basis" |
| | | clearable></zt-dict> |
| | | <!-- <el-checkbox-group v-model="dataForm.checkList">--> |
| | | <!-- <el-checkbox :label="0">GB/T 25000.21-2016</el-checkbox>--> |
| | | <!-- <el-checkbox :label="1">GJB/Z 141-2004</el-checkbox>--> |
| | | <!-- <el-checkbox :label="2">其他:{{dataForm.other}}</el-checkbox>--> |
| | | <!-- </el-checkbox-group>--> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="DWidth DAlign DHold"> |
| | | 测试类型 |
| | | </div> |
| | | <div class="el-border-left" style="width: 98%"> |
| | | <div class="el-border-left test-type-line-height" style="width: 98%"> |
| | | <el-form-item style="width: 40%;padding-left:5%;margin-bottom: 0"> |
| | | <zt-dict-checkbox v-model="dataForm.softwareTestOrder.testType1" column="2" dict="test_type1" |
| | | clearable></zt-dict-checkbox> |
| | |
| | | </div> |
| | | <div class="el-border-left" style="width: 98%"> |
| | | <el-form-item style="width: 20%;padding-left:5%;margin-bottom: 0"> |
| | | <zt-dict v-model="dataForm.softwareTestOrder.testStandard" :radio="true" |
| | | dict="test_standard"></zt-dict> |
| | | <!-- <el-checkbox-group v-model="dataForm.checkList">--> |
| | | <!-- <el-checkbox :label="0">GJB 438B-2009《军用软件开发文档通用要求》</el-checkbox>--> |
| | | <!-- <el-checkbox :label="1">HJB 754-2017 《海军军用软件定型测评大纲编制要求》</el-checkbox>--> |
| | | <!-- <el-checkbox :label="2">HJB 753-2017 《海军军用软件定型测评报告编制要求》</el-checkbox>--> |
| | | <!-- <el-checkbox :label="3">《海军装备软件测试细则》</el-checkbox>--> |
| | | <!-- <el-checkbox :label="4">其他:{{dataForm.other}}</el-checkbox>--> |
| | | <!-- </el-checkbox-group>--> |
| | | <zt-dict v-model="dataForm.softwareTestOrder.testStandard" :radio="true" dict="test_standard"></zt-dict> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="el-border-left" style="width: 98%"> |
| | | <el-form-item style="padding-left:5%;margin-bottom:0"> |
| | | <zt-dict v-model="dataForm.project.testLevel" :radio="true" dict="test_level"></zt-dict> |
| | | <!-- <el-checkbox-group v-model="dataForm.checkList">--> |
| | | <!-- <el-checkbox :label="0">配置项测试</el-checkbox>--> |
| | | <!-- <el-checkbox :label="1">系统测试</el-checkbox>--> |
| | | <!-- </el-checkbox-group>--> |
| | | <zt-dict v-model="dataForm.softwareTestOrder.testLevel" :radio="true" dict="test_level"></zt-dict> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="el-border-left" style="width: 98%;"> |
| | | <el-form-item label="是否盖CNAS章" label-width="130px" style="padding-left:5%;margin-bottom:0"> |
| | | <zt-dict v-model="dataForm.softwareTestOrder.otherRequire" :radio="true" |
| | | dict="is_or_not"></zt-dict> |
| | | dict="other_require"></zt-dict> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | |
| | | 测试信息 |
| | | </div> |
| | | <div class="DOldForm el-border-left"> |
| | | <!-- 单位名称 --> |
| | | <el-form-item class="marginTopAndMarginBottom" label="测试日期" style="width: 49%"> |
| | | <el-date-picker |
| | | v-model="dataForm.softwareTestOrder.testDate" |
| | |
| | | placeholder="测试日期"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <!-- 联系人 --> |
| | | <el-form-item class="marginTopAndMarginBottom" label="交付日期" style="width: 49%"> |
| | | <el-date-picker |
| | | v-model="dataForm.softwareTestOrder.deliveryDate" |
| | |
| | | placeholder="交付日期"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <!-- 详细地址 --> |
| | | <el-form-item label="检测费用" style="width: 98%"> |
| | | <el-input v-model="dataForm.softwareTestOrder.testCost" placeholder="请输入检测费用"></el-input> |
| | | </el-form-item> |
| | | <!-- <zt-form-item label="保密级别" prop="secretClass" style="width: 25%">--> |
| | | <!-- <zt-dict v-model="datadataForm.secretClass" dict="secret_class" placeholder="保密级别" style="width:200px"></zt-dict>--> |
| | | <!-- </zt-form-item>--> |
| | | <!-- 联系方式 --> |
| | | <el-form-item class="el-border-bottom marginTopAndMarginBottom2" label="物品性质" style="width: 100%"> |
| | | <zt-dict v-model="dataForm.softwareTestOrder.articleNature" :radio="true" |
| | | dict="article_nature"></zt-dict> |
| | | <!-- <el-radio-group v-model="dataForm.criticalLevel">--> |
| | | <!-- <el-radio :label="0">现场检测</el-radio>--> |
| | | <!-- <el-radio :label="1">客户送样</el-radio>--> |
| | | <!-- <el-radio :label="2">其他:{{dataForm.other}}</el-radio>--> |
| | | <!-- </el-radio-group>--> |
| | | </el-form-item> |
| | | <div class="el-flex el-border-bottom" style="margin-top: -10px;"> |
| | | <div class="DWidth DAlign DHold"> |
| | |
| | | <el-form-item label="是否满足测试要求:" label-width="160px" style="margin-bottom: 0"> |
| | | <zt-dict v-model="dataForm.softwareTestOrder.sampleStatus" :radio="true" |
| | | dict="is_satisfy"></zt-dict> |
| | | <!-- <el-radio-group v-model="dataForm.checkList">--> |
| | | <!-- <el-radio :label="0">是</el-radio>--> |
| | | <!-- <el-radio :label="1">否</el-radio>--> |
| | | <!-- </el-radio-group>--> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | |
| | | 交付物清单 |
| | | </div> |
| | | <div style="width: calc(100% - 120px);padding: 5px"> |
| | | <el-table class="el-software" height="230" border :data="dataForm.deliverableList" |
| | | <el-table class="el-software" height="100" border :data="dataForm.deliverableList" |
| | | stripe> |
| | | <el-table-column type="index" align="center" width="80" label="序号"/> |
| | | <el-table-column prop="name" min-width="300" label="名称"></el-table-column> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="el-flex"> |
| | | <div class="el-flex el-border-bottom"> |
| | | <div class="DPadding3 DAlign DHold"> |
| | | 说明 |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="el-flex order-sc" style="height: 150px"> |
| | | <!-- <div class="DPadding3 DAlign DHold">--> |
| | | <!-- 委托单上传--> |
| | | <!-- </div>--> |
| | | <el-form-item class="marginTopAndMarginBottom" style="width: 100%"> |
| | | <config-uploader busi-type="test_order" model-name="dataForm" :dataForm="dataForm" |
| | | v-model="dataForm.files"/> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | | |
| | | </el-form> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import Cookies from 'js-cookie' |
| | | import qs from 'qs' |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | id: null, |
| | | projectId: null, |
| | | softwareTestOrder: { |
| | | code:'', |
| | | optEnviron:'', |
| | | programLang:'', |
| | | testBasis:'', |
| | |
| | | ...res.data |
| | | } |
| | | if(this.dataForm.softwareTestOrder){ |
| | | this.dataForm.softwareTestOrder.testType1=this.dataForm.softwareTestOrder.testType1.split(',') |
| | | this.dataForm.softwareTestOrder.testType2=this.dataForm.softwareTestOrder.testType2.split(',') |
| | | console.log(this.dataForm.softwareTestOrder.testType1) |
| | | if(this.dataForm.softwareTestOrder.testType1){ |
| | | this.dataForm.softwareTestOrder.testType1=this.dataForm.softwareTestOrder.testType1.split(',') |
| | | console.log(this.dataForm.softwareTestOrder.testType1) |
| | | } |
| | | if(this.dataForm.softwareTestOrder.testType2){ |
| | | this.dataForm.softwareTestOrder.testType2=this.dataForm.softwareTestOrder.testType2.split(',') |
| | | console.log(this.dataForm.softwareTestOrder.testType2) |
| | | } |
| | | } |
| | | if(this.dataForm.project === null){ |
| | | this.dataForm.project={} |
| | |
| | | // console.log(this.dataForm, "this.dataForm") |
| | | }, |
| | | async print(){ |
| | | let res = await this.$http.get(`/project/SoftwareTestOrder/exportWord/${this.dataForm.id}`) |
| | | console.log(res.data) |
| | | var params = qs.stringify({ |
| | | token: Cookies.get('token'), |
| | | id:this.dataForm.id |
| | | }) |
| | | let apiURL = `/project/SoftwareTestOrder/exportWord/` |
| | | window.location.href = `${window.SITE_CONFIG['apiURL']}${apiURL}?${params}` |
| | | }, |
| | | // 表单提交 |
| | | async formSubmit() { |
| | | console.log(this.dataForm, ' this.dataForm') |
| | | this.dataForm.softwareTestOrder.testType1=this.dataForm.softwareTestOrder.testType1.join(',') |
| | | this.dataForm.softwareTestOrder.testType2=this.dataForm.softwareTestOrder.testType2.join(',') |
| | | if(this.dataForm.softwareTestOrder.testType1){ |
| | | this.dataForm.softwareTestOrder.testType1=this.dataForm.softwareTestOrder.testType1.join(',') |
| | | } |
| | | if(this.dataForm.softwareTestOrder.testType2){ |
| | | this.dataForm.softwareTestOrder.testType2=this.dataForm.softwareTestOrder.testType2.join(',') |
| | | } |
| | | console.log(this.dataForm.softwareTestOrder.testType1) |
| | | let res = await this.$http[!this.dataForm.id ? 'post' : 'put']('/project/SoftwareTestOrder/', this.dataForm) |
| | | if (res.success) { |
| | |
| | | this.$refs.dialog.close() |
| | | this.$emit('refreshDataList') |
| | | }else{ |
| | | this.dataForm.softwareTestOrder.testType1=this.dataForm.softwareTestOrder.testType1.split(',') |
| | | this.dataForm.softwareTestOrder.testType2=this.dataForm.softwareTestOrder.testType2.split(',') |
| | | if(this.dataForm.softwareTestOrder.testType1){ |
| | | this.dataForm.softwareTestOrder.testType1=this.dataForm.softwareTestOrder.testType1.split(',') |
| | | } |
| | | if(this.dataForm.softwareTestOrder.testType2){ |
| | | this.dataForm.softwareTestOrder.testType2=this.dataForm.softwareTestOrder.testType2.split(',') |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | .csjgxx > .el-form-item > .el-form-item__content { |
| | | width: calc(100% - 130px); |
| | | } |
| | | .order-sc > .el-form-item > .el-form-item__content { |
| | | width:100%; |
| | | } |
| | | .test-type-line-height>.el-form-item>.el-form-item__content{ |
| | | line-height: 30px; |
| | | } |
| | | </style> |