| | |
| | | |
| | | <style lang="scss" scoped> |
| | | .app-main { |
| | | /*88 = navbar+baredcrumb */ |
| | | /* 88 = navbar+baredcrumb */ |
| | | min-height: calc(100vh - 88px); |
| | | width: 100%; |
| | | position: relative; |
| | |
| | | <template> |
| | | <div class="content-main"> |
| | | <div class="rawPage" v-if="!showNewPage"> |
| | | <div class="top-bar"> |
| | | <el-form ref="form" :inline="true" :model="searchData"> |
| | | <el-form-item label="材料编码:" class="sermargin"> |
| | | <el-form-item label="材料编码:" position="left" class="sermargin"> |
| | | <el-input |
| | | v-model="searchData.code" |
| | | class="input-form" |
| | |
| | | </el-radio-group> |
| | | </div> |
| | | <div class="generateInsp"> |
| | | <el-button type="primary" size="mini" icon="el-icon-document" style="background-color: rgb(1, 102, 226);">生成报检单</el-button> |
| | | <el-button @click="showNewPage = true" type="primary" size="mini" icon="el-icon-document" style="background-color: rgb(1, 102, 226);">生成报检单</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="table-box"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- 生成报检单 --> |
| | | <div class="newPage" v-if="showNewPage"> |
| | | <!-- 新增页面 --> |
| | | <div class="inspectionForm"> |
| | | <el-form :model="inspectionForm" ref="inspectionForm" label-position="right" label-width="100px" size="mini" > |
| | | <div class="formwrapper"> |
| | | <el-row> |
| | | <el-col :span="8"> |
| | | <el-form-item label="来料日期:"> |
| | | <el-input style="width: 180px;" :value="inspectionForm.createTime" disabled autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="供应商名称:"> |
| | | <el-input style="width: 180px;" :value="inspectionForm.supplier_name" disabled autocomplete="off" /> </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="样品编号:"> |
| | | <el-input style="width: 180px;" :value="inspectionForm.materialCoding" disabled autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row > |
| | | <el-col :span="8"> |
| | | <el-form-item label="样品名称:" > |
| | | <el-input style="width: 180px;" :value="inspectionForm.materialName" disabled autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="规格型号:"> |
| | | <el-input style="width: 180px;" :value="inspectionForm.specificationsModels" disabled autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="单位:"> |
| | | <el-input style="width: 180px;" :value="inspectionForm.unit" disabled autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row > |
| | | <el-col :span="8"> |
| | | <el-form-item label="数量:" > |
| | | <el-input style="width: 180px;" :value="inspectionForm.quantity" disabled autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="报检日期:" > |
| | | <el-input style="width: 180px;" :value="inspectionForm.dateSurvey" disabled autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="报检人:"> |
| | | <el-input style="width: 180px;" :value="inspectionForm.surveyor" disabled autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | </el-form> |
| | | </div> |
| | | <div class="inspectionProject"> |
| | | <div class="header"> |
| | | <span style="font-size: 14px">检验项目</span> |
| | | <div> |
| | | <el-button type="primary" plain size="mini">保存</el-button> |
| | | <el-button @click="showNewPage = false" type="primary" plain size="mini" icon="el-icon-back">返回</el-button> |
| | | </div> |
| | | </div> |
| | | <el-table |
| | | :max-height="800" |
| | | :cell-style="{textAlign: 'center'}" |
| | | :header-cell-style="{border:'0px',background:'#f5f7fa',color:'#606266',boxShadow: 'inset 0 1px 0 #ebeef5',textAlign: 'center'}" |
| | | :data="inspectionItems"> |
| | | <el-table-column type="index" label="序号" width="60"></el-table-column> |
| | | <el-table-column prop="project" label="项目" width="250"></el-table-column> |
| | | <el-table-column prop="unit" label="单位" width="125"></el-table-column> |
| | | <el-table-column prop="standardVal" label="标准值" width="125"></el-table-column> |
| | | <el-table-column prop="controlVal" label="内测值" width="125"></el-table-column> |
| | | <el-table-column prop="detectionVal" label="检验值" width="125"></el-table-column> |
| | | <el-table-column prop="checker" label="检验人"> |
| | | <template slot-scope="scope"> |
| | | <el-select v-model="scope.row.checker" size="small" slot="append" style="width: 260px;"> |
| | | <el-option v-for="item in checkeroptions" :key="item.value" :label="item.label">{{ item.label }}</el-option> |
| | | </el-select> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="device" label="试验设备"> |
| | | <template slot-scope="scope"> |
| | | <el-select v-model="scope.row.device" size="small" slot="append" style="width: 260px;"> |
| | | <el-option v-for="item in deviceoptions" :key="item.value" :label="item.label">{{ item.label }}</el-option> |
| | | </el-select> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import {getRawMaterialList } from '@/api/inspection/rawmaterial' |
| | | import { getRawMaterialList } from '@/api/inspection/rawmaterial' |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | label: '已检验' |
| | | }, { |
| | | value: 2, |
| | | label: '未检验' |
| | | label: '待检验' |
| | | }], |
| | | deviceoptions:[{ |
| | | value: 0, |
| | | label: '拉力机' |
| | | },{ |
| | | value: 1, |
| | | label: '拖拉机' |
| | | }], |
| | | checkeroptions:[{ |
| | | value: 0, |
| | | label: '黄小明' |
| | | },{ |
| | | value: 1, |
| | | label: '张三' |
| | | }], |
| | | radioOptions:[{ |
| | | label: '全部', |
| | |
| | | currentPage: 1, |
| | | pageSize: 5, |
| | | total:20, |
| | | data: '' |
| | | data: '', |
| | | showNewPage: false, |
| | | inspectionForm:{ |
| | | createTime: '2023-07-28', |
| | | supplier_name: '国网山东省电力有限公司', |
| | | materialCoding: 'BP214274', |
| | | materialName: '铝包钢绞线', |
| | | specificationsModels: 'JLHA/G1A-185/30-26/7', |
| | | unit: '吨', |
| | | quantity: 21, |
| | | dateSurvey: '2023-08-02', |
| | | surveyor: '黄小明', |
| | | inspectionDate: '2023-12-09', |
| | | }, |
| | | inspectionItems:[{ |
| | | project:'导线外径', |
| | | unit: 'mm', |
| | | standardVal: '30.0', |
| | | controlVal: '30.0', |
| | | detectionVal: '30.0', |
| | | device:'', |
| | | checker: '', |
| | | },{ |
| | | project:'导线外径', |
| | | unit: 'mm', |
| | | standardVal: '30.0', |
| | | controlVal: '30.0', |
| | | detectionVal: '30.0', |
| | | device:'', |
| | | checker: '' |
| | | },{ |
| | | project:'导线外径', |
| | | unit: 'mm', |
| | | standardVal: '30.0', |
| | | controlVal: '30.0', |
| | | detectionVal: '30.0', |
| | | device:'', |
| | | checker: '' |
| | | },{ |
| | | project:'导线外径', |
| | | unit: 'mm', |
| | | standardVal: '30.0', |
| | | controlVal: '30.0', |
| | | detectionVal: '30.0', |
| | | device:'', |
| | | checker: '' |
| | | },{ |
| | | project:'导线外径', |
| | | unit: 'mm', |
| | | standardVal: '30.0', |
| | | controlVal: '30.0', |
| | | detectionVal: '30.0', |
| | | device:'', |
| | | checker: '' |
| | | },{ |
| | | project:'导线外径', |
| | | unit: 'mm', |
| | | standardVal: '30.0', |
| | | controlVal: '30.0', |
| | | detectionVal: '30.0', |
| | | device:'', |
| | | checker: '' |
| | | }] |
| | | } |
| | | }, |
| | | created(){ |
| | |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | .top-bar{ |
| | | .content-main{ |
| | | height: 100%; |
| | | .top-bar{ |
| | | margin: -25px -15px; |
| | | background: #fff; |
| | | display: flex; |
| | |
| | | color: red; |
| | | } |
| | | |
| | | .newPage{ |
| | | margin: -25px -15px; |
| | | .inspectionForm{ |
| | | background-color:#fff; |
| | | .formwrapper{ |
| | | margin-left: 80px; |
| | | padding:10px 0px; |
| | | } |
| | | } |
| | | .inspectionProject{ |
| | | margin:10px 0px; |
| | | .header{ |
| | | display:flex; |
| | | justify-content: space-between; |
| | | padding-top: -3px; |
| | | padding-bottom: 3px; |
| | | } |
| | | .el-table{ |
| | | padding: 10px 10px; |
| | | height: 65vh; |
| | | overflow-y: auto; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | </style> |