| | |
| | | |
| | | <template> |
| | | <div class="ins_order_add"> |
| | | <div> |
| | | <div v-show="!configShow"> |
| | | <el-row class="title"> |
| | | <el-col :span="6" style="padding-left: 20px;">委托单信息</el-col> |
| | | <el-col :span="18" style="text-align: right;"> |
| | |
| | | <el-button size="medium" @click="templateDia=true" v-show="active==1"> |
| | | <span style="color: #3A7BFA;">保存模板</span> |
| | | </el-button> |
| | | <el-button size="medium" type="primary" @click="$parent.playOrder(4)">光纤配置</el-button> |
| | | <el-button size="medium" type="primary" @click="openConfig">光纤配置</el-button> |
| | | <el-button size="medium" type="primary" @click="save" :loading="saveLoad" v-show="active==1">提交</el-button> |
| | | <!-- 审核 --> |
| | | <el-button size="medium" @click="upInsOrderOfState(2)" :loading="saveLoad" v-show="active==3" |
| | |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | <div class="search"> |
| | | <div class="search" v-show="!configShow"> |
| | | <el-row> |
| | | <el-col class="search_thing" :span="6"> |
| | | <div class="search_label">委托编号:</div> |
| | |
| | | </div> |
| | | </el-col> |
| | | <el-col class="search_thing" :span="6"> |
| | | <div class="search_label">工程名称:</div> |
| | | <div class="search_label"><span class="required-span">* </span>工程名称:</div> |
| | | <div class="search_input"> |
| | | <el-input size="small" placeholder="请输入" clearable v-model="addObj.value1" :readonly="active>1"></el-input> |
| | | <el-input size="small" placeholder="请输入" clearable v-model="addObj.engineering" :readonly="active>1"></el-input> |
| | | </div> |
| | | </el-col> |
| | | <el-col class="search_thing" :span="6"> |
| | | <div class="search_label">工程名称EN:</div> |
| | | <div class="search_label"><span class="required-span">* </span>工程名称EN:</div> |
| | | <div class="search_input"> |
| | | <el-input size="small" placeholder="请输入" clearable v-model="addObj.value2" :readonly="active>1"></el-input> |
| | | <el-input size="small" placeholder="请输入" clearable v-model="addObj.engineeringEn" :readonly="active>1"></el-input> |
| | | </div> |
| | | </el-col> |
| | | <el-col class="search_thing" :span="6"> |
| | | <div class="search_label">生产单位:</div> |
| | | <div class="search_label"><span class="required-span">* </span>生产单位:</div> |
| | | <div class="search_input"> |
| | | <el-input size="small" placeholder="请输入" clearable v-model="addObj.value3" :readonly="active>1"></el-input> |
| | | <el-input size="small" placeholder="请输入" clearable v-model="addObj.production" :readonly="active>1"></el-input> |
| | | </div> |
| | | </el-col> |
| | | <el-col class="search_thing" :span="6"> |
| | | <div class="search_label">生产单位EN:</div> |
| | | <div class="search_label"><span class="required-span">* </span>生产单位EN:</div> |
| | | <div class="search_input"> |
| | | <el-input size="small" placeholder="请输入" clearable v-model="addObj.value4" :readonly="active>1"></el-input> |
| | | <el-input size="small" placeholder="请输入" clearable v-model="addObj.productionEn" :readonly="active>1"></el-input> |
| | | </div> |
| | | </el-col> |
| | | <el-col class="search_thing" :span="6" style="align-items: flex-start;margin: 8px 0;"> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | <div> |
| | | <div v-show="!configShow"> |
| | | <el-table class="el-table sampleTable" ref="sampleTable" :data="sampleList" height="250px" tooltip-effect="dark" |
| | | border @selection-change="selectSample" highlight-current-row @row-click="rowClick" style="margin-top: 10px;"> |
| | | <el-table-column type="selection" width="60" :selectable="selectable" v-if="active==1"></el-table-column> |
| | |
| | | </el-row> |
| | | </span> |
| | | </el-dialog> |
| | | <fiberOpticConfig :currentId="currentId" v-if="configShow"/> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import ValueTable from '../../tool/value-table.vue' |
| | | import fiberOpticConfig from './fiberoptic-config.vue' |
| | | export default { |
| | | components: { |
| | | ValueTable |
| | | ValueTable, |
| | | fiberOpticConfig |
| | | }, |
| | | props: { |
| | | active: { |
| | |
| | | orderType: null, |
| | | send: 1, |
| | | formType: '送检', |
| | | value1: null, |
| | | value2: null, |
| | | value3: null, |
| | | value4: null, |
| | | engineering: null, |
| | | engineeringEn: null, |
| | | production: null, |
| | | productionEn: null, |
| | | }, |
| | | sample: { |
| | | sampleCode: null, |
| | |
| | | noLoading: false, |
| | | orderType: [], |
| | | filters: [], |
| | | formType: [] |
| | | formType: [], |
| | | configShow: false |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | this.$message.error('请输入来样方式') |
| | | } else if (!this.addObj.orderType) { |
| | | this.$message.error('请选择检验类别') |
| | | }else if (!this.addObj.engineering) { |
| | | this.$message.error('请输入工程名称') |
| | | } else if (!this.addObj.engineeringEn) { |
| | | this.$message.error('请输入工程名称EN') |
| | | }else if (!this.addObj.production) { |
| | | this.$message.error('请输入生产单位') |
| | | }else if (!this.addObj.productionEn) { |
| | | this.$message.error('请输入生产单位EN') |
| | | } else if (this.sampleList.length < 1) { |
| | | this.$message.error('请添加一个样品') |
| | | } else if (!this.sampleList.every(m => m.sample)) { |
| | |
| | | filterHandler(value, row, column) { |
| | | const property = column['property']; |
| | | return row[property] === value; |
| | | }, |
| | | openConfig(){ |
| | | if(this.sampleIds.length===0){ |
| | | this.$message.error("未选择样品") |
| | | return |
| | | } |
| | | this.configShow = true |
| | | } |
| | | } |
| | | } |