| | |
| | | <!-- è¡¨æ ¼å
æä½æé® --> |
| | | <template slot="menu" slot-scope="scope"> |
| | | <el-button v-if="permissionList.editBtn && (scope.row.lcStatus == 'Editing' ? true : false)" |
| | | icon="el-icon-edit" |
| | | plain |
| | | size="small" |
| | | type="text" |
| | | @click="openEdit(scope.row)" |
| | | >ç¼ è¾ |
| | | icon="el-icon-edit" |
| | | plain |
| | | size="small" |
| | | type="text" |
| | | @click="openEdit(scope.row)" |
| | | >ç¼ è¾ |
| | | </el-button> |
| | | <el-button v-if="permissionList.releaseBtn && (scope.row.lcStatus == 'Editing' ? true : false)" |
| | | :loading="releadDisabled" |
| | | icon="el-icon-position" |
| | | plain |
| | | size="small" |
| | | type="text" |
| | | @click="enableOrDeactivatse(scope.row.oid, 'release')" |
| | | >å å¸ |
| | | :loading="releadDisabled" |
| | | icon="el-icon-position" |
| | | plain |
| | | size="small" |
| | | type="text" |
| | | @click="enableOrDeactivatse(scope.row.oid, 'release')" |
| | | >å å¸ |
| | | </el-button> |
| | | <el-button v-if="permissionList.deactivateBtn && (scope.row.lcStatus == 'Released' ? true : false)" |
| | | icon="el-icon-video-pause" |
| | | plain |
| | | size="small" |
| | | type="text" |
| | | @click="enableOrDeactivatse(scope.row.oid, 'disable')" |
| | | >å ç¨ |
| | | icon="el-icon-video-pause" |
| | | plain |
| | | size="small" |
| | | type="text" |
| | | @click="enableOrDeactivatse(scope.row.oid, 'disable')" |
| | | >å ç¨ |
| | | </el-button> |
| | | <el-button v-if="permissionList.enableBtn && (scope.row.lcStatus == 'Disabled' ? true : false)" |
| | | icon="el-icon-video-play" |
| | | plain |
| | | size="small" |
| | | type="text" |
| | | @click="enableOrDeactivatse(scope.row.oid, 'enable')" |
| | | >å¯ ç¨ |
| | | icon="el-icon-video-play" |
| | | plain |
| | | size="small" |
| | | type="text" |
| | | @click="enableOrDeactivatse(scope.row.oid, 'enable')" |
| | | >å¯ ç¨ |
| | | </el-button> |
| | | </template> |
| | | <!-- è¡¨æ ¼ä¸æ¹æé®åºå --> |
| | | <template slot="menuLeft" slot-scope="scope"> |
| | | <el-button v-if="permissionList.rulDelBtn" |
| | | icon="el-icon-delete" |
| | | plain |
| | | size="small" |
| | | type="danger" |
| | | @click="handleDelete" |
| | | icon="el-icon-delete" |
| | | plain |
| | | size="small" |
| | | type="danger" |
| | | @click="handleDelete" |
| | | > |
| | | å é¤ |
| | | </el-button> |
| | | <el-button v-if="permissionList.advancedQueryBtn" |
| | | icon="el-icon-search" |
| | | plain |
| | | size="small" |
| | | type="primary" |
| | | @click="openAdvancedQuery('codeRule')"> |
| | | icon="el-icon-search" |
| | | plain |
| | | size="small" |
| | | type="primary" |
| | | @click="openAdvancedQuery('codeRule')"> |
| | | é«çº§æ¥è¯¢ |
| | | </el-button> |
| | | <el-button v-if="permissionList.cloneBtn" |
| | | icon="icon-kelong" |
| | | plain |
| | | size="small" |
| | | @click="openCodeRuleDialog" |
| | | icon="icon-kelong" |
| | | plain |
| | | size="small" |
| | | @click="openCodeRuleDialog" |
| | | > |
| | | å
é |
| | | </el-button> |
| | | <el-button v-if="permissionList.otherCloneBtn" |
| | | icon="icon-lianjiekelong" |
| | | plain |
| | | size="small" |
| | | style="font-size: 12px" |
| | | @click="openOtherCodeRuleDialog" |
| | | icon="icon-lianjiekelong" |
| | | plain |
| | | size="small" |
| | | style="font-size: 12px" |
| | | @click="openOtherCodeRuleDialog" |
| | | > |
| | | ä»å
¶ä»è§åä¸å
éç æ®µ |
| | | </el-button> |
| | | <el-button v-if="permissionList.usescopeBtn" |
| | | icon="el-icon-s-help" |
| | | plain |
| | | size="small" |
| | | @click="handleRange" |
| | | icon="el-icon-s-help" |
| | | plain |
| | | size="small" |
| | | @click="handleRange" |
| | | > |
| | | 使ç¨èå´ |
| | | </el-button> |
| | | <el-button v-if="permissionList.clearBtn" |
| | | icon="icon-qingkong" |
| | | plain |
| | | size="small" |
| | | @click="clearAllCodeSec" |
| | | icon="icon-qingkong" |
| | | plain |
| | | size="small" |
| | | @click="clearAllCodeSec" |
| | | > |
| | | æ¸
空ç å¼ |
| | | </el-button> |
| | | <el-button v-if="permissionList.escapeOwnerBtn" |
| | | icon="el-icon-guide" |
| | | plain |
| | | size="small" |
| | | @click="escapeOwner" |
| | | <el-button v-if="permissionList.escapeOwnerBtn" |
| | | icon="el-icon-guide" |
| | | plain |
| | | size="small" |
| | | @click="escapeOwner" |
| | | > |
| | | 转移ææè
|
| | | </el-button> |
| | | <el-button v-if="permissionList.maxSerialnumBtn" |
| | | icon="el-icon-data-analysis" |
| | | plain |
| | | size="small" |
| | | @click="maxSerialNum" |
| | | <el-button v-if="permissionList.maxSerialnumBtn" |
| | | icon="el-icon-data-analysis" |
| | | plain |
| | | size="small" |
| | | @click="maxSerialNum" |
| | | > |
| | | æå¤§æµæ°´å· |
| | | </el-button> |
| | |
| | | |
| | | <!-- ç¼ç è§å,å
éå¯¹è¯æ¡ --> |
| | | <clone-rule-dialog |
| | | :visible.sync="cloneSettingBox" |
| | | :ruleData="selectionList[0]" |
| | | :visible.sync="cloneSettingBox" |
| | | @refreshRuleTable="onLoad"> |
| | | </clone-rule-dialog> |
| | | |
| | | <!-- ç¼ç è§å,ä»å
¶ä»è§åå
éå¯¹è¯æ¡ --> |
| | | <clone-other-basic-sec-dialog |
| | | :visible.sync="cloneOtherCodeRuleSettingBox" |
| | | :quiltCloneCodeRule="selectionList[0]" |
| | | :visible.sync="cloneOtherCodeRuleSettingBox" |
| | | @refreshRuleTable="onLoad"> |
| | | </clone-other-basic-sec-dialog> |
| | | |
| | |
| | | <el-dialog |
| | | :visible.sync="escapeOwnerVisible" |
| | | append-to-body |
| | | class="avue-dialog avue-dialog--top" |
| | | title="转移ææè
" |
| | | width="30%" |
| | | class= "avue-dialog avue-dialog--top" |
| | | > |
| | | <el-select v-model="ruleOwner" class="selects" placeholder="è¯·éæ©"> |
| | | <el-option |
| | |
| | | <!-- åºç¡ç æ®µè¡¨æ ¼å
æä½æé® --> |
| | | <template slot="menu" slot-scope="scope"> |
| | | <el-button v-if="basicPermissionList.viewBtn && currentRuleLcStatus != 'Editing'" |
| | | icon="el-icon-view" |
| | | plain |
| | | size="small" |
| | | type="text" |
| | | @click="openBasicDialog('view', scope.row)" |
| | | >æ¥ç |
| | | icon="el-icon-view" |
| | | plain |
| | | size="small" |
| | | type="text" |
| | | @click="openBasicDialog('view', scope.row)" |
| | | >æ¥ç |
| | | </el-button> |
| | | <el-button v-if="basicPermissionList.editBtn && currentRuleLcStatus === 'Editing'" |
| | | icon="el-icon-edit" |
| | | plain |
| | | size="small" |
| | | type="text" |
| | | @click="openBasicDialog('edit', scope.row)" |
| | | >ç¼è¾ |
| | | icon="el-icon-edit" |
| | | plain |
| | | size="small" |
| | | type="text" |
| | | @click="openBasicDialog('edit', scope.row)" |
| | | >ç¼è¾ |
| | | </el-button> |
| | | <el-button v-if="basicPermissionList.basicMgrBtn && (scope.row.secType === 'codeclassifysec' || scope.row.secType == 'codefixedsec')" |
| | | <el-button |
| | | v-if="basicPermissionList.basicMgrBtn && (scope.row.secType === 'codeclassifysec' || scope.row.secType == 'codefixedsec')" |
| | | icon="el-icon-setting" |
| | | plain |
| | | size="small" |
| | | type="text" |
| | | @click="openBasicSecCodeValueMgr(scope.row)" |
| | | >ç å¼ç®¡ç |
| | | >ç å¼ç®¡ç |
| | | </el-button> |
| | | <el-button v-if="basicPermissionList.basicMoveupBtn && scope.row.orderNum > 1" |
| | | icon="el-icon-arrow-up" |
| | | plain |
| | | size="small" |
| | | type="text" |
| | | @click="upOrderNum(scope.row)" |
| | | >ä¸ç§» |
| | | icon="el-icon-arrow-up" |
| | | plain |
| | | size="small" |
| | | type="text" |
| | | @click="upOrderNum(scope.row)" |
| | | >ä¸ç§» |
| | | </el-button> |
| | | <el-button v-if="basicPermissionList.basicDownBtn" |
| | | icon="el-icon-arrow-down" |
| | | plain |
| | | size="small" |
| | | type="text" |
| | | @click="downOrderNum(scope.row)" |
| | | >ä¸ç§» |
| | | icon="el-icon-arrow-down" |
| | | plain |
| | | size="small" |
| | | type="text" |
| | | @click="downOrderNum(scope.row)" |
| | | >ä¸ç§» |
| | | </el-button> |
| | | </template> |
| | | |
| | | <!-- åºç¡ç æ®µè¡¨æ ¼å·¦ä¸æ¹æé®åºå --> |
| | | <template slot="menuLeft" slot-scope="scope"> |
| | | <el-button v-if="basicPermissionList.addBtn" |
| | | :disabled="selectionList.length <= 0" |
| | | icon="el-icon-plus" |
| | | size="small" |
| | | type="primary" |
| | | @click="openAddBasicCodeSec" |
| | | :disabled="selectionList.length <= 0" |
| | | icon="el-icon-plus" |
| | | size="small" |
| | | type="primary" |
| | | @click="openAddBasicCodeSec" |
| | | > |
| | | æ° å¢ |
| | | </el-button> |
| | | <el-button v-if="basicPermissionList.basicDelBtn" |
| | | :disabled="selectionList.length <= 0" |
| | | icon="el-icon-delete" |
| | | plain |
| | | size="small" |
| | | type="danger" |
| | | @click="deleteBasicCode(scope.row)" |
| | | :disabled="selectionList.length <= 0" |
| | | icon="el-icon-delete" |
| | | plain |
| | | size="small" |
| | | type="danger" |
| | | @click="deleteBasicCode(scope.row)" |
| | | > |
| | | å é¤ |
| | | </el-button> |
| | | <el-button v-if="basicPermissionList.basicAdvancedQueryBtn" |
| | | :disabled="selectionList.length <= 0" |
| | | icon="el-icon-search" |
| | | plain |
| | | size="small" |
| | | type="primary" |
| | | @click="openAdvancedQuery('codeBasicSec')" |
| | | <el-button v-if="basicPermissionList.basicAdvancedQueryBtn" |
| | | :disabled="selectionList.length <= 0" |
| | | icon="el-icon-search" |
| | | plain |
| | | size="small" |
| | | type="primary" |
| | | @click="openAdvancedQuery('codeBasicSec')" |
| | | > |
| | | é«çº§æ¥è¯¢ |
| | | </el-button> |
| | |
| | | size="mini" |
| | | type="primary" |
| | | @click="codeClassifyValueOpetion('up')" |
| | | >ä¸ç§» |
| | | >ä¸ç§» |
| | | </el-button> |
| | | <el-button |
| | | class="button" |
| | |
| | | size="mini" |
| | | type="primary" |
| | | @click="codeClassifyValueOpetion('down')" |
| | | >ä¸ç§» |
| | | >ä¸ç§» |
| | | </el-button> |
| | | </div> |
| | | </basic-container> |
| | |
| | | size="mini" |
| | | type="primary" |
| | | @click="addCodeSecValue('codeclassifyvaluesec')" |
| | | >æ·»å |
| | | >æ·»å |
| | | </el-button> |
| | | <el-button |
| | | :disabled="selectedFixedOrCodeclassifyValue == ''" |
| | |
| | | size="mini" |
| | | type="success" |
| | | @click="editCodeSecValue('codeclassifyvaluesec')" |
| | | >ä¿®æ¹ |
| | | >ä¿®æ¹ |
| | | </el-button> |
| | | <el-button |
| | | :disabled="selectedFixedOrCodeclassifyValue == ''" |
| | |
| | | size="mini" |
| | | type="danger" |
| | | @click="delCodeSecValue('codeclassifyvaluesec')" |
| | | >å é¤ |
| | | >å é¤ |
| | | </el-button> |
| | | <el-button |
| | | class="button" |
| | |
| | | size="mini" |
| | | type="warning" |
| | | @click="clearFixedOrClassifyForm('codeclassifyvaluesec')" |
| | | >åæ¶ |
| | | >åæ¶ |
| | | </el-button> |
| | | </div> |
| | | </basic-container> |
| | |
| | | size="mini" |
| | | type="text" |
| | | @click="codeFixedValueOpetion('up', scope.row)" |
| | | >ä¸ç§» |
| | | >ä¸ç§» |
| | | </el-button> |
| | | <el-button |
| | | icon="el-icon-arrow-down" |
| | | size="mini" |
| | | type="text" |
| | | @click="codeFixedValueOpetion('down', scope.row)" |
| | | >ä¸ç§» |
| | | >ä¸ç§» |
| | | </el-button> |
| | | <el-button |
| | | icon="el-icon-minus" |
| | | size="mini" |
| | | type="text" |
| | | @click="codeFixedValueOpetion('remove', scope.row)" |
| | | >ç§»é¤ |
| | | >ç§»é¤ |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | size="mini" |
| | | type="primary" |
| | | @click="saveCodeFixedOrClassifyValueOption('fixedValue')" |
| | | >ä¿å |
| | | >ä¿å |
| | | </el-button> |
| | | </div> |
| | | </basic-container> |
| | |
| | | size="mini" |
| | | type="primary" |
| | | @click="addCodeSecValue('codefixedsec')" |
| | | >æ·»å |
| | | >æ·»å |
| | | </el-button> |
| | | <el-button |
| | | :disabled="selectedFixedOrCodeclassifyValue == ''" |
| | |
| | | size="mini" |
| | | type="success" |
| | | @click="editCodeSecValue('codefixedsec')" |
| | | >ä¿®æ¹ |
| | | >ä¿®æ¹ |
| | | </el-button> |
| | | <el-button |
| | | :disabled="selectedFixedOrCodeclassifyValue == ''" |
| | |
| | | size="mini" |
| | | type="danger" |
| | | @click="delCodeSecValue('codefixedsec')" |
| | | >å é¤ |
| | | >å é¤ |
| | | </el-button> |
| | | <el-button |
| | | class="button" |
| | |
| | | size="mini" |
| | | type="warning" |
| | | @click="clearFixedOrClassifyForm('codefixedsec')" |
| | | >åæ¶ |
| | | >åæ¶ |
| | | </el-button> |
| | | </div> |
| | | </basic-container> |
| | |
| | | :label-width="rightFormLabelWidth" |
| | | label="èªå®ä¹çæµæ°´ç®æ³:" |
| | | > |
| | | <el-input |
| | | v-model="form.customCodeSerialClass" |
| | | :readonly="basicSecOnlyRead" |
| | | ></el-input> |
| | | <template> |
| | | <vciWebRefer |
| | | ref="refer" |
| | | :referConfig="this.referConfig || {}" |
| | | :display="true" |
| | | :value="form.customCodeSerialClass" |
| | | :text="form.customCodeSerialClass" |
| | | @setReferValue="setReferValue" |
| | | ></vciWebRefer> |
| | | <!-- <el-input--> |
| | | <!-- v-model="form.customCodeSerialClass"--> |
| | | <!-- :readonly="basicSecOnlyRead"--> |
| | | <!-- @focus="streamFocusHandler"--> |
| | | <!-- ></el-input>--> |
| | | </template> |
| | | |
| | | |
| | | </el-form-item> |
| | | </div> |
| | | <!-- å±çº§ç 段 --> |
| | |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button |
| | | :disabled="!showbtn" |
| | | type="primary" |
| | | :loading="isLoadingSecCodeAddBtn" |
| | | @click="saveOrEditBasicCode">ä¿ å</el-button> |
| | | type="primary" |
| | | @click="saveOrEditBasicCode">ä¿ å |
| | | </el-button> |
| | | <el-button @click="addBasicCodeSettingBox = false">å æ¶</el-button> |
| | | </div> |
| | | |
| | |
| | | </avue-crud> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="saveSelectedParentClassify" |
| | | >ä¿ å</el-button |
| | | >ä¿ å |
| | | </el-button |
| | | > |
| | | <el-button |
| | | @click="parentClsfyParams.isShowParentClassifySettingBox = false" |
| | | >å æ¶</el-button |
| | | >å æ¶ |
| | | </el-button |
| | | > |
| | | </div> |
| | | </el-dialog> |
| | |
| | | > |
| | | </refer-config-dialog> |
| | | </el-dialog> |
| | | |
| | | <!-- èªå®ä¹æµæ°´åç
§ç»ä»¶--> |
| | | |
| | | |
| | | </basic-container> |
| | | </template> |
| | | |
| | |
| | | addSave, |
| | | refDataGridClassifySec, |
| | | } from "@/api/code/codebasic"; |
| | | import { listClassifyLinkAttr } from "@/api/code/codeclassify"; |
| | | import {listClassifyLinkAttr} from "@/api/code/codeclassify"; |
| | | import { |
| | | gridCodeFixedValue, |
| | | addSaveCodeFixedValue, |
| | |
| | | deleteCodeClassifyValue, |
| | | saveCodeClassifyValueOrder, |
| | | } from "@/api/code/codeClassifyValue"; |
| | | import { getDictionary } from "@/api/omd/enum"; |
| | | import { getDictionaryBiz } from "@/api/system/dictbiz"; |
| | | import {getDictionary} from "@/api/omd/enum"; |
| | | import {getDictionaryBiz} from "@/api/system/dictbiz"; |
| | | import optionBasic from "@/const/code/codebasic"; |
| | | import optionRule from "@/const/code/mdmrule"; |
| | | import attrOption from "@/const/code/selectAttrOptionDialog"; |
| | |
| | | import classisyValueTreeOption from "@/const/code/classisyValueTreeDialog"; |
| | | import parentClassifyParentOption from "@/const/code/parentClassifyParentOptionDialog"; |
| | | import fixedValueOption from "@/const/code/fixedValueMgrDialog"; |
| | | import { mapGetters } from "vuex"; |
| | | import { getByRoleUserList } from "@/api/system/user"; |
| | | import {mapGetters} from "vuex"; |
| | | import {getByRoleUserList} from "@/api/system/user"; |
| | | import func from "@/util/func"; |
| | | import secTypeEnum from '@/enumpack/CodeSecTypeEnum'; |
| | | import vciWebRefer from "../../components/refer/vciWebRefer"; |
| | | |
| | | export default { |
| | | components: { vciWebRefer }, |
| | | data() { |
| | | return { |
| | | crudOption:{...optionRule}, |
| | | referConfig:{ |
| | | title: 'èªå®ä¹æµæ°´åç
§', |
| | | showField: 'customCodeSerialClass', |
| | | field: 'customCodeSerialClass', |
| | | fieldMap: {}, |
| | | placeholder:'è¯·éæ©èªå®ä¹æµæ°´', |
| | | options: { |
| | | // 设置é»è®¤ç屿§ |
| | | url: 'api/ubcs-code/codeSerialAlgorithmController/gridCodeSerialAlgorithm', |
| | | valueField:'classFullName', |
| | | textField:'classFullName', |
| | | isMuti: false, |
| | | type: "grid", |
| | | method: 'get', |
| | | tableConfig: { |
| | | page: { |
| | | limit: 15, |
| | | page: 1 |
| | | }, |
| | | cols: [ |
| | | {title: 'ç®æ³ç¼å·', field: 'id', width: 200}, |
| | | {title: 'ç®æ³åç§°', field: 'name', width: 150}, |
| | | {title: 'ç±»å
¨è·¯å¾', field: 'classFullName', width: 300}, |
| | | {title: 'æè¿°', field: 'description'} |
| | | ], |
| | | queryColumns: [ |
| | | // {field: 'id', title: 'ç®æ³ç¼å·'}, |
| | | // {field: 'name', title: 'ç®æ³åç§°'} |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | crudOption: {...optionRule}, |
| | | ruleForm: {}, |
| | | query: {}, |
| | | loading: true, |
| | |
| | | editBtn: this.vaildData(this.permission.code_rule.code_rule_edit, false), |
| | | deactivateBtn: this.vaildData(this.permission.code_rule.code_rule_deactivate, false), |
| | | enableBtn: this.vaildData(this.permission.code_rule.code_rule_enable, false), |
| | | releaseBtn: this.vaildData(this.permission.code_rule. code_rule_release, false), |
| | | releaseBtn: this.vaildData(this.permission.code_rule.code_rule_release, false), |
| | | advancedQueryBtn: this.vaildData(this.permission.code_rule.code_rule_advanced_query, false), |
| | | cloneBtn: this.vaildData(this.permission.code_rule.code_rule_clone, false), |
| | | otherCloneBtn: this.vaildData(this.permission.code_rule.code_rule_other_clone, false), |
| | |
| | | }; |
| | | }, |
| | | basicPermissionList() { |
| | | return{ |
| | | return { |
| | | // åºç¡ç 段ç¸å
³æé® |
| | | addBtn: this.vaildData(this.permission.code_rule.code_basic_add, false), |
| | | editBtn: this.vaildData(this.permission.code_rule.code_basic_edit, false), |
| | | viewBtn: this.vaildData(this.permission.code_rule. code_basic_view, false), |
| | | viewBtn: this.vaildData(this.permission.code_rule.code_basic_view, false), |
| | | basicDelBtn: this.vaildData(this.permission.code_rule.code_basic_delete, false), |
| | | basicAdvancedQueryBtn: this.vaildData(this.permission.code_rule.code_basic_advanced_query, false), |
| | | basicMgrBtn: this.vaildData(this.permission.code_rule.code_basic_mgr, false), |
| | |
| | | localStorage.removeItem('codeGetValueType'); |
| | | }, |
| | | methods: { |
| | | |
| | | //èªå®ä¹æµæ°´å¤±ç¦ |
| | | setReferValue(data){ |
| | | console.log(data) |
| | | }, |
| | | /** 转移è§åææè
å¯¹è¯æ¡ */ |
| | | escapeOwner() { |
| | | if (this.selectionList.length === 0) { |
| | |
| | | /** å è½½åºå®ç 段ç å¼è¡¨æ°æ®*/ |
| | | loadFixedValueTableData(row) { |
| | | this.fixedValueOptionLoading = true; |
| | | gridCodeFixedValue(1, -1, { codeFixedSecOid: row.oid }).then((res) => { |
| | | gridCodeFixedValue(1, -1, {codeFixedSecOid: row.oid}).then((res) => { |
| | | this.fixedValueData = res.data.data.records; |
| | | this.fixedValueOptionLoading = false; |
| | | }); |
| | |
| | | description: this.codeFixdForm.description, |
| | | id: this.codeFixdForm.id, |
| | | codeFixedSecOid: |
| | | this.selectedFixedOrCodeclassifyValue.codefixedsecoid, |
| | | this.selectedFixedOrCodeclassifyValue.codefixedsecoid, |
| | | }; |
| | | editCodeFixedValue(editData).then( |
| | | () => { |
| | |
| | | }, |
| | | /** ä¿®æ¹è§åç¶æ:å¯ç¨ãåç¨ãåå¸ */ |
| | | updateStatus(oid, update) { |
| | | updateStatus({ oid: oid, ts: new Date().getTime, update: update }).then( |
| | | updateStatus({oid: oid, ts: new Date().getTime, update: update}).then( |
| | | () => { |
| | | this.releadDisabled = false; |
| | | this.onLoad(this.page); |
| | |
| | | //console.log(res) |
| | | if (res.data.data.success) { |
| | | this.updateStatus(oid, update); |
| | | }else { |
| | | } else { |
| | | this.$confirm(res.data.data.msg, "æç¤º", { |
| | | distinguishCancelAndClose: true, |
| | | confirmButtonText: "ç»§ç»åå¸", |
| | |
| | | }) |
| | | .then(() => { |
| | | let ts = new Date(currentData.ts).getTime(); |
| | | return clearAllCode({ oid: currentData.oid, ts: ts }); |
| | | return clearAllCode({oid: currentData.oid, ts: ts}); |
| | | }) |
| | | .then(() => { |
| | | this.this.onLoad(this.page); |
| | |
| | | // åªæ¯ææ¯æ¬¡åæ¡è®°å½å é¤ |
| | | let oid = this.selectionList[0].oid; |
| | | let ts = new Date(this.selectionList[0].ts).getTime(); |
| | | return remove({ oid: oid, ts: ts }); |
| | | return remove({oid: oid, ts: ts}); |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page); |
| | |
| | | gridCodeRule( |
| | | page.currentPage, |
| | | page.pageSize, |
| | | Object.assign({},params,this.query), |
| | | Object.assign({}, params, this.query), |
| | | ).then((res) => { |
| | | //console.log(res.data); |
| | | const data = res.data.data; |
| | |
| | | let oldBasicSec = this.selectionBasicList.at(-1); |
| | | let secType = this.form.secType; |
| | | Vue.set(this.form, 'isClearValue', false); |
| | | if((oldBasicSec.secType == "codefixedsec" || oldBasicSec.secType === "codeclassifysec") && oldBasicSec.secType != secType){ |
| | | await this.$confirm("ç æ®µç±»åç±ã"+oldBasicSec.secTypeText+"ãï¼ä¿®æ¹ä¸º"+"ã"+secTypeEnum.getTextByValue(secType)+"ãï¼è¯·é®æ¯å¦éè¦æ¸
空å
³èçç å¼ï¼", "æç¤º", { |
| | | if ((oldBasicSec.secType == "codefixedsec" || oldBasicSec.secType === "codeclassifysec") && oldBasicSec.secType != secType) { |
| | | await this.$confirm("ç æ®µç±»åç±ã" + oldBasicSec.secTypeText + "ãï¼ä¿®æ¹ä¸º" + "ã" + secTypeEnum.getTextByValue(secType) + "ãï¼è¯·é®æ¯å¦éè¦æ¸
空å
³èçç å¼ï¼", "æç¤º", { |
| | | distinguishCancelAndClose: true, |
| | | closeOnClickModal: false, |
| | | confirmButtonText: "æ¸
空ç å¼", |
| | |
| | | }) |
| | | .then(() => { |
| | | let ts = new Date(this.selectionBasicList[0].ts).getTime(); |
| | | return deleteData({ oid: oid, ts: ts }); |
| | | return deleteData({oid: oid, ts: ts}); |
| | | }) |
| | | .then(() => { |
| | | this.loadBasic({ |
| | |
| | | //åå¨å½åå
³èçç¼ç è§åç¸å
³ä¿¡æ¯ |
| | | this.currentCodeRuleOid = row.oid; |
| | | this.currentRuleLcStatus = row.lcStatus; |
| | | this.sendGridCodeBasicSec({ pkCodeRule: row.oid }, false); |
| | | this.sendGridCodeBasicSec({pkCodeRule: row.oid}, false); |
| | | } |
| | | }, |
| | | /** åéå è½½åºç¡ç 段ç请æ±*/ |
| | |
| | | }, |
| | | basicSearchReset() { |
| | | this.sendGridCodeBasicSec( |
| | | { pkCodeRule: this.selectionList[this.selectionList.length - 1].oid }, |
| | | {pkCodeRule: this.selectionList[this.selectionList.length - 1].oid}, |
| | | false |
| | | ); |
| | | }, |
| | |
| | | return; |
| | | } |
| | | downOrderNum(row.oid).then(() => { |
| | | this.loadBasic({ oid: codeRuleOid }); |
| | | this.loadBasic({oid: codeRuleOid}); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "æä½æå!", |
| | |
| | | this.loadCodeSecType(); |
| | | } |
| | | this.form = { |
| | | oid: row !=null ? row.oid:this.form.oid, |
| | | id: row != null ? row.id:this.form.id, //ç¼å·, |
| | | name: row != null ? row.name:this.form.name, //åç§° |
| | | secType: row != null ? row.secType:this.form.secType, //ç æ®µç±»å |
| | | description: row != null ? row.description:this.form.description, //æè¿° |
| | | serialDependFlag: this.isNullJsonBoolean(row,this.form, 'serialDependFlag'), //æ¯å¦æµæ°´ä¾èµ |
| | | serialDependOrder: row !=null ? row.serialDependOrder:this.form.serialDependOrder, //æµæ°´ä¾èµé¡ºåº |
| | | oid: row != null ? row.oid : this.form.oid, |
| | | id: row != null ? row.id : this.form.id, //ç¼å·, |
| | | name: row != null ? row.name : this.form.name, //åç§° |
| | | secType: row != null ? row.secType : this.form.secType, //ç æ®µç±»å |
| | | description: row != null ? row.description : this.form.description, //æè¿° |
| | | serialDependFlag: this.isNullJsonBoolean(row, this.form, 'serialDependFlag'), //æ¯å¦æµæ°´ä¾èµ |
| | | serialDependOrder: row != null ? row.serialDependOrder : this.form.serialDependOrder, //æµæ°´ä¾èµé¡ºåº |
| | | nullableFlag: this.isNullJsonBoolean(row, this.form, 'nullableFlag'), //æ¯å¦ä¸ºç©º |
| | | displayFlag: this.isNullJsonBoolean(row, this.form, 'displayFlag'), |
| | | componentCodeFlag: this.isNullJsonBoolean(row, this.form, 'componentCodeFlag'), //æ¯å¦åä¸ç¼ç |
| | | pkCodeRule: row != null ? row.pkCodeRule:this.form.pkCodeRule, //æå±ç¼ç è§å |
| | | prefixCode: row != null ? row.prefixCode:this.form.prefixCode, //åç¼ |
| | | suffixCode: row!= null ? row.suffixCode:this.form.suffixCode, //åç¼ |
| | | pkCodeRule: row != null ? row.pkCodeRule : this.form.pkCodeRule, //æå±ç¼ç è§å |
| | | prefixCode: row != null ? row.prefixCode : this.form.prefixCode, //åç¼ |
| | | suffixCode: row != null ? row.suffixCode : this.form.suffixCode, //åç¼ |
| | | }; |
| | | if (this.form.secType === "codefixedsec") { |
| | | //åºå®ç 段 |
| | |
| | | row != null && row.serialStart != "" ? row.serialStart : 1, //æµæ°´å·èµ·å§å¼ |
| | | serialStep: row != null && row.serialStep != "" ? row.serialStep : 1, //æµæ°´çæ¥é¿ |
| | | codeFillType: row != null && row.codeFillType != "" |
| | | ? row.codeFillType |
| | | : "code_fill_left", //ç¼ç è¡¥ä½æ¹å¼ |
| | | ? row.codeFillType |
| | | : "code_fill_left", //ç¼ç è¡¥ä½æ¹å¼ |
| | | // codeFillSeparatorSelect: row!=null&&row.codeFillSeparatorSelect != '' ? row.codeFillSeparatorSelect:0, //è¡¥ä½æ¶çå符ï¼éä¸ç䏿æ¡ç䏿 |
| | | codeFillSeparator: |
| | | row != null && row.codeFillSeparator != "" |
| | |
| | | codeFillFlag: |
| | | row != null && row.codeFillFlag != "" |
| | | ? row.codeFillFlag == "true" |
| | | ? true |
| | | : false |
| | | ? true |
| | | : false |
| | | : false, //æµæ°´æ¯å¦è¡¥ç |
| | | customCodeSerialClass: |
| | | row != null && row.customCodeSerialClass != "" |
| | |
| | | matchClassifyValueFlag: |
| | | row != null && row.matchClassifyValueFlag != "" |
| | | ? row.matchClassifyValueFlag == "true" |
| | | ? true |
| | | : false |
| | | ? true |
| | | : false |
| | | : false, //æ¯å¦èªå¨å¹é
å¼ |
| | | parentClassifySecOid: |
| | | row != null && row.parentClassifySecOid != "" |
| | |
| | | } |
| | | }, |
| | | // 夿Boolean弿¯å¦ä¸ºç©ºï¼å¹¶ä¸å¯¹strç±»åå¸å°å¼è¿è¡è½¬æ¢ |
| | | isNullJsonBoolean(row,form,attr) { |
| | | //console.log(row[attr],form[attr]); |
| | | if(row != null){ |
| | | return JSON.parse(row[attr]); |
| | | }else { |
| | | return form[attr]; |
| | | } |
| | | isNullJsonBoolean(row, form, attr) { |
| | | //console.log(row[attr],form[attr]); |
| | | if (row != null) { |
| | | return JSON.parse(row[attr]); |
| | | } else { |
| | | return form[attr]; |
| | | } |
| | | }, |
| | | /** ç¬¬ä¸æ¬¡è¯·æ±çæä¸¾æ°æ®æ¾ç¼å*/ |
| | | getLocalStorageEnum(enumKey) { |
| | | let enumCach = JSON.parse(localStorage.getItem(enumKey)); |
| | | if (enumCach == null) { |
| | | getDictionary({ code: enumKey }).then((res) => { |
| | | getDictionary({code: enumKey}).then((res) => { |
| | | enumCach = res.data.data; |
| | | localStorage.setItem(enumKey, JSON.stringify(res.data.data)); |
| | | }); |
| | |
| | | loadCodeFillSeparator() { |
| | | //let enumCach = JSON.parse(localStorage.getItem("codeFillSeparator")); |
| | | //if (enumCach == null) { |
| | | getDictionaryBiz({code:"codeFillSeparator"}).then((res) => { |
| | | getDictionaryBiz({code: "codeFillSeparator"}).then((res) => { |
| | | this.enumParam.codeFillSeparator = res.data.data; |
| | | //console.log(this.enumParam.codeFillSeparator); |
| | | localStorage.setItem( |
| | |
| | | this.$message.warning("è¯·éæ©ä¸æ¡ç¼ç è§åï¼"); |
| | | return; |
| | | } |
| | | if(this.selectionList.length> 1){ |
| | | if (this.selectionList.length > 1) { |
| | | this.$message.warning("åªè½éæ©ä¸æ¡ç¼ç è§åï¼"); |
| | | return; |
| | | } |
| | |
| | | </script> |
| | | |
| | | <style> |
| | | [class^="icon-"] { |
| | | font-size: 12px !important; |
| | | } |
| | | [class^="icon-"] { |
| | | font-size: 12px !important; |
| | | } |
| | | |
| | | .code-rule-crud > .avue-crud__search, |
| | | .code-basic-crud > .avue-crud__search { |
| | | margin-bottom: -15px; |
| | | } |
| | | .code-rule-crud > .avue-crud__search, |
| | | .code-basic-crud > .avue-crud__search { |
| | | margin-bottom: -15px; |
| | | } |
| | | |
| | | .clone-input-textarea > .el-form-item__content { |
| | | width: 495px; |
| | | } |
| | | .clone-input-textarea > .el-form-item__content { |
| | | width: 495px; |
| | | } |
| | | |
| | | .clone-avue-crud > .el-card > .el-card__body > .avue-crud__menu { |
| | | display: none !important; |
| | | } |
| | | .clone-avue-crud > .el-card > .el-card__body > .avue-crud__menu { |
| | | display: none !important; |
| | | } |
| | | |
| | | .fixed-avue-crud > .el-card > .el-card__body > .avue-crud__menu { |
| | | display: none !important; |
| | | } |
| | | .fixed-avue-crud > .el-card > .el-card__body > .avue-crud__menu { |
| | | display: none !important; |
| | | } |
| | | |
| | | .other-clone-codebasic-crud > .el-card > .el-card__body > .avue-crud__menu { |
| | | display: none !important; |
| | | } |
| | | .other-clone-codebasic-crud > .el-card > .el-card__body > .avue-crud__menu { |
| | | display: none !important; |
| | | } |
| | | |
| | | .other-clone-coderule-crud > .el-card > .el-card__body > .avue-crud__menu { |
| | | display: none !important; |
| | | } |
| | | .other-clone-coderule-crud > .el-card > .el-card__body > .avue-crud__menu { |
| | | display: none !important; |
| | | } |
| | | |
| | | .el-table--small .el-table__cell { |
| | | padding: 3px 0; |
| | | } |
| | | .el-table--small .el-table__cell { |
| | | padding: 3px 0; |
| | | } |
| | | |
| | | .classify_value_box > .el-scrollbar { |
| | | height: 95%; |
| | | } |
| | | .classify_value_box > .el-scrollbar { |
| | | height: 95%; |
| | | } |
| | | |
| | | .basic-container > .el-card > .el-card__body { |
| | | margin: -10px 0; |
| | | } |
| | | .basic-container > .el-card > .el-card__body { |
| | | margin: -10px 0; |
| | | } |
| | | |
| | | .code-basicsec-container { |
| | | padding: 1px 6px; |
| | | } |
| | | .code-basicsec-container { |
| | | padding: 1px 6px; |
| | | } |
| | | |
| | | .horizontal-line { |
| | | /* margin-top: 19px !important; */ |
| | | margin-bottom: -20px !important; |
| | | width: 100%; |
| | | height: 2px; |
| | | } |
| | | .horizontal-line { |
| | | /* margin-top: 19px !important; */ |
| | | margin-bottom: -20px !important; |
| | | width: 100%; |
| | | height: 2px; |
| | | } |
| | | |
| | | .el-card__body > .treeBox { |
| | | height: 56vh; |
| | | } |
| | | .el-card__body > .treeBox { |
| | | height: 56vh; |
| | | } |
| | | |
| | | .el-col-5 > .box { |
| | | height: 56vh; |
| | | } |
| | | .el-col-5 > .box { |
| | | height: 56vh; |
| | | } |
| | | |
| | | .operator_, |
| | | filter, |
| | | .layui-btn { |
| | | width: 60px; |
| | | } |
| | | .operator_, |
| | | filter, |
| | | .layui-btn { |
| | | width: 60px; |
| | | } |
| | | |
| | | .left > .el-form-item > .el-form-item__content > .el-input-number { |
| | | width: 120px; |
| | | } |
| | | .left > .el-form-item > .el-form-item__content > .el-input-number { |
| | | width: 120px; |
| | | } |
| | | |
| | | .left |
| | | > .el-form-item |
| | | > .el-form-item__content |
| | | > .el-input-number |
| | | > .el-input |
| | | > .el-input__inner { |
| | | width: 120px; |
| | | } |
| | | .left |
| | | > .el-form-item |
| | | > .el-form-item__content |
| | | > .el-input-number |
| | | > .el-input |
| | | > .el-input__inner { |
| | | width: 120px; |
| | | } |
| | | |
| | | .el-col > .el-card > .el-card__header { |
| | | background: rgb(213 231 239); |
| | | border-radius: inherit; |
| | | } |
| | | .el-col > .el-card > .el-card__header { |
| | | background: rgb(213 231 239); |
| | | border-radius: inherit; |
| | | } |
| | | |
| | | /** æ°å¢ç 段 */ |
| | | .add-basicsec-dialog > .el-dialog > .el-dialog__body { |
| | | padding: 20px 20px 4px; |
| | | margin-bottom: 30px; |
| | | } |
| | | /** æ°å¢ç 段 */ |
| | | .add-basicsec-dialog > .el-dialog > .el-dialog__body { |
| | | padding: 20px 20px 4px; |
| | | margin-bottom: 30px; |
| | | } |
| | | |
| | | .add-basicsec-total { |
| | | width: 100%; |
| | | height: 500px; |
| | | } |
| | | .add-basicsec-total { |
| | | width: 100%; |
| | | height: 500px; |
| | | } |
| | | |
| | | .add-basicsec-total .el-input__inner, |
| | | .add-basicsec-total .el-textarea__inner { |
| | | width: 220px; |
| | | } |
| | | .add-basicsec-total .el-input__inner, |
| | | .add-basicsec-total .el-textarea__inner { |
| | | width: 220px; |
| | | } |
| | | |
| | | .add-basicsec-total > .add-basicsec-form { |
| | | display: flex; |
| | | flex-direction: row; |
| | | width: 100%; |
| | | .add-basicsec-total > .add-basicsec-form { |
| | | display: flex; |
| | | flex-direction: row; |
| | | width: 100%; |
| | | height: 100%; |
| | | align-items: center; |
| | | justify-content: space-around; |
| | | } |
| | | |
| | | .add-basicsec-form > .el-divider--vertical { |
| | | width: 2px; |
| | | height: 78%; |
| | | position: absolute; |
| | | top: 50%; |
| | | left: 50%; |
| | | transform: translate(-50%, -50%); |
| | | } |
| | | |
| | | .left { |
| | | /* float: left; */ |
| | | width: 45%; |
| | | height: 100%; |
| | | } |
| | | |
| | | .right { |
| | | /* float: right; */ |
| | | margin-right: 2vw; |
| | | height: 100%; |
| | | width: auto; |
| | | } |
| | | |
| | | .add-basicsec-form > .left > .el-form-item, |
| | | .add-basicsec-form > .right > div > .el-form-item { |
| | | margin-bottom: 12px; |
| | | } |
| | | |
| | | /* å¯¹è¯æ¡åºé¨æé®è¾¹æ¡æ ·å¼ */ |
| | | .el-dialog__footer { |
| | | /* width: 100%; */ |
| | | border-top: 1px solid #e9e7e7; |
| | | padding: 5px 10px 10px; |
| | | } |
| | | |
| | | .seloption { |
| | | margin-left: 10px; |
| | | } |
| | | |
| | | /* .code-total > .basic-container__card { |
| | | height: 100%; |
| | | align-items: center; |
| | | justify-content: space-around; |
| | | } |
| | | |
| | | .add-basicsec-form > .el-divider--vertical { |
| | | width: 2px; |
| | | height: 78%; |
| | | position: absolute; |
| | | top: 50%; |
| | | left: 50%; |
| | | transform: translate(-50%, -50%); |
| | | } |
| | | |
| | | .left { |
| | | /* float: left; */ |
| | | width: 45%; |
| | | height: 100%; |
| | | } |
| | | |
| | | .right { |
| | | /* float: right; */ |
| | | margin-right: 2vw; |
| | | height: 100%; |
| | | width: auto; |
| | | } |
| | | |
| | | .add-basicsec-form > .left > .el-form-item, |
| | | .add-basicsec-form > .right > div > .el-form-item{ |
| | | margin-bottom: 12px; |
| | | } |
| | | |
| | | /* å¯¹è¯æ¡åºé¨æé®è¾¹æ¡æ ·å¼ */ |
| | | .el-dialog__footer { |
| | | /* width: 100%; */ |
| | | border-top: 1px solid #e9e7e7; |
| | | padding: 5px 10px 10px; |
| | | } |
| | | |
| | | .seloption { |
| | | margin-left: 10px; |
| | | } |
| | | |
| | | /* .code-total > .basic-container__card { |
| | | height: 100%; |
| | | } */ |
| | | } */ |
| | | |
| | | </style> |