| | |
| | | //保存最大流水号 |
| | | export const saveMaxSerialNum = (data) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/ubcs-code/codeBasicSecController/setMaxSerialNumberForCodeRule', |
| | | url: '/api/ubcs-code/codeBasicSecController/setMaxSerialNumberForCodeRule', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | } |
| | | |
| | | export const getMaxSerialNumber = (codeRuleOid,secDTOList) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/codeBasicSecController/getMaxSerialNumberForCodeRule', |
| | | method: 'get', |
| | | params:{ |
| | | codeRuleOid, |
| | | secDTOList |
| | | } |
| | | }) |
| | | } |
| | |
| | | <el-option label="审核中" value="Auditing"></el-option> |
| | | </el-select></span> |
| | | </div> |
| | | <el-table ref="dataTable" v-loading="isLoading" :data="tableData" |
| | | <el-table class="custom-scrollbar" ref="dataTable" v-loading="isLoading" :data="tableData" |
| | | :height="tableHeight" border |
| | | @select="handleSelection" @cell-click="handleCellClick" @row-click="handleRowClick" |
| | | @select-all="handleSelectionAll" @selection-change="handleSelectionChange" |
| | |
| | | .bottom { |
| | | margin-top: 10px; |
| | | } |
| | | |
| | | //.custom-scrollbar::-webkit-scrollbar { |
| | | // width: 10px !important;;/* 设置滚动条的宽度 */ |
| | | //} |
| | | // |
| | | //.custom-scrollbar::-webkit-scrollbar-thumb { |
| | | // background-color: #a11313 !important;; /* 设置滚动条的颜色 */ |
| | | // border-radius: 5px !important;; /* 设置滚动条的边框弧度 */ |
| | | //} |
| | | // |
| | | //.custom-scrollbar::-webkit-scrollbar-track { |
| | | // background-color: #f1f1f1 !important;; /* 设置滚动条的轨道颜色 */ |
| | | //} |
| | | </style> |
| | |
| | | </template> |
| | | <script> |
| | | import FormTemplate from "@/components/FormTemplate/FormTemplate"; |
| | | import { getCodePrice, saveMaxSerialNum } from "@/api/code/maxSerialNum.js" |
| | | import { getCodePrice, saveMaxSerialNum, getMaxSerialNumber } from "@/api/code/maxSerialNum.js" |
| | | export default { |
| | | name: 'maxSerialnumDialog', |
| | | components: { |
| | |
| | | this.confirmLoadding = false |
| | | } |
| | | }) |
| | | // let object={} |
| | | // object['secDTOList'] = arrCode; |
| | | // object['codeRuleOid'] = this.ruleOid; |
| | | // getMaxSerialNumber(object.codeRuleOid,object.secDTOList).then(res=>{ |
| | | // console.log(res) |
| | | // }) |
| | | |
| | | }, |
| | | // 参照组件数据变更 |
| | |
| | | <el-dialog :visible.sync="dialogTableVisible" append-to-body class="avue-dialog avue-dialog--top" title="主数据配置" |
| | | top='-40px'> |
| | | <el-table |
| | | ref="TableBox" |
| | | :data="Crud.data" |
| | | border |
| | | style="width: 100%" |
| | | ref="TableBox" |
| | | @selection-change="selectionChange" |
| | | @row-click="TableRoute"> |
| | | <el-table-column |
| | |
| | | this.$message.success('保存成功!') |
| | | //清除已有数组中push数据 |
| | | this.newData = []; |
| | | this.option.data=[] |
| | | this.option.data = [] |
| | | this.MasterGetList() |
| | | this.dialogTableVisible = false; |
| | | //字体和边框重新加载 |
| | |
| | | }, |
| | | MoreHandler() { |
| | | this.dialogTableVisible = true; |
| | | let checkedrow=[] |
| | | this.newData.forEach(item=>{ |
| | | this.option.data.forEach(v=>{ |
| | | if(item.code === v.code){ |
| | | let checkedrow = [] |
| | | this.newData.forEach(item => { |
| | | this.option.data.forEach(v => { |
| | | if (item.code === v.code) { |
| | | checkedrow.push(item) |
| | | } |
| | | }) |
| | | }) |
| | | console.log(checkedrow) |
| | | this.$nextTick(()=>{ |
| | | // console.log(checkedrow) |
| | | this.$nextTick(() => { |
| | | checkedrow.forEach(row => { |
| | | this.$refs.TableBox.toggleRowSelection(row, true) // 回显 |
| | | }) |
| | |
| | | this.Crud.data = this.newData; |
| | | if (item.isDefault === 1) { |
| | | const colors = ['rgb(49, 180, 141)', 'rgb(56, 161, 242)', 'rgb(117, 56, 199)', 'rgb(242, 104, 31)', |
| | | 'rgb(19, 150, 111)','rgb(26, 131, 212)', 'rgb(87, 26, 169)', 'rgb(212, 83, 1)']; |
| | | 'rgb(19, 150, 111)', 'rgb(26, 131, 212)', 'rgb(87, 26, 169)', 'rgb(212, 83, 1)']; |
| | | const color = colors[index % colors.length]; |
| | | this.option.data.push({ |
| | | click: (item) => { |