| | |
| | | <el-table ref="tableMeasuredList" class="el-software" border :data="dataForm.measuredList" |
| | | @cell-click="handleCellClick" |
| | | stripe> |
| | | <el-table-column prop="no" align="center" width="80" label="序号"/> |
| | | <el-table-column prop="name" min-width="300" label="名称"/> |
| | | <el-table-column prop="no" align="center" width="80" label="序号"> |
| | | <template slot-scope="scope"> |
| | | <span v-html="indexFormat(scope.$index)"></span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="name" min-width="300" label="名称"> |
| | | <template v-slot="{ row }"> |
| | | <el-input v-model="row.name" placeholder="名称"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" prop="identify" width="180" label="标识/版本"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="editingCell && editingCell.row === scope.row && editingCell.column.property === scope.column.property"> |
| | | <span |
| | | v-if="editingCell && editingCell.row === scope.row && editingCell.column.property === scope.column.property"> |
| | | <el-input ref="editInput" v-model="scope.row.identify" placeholder="标识/版本"></el-input> |
| | | </span> |
| | | <span v-else>{{ scope.row.identify }}</span> |
| | |
| | | </el-table-column> |
| | | <el-table-column fixed="right" label="操作" align="center"> |
| | | <template slot-scope="scope"> |
| | | <zt-table-button @click="deleteMeasuredRow(scope.$index)">删除</zt-table-button> |
| | | <zt-table-button @click="deleteMeasuredRow(scope.$index,scope.row.id)">删除</zt-table-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <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.testBasis" :radio="true" dict="test_basis" |
| | | clearable :inputName="dataForm.softwareTestOrder.otherBasis" origin="otherBasis" @getChangeInputData="getChangeInputData"></zt-dict> |
| | | clearable :inputName="dataForm.softwareTestOrder.otherBasis" origin="otherBasis" |
| | | @getChangeInputData="getChangeInputData"></zt-dict> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | |
| | | <zt-dict-checkbox v-model="dataForm.softwareTestOrder.testType1" column="2" dict="test_type1" |
| | | clearable></zt-dict-checkbox> |
| | | </el-form-item> |
| | | <el-form-item style="width: 60%;padding-left: 15%;border-left: 1px solid rgba(0,0,0,.2);margin-bottom: 0"> |
| | | <el-form-item |
| | | style="width: 60%;padding-left: 15%;border-left: 1px solid rgba(0,0,0,.2);margin-bottom: 0"> |
| | | <zt-dict-checkbox v-model="dataForm.softwareTestOrder.testType2" dict="test_type2" |
| | | clearable></zt-dict-checkbox> |
| | | </el-form-item> |
| | |
| | | <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> |
| | | <span>其他:<el-input class="requireOther" v-model="dataForm.softwareTestOrder.requireOther"></el-input></span> |
| | | <span>其他:<el-input class="requireOther" |
| | | v-model="dataForm.softwareTestOrder.requireOther"></el-input></span> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="table-container" style="width: calc(100% - 120px);padding: 5px"> |
| | | <el-table ref="tableDeliverableList" class="el-software" 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> |
| | | <el-table-column prop="identify" align="center" width="380" label="标识/版本"></el-table-column> |
| | | <el-table-column type="index" align="center" width="80" label="序号"> |
| | | <template slot-scope="scope"> |
| | | <span v-html="indexFormat(scope.$index)"></span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="name" min-width="300" 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="380" label="标识/版本"> |
| | | <template v-slot="{ row }"> |
| | | <el-input v-model="row.identify" placeholder="标识/版本"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" label="操作" align="center"> |
| | | <template slot-scope="scope"> |
| | | <zt-table-button @click="deleteDeliverableRow(scope.$index)">删除</zt-table-button> |
| | | <zt-table-button @click="deleteDeliverableRow(scope.$index,scope.row.id)">删除</zt-table-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <div class="" style="width: 100%;"> |
| | | <div class="el-flex" style="height: 40px"> |
| | | <div style="width: 60%"> |
| | | <zt-select v-model="dataForm.softwareTestOrder.contractSign" url="/sys/userEx/getUsersList" placeholder="承托方人员"/> |
| | | <zt-select v-model="dataForm.softwareTestOrder.contractSign" url="/sys/userEx/getUsersList" |
| | | placeholder="承托方人员"/> |
| | | <!-- <span>{{ dataForm.contractSign }}</span>--> |
| | | </div> |
| | | <div class="el-flex" style="margin-left: 10%"> |
| | |
| | | <script> |
| | | import Cookies from 'js-cookie' |
| | | import qs from 'qs' |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | // console.log(this.dataForm, "this.dataForm") |
| | | console.log(this.dataForm,"getInfo this.dataForm") |
| | | }, |
| | | indexFormat(index) { |
| | | return index += 1 |
| | | }, |
| | | addDeliverableRow() { |
| | | this.dataForm.deliverableList.push({}) |
| | | this.$nextTick(() => { |
| | |
| | | tableBody.scrollTop = tableBody.scrollHeight |
| | | }) |
| | | }, |
| | | deleteDeliverableRow(index){ |
| | | async deleteDeliverableRow(index,id) { |
| | | if (id != null) { |
| | | if (await this.$tip.confirm(this.$t('prompt.info', {'handle': this.$t('delete')}))) { |
| | | let res = await this.$http.delete('/project/SoftwareTestOrderDeliverable/', {data: [id]}) |
| | | } |
| | | } |
| | | this.dataForm.deliverableList.splice(index, 1) |
| | | }, |
| | | addMeasuredRow() { |
| | |
| | | tableBody.scrollTop = tableBody.scrollHeight |
| | | }) |
| | | }, |
| | | deleteMeasuredRow(index){ |
| | | async deleteMeasuredRow(index, id) { |
| | | if (id != null) { |
| | | if (await this.$tip.confirm(this.$t('prompt.info', {'handle': this.$t('delete')}))) { |
| | | let res = await this.$http.delete('/project/SoftwareTestOrderMeasured/', {data: [id]}) |
| | | } |
| | | } |
| | | this.dataForm.measuredList.splice(index, 1) |
| | | }, |
| | | async print(){ |
| | |
| | | <style> |
| | | .weiTuoDanAuto { |
| | | width: 70%; |
| | | //border: 1px solid; margin: 0 auto; |
| | | /*border: 1 px solid;*/ |
| | | margin: 0 auto; |
| | | } |
| | | |
| | | .weiTuoDanAuto .el-radio { |
| | |
| | | .DOldForm > .el-form-item > .el-form-item__content { |
| | | width: calc(100% - 120px); |
| | | } |
| | | |
| | | .startDate > .el-form-item > .el-form-item__content { |
| | | width: 95%; |
| | | } |
| | | |
| | | .endDate > .el-form-item > .el-form-item__content { |
| | | width: 95%; |
| | | } |
| | | |
| | | .testCost > .el-form-item > .el-form-item__content { |
| | | width: 100%; |
| | | } |
| | | |
| | | .testVenue > .el-form-item > .el-form-item__content { |
| | | width: 100%; |
| | | } |
| | | |
| | | .el-border-bottom { |
| | | border-bottom: 1px solid rgba(0, 0, 0, .2); |
| | | } |
| | |
| | | margin-top: -10px !important; |
| | | margin-bottom: 10px !important; |
| | | } |
| | | |
| | | .weiTuoDanAuto .marginTopAndMarginBottom3 { |
| | | margin-top: 0 !important; |
| | | margin-bottom: 10px !important; |
| | | } |
| | | |
| | | .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; |
| | | } |
| | | |
| | | .requireOther.el-input{ |
| | | position: absolute; |
| | | } |