| | |
| | | :tree-props="{children: 'children', hasChildren: 'hasChildren'}" :key="upIndex"> |
| | | <el-table-column type="index" width="50" label="序号"> |
| | | </el-table-column> |
| | | <el-table-column prop="code" label="申请单号" width="200px"> |
| | | <el-table-column prop="code" label="申请单号" width="250px"> |
| | | <template slot-scope="scope"> |
| | | <div style="display: flex;"> |
| | | <div v-if="scope.row.orderNum=='01'" style="color: #3caaff;background-color: #eff5ff;" class="order_num"> |
| | |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="name" label="名称"> |
| | | <el-table-column prop="name" label="名称" width="200px"> |
| | | </el-table-column> |
| | | <el-table-column prop="unit" label="单位"> |
| | | </el-table-column> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="checker" label="执行人"> |
| | | </el-table-column> |
| | | <el-table-column prop="instrumentname" label="检验日期"> |
| | | <el-table-column prop="instrumentname" label="检验设备"> |
| | | </el-table-column> |
| | | <el-table-column prop="testState" label="检验状态"> |
| | | <el-table-column prop="testState" label="检验状态" width="100px"> |
| | | <template slot-scope="scope"> |
| | | <el-tag type="success" v-if="scope.row.testState==1">合格</el-tag> |
| | | <el-tag type="danger" v-else-if="scope.row.testState==0">不合格</el-tag> |
| | |
| | | submitUpData2() { |
| | | var data = [] |
| | | this.upData.testValue.forEach(a => { |
| | | data.push(a.number) |
| | | if(a.number!=''&&a.number!=null){ |
| | | data.push(a.number) |
| | | } |
| | | }) |
| | | wpost(this.$url.check, { |
| | | id: this.upData.code, |
| | | value: data.toString() |
| | | }).then(res => { |
| | | this.$message.success('提交成功') |
| | | this.upInsDia = false |
| | | this.selectDataList() |
| | | this.$confirm(`<p style="line-height: 80px">您的项目(${this.upData.name})检验结果为:<span class="${res.data==1?'ins_state_success':'ins_state_error'}">${res.data==1?'合格':'不合格'}</span></p>`, '提交成功', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '关闭', |
| | | dangerouslyUseHTMLString:true, |
| | | type: `${res.data==1?'success':'error'}` |
| | | }).then(() => { |
| | | }).catch(() => { |
| | | }) |
| | | }) |
| | | } |
| | | } |