| | |
| | | </el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | | <el-upload v-if="radio === 0" ref='upload1' style="display: inline;margin-right: 8px" :action="uploadAction1" |
| | | :before-upload="beforeUpload1" :headers="token" :on-error="onError1" :on-success="handleSuccessUp1" |
| | | :before-upload="beforeUpload1" :headers="uploadHeader" :on-error="onError1" :on-success="handleSuccessUp1" |
| | | :show-file-list="false" accept='.doc,.docx,.xls,.xlsx'> |
| | | <el-button size="small" type="primary">导入</el-button> |
| | | </el-upload> |
| | |
| | | @keyup.enter.native="refreshTable()"> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="检验对象" prop="specimenName"> |
| | | <el-input size="small" placeholder="请输入" clearable v-model="itemParameterForm.specimenName" |
| | | <el-form-item label="检验对象" prop="sample"> |
| | | <el-input size="small" placeholder="请输入" clearable v-model="itemParameterForm.sample" |
| | | @keyup.enter.native="refreshTable()"> |
| | | </el-input> |
| | | </el-form-item> |
| | |
| | | </el-dialog> |
| | | <el-dialog :visible.sync="uploadDia" title="数据导入" width="500px"> |
| | | <div style="margin: 0 auto;"> |
| | | <el-upload ref="upload" :action="uploadAction" :auto-upload="false" :file-list="fileList" :headers="token" |
| | | :limit="1" :on-change="beforeUpload" :on-error="onError" :on-success="onSuccess" accept=".xlsx" drag |
| | | name="file"> |
| | | <el-upload ref="upload" :action="uploadAction" :auto-upload="false" :file-list="fileList" |
| | | :headers="uploadHeader" :limit="1" :on-change="beforeUpload" :on-error="onError" :on-success="onSuccess" |
| | | accept=".xlsx" drag name="file"> |
| | | <i class="el-icon-upload"></i> |
| | | <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div> |
| | | </el-upload> |
| | |
| | | { label: '检验对象EN', prop: 'specimenNameEn' }, |
| | | { label: '产品', prop: 'product' }, |
| | | { label: '对象代号', prop: 'code' }, |
| | | { |
| | | label: '对象类型', prop: 'objectType', |
| | | dataType: 'tag', |
| | | formatData: (params) => { |
| | | if (params == 1) { |
| | | return '原材料' |
| | | } else if (params == 2) { |
| | | return '成品' |
| | | } else { |
| | | return '辅材' |
| | | } |
| | | }, |
| | | formatType: (params) => { |
| | | if (params == 1) { |
| | | return 'success' |
| | | } else if (params == 2) { |
| | | return 'info' |
| | | } else { |
| | | return 'warning' |
| | | } |
| | | } |
| | | }, |
| | | { label: '创建人', prop: 'createUserName' }, |
| | | { label: '更新人', prop: 'updateUserName' }, |
| | | { label: '创建时间', prop: 'createTime' }, |