| | |
| | | </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" |
| | | <form-template key="codeApplyMaxForm" data-key="codeApplyMaxForm" v-bind="$attrs" type="add" :selfColumnType="selfColumnType" :trendsSpan="24" |
| | | :selfColumnConfig="selfColumnConfig" ref="CodeApply" @getFormData="getCodeApplyFormData" |
| | | @referConfigDataUpdate="referConfigDataUpdate"></form-template> |
| | | </el-tab-pane> |
| | |
| | | </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) |
| | | // }) |
| | | |
| | | }, |
| | | // 参照组件数据变更 |
| | | referConfigDataUpdate(data) { |
| | | const {field} = data; |
| | | let childItems=[]; |
| | | this.secVOList = this.secVOList.map((item) => { |
| | | if (item.parentClassifySecOid === field) { |
| | | this.$refs.CodeApply.form[item.oid] = undefined; |
| | | this.$refs.CodeApply.form[item.name] = undefined; |
| | | item.readOnly = false; |
| | | item.referConfig.extraParams.parentClassifyValueOid = data.value; |
| | | item.referConfig.reloadData = true; |
| | | item.dataKey=item.oid+'_'+new Date().getTime(); |
| | | childItems.push(item) |
| | | } |
| | | return item; |
| | | }); |
| | | this.$refs.CodeApply.templateRender(this.secVOList); |
| | | //this.$refs.CodeApply.templateRender(this.secVOList); |
| | | this.$refs.CodeApply.changeChildItem(childItems); |
| | | }, |
| | | isRequired(item) { |
| | | return item.nullableFlag != "true"; |
| | |
| | | if (item.secType == "codeclassifysec") { |
| | | params = { |
| | | isMuti: false, |
| | | valueField: 'id', |
| | | valueField: 'oid', |
| | | type: "grid", |
| | | tableConfig: { |
| | | limit: -1, |
| | |
| | | parentClassifyValueOid: item.parentClassifySecOid |
| | | ? this.codeApplyForm[item.parentClassifySecOid] |
| | | : "", |
| | | }, |
| | | } |
| | | }; |
| | | } else if (item.secType == "coderefersec") { |
| | | params = JSON.parse(item.referValueInfo); |