Merge branch 'master' of http://114.132.189.42:9002/r/center-lims-before into master
| | |
| | | </div> --> |
| | | <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"></el-table-column> |
| | | <el-table-column type="selection" width="60" :selectable="selectable" v-if="active==1"></el-table-column> |
| | | <el-table-column type="index" label="序号" width="65" align="center"></el-table-column> |
| | | <el-table-column prop="sample" label="样品名称" align="center" min-width="100"> |
| | | <template slot-scope="scope"> |
| | |
| | | <el-table class="el-table" ref="productTable" :data="productList" height="380px" tooltip-effect="dark" border |
| | | @selection-change="selectProduct" style="margin-bottom: 10px;" @select="upProductSelect" |
| | | :row-class-name="tableRowClassName" v-loading="getProductLoad" @select-all="handleAll"> |
| | | <el-table-column type="selection" width="65" :selectable="selectable"></el-table-column> |
| | | <el-table-column type="selection" width="65" :selectable="selectable" v-if="active==1"></el-table-column> |
| | | <el-table-column prop="inspectionItem" label="检验项" min-width="140" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="inspectionItemSubclass" label="检验项子项" min-width="140" |
| | | show-overflow-tooltip></el-table-column> |
| | |
| | | } |
| | | </style> |
| | | <template> |
| | | <div> |
| | | <div v-loading="loading"> |
| | | <el-row class="title"> |
| | | <el-col :span="12" style="padding-left: 20px;">检验单详情</el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | |
| | | <el-input clearable v-model="insOrder.appointed" disabled size="small" placeholder="请输入"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="当前样品位数:" > |
| | | <span v-if="currentSample.index">{{ `NO.${currentSample.index}` }}</span> |
| | | <el-tag v-if="currentSample.index">{{ `NO.${currentSample.index}` }}</el-tag> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | |
| | | <el-drawer |
| | | title="任务切换" |
| | | :visible.sync="taskVisible" |
| | | size="45%"> |
| | | :size="500"> |
| | | <ValueTable class="value-table" ref="insOrderPlan" |
| | | :url="$api.insOrderPlan.selectInsOrderPlanList" :componentData="componentData" |
| | | :key="upIndex"/> |
| | |
| | | sonLaboratory: null, |
| | | userId: 0 |
| | | }, |
| | | isIndex: true, |
| | | isIndex: false, |
| | | showSelect: true, |
| | | select: false, |
| | | selectMethod:'handleChangeTask', |
| | |
| | | urgentList:[], |
| | | currentSample:{},//当前样品信息 |
| | | tableList:[], |
| | | loading: false |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | }, |
| | | watch:{ |
| | | id(val){ |
| | | this.loading = true |
| | | this.$axios.post(this.$api.insOrderPlan.doInsOrder,{ |
| | | id: val |
| | | }).then(res=>{ |
| | |
| | | }) |
| | | this.sampleProduct = res.data.sampleProduct |
| | | this.currentSample = this.sampleProduct[0] |
| | | if(this.currentSample.index==undefined)this.currentSample['index'] = 1 |
| | | this.loading = false |
| | | this.handleTableData() |
| | | }) |
| | | } |
| | |
| | | this.sampleVisible = false; |
| | | }, |
| | | handleChangeTask(row){ |
| | | this.id = row[0].id; |
| | | if(row.length > 0)this.id = row[0].id; |
| | | this.taskVisible = false; |
| | | }, |
| | | getTypeDicts() { |
| | |
| | | <template> |
| | | <div style="width: 100%;height: 100%;overflow-y: auto;"> |
| | | <div style="width: 100%;height: 100%;overflow-y: auto;" class="detail"> |
| | | <div> |
| | | <el-row class="title"> |
| | | <el-col :span="12" style="padding-left: 20px;">样品详情</el-col> |
| | |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .detail::-webkit-scrollbar{ |
| | | width: 0; |
| | | } |
| | | |
| | | .title { |
| | | height: 60px; |
| | | line-height: 60px; |
| | |
| | | } |
| | | </style> |
| | | <style> |
| | | #luckysheet .save{ |
| | | #luckysheet .save { |
| | | width: 50px; |
| | | height: 26px; |
| | | color: #fff; |
| | |
| | | cursor: pointer; |
| | | } |
| | | |
| | | #luckysheet .save:hover{ |
| | | #luckysheet .save:hover { |
| | | opacity: .8; |
| | | } |
| | | |
| | | #luckysheet .save:active{ |
| | | #luckysheet .save:active { |
| | | opacity: .7; |
| | | } |
| | | </style> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | // import { data } from 'jquery'; |
| | | import { data } from 'jquery'; |
| | | // import { data } from 'jquery'; |
| | | export default { |
| | | props: ['data','execlTitle'], |
| | | props: ['data', 'execlTitle'], |
| | | data() { |
| | | return { |
| | | } |
| | | return {} |
| | | }, |
| | | mounted() { |
| | | this.$nextTick(() => { |
| | |
| | | }, |
| | | methods: { |
| | | templateWrite() { |
| | | if(this.data!=null&&this.data!=''){ |
| | | let option = JSON.parse(this.data) |
| | | option.title = this.execlTitle |
| | | luckysheet.create(option) |
| | | }else{ |
| | | console.log(this.execlTitle); |
| | | $(function() { |
| | | //配置项 |
| | | var options = { |
| | | container: 'luckysheet', |
| | | title: this.execlTitle, |
| | | lang: "zh", |
| | | showsheetbar: false, |
| | | showstatisticBarConfig: { |
| | | view: false |
| | | }, |
| | | data: [{ |
| | | name: '模板', |
| | | order: '0' |
| | | }], |
| | | enableAddRow: false, |
| | | row: 60, |
| | | column: 26, |
| | | enableAddBackTop: false, |
| | | showtoolbarConfig: { |
| | | chart: false, // '图表' |
| | | pivotTable: false, //'数据透视表' |
| | | protection:false, // '工作表保护' |
| | | }, |
| | | cellRightClickConfig: { |
| | | copyAs: false, // 复制为 |
| | | hideRow: false, // 隐藏选中行和显示选中行 |
| | | hideColumn: false, // 隐藏选中列和显示选中列 |
| | | sort: false, // 排序选区 |
| | | filter: false, // 筛选选区 |
| | | chart: false, // 图表生成 |
| | | image: false, // 插入图片 |
| | | matrix: false, // 矩阵操作选区 |
| | | }, |
| | | myFolderUrl: 'http://127.0.0.1/', |
| | | functionButton: '<button onClick="excelClosed()" class="save">保存</button>' |
| | | } |
| | | options.title = this.execlTitle |
| | | luckysheet.create(options) |
| | | }) |
| | | var option = {} |
| | | if (this.data != null && this.data != '') { |
| | | option = JSON.parse(this.data) |
| | | } else { |
| | | let rowlen = {} |
| | | let columnlen = {} |
| | | for(let a = 0; a<60; a++){ |
| | | rowlen[''+a] = 40 |
| | | } |
| | | for(let a = 0; a<26; a++){ |
| | | columnlen[''+a] = 100 |
| | | } |
| | | option = { |
| | | data: [{ |
| | | name: '模板', |
| | | order: '0', |
| | | config: { |
| | | rowlen: rowlen, |
| | | columnlen: columnlen |
| | | } |
| | | }], |
| | | row: 60, |
| | | column: 26 |
| | | } |
| | | } |
| | | option.title = this.execlTitle |
| | | option.container = 'luckysheet', |
| | | option.lang = "zh", |
| | | option.showsheetbar = false, |
| | | option.defaultFontSize = 14 |
| | | option.showstatisticBarConfig = { |
| | | view: false |
| | | }, |
| | | option.enableAddRow = false, |
| | | option.enableAddBackTop = false, |
| | | option.showtoolbarConfig = { |
| | | chart: false, // '图表' |
| | | pivotTable: false, //'数据透视表' |
| | | protection: false, // '工作表保护' |
| | | dataVerification: false, // '数据验证' |
| | | frozenMode: false, // '冻结方式' |
| | | currencyFormat: false, //货币格式 |
| | | percentageFormat: false, //百分比格式 |
| | | numberDecrease: false, // '减少小数位数' |
| | | numberIncrease: false, // '增加小数位数 |
| | | moreFormats: false, // '更多格式' |
| | | strikethrough: false, // '删除线 (Alt+Shift+5)' |
| | | underline: false, // '下划线 (Alt+Shift+6)' |
| | | italic: false, // '斜体 (Ctrl+I)' |
| | | textWrapMode: false, // '换行方式' |
| | | textRotateMode: false, // '文本旋转方式' |
| | | conditionalFormat: false, // '条件格式' |
| | | splitColumn: false, // '分列' |
| | | }, |
| | | option.cellRightClickConfig = { |
| | | copyAs: false, // 复制为 |
| | | hideRow: false, // 隐藏选中行和显示选中行 |
| | | hideColumn: false, // 隐藏选中列和显示选中列 |
| | | sort: false, // 排序选区 |
| | | filter: false, // 筛选选区 |
| | | chart: false, // 图表生成 |
| | | image: false, // 插入图片 |
| | | matrix: false, // 矩阵操作选区 |
| | | data: false, // 数据验证 |
| | | cellFormat: false // 设置单元格格式 |
| | | }, |
| | | option.myFolderUrl = this.LOCATIONVUE + '/', |
| | | option.functionButton = '<button onClick="excelClosed()" class="save">保存</button>' |
| | | luckysheet.create(option) |
| | | } |
| | | } |
| | | } |
| | |
| | | </style> |
| | | |
| | | <template> |
| | | <div class="inspection_order"> |
| | | <div class="sample"> |
| | | <div style="width: 100%;height: 100%;" v-if="!isDetail"> |
| | | <div> |
| | | <el-row class="title"> |
| | |
| | | </div> |
| | | <div class="table"> |
| | | <ValueTable ref="ValueTable" :url="$api.StandardTemplate.selectStandardTemplatePageList" |
| | | :upUrl="$api.StandardTemplate.upStandardTemplate" :delUrl="$api.StandardTemplate.delStandardTemplate" :componentData="componentData" :key="upIndex" /> |
| | | :upUrl="$api.StandardTemplate.upStandardTemplate" :delUrl="$api.StandardTemplate.delStandardTemplate" |
| | | :componentData="componentData" :key="upIndex" /> |
| | | </div> |
| | | <el-dialog title="模板编制" :visible.sync="isShow" width="80%" :before-close="isClose"> |
| | | <div style="width: 100%;height: 80vh;overflow: auto;" v-if="isShow"> |
| | |
| | | this.isShow = true |
| | | this.row = row |
| | | }, |
| | | closed(){ |
| | | closed() { |
| | | this.loading = true |
| | | let data = luckysheet.toJson() |
| | | this.$axios.post(this.$api.StandardTemplate.upStandardTemplate,{ |
| | | delete data.title |
| | | delete data.container |
| | | delete data.lang |
| | | delete data.showsheetbar |
| | | delete data.showstatisticBarConfig |
| | | delete data.enableAddRow |
| | | delete data.enableAddBackTop |
| | | delete data.showtoolbarConfig |
| | | delete data.cellRightClickConfig |
| | | delete data.myFolderUrl |
| | | delete data.functionButton |
| | | if(data.data[0].config.borderInfo != undefined){ |
| | | for (var i = 0; i < data.data[0].config.borderInfo.length; i++) { |
| | | let str = data.data[0].config.borderInfo |
| | | if (str[i].rangeType === 'range') { |
| | | if (str[i].borderType === 'border-none') { |
| | | data.data[0].config.borderInfo.splice(i, 1) |
| | | i -= 1 |
| | | } |
| | | } |
| | | } |
| | | } |
| | | this.$axios.post(this.$api.StandardTemplate.upStandardTemplate, { |
| | | id: this.row.id, |
| | | thing: JSON.stringify(data), |
| | | name: luckysheet.getWorkbookName(['name']) |
| | | },{ |
| | | }, { |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | | } |
| | | }).then(res=>{ |
| | | if (res.code==201) return |
| | | }).then(res => { |
| | | if (res.code == 201) return |
| | | this.loading = false |
| | | this.$message.success('已保存') |
| | | this.isShow = false |
| | | this.refreshTable() |
| | | }) |
| | | }, |
| | | isClose(done){ |
| | | isClose(done) { |
| | | this.$confirm('是否需要保存?', "警告", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | }).then(() => { |
| | | this.closed() |
| | | }).catch(()=>{done()}) |
| | | }).catch(() => { |
| | | done() |
| | | }) |
| | | } |
| | | } |
| | | } |
| | |
| | | </el-table> |
| | | </el-row> |
| | | <el-row class="product_table" v-loading="tableLoad2"> |
| | | <el-table :data="productList" ref="productTable" style="width: 100%;" height="100%" tooltip-effect="dark" stripe :fit="true" border |
| | | @selection-change="handleSelectionChange" :row-class-name="tableRowClassName" @select="upProductSelect"> |
| | | <el-table-column type="selection" width="65"></el-table-column> |
| | | <el-table :data="productList" ref="productTable" style="width: 100%;" height="100%" tooltip-effect="dark" stripe |
| | | :fit="true" border @selection-change="handleSelectionChange" :row-class-name="tableRowClassName" |
| | | @select="upProductSelect"> |
| | | <el-table-column type="selection" width="65"> |
| | | </el-table-column> |
| | | <el-table-column prop="inspectionItem" label="检验项" min-width="140" show-overflow-tooltip></el-table-column> |
| | | <!-- <el-table-column prop="inspectionItemClassify" label="检验项类型" width="120" show-overflow-tooltip></el-table-column> --> |
| | | <el-table-column prop="inspectionItemSubclass" label="检验项子项" min-width="140" |
| | |
| | | <el-table-column prop="tell" label="要求描述" min-width="220px"> |
| | | <template slot-scope="scope"> |
| | | <el-input size="small" placeholder="要求描述" v-model="scope.row.tell" clearable |
| | | @change="(value)=>upStandardProductListOfTell(value,scope.row.id)" v-if="upStandardProduct" type="textarea" |
| | | :autosize="{ minRows: 1, maxRows: 3}"></el-input> |
| | | @change="(value)=>upStandardProductListOfTell(value,scope.row.id)" v-if="upStandardProduct" |
| | | type="textarea" :autosize="{ minRows: 1, maxRows: 3}"></el-input> |
| | | <span v-else>{{scope.row.ask}}</span> |
| | | </template> |
| | | </el-table-column> |