Merge remote-tracking branch 'origin/master'
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/router/axios'; |
| | | |
| | | // ç æ®µ |
| | | export const getCodePrice = (data) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/ubcs-code/codeBasicSecController/getCodeRuleAndBasicSecByRuleOid', |
| | | method: 'get', |
| | | params: data |
| | | }) |
| | | } |
| | | //ä¿åæå¤§æµæ°´å· |
| | | export const saveMaxSerialNum = (data) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/ubcs-code/codeBasicSecController/setMaxSerialNumberForCodeRule', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | |
| | | // é»è®¤ç¦ç¨å
ç´ |
| | | disabledProp: { |
| | | type: Array, |
| | | default: () => ["id","lcstatus"], |
| | | default: () => ["id", "lcstatus"], |
| | | }, |
| | | templateOid: { |
| | | type: String, |
| | |
| | | type: Object, |
| | | default: () => ({}), |
| | | }, |
| | | // ä¸è¡æ¾å 个表å |
| | | trendsSpan: { |
| | | type: Number, |
| | | default: 8, |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | date: "date", |
| | | refer: "refer", |
| | | }, |
| | | // åæ°æ® |
| | | testItems: [ |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "id", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "ä¼ å¼ç¦ç¨åè½", |
| | | tooltips: "", |
| | | type: "combox", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "state", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: true, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "æ¥å£ç¦ç¨åè½", |
| | | tooltips: "", |
| | | type: "combox", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "oldcode", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "el-icon-search", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "ææ¬åç¼æµè¯", |
| | | text: "ååç¼åè½", |
| | | tooltips: "", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "materialname", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: true, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "æ£åæ ¡éªåè½", |
| | | tooltips: "请è¾å
¥æ°å", |
| | | type: "text", |
| | | unique: false, |
| | | verify: /^[0-9]+$/g, |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: [ |
| | | { |
| | | attributes: {}, |
| | | key: "model_type", |
| | | value: "模å", |
| | | }, |
| | | { |
| | | attributes: {}, |
| | | key: "part_type", |
| | | value: "é¶ä»¶", |
| | | }, |
| | | ], |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "dataSelect", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "ç´æ¥è¿å䏿", |
| | | tooltips: "", |
| | | type: "combox", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: "formTemplateTest", |
| | | customClass: null, |
| | | data: [], |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "dictSelect", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "åå
¸è¿å䏿", |
| | | tooltips: "", |
| | | type: "combox", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "firstfl", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "æ°åè¾å
¥æ¡", |
| | | tooltips: "", |
| | | type: "number", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "yyyy-MM-dd HH:mm:ss", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "datetime", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "æ¥ææ¶é´éæ©å¨", |
| | | tooltips: "", |
| | | type: "datetime", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "time", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "æ¶é´éæ©å¨", |
| | | tooltips: "", |
| | | type: "date", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "false", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "xiaoshouwl", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "å¼å
³", |
| | | tooltips: "", |
| | | type: "truefalse", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "ææ¯é»è®¤å¼", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "tuhao", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "é»è®¤å¼åè½", |
| | | tooltips: "æç¤º", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "xinghaoguige", |
| | | hidden: false, |
| | | keyAttr: true, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "屿§å
³é®å¼", |
| | | tooltips: "", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "jiliangdw", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | tip: "ææ¯æç¤ºåè½", |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: "jiliangdwname", |
| | | suffix: "", |
| | | text: "æç¤ºåè½", |
| | | tooltips: "", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "textarea", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "ææ¬å", |
| | | tooltips: "", |
| | | type: "textarea", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "cz", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: true, |
| | | referConfig: {}, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: "depId", |
| | | suffix: "", |
| | | text: "åç
§", |
| | | tooltips: "", |
| | | type: "refer", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | ], |
| | | trendsSpan: 8, |
| | | defaultValue: {}, |
| | | // 表å屿§ |
| | | attributes: [], |
| | |
| | | mounted() { |
| | | this.handleResize(); |
| | | }, |
| | | computed: { |
| | | localTrendsSpan() { |
| | | if (this.trendsSpan) { |
| | | return this.trendsSpan; |
| | | } else { |
| | | let windowWidth = document.body.clientWidth; |
| | | return 24 / Math.floor(windowWidth / 500); |
| | | } |
| | | }, |
| | | }, |
| | | methods: { |
| | | // 渲æè¡¨åæ¨¡æ¿ |
| | | templateRender(formItemList) { |
| | | console.log(formItemList, "formItemList"); |
| | | // æ éåç»æ°æ® |
| | | let column = []; |
| | | let group = []; |
| | |
| | | if ( |
| | | formItem.type === "combox" && |
| | | formItem.comboxKey && |
| | | (!Array.isArray(formItem.dicData) || formItem.dicData.length === 0) &&(!Array.isArray(formItem.data) || formItem.data.length === 0) |
| | | (!Array.isArray(formItem.dicData) || formItem.dicData.length === 0) && |
| | | (!Array.isArray(formItem.data) || formItem.data.length === 0) |
| | | ) { |
| | | dictKeys.push({ dictKey: formItem.comboxKey, field: formItem.field }); |
| | | } |
| | |
| | | if (this.disabledProp.includes(formItem.field)) { |
| | | formItem.readOnly = true; |
| | | } |
| | | if(formItem.field=='lcstatus'){ |
| | | formItem.field=formItem.field+'_text'; |
| | | formItem.readOnly=true; |
| | | if (formItem.field == "lcstatus") { |
| | | formItem.field = formItem.field + "_text"; |
| | | formItem.readOnly = true; |
| | | } |
| | | // è®¾ç½®è¡¨åæ ¡éªçè§åï¼ææ¬ |
| | | let message = "è¯·éæ©"; |
| | |
| | | options: formItem.referConfig, |
| | | } |
| | | : {}, |
| | | span: formItem.span ? formItem.span : formItem.type === "textarea" ? 24 : this.trendsSpan, |
| | | span: formItem.span |
| | | ? formItem.span |
| | | : formItem.type === "textarea" |
| | | ? 24 |
| | | : this.localTrendsSpan, |
| | | rules: [ |
| | | { |
| | | required: formItem.required, |
| | |
| | | } |
| | | }); |
| | | this.slotColumnList = slotColumnList; |
| | | console.log(column, "column"); |
| | | this.$set(this.option, "column", column); |
| | | this.$set(this.option, "group", group); |
| | | this.updateIndex++; |
| | |
| | | }, |
| | | // æ ¹æ®å±å¹å¨æé
置表åå¸å± |
| | | handleResize() { |
| | | let windowWidth = document.body.clientWidth; |
| | | this.trendsSpan = 24 / Math.floor(windowWidth / 500); |
| | | this.updateIndex++; |
| | | // let windowWidth = document.body.clientWidth; |
| | | // this.trendsSpan = 24 / Math.floor(windowWidth / 500); |
| | | // this.updateIndex++; |
| | | }, |
| | | // ååç¼ |
| | | preOrSufFixShow(type, val) { |
| | |
| | | codefixedsec: "combox", |
| | | codeclassifysec: "refer", |
| | | codevariablesec: "text", |
| | | codeattrsec: "text", |
| | | codelevelsec: "text", |
| | | coderefersec: "refer", |
| | | codedatesec: "date" |
| | | }, |
| | | selfColumnConfig: { |
| | | function: { |
| | |
| | | label: "name", |
| | | maxlength: "codeSecLength", |
| | | data: "fixedValueVOList", |
| | | dateFormate: "codeDateFormatStr" |
| | | }, |
| | | directVoluation: { |
| | | search: true, |
| | |
| | | "codeclassifysec", |
| | | "codevariablesec", |
| | | "coderefersec", |
| | | "codeattrsec", |
| | | "codelevelsec", |
| | | "codedatesec" |
| | | ]; |
| | | this.secVOList = (res.data.data.secVOList || []).filter((item) => |
| | | typeList.includes(item.secType) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <el-dialog title="æå¤§æµæ°´å·" width="30%" append-to-body="true" :visible.sync="dialogVisible"> |
| | | <el-form :label-position="right" ref="ruleForm" label-width="80px" :model="formModel" :rules="rules"> |
| | | <el-form-item label="æµæ°´å·" prop="maxSecNum"> |
| | | <el-input v-model="formModel.maxSecNum"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-tabs v-model="activeName" type="border-card" @tab-click="handleClick"> |
| | | <el-tab-pane label="æå¤§æµæ°´å·" name="codeApply"> |
| | | <form-template v-bind="$attrs" type="add" :selfColumnType="selfColumnType" :trendsSpan="24" |
| | | :selfColumnConfig="selfColumnConfig" ref="CodeApply" @getFormData="getCodeApplyFormData" |
| | | @referConfigDataUpdate="referConfigDataUpdate"></form-template> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="cancel">å æ¶</el-button> |
| | | <el-button type="primary" :loading="confirmLoadding" @click="comfirm">ç¡® å®</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </template> |
| | | <script> |
| | | import FormTemplate from "@/components/FormTemplate/FormTemplate"; |
| | | import { getCodePrice, saveMaxSerialNum } from "@/api/code/maxSerialNum.js" |
| | | export default { |
| | | name: 'maxSerialnumDialog', |
| | | components: { |
| | | FormTemplate |
| | | }, |
| | | props: { |
| | | // æ¯å¦æå¼ |
| | | visible: { |
| | | typeof: Boolean, |
| | | default: false |
| | | }, |
| | | // ruleOid |
| | | ruleOid: { |
| | | typeof: String, |
| | | default: "" |
| | | } |
| | | }, |
| | | watch: { |
| | | visible(n) { |
| | | this.dialogVisible = n; |
| | | }, |
| | | dialogVisible(n) { |
| | | this.$emit('update:visible', n) |
| | | if (n) this.apiGetCode() |
| | | }, |
| | | selfColumnConfig: { |
| | | handler(newval) { |
| | | // console.log('selfColumnConfig', newval) |
| | | }, |
| | | immediate: true, |
| | | deep: true |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | dialogVisible: this.visible, |
| | | activeName: 'codePrice', |
| | | confirmLoadding: false, |
| | | codeApplyForm: {}, |
| | | secVOList: [], |
| | | formModel: { |
| | | maxSecNum: '', |
| | | codeRuleOid: '', |
| | | secDTOList: [] |
| | | }, |
| | | rules: { |
| | | maxSecNum: [ |
| | | { required: true, message: '请è¾å
¥æµæ°´å·', trigger: 'blur' } |
| | | ], |
| | | }, |
| | | selfColumnType: { |
| | | codefixedsec: "combox", |
| | | codeclassifysec: "refer", |
| | | codevariablesec: "text", |
| | | codeattrsec: "text", |
| | | codelevelsec: "text", |
| | | coderefersec: "refer", |
| | | codedatesec: "date", |
| | | }, |
| | | selfColumnConfig: { |
| | | function: { |
| | | required: this.isRequired, |
| | | dicData: this.getOptionList, |
| | | type: this.getType, |
| | | referConfig: this.getReferConfig, |
| | | readOnly: this.getDisabled, |
| | | }, |
| | | exchange: { |
| | | text: "name", |
| | | field: "oid", |
| | | prop: "oid", |
| | | showField: "name", |
| | | parentClassifySecOid: "parentClassifySecOid", |
| | | label: "name", |
| | | maxlength: "codeSecLength", |
| | | data: "fixedValueVOList", |
| | | dateFormate: "codeDateFormatStr" |
| | | }, |
| | | directVoluation: { |
| | | search: true, |
| | | props: { |
| | | label: "id", |
| | | value: "id", |
| | | }, |
| | | }, |
| | | }, |
| | | } |
| | | }, |
| | | methods: { |
| | | // è·åç æ®µ |
| | | async apiGetCode() { |
| | | this.activeName = "codeApply"; |
| | | const response = await getCodePrice({ ruleOid: this.ruleOid }) |
| | | const res = response.data |
| | | if (res.success && res.code === 200) { |
| | | const typeList = [ |
| | | "codefixedsec", |
| | | "codeclassifysec", |
| | | "codevariablesec", |
| | | "coderefersec", |
| | | "codeattrsec", |
| | | "codelevelsec", |
| | | "codedatesec" |
| | | ]; |
| | | this.secVOList = (res.data.secVOList || []).filter((item) => |
| | | typeList.includes(item.secType) |
| | | ); |
| | | if (this.secVOList.length > 0) { |
| | | // this.showCodeApply = true; |
| | | |
| | | this.$nextTick(() => { |
| | | this.$refs.CodeApply.templateRender(this.secVOList); |
| | | }); |
| | | } else { |
| | | // this.showCodeApply = false; |
| | | } |
| | | } |
| | | }, |
| | | handleClick(tab, event) { |
| | | // console.log(event) |
| | | }, |
| | | getCodeApplyFormData(codeApplyForm) { |
| | | this.codeApplyForm = codeApplyForm; |
| | | }, |
| | | // åæ¶ |
| | | cancel() { |
| | | this.dialogVisible = false |
| | | this.formModel['secDTOList'] = [] |
| | | this.formModel['codeRuleOid'] = '' |
| | | this.formModel['maxSecNum'] = '' |
| | | this.$refs.ruleForm.clearValidate('maxSecNum') |
| | | |
| | | }, |
| | | // 确认 |
| | | async comfirm() { |
| | | console.log(this.codeApplyForm) |
| | | const objcodekey = Object.keys(this.codeApplyForm) |
| | | console.log(objcodekey) |
| | | const filteredObj = objcodekey.reduce((acc, key) => { |
| | | const pattern = /[\u4e00-\u9fa5]/; // å¹é
䏿åç¬¦çæ£åè¡¨è¾¾å¼ |
| | | if (!pattern.test(key)) { |
| | | acc[key] = this.codeApplyForm[key]; |
| | | } |
| | | return acc; |
| | | }, {}); |
| | | |
| | | const arrCode = Object.entries(filteredObj).map(([key, value]) => { |
| | | return { |
| | | secOid: key, |
| | | secValue: value |
| | | } |
| | | }) |
| | | this.formModel['secDTOList'] = arrCode |
| | | this.formModel['codeRuleOid'] = this.ruleOid |
| | | console.log(this.formModel) |
| | | this.confirmLoadding = true |
| | | const rule = await this.$refs.CodeApply.validate() |
| | | this.$refs.ruleForm.validate(res => { |
| | | if (rule && res) { |
| | | console.log(rule) |
| | | saveMaxSerialNum(this.formModel).then(res => { |
| | | if (res.data.success) { |
| | | this.$message.success('æä½æåï¼'); |
| | | this.confirmLoadding = false |
| | | this.cancel() |
| | | } |
| | | }) |
| | | } else { |
| | | this.confirmLoadding = false |
| | | } |
| | | }) |
| | | |
| | | }, |
| | | // åç
§ç»ä»¶æ°æ®åæ´ |
| | | referConfigDataUpdate(data) { |
| | | // console.log(data) |
| | | const { field } = data; |
| | | this.secVOList = this.secVOList.map((item) => { |
| | | if (item.parentClassifySecOid === field) { |
| | | this.$refs.CodeApply.form[item.oid] = undefined; |
| | | this.$refs.CodeApply.form[item.name] = undefined; |
| | | } |
| | | return item; |
| | | }); |
| | | this.$refs.CodeApply.templateRender(this.secVOList); |
| | | }, |
| | | isRequired(item) { |
| | | return item.nullableFlag != "true"; |
| | | }, |
| | | getType(item) { |
| | | return this.selfColumnType[item.secType]; |
| | | }, |
| | | getDisabled(item) { |
| | | if (item.secType === "codeclassifysec") { |
| | | if (item.parentClassifySecOid) { |
| | | if (!this.codeApplyForm[item.parentClassifySecOid]) { |
| | | return true; |
| | | } else { |
| | | return false; |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | getReferConfig(item) { |
| | | // console.log(item) |
| | | let params = {}; |
| | | if (item.secType == "codeclassifysec") { |
| | | params = { |
| | | isMuti: false, |
| | | type: "grid", |
| | | tableConfig: { |
| | | limit: -1, |
| | | cols: [ |
| | | { |
| | | field: "id", |
| | | title: "è±æåç§°", |
| | | sort: true, |
| | | width: 150, |
| | | }, |
| | | { |
| | | field: "name", |
| | | title: "䏿åç§°", |
| | | sort: true, |
| | | width: 150, |
| | | }, |
| | | { |
| | | field: "description", |
| | | title: "æè¿°", |
| | | width: 250, |
| | | }, |
| | | ], |
| | | queryColumns: [ |
| | | { |
| | | field: "id", |
| | | title: "è±æåç§°", |
| | | }, |
| | | { |
| | | field: "name", |
| | | title: "䏿åç§°", |
| | | }, |
| | | ], |
| | | }, |
| | | url: "api/ubcs-code/ubcs-code/mdmEngineController/listCodeClassifyValueBySecOid", |
| | | extraParams: { |
| | | classifySecOid: item.oid, |
| | | parentClassifyValueOid: item.parentClassifySecOid |
| | | ? this.codeApplyForm[item.parentClassifySecOid] |
| | | : "", |
| | | }, |
| | | }; |
| | | } else if (item.secType == "coderefersec") { |
| | | params = JSON.parse(item.referValueInfo); |
| | | } |
| | | // console.log(params) |
| | | return params; |
| | | |
| | | }, |
| | | getOptionList(item) { |
| | | if ( |
| | | Array.isArray(item.fixedValueVOList) && |
| | | item.fixedValueVOList.length > 0 |
| | | ) { |
| | | const configAttr = { |
| | | key: "id", |
| | | value: "id", |
| | | }; |
| | | const optionList = item.fixedValueVOList.map((item) => { |
| | | for (const key in configAttr) { |
| | | if (Object.hasOwnProperty.call(configAttr, key)) { |
| | | const element = configAttr[key]; |
| | | item[key] = item[element]; |
| | | } |
| | | } |
| | | return item; |
| | | }); |
| | | return optionList; |
| | | } else { |
| | | return []; |
| | | } |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | |
| | | hidden: (!this.controllerSecret) |
| | | }]; |
| | | } else { |
| | | debugger; |
| | | this.option.column = this.options.tableConfig.cols.map(item => { |
| | | if (item.field != 'LAY_TABLE_INDEX' && item.field != 'LAY_CHECKED') { |
| | | return { |
| | |
| | | import businesswork from "@/components/work/BusinessWork" |
| | | import MasterTransfer from "@/components/Master/MasterTransfer"; |
| | | import ThemeImport from "@/components/Theme/ThemeImport"; |
| | | import maxSerialnumDialog from '@/components/code-dialog-page/maxSerialnumDialog' |
| | | // å°å·¥å
·å½æ°æ·»å å°å
¨å± |
| | | import utilFunc from './util/func' |
| | | Vue.prototype.$utilFunc = utilFunc |
| | |
| | | Vue.component('businesswork', businesswork) |
| | | Vue.component('MasterTransfer', MasterTransfer) |
| | | Vue.component('ThemeImport', ThemeImport) |
| | | Vue.component('maxSerialnumDialog', maxSerialnumDialog) |
| | | |
| | | // å è½½ç¸å
³urlå°å |
| | | Object.keys(urls).forEach(key => { |
| | |
| | | @click="escapeOwner"> |
| | | 转移ææè
|
| | | </el-button> |
| | | <el-button |
| | | size="small" |
| | | icon="el-icon-guide" |
| | | plain |
| | | @click="maxSerialNum"> |
| | | æå¤§æµæ°´å· |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | |
| | | <el-button type="primary" @click="escapeOwnerConfirm">ç¡® å®</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | |
| | | <!-- æå¤§æµæ°´å·å¯¹è¯æ¡ --> |
| | | <max-serialnum-dialog :visible.sync="maxSerial.visible" :ruleOid="maxSerial.ruleOid"></max-serialnum-dialog> |
| | | |
| | | <!-- åºç¡ç 段å±ç¤ºåºå --> |
| | | <basic-container class="code-basicsec-container"> |
| | |
| | | ruleOwner: '', // å½åè¦è½¬ç§»ç»åªä¸ªè§å管çåçID |
| | | releadDisabled: false, // é¿å
è§ååå¸éå¤æäº¤ |
| | | |
| | | /*æå¤§æµæ°´å·*/ |
| | | maxSerial:{ |
| | | visible:false, |
| | | |
| | | }, |
| | | |
| | | /*使ç¨èå´å¯¹è¯æ¡æ¾ç¤ºæ§å¶*/ |
| | | codeRangeSettingBox: false, |
| | | useRangeData: [], |
| | |
| | | let enumList = this.getLocalStorageEnum("codeGetValueType"); |
| | | this.enumParam.codeGetValueType = enumList.length>0 ? enumList:[]; |
| | | }, |
| | | // æå¤§æµæ°´å· |
| | | maxSerialNum(){ |
| | | console.log(this.selectionList) |
| | | if (this.selectionList.length === 0) { |
| | | this.$message.warning("è¯·éæ©ä¸æ¡ç¼ç è§åï¼"); |
| | | return; |
| | | } |
| | | this.maxSerial.visible = true |
| | | this.maxSerial.ruleOid = this.selectionList[0]['oid'] |
| | | } |
| | | |
| | | } |
| | | }; |
| | |
| | | //æ¬å°æå¡æ¥å£å°å |
| | | // target: 'http://127.0.0.1', |
| | | // target: 'http://192.168.1.51:37000', |
| | | target: 'http://dev.vci-tech.com:37000', |
| | | // target: 'http://192.168.1.104:37000', |
| | | // target: 'http://dev.vci-tech.com:37000', |
| | | target: 'http://192.168.1.16:37000', |
| | | // target: 'http://192.168.0.105:37000', |
| | | // target: 'http://192.168.0.103:37000', |
| | | // target: 'http://192.168.1.63:37000', |
| | |
| | | * @return è¿åå卿¯å¦æåä¿¡æ¯ |
| | | */ |
| | | @GetMapping(APPLYGROUPCODE) |
| | | public R applyGroupCode(String oids,String btmName); |
| | | public R applyGroupCode(@RequestParam("oids")String oids,@RequestParam("btmName")String btmName); |
| | | |
| | | |
| | | /*** |
| | |
| | | * @return è¿åå卿¯å¦æåä¿¡æ¯ |
| | | */ |
| | | @PostMapping(RECEIVE_EDITAPPLY) |
| | | public R receiveEditApply(String oids,String btmName); |
| | | public R receiveEditApply(@RequestParam("oids")String oids,@RequestParam("btmName")String btmName); |
| | | |
| | | /*** |
| | | * å°éå¢ç³è¯·æåçç¼ç åå
¥ç¸å
³æ°æ®ä¹ä¸ |
| | |
| | | @Slf4j |
| | | public class DockingApplyGroupCodeSyncScheduling { |
| | | |
| | | @Resource |
| | | private IGroupCodeDuckingSyncService groupCodeDuckingSyncService; |
| | | // @Resource |
| | | //private IGroupCodeDuckingSyncService groupCodeDuckingSyncService; |
| | | |
| | | @Value("${apply.groupCode.isStart:false}") |
| | | public boolean APPLY_GRUPCODE_SYNC_ISSTARE; |
| | |
| | | <artifactId>ubcs-file-api</artifactId> |
| | | <version>3.0.1.RELEASE</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>com.vci.ubcs</groupId> |
| | | <artifactId>ubcs-applyjtcodeservice-api</artifactId> |
| | | <version>3.0.1.RELEASE</version> |
| | | <scope>compile</scope> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | | <build> |
| | |
| | | * @param resultDataObjectDetailDOs éè¯¯ä¿¡æ¯ |
| | | * @return æé误信æ¯çexcel |
| | | */ |
| | | void batchSyncApplyCode(CodeOrderDTO orderDTO, DataObjectVO dataObjectVO, LinkedList<XMLResultDataObjectDetailDO> resultDataObjectDetailDOs,boolean isCodeOrGroupCode); |
| | | void batchSyncApplyCode(CodeOrderDTO orderDTO, DataObjectVO dataObjectVO, LinkedList<XMLResultDataObjectDetailDO> resultDataObjectDetailDOs); |
| | | } |