| | |
| | | <!-- 基础码段新增相关对话框 --> |
| | | <el-dialog :title="basicSecDialogTitle" |
| | | :visible.sync="addBasicCodeSettingBox" |
| | | width="60vw" |
| | | width="900px" |
| | | append-to-body |
| | | class="avue-dialog avue-dialog--top" |
| | | style="height: 100vh;" top="-3%" |
| | |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="是否流水依赖:" :label-width="leftFormLabelWidth"> |
| | | <el-switch v-model="form.serialDependFlag" :disabled="basicSecOnlyRead"></el-switch> |
| | | <el-switch v-model="form.serialDependFlag" :disabled="basicSecOnlyRead" style="margin-right: 20px"></el-switch> |
| | | <el-input-number v-show="form.serialDependFlag" v-model="form.serialDependOrder" controls-position="right" :readonly="basicSecOnlyRead"></el-input-number> |
| | | </el-form-item> |
| | | |
| | |
| | | }, |
| | | /** 发布编码规则 */ |
| | | async enableOrDeactivatse(oid,update){ |
| | | /*if(update==="release"){ |
| | | if(update==="release"){ |
| | | // 避免用户重复点击按钮 |
| | | this.releadDisabled = true; |
| | | await checkLikeCodeRule(oid).then(res => { |
| | | console.log(res) |
| | | //console.log(res) |
| | | if(res.data.success){ |
| | | this.updateStatus(oid,update); |
| | | }else{ |
| | |
| | | confirmButtonText: '继续发布', |
| | | cancelButtonText: '取消' |
| | | }).then(() => { |
| | | //this.updateStatus(); |
| | | this.updateStatus(oid,update); |
| | | }) |
| | | .catch(action => { |
| | | this.$message({ |
| | |
| | | } |
| | | }) |
| | | this.releadDisabled = false; |
| | | }else {*/ |
| | | }else { |
| | | this.updateStatus(oid,update); |
| | | //} |
| | | } |
| | | }, |
| | | /** 打开编码规则克隆对话框*/ |
| | | openCodeRuleDialog() { |