| | |
| | | <i class="el-icon-document"></i> |
| | | 车间附件查看 |
| | | </el-button> |
| | | <el-dialog :visible.sync="fileDialogVisible" title="附件查看" width="80%"> |
| | | <fileList :currentNo="addObj.workShopId" v-if="fileDialogVisible" /> |
| | | </el-dialog> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <el-button type="text" @click="handleFileDialog" v-show="active != 1"> |
| | | <i class="el-icon-document"></i> |
| | | 车间附件查看 |
| | | </el-button> |
| | | <el-dialog :visible.sync="fileDialogVisible" title="附件查看" width="80%"> |
| | | <fileList :currentNo="addObj.workShopId" v-if="fileDialogVisible" :isLook="true" /> |
| | | </el-dialog> |
| | | <div style="margin-bottom: 6px;margin-top: 6px"> |
| | | <el-button v-show="active == 1" :disabled="sampleList.length === 2" size="small" type="primary" |
| | | @click="handleSplitCountNum">拆分</el-button> |
| | |
| | | </span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="条件" min-width="140" prop="radius" show-overflow-tooltip></el-table-column> |
| | | <el-table-column label="试验条件" min-width="140" prop="radius" show-overflow-tooltip></el-table-column> |
| | | <el-table-column label="试验方法" min-width="120" prop="methodS" show-overflow-tooltip> |
| | | <template slot="header" slot-scope="scope"> |
| | | <div style="display: flex;align-items: center;flex-direction: column;font-size: 14px"> |
| | |
| | | this.addObj.updateBatchNo = res.data.insOrderTemplate.updateBatchNo |
| | | this.addObj.type = String(this.addObj.type) |
| | | this.sampleList = this.HaveJson(res.data.sampleProduct) |
| | | this.sampleList.forEach(m => { |
| | | if (m.standardMethodListId) { |
| | | m.standardMethodListId = JSON.parse(m.standardMethodListId) |
| | | } |
| | | }) |
| | | this.getProNum() |
| | | this.$nextTick(() => { |
| | | this.$refs.sampleTable.doLayout() |
| | |
| | | addInsOrder({ |
| | | insOrder: this.addObj, |
| | | sampleList: sampleList.map(a => { |
| | | a.standardMethodListId = JSON.stringify(a.standardMethodListId) |
| | | if (a.insProduct.length > 0) { |
| | | a.insProduct.forEach(c => { |
| | | delete c.id |
| | |
| | | this.sample.insulating = null |
| | | this.sample.sheath = null |
| | | this.sample.quantity = 1 |
| | | if (codeLevel === '[5]') { |
| | | if (codeLevel === '[7]') { |
| | | this.sample.model = this.addObj.sample |
| | | } else if (codeLevel === '[4]') { |
| | | } else if (codeLevel === '[6]') { |
| | | this.models = data.children2 |
| | | } else if (codeLevel === '[3]') { |
| | | } else if (codeLevel === '[5]') { |
| | | this.models = data.children1 |
| | | } |
| | | this.sampleList.push(this.HaveJson(this.sample)) |