| | |
| | | addStandardTemplate: "/StandardTemplate/addStandardTemplate", //æ·»å æ£éªæ¨¡æ¿ |
| | | upStandardTemplate: "/StandardTemplate/upStandardTemplate", //ä¿®æ¹æ£éªæ¨¡æ¿ |
| | | delStandardTemplate: "/StandardTemplate/delStandardTemplate", //å 餿£éªæ¨¡æ¿ |
| | | getStandardTemplate: "/StandardTemplate/getStandardTemplate", //æ¥è¯¢åå§è®°å½æ¨¡æ¿æä¸¾ |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <style scoped> |
| | | .ins_order_add{ |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | |
| | | .title { |
| | | height: 60px; |
| | | line-height: 60px; |
| | | } |
| | | </style> |
| | | |
| | | <template> |
| | | <div class="ins_order_add"> |
| | | <div> |
| | | <el-row class="title"> |
| | | <el-col :span="12" style="padding-left: 20px;">å§æåä¿¡æ¯</el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | | <el-button size="medium" type="primary" @click="">æäº¤</el-button> |
| | | <el-button size="medium" @click="">è¿å</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default{ |
| | | data() { |
| | | return{ |
| | | |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | order: '0' |
| | | }], |
| | | enableAddRow: false, |
| | | row: 100, |
| | | row: 60, |
| | | column: 26, |
| | | enableAddBackTop: false, |
| | | showtoolbarConfig: { |
| | |
| | | inspectionItemType: { |
| | | select: [] |
| | | }, |
| | | valueType: { |
| | | select: [] |
| | | }, |
| | | bsm:{ |
| | | select: [] |
| | | }, |
| | | inspectionValueType:{ |
| | | select:[] |
| | | }, |
| | | laboratory:{ |
| | | select:[] |
| | | }, |
| | | method:{select:[]}, |
| | | deviceGroup:{select:[]} |
| | | }, |
| | | selectField: { |
| | | inspectionItemType: { |
| | | select: [] |
| | | }, |
| | | valueType: { |
| | | select: [] |
| | | }, |
| | | bsm:{ |
| | | select: [] |
| | | }, |
| | |
| | | }, |
| | | method:{select:[]}, |
| | | deviceGroup:{select:[]}, |
| | | sample: {select:[]} |
| | | templateId:{ |
| | | select:[] |
| | | }, |
| | | requiredAdd: ['inspectionItem', 'manHour', 'inspectionItemType','inspectionItemSubclass','inspectionValueType','laboratory','unit','method','price','manDay','deviceGroup','checkoutNumber','valueType','sample'], |
| | | requiredUp: ['inspectionItem', 'manHour', 'inspectionItemType','inspectionItemSubclass','inspectionValueType','laboratory','unit','method','price','manDay','deviceGroup','checkoutNumber','valueType','sample'] |
| | | sonLaboratory: {select:[]} |
| | | }, |
| | | selectField: { |
| | | inspectionItemType: { |
| | | select: [] |
| | | }, |
| | | bsm:{ |
| | | select: [] |
| | | }, |
| | | inspectionValueType:{ |
| | | select:[] |
| | | }, |
| | | laboratory:{ |
| | | select:[] |
| | | }, |
| | | templateId:{ |
| | | select:[] |
| | | }, |
| | | method:{select:[]}, |
| | | deviceGroup:{select:[]}, |
| | | sample: {select:[]}, |
| | | sonLaboratory: {select:[]} |
| | | }, |
| | | requiredAdd: ['sonLaboratory','inspectionItem', 'manHour', 'inspectionItemType','inspectionItemSubclass','inspectionValueType','laboratory','unit','method','price','manDay','deviceGroup','checkoutNumber','sample'], |
| | | requiredUp: ['sonLaboratory','inspectionItem', 'manHour', 'inspectionItemType','inspectionItemSubclass','inspectionValueType','laboratory','unit','method','price','manDay','deviceGroup','checkoutNumber','sample'] |
| | | }, |
| | | testObjectData: { |
| | | entity: { |
| | |
| | | this.itemParameterEntityCopy = this.HaveJson(this.itemParameterData.entity) |
| | | this.testObjectDataEntityCopy = this.HaveJson(this.testObjectData.entity) |
| | | this.selectEnumByCategory() |
| | | this.selectEnumByCategoryForValue() |
| | | // this.selectEnumByCategoryForValue() |
| | | this.selectEnumByCategoryForSpecial() |
| | | this.selectEnumByCategoryForInspectionValueType() |
| | | this.obtainItemParameterList() |
| | | this.selectStandardMethods() |
| | | this.selectEnumByCategoryForDevice() |
| | | this.selectTestObjectByName() |
| | | this.getStandardTemplate() |
| | | this.selectEnumByCategoryForSLaboratory() |
| | | this.getPower('0') |
| | | }, |
| | | methods: { |
| | |
| | | }, |
| | | selectEnumByCategoryForSpecial() { |
| | | this.$axios.post(this.$api.enums.selectEnumByCategory, { |
| | | category: "ç¹æ®æ è¯" |
| | | category: "æ¯å¦" |
| | | }).then(res => { |
| | | this.itemParameterData.selectField.bsm.select = res.data |
| | | this.itemParameterData.tagField.bsm.select = res.data |
| | |
| | | }).then(res => { |
| | | this.itemParameterData.selectField.deviceGroup.select = res.data |
| | | this.itemParameterData.tagField.deviceGroup.select = res.data |
| | | }) |
| | | }, |
| | | selectEnumByCategoryForSLaboratory() { |
| | | this.$axios.post(this.$api.enums.selectEnumByCategory, { |
| | | category: "åå®éªå®¤" |
| | | }).then(res => { |
| | | this.itemParameterData.selectField.sonLaboratory.select = res.data |
| | | this.itemParameterData.tagField.sonLaboratory.select = res.data |
| | | }) |
| | | }, |
| | | obtainItemParameterList() { |
| | |
| | | this.itemParameterData.selectField.sample.select = data |
| | | }) |
| | | }, |
| | | getStandardTemplate() { |
| | | this.$axios.get(this.$api.StandardTemplate.getStandardTemplate).then(res => { |
| | | let data = [] |
| | | res.data.forEach(a => { |
| | | data.push({ |
| | | label: a.name, |
| | | value: a.id, |
| | | type: 'success' |
| | | }) |
| | | }) |
| | | this.itemParameterData.selectField.templateId.select = data |
| | | this.itemParameterData.tagField.templateId.select = data |
| | | }) |
| | | }, |
| | | // æéåé
|
| | | getPower(radio) { |
| | | let power = JSON.parse(sessionStorage.getItem('power')) |
| | |
| | | </style> |
| | | |
| | | <template> |
| | | <div class="role_manage"> |
| | | <div class="inspection_order"> |
| | | <div style="width: 100%;height: 100%;" v-if="active == 0"> |
| | | <div> |
| | | <el-row class="title"> |
| | | <el-col :span="12" style="padding-left: 20px;">æ£éªä¸å</el-col> |
| | |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | <div style="width: 100%;height: 100%;" v-if="active == 1"> |
| | | <Add/> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import ValueTable from '../tool/value-table.vue' |
| | | import Add from '../do/b1-ins-order/add.vue' |
| | | export default { |
| | | components: { |
| | | ValueTable |
| | | ValueTable, |
| | | Add |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | }, |
| | | ], |
| | | tabIndex: 0, |
| | | active: 1 |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | }) |
| | | }, |
| | | // ä¸å |
| | | playOrder() {}, |
| | | playOrder() { |
| | | this.active = 1 |
| | | }, |
| | | handleTab(m, i) { |
| | | this.tabIndex = i; |
| | | this.componentData.entity.state = m.value |
| | |
| | | font: 'ç¼è¾', |
| | | type: 'text', |
| | | method: 'doDiy', |
| | | field: ['createUserName', 'updateUserName'] |
| | | field: ['createUserName', 'updateUserName','thing'] |
| | | }, { |
| | | id: 'delete', |
| | | font: 'å é¤', |
| | |
| | | closed(){ |
| | | this.loading = true |
| | | let data = luckysheet.toJson() |
| | | console.log(data); |
| | | this.$axios.post(this.$api.StandardTemplate.upStandardTemplate,{ |
| | | id: this.row.id, |
| | | thing: JSON.stringify(data), |
| | |
| | | <el-table :data="productList" style="width: 100%;" height="100%" tooltip-effect="dark" stripe :fit="true" border |
| | | @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="65"></el-table-column> |
| | | <el-table-column prop="inspectionItem" label="æ£éªé¡¹" show-overflow-tooltip></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="æ£éªé¡¹å项" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="laboratory" label="å®éªå®¤" width="120" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="inspectionItemSubclass" label="æ£éªé¡¹å项" min-width="140" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="sonLaboratory" label="åå®éªå®¤" width="130" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="unit" label="计éåä½" width="100" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="price" label="åä»·" width="100" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="manHour" label="å·¥æ¶" width="80" show-overflow-tooltip></el-table-column> |
| | |
| | | <span class="required-span">* </span>æ ·ååç§°ï¼ |
| | | </el-col> |
| | | <el-col :span="16" :offset="1"> |
| | | <el-select v-model="addOb.sample" size="small" style="width: 100%;" clearable> |
| | | <el-option v-for="(a, ai) in sample" :key="ai" :value="a.value" :label="a.label"></el-option> |
| | | </el-select> |
| | | <el-input v-model="addOb.sample" placeholder="请è¾å
¥æ ·ååç§°" clearable size="small"></el-input> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row style="line-height: 50px;"> |
| | |
| | | this.selectEnumByCategoryForFactory() |
| | | this.selectStandardTreeList() |
| | | this.obtainItemParameterList() |
| | | this.selectEnumByCategoryForsampleType() |
| | | // this.selectEnumByCategoryForsampleType() |
| | | this.selectTestObjectByName() |
| | | this.selectStandardMethods() |
| | | this.selectEnumByCategoryForDevice() |
| | |
| | | }, |
| | | selectEnumByCategoryForSpecial() { |
| | | this.$axios.post(this.$api.enums.selectEnumByCategory, { |
| | | category: "ç¹æ®æ è¯" |
| | | category: "æ¯å¦" |
| | | }).then(res => { |
| | | this.componentData.tagField.bsm.select = res.data |
| | | }) |
| | |
| | | value: a.specimenName |
| | | }) |
| | | }) |
| | | this.sample = data |
| | | this.sampleType = data |
| | | }) |
| | | }, |
| | | selectStandardMethods() { |
| | |
| | | |
| | | .tag>.el-icon-s-unfold, |
| | | .el-icon-s-fold, |
| | | .el-icon-delete { |
| | | .tag>.el-icon-delete { |
| | | font-size: 16px; |
| | | cursor: pointer; |
| | | margin: 0 8px; |
| | |
| | | <el-col :span="24"> |
| | | <el-card :body-style="{padding: '6px'}"> |
| | | <ul> |
| | | <li style="color: red;" @click="removeTab(activeIndex)"><i class="el-icon-close"></i>å
³é</li> |
| | | <li @click="removeTab(activeIndex)"><i class="el-icon-close"></i>å
³é</li> |
| | | <li @click="allDel"><i class="el-icon-delete"></i>å
³éææ</li> |
| | | <el-divider></el-divider> |
| | | <li @click="refreshTable"><i class="el-icon-refresh"></i>å·æ°</li> |
| | | </ul> |
| | |
| | | v: "æ£éªä¸å", |
| | | i: "font icon-erjidaohang", |
| | | u: "b1-inspection-order", |
| | | p: "" |
| | | p: "selectInsOrderParameter" |
| | | }, { |
| | | v: "æ£éªä»»å¡", |
| | | i: "font icon-erjidaohang", |