| | |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-row> |
| | | <el-button @click="issuedDialogVisible=false;goBack">取 消</el-button> |
| | | <el-button @click="issuedDialogVisible=false;closeOpenPage">取 消</el-button> |
| | | <el-button :loading="upLoad" type="primary" @click="submitForm2">确 定</el-button> |
| | | </el-row> |
| | | </span> |
| | |
| | | selectStandardTreeList2 |
| | | } from "@/api/business/rawMaterialOrder"; |
| | | import { |
| | | addInsOrder, delInsOrderTemplate, |
| | | addInsOrder, addInsOrderTemplate, delInsOrderTemplate, |
| | | getQuarterOnOrder, |
| | | selectOrderManDay, |
| | | updateInsOrder, |
| | |
| | | import {selectCustomPageList} from "@/api/system/customer"; |
| | | |
| | | export default { |
| | | name: 'Add', |
| | | components: { |
| | | limsTable, |
| | | cableConfig, |
| | |
| | | this.getCompanyList() |
| | | }, |
| | | getCompanyList () { |
| | | selectCustomPageList().then(res => { |
| | | selectCustomPageList({...this.page1}).then(res => { |
| | | this.tableLoading1 = false |
| | | if (res.code === 200) { |
| | | this.tableData1 = res.data.records |
| | |
| | | this.saveLoad = false |
| | | this.$message.success('已提交') |
| | | this.bsm3Dia = false; |
| | | this.goBack() |
| | | this.closeOpenPage() |
| | | }).catch(e=>{ |
| | | this.saveLoad = false |
| | | }) |
| | |
| | | this.saveLoad = false |
| | | this.$message.success('已提交') |
| | | this.bsm3Dia = false; |
| | | this.goBack() |
| | | this.closeOpenPage() |
| | | }).catch(e=>{ |
| | | this.saveLoad = false |
| | | }) |
| | |
| | | this.$message.success('提交成功') |
| | | this.upLoad = false |
| | | this.issuedDialogVisible = false |
| | | this.goBack() |
| | | this.closeOpenPage() |
| | | }).catch(e => { |
| | | this.$message.error('提交失败') |
| | | this.upLoad = false |
| | |
| | | sampleList: this.sampleList, |
| | | selectTree:this.selectTree |
| | | }) |
| | | }, { |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | | } |
| | | }).then(res => { |
| | | if (res.code == 201) return |
| | | this.templateLoading = false; |
| | | this.templateDia = false; |
| | | this.$message.success('保存成功') |
| | | this.selectInsOrderTemplate() |
| | | this.templateName = '' |
| | | }).catch(e => { |
| | | this.templateLoading = false; |
| | | }) |
| | | } else { |
| | | this.$message.error('请填写模板名称') |
| | |
| | | state: 2, |
| | | id: this.currentId, |
| | | tell: this.tell |
| | | }, { |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | | } |
| | | }).then(res => { |
| | | this.noLoading = false; |
| | | this.tell = ''; |
| | | this.$message.success('提交成功') |
| | | this.issuedDialogVisible = false; |
| | | this.goBack() |
| | | this.closeOpenPage() |
| | | }) |
| | | }, |
| | | filterHandler(value, row, column) { |
| | |
| | | }, |
| | | // 辅助线芯配置 |
| | | openAuxiliaryCore () { |
| | | if (this.active === 1) { |
| | | if (this.active == 1) { |
| | | if (this.sampleIds.length === 0) { |
| | | this.$message.error("未选择样品") |
| | | } else if (this.sampleIds.length === 1) { |
| | |
| | | } |
| | | }, |
| | | openCableConfig() { |
| | | if (this.active === 1) { |
| | | if (this.active == 1) { |
| | | if (this.sampleIds.length === 0) { |
| | | this.$message.error("未选择样品") |
| | | } else if (this.sampleIds.length === 1) { |
| | |
| | | this.productList0.splice(index,1) |
| | | }, |
| | | goBack () { |
| | | const obj = { path: "/business/productOrder" }; |
| | | this.$tab.closeOpenPage(obj); |
| | | } |
| | | this.$router.go(-1) |
| | | }, |
| | | closeOpenPage() { |
| | | this.$router.go(-1) |
| | | this.$tab.closeOpenPage() |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .ins_order_add .el-input-group__append, |
| | | .el-input-group__prepend { |
| | | padding: 0 10px; |
| | | } |
| | | |
| | | .ins_order_add .el-tree-node__content { |
| | | height: 32px; |
| | | font-size: 14px; |
| | | border-radius: 2px; |
| | | } |
| | | |
| | | .ins_order_add .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content { |
| | | .el-table .warning-row .cell { |
| | | color: #3A7BFA; |
| | | } |
| | | |
| | | .ins_order_add .has-gutter .el-table__cell .cell { |
| | | line-height: 30px; |
| | | background-color: #fafafa; |
| | | } |
| | | |
| | | .ins_order_add .has-gutter .el-table__cell { |
| | | background-color: #fafafa !important; |
| | | } |
| | | |
| | | .ins_order_add .el-table__row .cell { |
| | | font-size: 12px; |
| | | } |
| | | |
| | | .ins_order_add .el-table .warning-row .cell { |
| | | color: #3A7BFA; |
| | | } |
| | | |
| | | .ins_order_add .el-select .is-disabled { |
| | | background: transparent !important; |
| | | } |
| | | |
| | | .ins_order_add .el-select .is-disabled .el-input__inner { |
| | | background: transparent !important; |
| | | } |
| | | </style> |