| | |
| | | <el-col :span="6"> |
| | | <el-form-item prop="formTime" label="来料日期"> |
| | | <el-date-picker |
| | | style="width:100%" |
| | | v-model="dataForm.formTime" |
| | | type="datetime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | |
| | | <el-col :span="5"> |
| | | <div style="width:100%;text-align: right;"> |
| | | <el-button v-show="dataForm.id==null" size="small" @click="clickAddLine">添加检验行</el-button> |
| | | <el-button size="small" @click="addTeatValueColumn()">添加检验值列</el-button> |
| | | <el-button size="small" @click="delTeatValueColumn()">删除检验值列</el-button> |
| | | <el-button size="small" @click="addTeatValueColumn()">添加检测值列</el-button> |
| | | <el-button size="small" @click="delTeatValueColumn()">删除检测值列</el-button> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | <el-col :span="24"> |
| | | <el-table :header-cell-style="{textAlign:'center',color:'black',backgroundColor:'#fafafa'}" |
| | | :cell-style="{textAlign:'center'}" ref="table" |
| | | :data="list" border style="width: 100%;" height="320"> |
| | | :data="list" border style="width: 100%;" height="400"> |
| | | <el-table-column type="index" label="序号" width="60"> |
| | | </el-table-column> |
| | | <el-table-column prop="name" label="项目" width="260"> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | <div class="rawMaterial-detail"> |
| | | <div class="rawMaterial-result"> |
| | | <el-row> |
| | | <el-col :span="24">检验结论</el-col> |
| | | </el-row> |
| | | <el-row style="width:100%"> |
| | | <el-col :span="24"> |
| | | <avue-crud |
| | | ref="conclusion" |
| | | :option="option" |
| | | :data="conclusionTable" |
| | | v-model="conclusion"> |
| | | <template slot="judgeState" slot-scope="scope"> |
| | | <el-tag type="success" v-if="scope.row.judgeState == 1">合格</el-tag> |
| | | <el-tag type="danger" v-else-if="scope.row.judgeState == 0">不合格</el-tag> |
| | | </template> |
| | | <template #menu> |
| | | <el-button type="text" @click="submitSave()" size="small">上报</el-button> |
| | | </template> |
| | | </avue-crud> |
| | | <el-table border height="90" :data="conclusionTable" ref="conclusion" v-model="conclusion" |
| | | :header-cell-style="{textAlign:'center',color:'black',backgroundColor:'#fafafa'}" |
| | | :cell-style="{textAlign:'center'}"> |
| | | <el-table-column prop="code" label="物料编号"></el-table-column> |
| | | <el-table-column prop="name" label="物料名称"></el-table-column> |
| | | <el-table-column prop="userName" label="检验员"></el-table-column> |
| | | <el-table-column prop="judgeState" label="检验结论"> |
| | | <template slot-scope="scope"> |
| | | <el-tag type="success" v-if="scope.row.judgeState == 1">合格</el-tag> |
| | | <el-tag type="danger" v-else-if="scope.row.judgeState == 0">不合格</el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作"> |
| | | <template> |
| | | <el-button type="text" @click="submitSave()" size="small">上报</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { object,conclusion } from '@/const/crud/quality/rawMaterial' |
| | | import { |
| | | selectDevice, |
| | | addRawInspects, |
| | |
| | | userName: '', |
| | | testState: '' |
| | | }], |
| | | tableOption: object, |
| | | option: conclusion, |
| | | dataRule: {}, |
| | | deviceList: [], |
| | | } |
| | |
| | | mounted(){ |
| | | this.dataForm.id = this.$route.query.id |
| | | this.init() |
| | | let isShow = this.dataForm.id == null ? true : false |
| | | this.tableOption.menu = isShow |
| | | let len = this.tableOption.column.length |
| | | this.tableOption.column[len-1].hide = isShow |
| | | this.getDeviceList() |
| | | }, |
| | | watch:{ |
| | |
| | | }) |
| | | }else{ |
| | | this.conclusionTable = [] |
| | | this.tableOption.column = object.column |
| | | } |
| | | }, |
| | | save(){ |
| | |
| | | <style> |
| | | .rawMaterial-detail { |
| | | width: 100%; |
| | | height: 400px; |
| | | height: 470px; |
| | | padding: 10px 20px; |
| | | display: flex; |
| | | border: 1px solid #ddd; |
| | | background-color: #fff; |
| | | margin-top: 10px; |
| | | box-sizing: border-box; |
| | | flex-wrap: wrap; |
| | | } |
| | | |
| | | .rawMaterial-result { |
| | | width: 100%; |
| | | height: 150px; |
| | | padding: 10px 20px; |
| | | display: flex; |
| | | border: 1px solid #ddd; |