| | |
| | | <div class="body" :style="{height:mainHeight+'px'}"> |
| | | |
| | | <div class="bodyTopButtonGroup"> |
| | | <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">新增</el-button> |
| | | <!-- <el-button type="primary" icon="el-icon-upload2" @click="upload">导入</el-button>--> |
| | | <el-button v-waves type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">新增</el-button> |
| | | <!-- <el-button v-waves type="primary" icon="el-icon-upload2" @click="upload">导入</el-button>--> |
| | | </div> |
| | | <div class="bodyTopFormGroup"> |
| | | <el-form |
| | |
| | | :model="form" |
| | | label-width="100px" |
| | | inline |
| | | style="display: flex;justify-content: space-between" |
| | | style="display: flex;" |
| | | > |
| | | <div class="elForm"> |
| | | <el-form-item label-width="70px" label="标准代码" style=" display: flex;"> |
| | | <el-form-item label="标准代码" style=" display: flex;"> |
| | | <el-input v-model="form.stanedcode" placeholder="请输入" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item label="标准名称" style=" display: flex;"> |
| | |
| | | <el-input v-model="form.staneddescr" style="width: 200px" placeholder="请输入" /> |
| | | </el-form-item> |
| | | </div> |
| | | <div class="bodySearchReset" :style="{marginLeft:$store.state.app.sidebar.opened?'5%':'10%'}"> |
| | | <el-button type="primary" icon="el-icon-search" @click="search">查询</el-button> |
| | | <el-button type="info" icon="el-icon-refresh" @click="reset">重置</el-button> |
| | | <div class="bodySearchReset" :style="{marginLeft:$store.state.app.sidebar.opened? $store.state.settings.menuIsHorizontal?'15%':'3%':'10%'}"> |
| | | <el-button v-waves type="primary" icon="el-icon-search" @click="search">查询</el-button> |
| | | <el-button v-waves type="info" icon="el-icon-refresh" @click="reset">重置</el-button> |
| | | </div> |
| | | </el-form> |
| | | <div |
| | |
| | | /> |
| | | <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> |
| | |
| | | </div> |
| | | |
| | | <el-dialog |
| | | v-el-drag-dialog |
| | | :title="operation==='add'?'新增':(operation==='edit'?'编辑':'查看')" |
| | | :visible.sync="dialogVisible" |
| | | width="800px" |
| | |
| | | > |
| | | <!-- @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> |
| | | <el-button v-if="operation==='add'||operation==='edit'" v-waves type="primary" @click="JYadd">新增</el-button> |
| | | </div> |
| | | <div> |
| | | <el-table |
| | |
| | | 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}"> |
| | |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | | <el-button v-if="row.isVisible===0" type="text" @click="JYedit(row)">编辑</el-button> |
| | | <el-button v-if="row.isVisible===0" type="text" @click="JYdel(row)">删除</el-button> |
| | | <el-button v-if="row.isVisible===1" type="text" @click="JYsave(row)">确定</el-button> |
| | | <el-button v-if="row.isVisible===1" type="text" @click="JYcancel(row)">取消</el-button> |
| | | <el-button v-if="row.isVisible===0" v-waves type="text" @click="JYedit(row)">编辑</el-button> |
| | | <el-button v-if="row.isVisible===0" v-waves type="text" @click="JYdel(row)">删除</el-button> |
| | | <el-button v-if="row.isVisible===1" v-waves type="text" @click="JYsave(row)">确定</el-button> |
| | | <el-button v-if="row.isVisible===1" v-waves type="text" @click="JYcancel(row)">取消</el-button> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | |
| | | <span slot="footer" class="dialog-footer"> |
| | | <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'" v-waves @click="dialogVisibleCancel">返 回</el-button> |
| | | <el-button v-if="operation!=='check'" v-waves @click="dialogVisibleCancel">取 消</el-button> |
| | | <el-button |
| | | v-if="operation!=='check'" |
| | | v-waves |
| | | :loading="$store.state.app.buttonIsDisabled" |
| | | :disabled="$store.state.app.buttonIsDisabled" |
| | | type="primary" |
| | | @click="dialogVisibleConfirm" |
| | | >提 交</el-button> |
| | | </div> |
| | | </span> |
| | | </el-dialog> |
| | |
| | | StepCheckStanedSearch |
| | | } from '@/api/zlgl' |
| | | import { validateCode } from '@/utils/global' |
| | | import elDragDialog from '@/directive/el-drag-dialog' |
| | | import waves from '@/directive/waves' |
| | | |
| | | export default { |
| | | name: 'ZJBZ', |
| | | components: { |
| | | Pagination |
| | | }, |
| | | directives: { elDragDialog, waves }, |
| | | data() { |
| | | return { |
| | | isIpad: false, |
| | |
| | | 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' ? '添加失败!' : '修改失败!') |
| | | } |