| | |
| | | /> |
| | | <el-table-column |
| | | prop="code" |
| | | show-tooltip-when-overflow |
| | | label="标准代码" |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="name" |
| | | label="标准名称" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="descr" |
| | | show-tooltip-when-overflow |
| | | label="标准描述" |
| | | sortable="custom" |
| | | > |
| | |
| | | <el-table-column |
| | | prop="lm_user" |
| | | label="创建人员" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="lm_date" |
| | | label="创建时间" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | |
| | | <el-tooltip class="item" effect="dark" content="查看" placement="top"> |
| | | <i |
| | | class="el-icon-view" |
| | | style="color: #42b983;cursor: pointer;margin-right: 15px;" |
| | | style="cursor: pointer;margin-right: 15px;" |
| | | :style="{color:$store.state.settings.theme}" |
| | | @click="check('check',row)" |
| | | /> |
| | | </el-tooltip> |
| | | <el-tooltip class="item" effect="dark" content="编辑" placement="top"> |
| | | <i class="el-icon-edit-outline" @click="edit('edit',row)" /> |
| | | <i :style="{color:$store.state.settings.theme}" class="el-icon-edit-outline" @click="edit('edit',row)" /> |
| | | </el-tooltip> |
| | | <el-tooltip v-del-tab-index class="item" effect="dark" content="删除" placement="top"> |
| | | <i class="el-icon-delete" @click="del(row)" /> |
| | | <i :style="{color:$store.state.settings.theme}" class="el-icon-delete" @click="del(row)" /> |
| | | </el-tooltip> |
| | | </div> |
| | | </template> |
| | |
| | | > |
| | | <!-- @close="handleClose"--> |
| | | <div style="margin-bottom: 10px"> |
| | | <i class="el-icon-s-comment" style="color:#42b983;" /> 标准信息: |
| | | <i class="el-icon-s-comment" :style="{color:$store.state.settings.theme}" /> 标准信息: |
| | | </div> |
| | | <el-form |
| | | ref="dialogForm" |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | <div style="margin-bottom: 10px"> |
| | | <i class="el-icon-s-comment" style="color:#42b983;" /> 检验项信息: |
| | | <i class="el-icon-s-comment" :style="{color:$store.state.settings.theme}" /> 检验项信息: |
| | | </div> |
| | | <div style="margin-bottom: 10px"> |
| | | <el-button v-if="operation==='add'||operation==='edit'" type="primary" @click="JYadd">新增</el-button> |
| | |
| | | fixed |
| | | /> |
| | | <el-table-column |
| | | show-tooltip-when-overflow |
| | | prop="code" |
| | | label="检验标准编码" |
| | | > |
| | |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | show-tooltip-when-overflow |
| | | label="检验标准名称" |
| | | > |
| | | <template slot-scope="{row}"> |
| | |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="descr" |
| | | show-tooltip-when-overflow |
| | | label="检验描述描述" |
| | | > |
| | | <template slot-scope="{row}"> |
| | |
| | | <div class="footerButton"> |
| | | <el-button v-if="operation==='check'" @click="dialogVisibleCancel">返 回</el-button> |
| | | <el-button v-if="operation!=='check'" @click="dialogVisibleCancel">取 消</el-button> |
| | | <el-button v-if="operation!=='check'" type="primary" @click="dialogVisibleConfirm">提 交</el-button> |
| | | <el-button |
| | | v-if="operation!=='check'" |
| | | :loading="$store.state.app.buttonIsDisabled" |
| | | :disabled="$store.state.app.buttonIsDisabled" |
| | | type="primary" |
| | | @click="dialogVisibleConfirm" |
| | | >提 交</el-button> |
| | | </div> |
| | | </span> |
| | | </el-dialog> |
| | |
| | | dialogVisibleConfirm() { |
| | | this.$refs.dialogForm.validate(valid => { |
| | | if (valid) { |
| | | this.$store.state.app.buttonIsDisabled = true |
| | | const tableData = [] |
| | | this.JYTableData = this.JYTableData.filter(item => item.code !== '') |
| | | this.JYTableData.forEach((item, index) => { |
| | |
| | | } |
| | | AddUpdateStepCheckStaned(this.operation === 'add' ? 'Add' : 'Update', data).then(res => { |
| | | if (res.code === '200') { |
| | | this.$message.success(this.operation === 'add' ? '添加成功!' : '修改成功!') |
| | | this.dialogVisible = false |
| | | this.$message.success(this.operation === 'add' ? '添加成功!' : '修改成功!') |
| | | this.getStepCheckStanedSearch() |
| | | this.$store.state.app.buttonIsDisabled = false |
| | | } else { |
| | | this.$message.error(this.operation === 'add' ? '添加失败!' : '修改失败!') |
| | | } |