| | |
| | | </el-form> |
| | | <div> |
| | | <el-button size="mini" type="primary">获取订单</el-button> |
| | | <el-button size="mini" type="primary" @click="openAdd('新增')">新增</el-button> |
| | | <!-- <el-button size="mini" type="primary" @click="openAdd('新增')">新增</el-button> --> |
| | | </div> |
| | | </div> |
| | | <lims-table :tableData="tableData" :column="column" :tableLoading="tableLoading" :height="'calc(100vh - 220px)'" |
| | |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="检测结果" prop="result" v-if="title == '检验'"> |
| | | <el-switch v-model="addForm.result" active-text="合格" inactive-text="不合格" active-value="合格" |
| | | <el-select v-model="value" placeholder="请选择"> |
| | | <el-option label="合格" value="合格"> |
| | | </el-option> |
| | | <el-option label="不合格" value="不合格"> |
| | | </el-option> |
| | | <el-option label="不判断" value="不判断"> |
| | | </el-option> |
| | | </el-select> |
| | | <!-- <el-switch v-model="addForm.result" active-text="合格" inactive-text="不合格" active-value="合格" |
| | | inactive-value="不合格"> |
| | | </el-switch> |
| | | </el-switch> --> |
| | | </el-form-item> |
| | | <el-form-item label="测试文件" prop="file" v-if="title == '检验'"> |
| | | <el-upload action="#" :auto-upload="false" :multiple="false" |
| | |
| | | dataType: "action", |
| | | label: "操作", |
| | | operation: [ |
| | | { |
| | | name: "编辑", |
| | | type: "text", |
| | | clickFun: (row) => { |
| | | this.openAdd("编辑", row); |
| | | }, |
| | | }, |
| | | { |
| | | name: "删除", |
| | | type: "text", |
| | | clickFun: (row) => { |
| | | this.handleDelete(row); |
| | | }, |
| | | disabled: (row) => { |
| | | return !!row.ratifyUser |
| | | }, |
| | | }, |
| | | // { |
| | | // name: "编辑", |
| | | // type: "text", |
| | | // clickFun: (row) => { |
| | | // this.openAdd("编辑", row); |
| | | // }, |
| | | // }, |
| | | // { |
| | | // name: "删除", |
| | | // type: "text", |
| | | // clickFun: (row) => { |
| | | // this.handleDelete(row); |
| | | // }, |
| | | // disabled: (row) => { |
| | | // return !!row.ratifyUser |
| | | // }, |
| | | // }, |
| | | { |
| | | name: "检验", |
| | | type: "text", |
| | |
| | | // 检验 |
| | | let fd = new FormData(); |
| | | //文件信息中raw才是真的文件 |
| | | if (this.file) { |
| | | fd.append("file", this.file.raw); |
| | | if (this.addForm.file) { |
| | | fd.append("file", this.addForm.file.raw); |
| | | } |
| | | fd.append("inspectionItems", this.addForm.inspectionItems); |
| | | fd.append("result", this.addForm.result); |
| | | } |
| | | } else { |
| | | return false; |