| | |
| | | import request from "@/router/axios";
|
| | |
|
| | | // è·åè¡¨åæ¨¡æ¿æ°æ®
|
| | | export const getFormTemplate = (params) => {
|
| | | export function getFormTemplate(params) {
|
| | | return request({
|
| | | url: 'api/ubcs-code/ubcs-code/mdmEngineController/getFormDefineByTemplateOid',
|
| | | method: 'get',
|
| | |
| | | })
|
| | | }
|
| | | // è¡¨åæ°æ®æ§è¡ä»£ç
|
| | | export const executeCode = (params) => {
|
| | | export function executeCode(params) {
|
| | | return request({
|
| | | url: 'api/ubcs-code/ubcs-code/mdmEngineController/getFormDefineByTemplateOid',
|
| | | method: 'get',
|
| | |
| | | })
|
| | | }
|
| | | // ç¸ä¼¼é¡¹æ¥è¯¢
|
| | | export const findLike = (data) => {
|
| | | export function findLike(data) {
|
| | | return request({
|
| | | url: 'api/ubcs-code/ubcs-code/mdmEngineController/resembleQuery',
|
| | | method: 'post',
|
| | |
| | | })
|
| | | }
|
| | |
|
| | | // è·åæ°æ®
|
| | | export const getCodeRule = (params) => {
|
| | | // è·åç å¼ç³è¯·æ°æ®
|
| | | export function getCodeRule(params) {
|
| | | return request({
|
| | | url: 'api/ubcs-code/ubcs-code/mdmEngineController/getCodeRuleByClassifyOid',
|
| | | method: 'get',
|
| | | params
|
| | | })
|
| | | }
|
| | |
|
| | | // è·å详æ
|
| | | export function getFormDetail(params) {
|
| | | return request({
|
| | | url: 'api/ubcs-code/ubcs-code/mdmEngineController/getDataByOid',
|
| | | method: 'get',
|
| | | params
|
| | | })
|
| | | } |
| | |
| | | return [];
|
| | | }
|
| | | },
|
| | | async validate() {
|
| | | return await this.$refs.FormTempalte.validate()
|
| | | }
|
| | | },
|
| | | watch: {
|
| | | },
|
| | |
| | | <!-- eslint-disable vue/valid-v-for -->
|
| | | <!-- eslint-disable vue/require-v-for-key -->
|
| | | <template>
|
| | | <div>
|
| | | <avue-form v-model="form" :option="option" v-loading="loading" ref="form" :style="{minHeight: loading ? '300px' : ''}">
|
| | | <template :slot="item.prop + 'Label'" v-for="item in slotColumnList">
|
| | | <span>
|
| | | <span>{{ item.label }} </span>
|
| | | <el-tooltip
|
| | | v-if="item.keyAttr"
|
| | | class="item"
|
| | | effect="dark"
|
| | | content="è¯¥å±æ§ä¸ºå
³é®å±æ§"
|
| | | placement="top-start"
|
| | | >
|
| | | <i class="el-icon-star-on key_attr_icon"></i>
|
| | | </el-tooltip>
|
| | | </span>
|
| | | </template>
|
| | | <template :slot="groupItem.prop + ''" v-for="groupItem in option.group">
|
| | | <template :slot="item.prop + ''" v-for="item in groupItem.column">
|
| | | <span>1111</span>
|
| | | <vciWebRefer v-if="item.type=='refer'" :value="item.value" :options="item.referConfig"></vciWebRefer>
|
| | | <avue-form
|
| | | v-model="form"
|
| | | :option="option"
|
| | | v-loading="loading"
|
| | | ref="form"
|
| | | :style="{ minHeight: loading ? '300px' : '' }"
|
| | | >
|
| | | <template :slot="item.prop + 'Label'" v-for="item in slotColumnList">
|
| | | <span>
|
| | | <span>{{ item.label }} </span>
|
| | | <el-tooltip
|
| | | v-if="item.keyAttr"
|
| | | class="item"
|
| | | effect="dark"
|
| | | content="è¯¥å±æ§ä¸ºå
³é®å±æ§"
|
| | | placement="top-start"
|
| | | >
|
| | | <i class="el-icon-star-on key_attr_icon"></i>
|
| | | </el-tooltip>
|
| | | </span>
|
| | | </template>
|
| | |
|
| | | </template>
|
| | | </avue-form>
|
| | | <template :slot="item.prop + ''" v-for="item in slotColumnList">
|
| | | <vciWebRefer
|
| | | v-if="item.type == 'refer'"
|
| | | :value="item.value"
|
| | | :options="item.referConfig || {}"
|
| | | ></vciWebRefer>
|
| | | </template>
|
| | | </avue-form>
|
| | | </div>
|
| | | </template>
|
| | |
|
| | | <script>
|
| | | import { getFormTemplate } from "@/api/formTemplate";
|
| | | import { getFormTemplate, getFormDetail } from "@/api/formTemplate";
|
| | | import { getDictionary } from "../../api/system/dict";
|
| | | import vciWebRefer from "../refer/vciWebRefer.vue";
|
| | | export default {
|
| | | name: "FormTemplate",
|
| | | components: { vciWebRefer},
|
| | | components: { vciWebRefer },
|
| | | props: {
|
| | | // é»è®¤ç¦ç¨å
ç´
|
| | | disabledProp: {
|
| | |
| | | type: String,
|
| | | default: "",
|
| | | },
|
| | | // ä¿®æ¹åæ¾çæ°æ®
|
| | | editForm: {
|
| | | type: Object,
|
| | | default: () => ({}),
|
| | | // åè¡¨æ°æ®oid
|
| | | rowOid: {
|
| | | type: String,
|
| | | default: "",
|
| | | },
|
| | | // 表åç±»åï¼add, edit, detailï¼
|
| | | type: {
|
| | |
| | | option: {
|
| | | emptyBtn: false,
|
| | | submitBtn: false,
|
| | | labelWidth: "130",
|
| | | labelWidth: "140",
|
| | | column: [],
|
| | | group: [],
|
| | | },
|
| | |
| | | textarea: "textarea",
|
| | | datetime: "datetime",
|
| | | 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]/",
|
| | | // },
|
| | | // {
|
| | | // 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: "this.form.sum = this.form.fun1 + this.form.fun2",
|
| | | // extendAttrMap: null,
|
| | | // extendAttrString: null,
|
| | | // field: "fun1",
|
| | | // hidden: false,
|
| | | // keyAttr: false,
|
| | | // prefix: "",
|
| | | // readOnly: false,
|
| | | // referConfig: null,
|
| | | // required: false,
|
| | | // selectLibFlag: "",
|
| | | // showField: null,
|
| | | // suffix: "",
|
| | | // text: "åæ°1æµè¯js",
|
| | | // tooltips: "",
|
| | | // type: "text",
|
| | | // unique: false,
|
| | | // verify: "",
|
| | | // },
|
| | | // {
|
| | | // comboxKey: null,
|
| | | // customClass: null,
|
| | | // data: null,
|
| | | // dateFormate: "",
|
| | | // defaultValue: "",
|
| | | // displayExtension: "this.form.sum = this.form.fun1 + this.form.fun2",
|
| | | // extendAttrMap: null,
|
| | | // extendAttrString: null,
|
| | | // field: "fun2",
|
| | | // hidden: false,
|
| | | // keyAttr: false,
|
| | | // prefix: "",
|
| | | // readOnly: false,
|
| | | // required: false,
|
| | | // selectLibFlag: "",
|
| | | // showField: "hesuanfenleiname",
|
| | | // suffix: "",
|
| | | // text: "åæ°2æµè¯js",
|
| | | // tooltips: "",
|
| | | // type: "text",
|
| | | // unique: false,
|
| | | // verify: "",
|
| | | // },
|
| | | // {
|
| | | // comboxKey: null,
|
| | | // customClass: null,
|
| | | // data: null,
|
| | | // dateFormate: "",
|
| | | // defaultValue: "",
|
| | | // displayExtension: "",
|
| | | // extendAttrMap: null,
|
| | | // extendAttrString: null,
|
| | | // field: "sum",
|
| | | // hidden: false,
|
| | | // keyAttr: false,
|
| | | // prefix: "",
|
| | | // readOnly: true,
|
| | | // required: false,
|
| | | // selectLibFlag: "",
|
| | | // showField: "",
|
| | | // suffix: "",
|
| | | // text: "åæ°1åæ°2æ±å",
|
| | | // 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: true,
|
| | | // required: false,
|
| | | // selectLibFlag: "",
|
| | | // showField: "depId",
|
| | | // suffix: "",
|
| | | // text: "åç
§",
|
| | | // tooltips: "",
|
| | | // type: "text",
|
| | | // unique: false,
|
| | | // verify: "",
|
| | | // },
|
| | | // ],
|
| | | 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]/",
|
| | | },
|
| | | {
|
| | | 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: [],
|
| | | slotColumnList: []
|
| | | slotColumnList: [],
|
| | | };
|
| | | },
|
| | | mounted() {
|
| | | this.handleResize();
|
| | | },
|
| | | methods: {
|
| | | // åå§å
|
| | | init(columnList) {
|
| | | if (Array.isArray(columnList)) {
|
| | | this.templateRender(columnList);
|
| | |
| | | this.getFormTemplate();
|
| | | }
|
| | | },
|
| | | // æ¥å£è·åè¡¨åæ°æ®
|
| | | getFormTemplate() {
|
| | | getFormTemplate({
|
| | | templateOid: this.templateOid,
|
| | |
| | | console.log(err);
|
| | | });
|
| | | },
|
| | | // 渲æè¡¨å模æ¿
|
| | | templateRender(formItemList) {
|
| | | // æ éåç»æ°æ®
|
| | | let column = [];
|
| | | let group = [];
|
| | | let dictKeys = [];
|
| | | let slotColumnList = []
|
| | | let slotColumnList = [];
|
| | | formItemList.forEach((formItem) => {
|
| | | formItem = this.resetFormConfig(formItem);
|
| | | if (formItem.type === "line") {
|
| | |
| | | dictKeys.push({ dictKey: formItem.comboxKey, field: formItem.field });
|
| | | }
|
| | | // ç¦ç¨é¨å屿§ï¼å¤é¨ä¼ å¼ç¦ç¨ååç
§ç¦ç¨ï¼
|
| | | if (
|
| | | this.disabledProp.includes(formItem.field) ||
|
| | | this.$utilFunc.isValuableObj(formItem.referConfig)
|
| | | ) {
|
| | | if (this.disabledProp.includes(formItem.field)) {
|
| | | formItem.readOnly = true;
|
| | | }
|
| | | // è®¾ç½®è¡¨åæ ¡éªçè§åï¼ææ¬
|
| | |
| | | format: formItem.dateFormate,
|
| | | keyAttr: formItem.keyAttr,
|
| | | value: formItem.defaultValue,
|
| | | tip: formItem.tooltips,
|
| | | tipPlacement: "right",
|
| | | // tip: formItem.tooltips,
|
| | | // tipPlacement: "right",
|
| | | placeholder: formItem.inputTip,
|
| | | comboxKey: formItem.comboxKey,
|
| | | display: !formItem.hidden,
|
| | | maxlength: formItem.maxlength,
|
| | |
| | | this.changeFun(formItem.displayExtension, formItem.prop);
|
| | | },
|
| | | span: formItem.type === "textarea" ? 24 : this.trendsSpan,
|
| | | click: () => {
|
| | | this.clickFun(formItem.referConfig)
|
| | | },
|
| | | rules: [
|
| | | {
|
| | | required: formItem.required,
|
| | |
| | | value: "key",
|
| | | },
|
| | | };
|
| | | slotColumnList.push(columnItem)
|
| | | slotColumnList.push(columnItem);
|
| | | if (group.length === 0) {
|
| | | column.push(columnItem);
|
| | | } else {
|
| | | group[group.length - 1]["column"].push(columnItem);
|
| | | }
|
| | | });
|
| | | this.slotColumnList = slotColumnList
|
| | | this.slotColumnList = slotColumnList;
|
| | | this.$set(this.option, "column", column);
|
| | | this.$set(this.option, "group", group);
|
| | | this.formIndex++;
|
| | | this.loading = false
|
| | | this.loading = false;
|
| | | this.geDictData(dictKeys);
|
| | | this.getFormDetail()
|
| | | },
|
| | | // 使ç¨ä¼ å
¥çè¡¨åæ°æ®é
ç½®
|
| | | resetFormConfig(formItem) {
|
| | |
| | | }
|
| | | return formItem;
|
| | | },
|
| | | // æ ¹æ®å±å¹å¨æé
置表åå¸å±
|
| | | handleResize() {
|
| | | let windowWidth = document.body.clientWidth;
|
| | | this.trendsSpan = 24 / Math.floor(windowWidth / 500);
|
| | |
| | | // executeCode({displayExtension, data: this.form}).then(res => {
|
| | | // this.form[prop] = res.data.data
|
| | | // })
|
| | | },
|
| | | clickFun(referConfig) {
|
| | | console.log(123123);
|
| | | if (this.type === "detail") {
|
| | | return;
|
| | | }
|
| | | },
|
| | | // è·åswichåå·²æ¿å°çä¸ææ°æ®
|
| | | getDataList(type, dicData) {
|
| | |
| | | }
|
| | | return [];
|
| | | },
|
| | | // è·ååå
¸æ°æ®
|
| | | // 弿¥è·ååå
¸æ°æ®
|
| | | geDictData(dictKeys) {
|
| | | dictKeys.forEach((dictObj) => {
|
| | | getDictionary({ code: dictObj.dictKey }).then((res) => {
|
| | |
| | | });
|
| | | });
|
| | | },
|
| | | // è¡¨åæ ¡éª
|
| | | validate() {
|
| | | return new Promise((resolve) => {
|
| | | this.$refs.form.validate((valid, done, msg) => {
|
| | | console.error(msg, valid)
|
| | | if (valid) {
|
| | | resolve(true)
|
| | | } else {
|
| | | resolve(false);
|
| | | }
|
| | | });
|
| | | })
|
| | | |
| | | },
|
| | | // è·åè¡¨åæ°æ®
|
| | | getFormDetail() {
|
| | | if (this.type === 'add') return
|
| | | getFormDetail({templateOid: this.templateOid, oid: this.rowOid}).then(res => {
|
| | | console.log(res, 'res');
|
| | | })
|
| | | }
|
| | | },
|
| | | watch: {
|
| | | // è¡¨åæ°æ®ä¿®æ¹åé¦å°ç¶ç»ä»¶
|
| | | form: {
|
| | | deep: true,
|
| | | immediate: true,
|
| | |
| | | };
|
| | | </script>
|
| | |
|
| | | <style lang="less" scoped></style>
|
| | | <style lang="scss" scoped>
|
| | | .key_attr_icon {
|
| | | font-size: 20px !important;
|
| | | vertical-align: baseline;
|
| | | color: red;
|
| | | }
|
| | | </style>
|
| | |
| | | <template>
|
| | | <div>
|
| | | <el-table :data="tableData" v-loading="loading" height="250" :border="true">
|
| | | <el-table
|
| | | :data="tableData"
|
| | | v-loading="loading"
|
| | | height="250"
|
| | | :border="true"
|
| | | size="small"
|
| | | >
|
| | | <el-table-column
|
| | | v-if="column.length > 0"
|
| | | type="index"
|
| | | width="60"
|
| | | label="åºå·"
|
| | |
| | | type: String,
|
| | | default: "",
|
| | | },
|
| | | codeRuleOid: {
|
| | | type: String,
|
| | | default: "",
|
| | | },
|
| | | type: {
|
| | | type: String,
|
| | | default: "add",
|
| | |
| | | type: Object,
|
| | | default: () => ({}),
|
| | | },
|
| | | codeRuleOid: {
|
| | | type: String,
|
| | | default: "",
|
| | | },
|
| | | },
|
| | | data() {
|
| | | return {
|
| | | tableVisible: true,
|
| | | formTemplateVisible: false,
|
| | | activeName: "findlike",
|
| | | tableData: [],
|
| | |
| | | formItems: [],
|
| | | };
|
| | | },
|
| | | created() {},
|
| | | computed: {},
|
| | | methods: {
|
| | | // ç¸ä¼¼é¡¹æ¥è¯¢
|
| | | resembleQuery(form) {
|
| | |
| | | codeClassifyOid: this.codeClassifyOid,
|
| | | codeRuleOid: this.codeRuleOid,
|
| | | templateOid: this.templateOid,
|
| | | data: formValue
|
| | | data: formValue,
|
| | | };
|
| | | params = Object.assign(params, defaultValue);
|
| | | this.tableVisible = true;
|
| | | findLike(params).then((res) => {
|
| | | this.loading = false;
|
| | | this.tableData = res.data.data || [];
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template>
|
| | | <el-dialog
|
| | | :visible.sync="dialogVisible"
|
| | | v-dialogDrag
|
| | | top="0vh"
|
| | | title="ç¸ä¼¼é¡¹æ¥è¯¢"
|
| | | :width="width"
|
| | | append-to-body
|
| | | @opened="openDialog"
|
| | | class="avue-dialog avue-dialog--top"
|
| | | >
|
| | | <ResembleQuery
|
| | | v-loading="loading"
|
| | | ref="ResembleQuery"
|
| | | v-bind="$attrs"
|
| | | :column="column"
|
| | | :templateOid="templateOid"
|
| | | :codeRuleOid="codeRuleOid"
|
| | | :codeClassifyOid="codeClassifyOid"
|
| | | ></ResembleQuery>
|
| | | </el-dialog>
|
| | | </template>
|
| | |
|
| | | <script>
|
| | | import { getFormTemplate } from "@/api/formTemplate";
|
| | | import ResembleQuery from "./ResembleQuery";
|
| | | export default {
|
| | | name: "ResembleQueryDialog",
|
| | | components: { ResembleQuery },
|
| | | props: {
|
| | | visible: {
|
| | | type: Boolean,
|
| | | default: false,
|
| | | },
|
| | | codeClassifyOid: {
|
| | | type: String,
|
| | | default: "",
|
| | | },
|
| | | templateOid: {
|
| | | type: String,
|
| | | default: "",
|
| | | },
|
| | | codeRuleOid: {
|
| | | type: String,
|
| | | default: "",
|
| | | },
|
| | | type: {
|
| | | type: String,
|
| | | default: "add",
|
| | | },
|
| | | form: {
|
| | | type: Object,
|
| | | default: () => ({}),
|
| | | },
|
| | | },
|
| | | data() {
|
| | | return {
|
| | | column: [],
|
| | | loading: false
|
| | | };
|
| | | },
|
| | | computed: {
|
| | | dialogVisible: {
|
| | | get() {
|
| | | return this.visible;
|
| | | },
|
| | | set(val) {
|
| | | this.$emit("update:visible", val);
|
| | | },
|
| | | },
|
| | | },
|
| | | methods: {
|
| | | openDialog() {
|
| | | this.loading = true
|
| | | getFormTemplate({
|
| | | templateOid: this.templateOid,
|
| | | codeClassifyOid: this.codeClassifyOid,
|
| | | }).then((res) => {
|
| | | this.loading = false
|
| | | if (
|
| | | res.data &&
|
| | | res.data.resembleTableVO.cols &&
|
| | | res.data.resembleTableVO.cols.length > 0
|
| | | ) {
|
| | | this.column = res.data.resembleTableVO.cols;
|
| | | this.$refs.ResembleQuery.resembleQuery();
|
| | | } else {
|
| | | this.column = [];
|
| | | }
|
| | | });
|
| | | },
|
| | | },
|
| | | };
|
| | | </script>
|
| | |
|
| | | <style lang="less" scoped></style>
|
| | |
| | | @getFormData="getFormData" |
| | | ></FormTempalte> |
| | | |
| | | <div class="tab_box" v-if="type !== 'detail' && dialogVisible"> |
| | | <el-tabs v-model="activeName" type="card"> |
| | | <div class="tab_box" v-if="type !== 'detail' && dialogVisible && (showCodeApply || showResembleQuery)"> |
| | | <el-tabs v-model="activeName" type="border-card"> |
| | | <el-tab-pane label="ç å¼ç³è¯·" name="codeApply" v-if="showCodeApply"> |
| | | <CodeApply ref="CodeApply" v-bind="$attrs" @getCodeRuleOid="getCodeRuleOid"></CodeApply> |
| | | <CodeApply |
| | | ref="CodeApply" |
| | | v-bind="$attrs" |
| | | @getCodeRuleOid="getCodeRuleOid" |
| | | ></CodeApply> |
| | | </el-tab-pane> |
| | | <el-tab-pane |
| | | label="ç¸ä¼¼é¡¹æ¥è¯¢" |
| | |
| | | :hasResemble="this.hasResemble" |
| | | :column="this.resembleTableColumn" |
| | | :form="this.form" |
| | | :codeRuleOid="codeRuleOid" |
| | | ></ResembleQuery> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </div> |
| | | <div class="avue-dialog__footer" v-if="type !== 'detail'"> |
| | | <el-button @click="close()">å æ¶</el-button> |
| | | <el-button @click="close()" type="primary" :loading="submitBtnLoading" |
| | | <el-button @click="submit()" type="primary" :loading="submitBtnLoading" |
| | | >ç¡® å®</el-button |
| | | > |
| | | <el-button @click="resembleQuerySubmit" type="primary" v-if="hasResemble" |
| | | <el-button @click="resembleQuerySubmit" type="primary" v-if="showResembleQuery" |
| | | >ç¸ä¼¼åæ¥è¯¢</el-button |
| | | > |
| | | </div> |
| | |
| | | }, |
| | | title: { |
| | | type: String, |
| | | default: "è¡¨åæ¨¡æ¿", |
| | | default: "ç¼ç ç³è¯·", |
| | | }, |
| | | width: { |
| | | type: String, |
| | |
| | | hasResemble: false, |
| | | resembleTableColumn: [], |
| | | secVOList: [], |
| | | activeName: "resembleQuery", |
| | | codeRuleOid: '', |
| | | form: {} |
| | | form: {}, |
| | | }; |
| | | }, |
| | | created() {}, |
| | |
| | | return false; |
| | | } |
| | | } else { |
| | | if (this.hasResemble) { |
| | | return false; |
| | | } |
| | | return false; |
| | | } |
| | | return true; |
| | | }, |
| | | showResembleQuery() { |
| | | return this.hasResemble; |
| | | }, |
| | | activeName() { |
| | | return ( |
| | | (this.showCodeApply && "codeApply") || |
| | | (this.showResembleQuery && "resembleQuery") |
| | | ); |
| | | }, |
| | | }, |
| | | methods: { |
| | | openDialog() { |
| | | this.$nextTick(() => { |
| | | this.$refs.FormTempalte.init() |
| | | this.$refs.CodeApply.getCodeRule() |
| | | }) |
| | | this.$refs.FormTempalte.init(); |
| | | }); |
| | | }, |
| | | close() { |
| | | this.dialogVisible = false; |
| | | }, |
| | | getCodeRuleOid(data) { |
| | | this.codeRuleOid = data.oid |
| | | this.secVOList = data.secVOList |
| | | this.secVOList = data.secVOList; |
| | | }, |
| | | getFormTemplate(data) { |
| | | this.hasResemble = |
| | |
| | | this.resembleTableColumn = data.resembleTableVO.cols || []; |
| | | }, |
| | | getFormData(form) { |
| | | this.form = form |
| | | this.form = form; |
| | | }, |
| | | resembleQuerySubmit() { |
| | | this.$refs.resembleQueryRef.resembleQuery(this.form); |
| | | }, |
| | | async submit() { |
| | | const formValidate = await this.$refs.FormTempalte.validate(); |
| | | if (this.showCodeApply) { |
| | | const codeValidate = this.$refs.CodeApply.validate(); |
| | | console.log(formValidate, codeValidate); |
| | | } |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | <template>
|
| | | <div>
|
| | | <el-button @click="visible = true">æµè¯</el-button>
|
| | | <el-button @click="visible1 = true">ç¸ä¼¼é¡¹æ¥è¯¢</el-button>
|
| | | <FormTemplateDialog
|
| | | :visible.sync="visible"
|
| | | :FormTemplateProp="FormTemplateProp"
|
| | | :type="this.type"
|
| | | :editForm="editForm"
|
| | | :templateOid="this.templateOid"
|
| | | :codeClassifyOid="this.codeClassifyOid"
|
| | | :codeRuleOid="this.codeRuleOid"
|
| | | :disabledProp="disabledProp"
|
| | | :rowOid="rowOid"
|
| | | ></FormTemplateDialog>
|
| | | <ResembleQueryDialog
|
| | | :visible.sync="visible1"
|
| | | :type="this.type"
|
| | | :templateOid="this.templateOid"
|
| | | :codeClassifyOid="this.codeClassifyOid"
|
| | | :codeRuleOid="this.codeRuleOid"
|
| | | ></ResembleQueryDialog>
|
| | | </div>
|
| | | </template>
|
| | | codeClassifyOid
|
| | |
|
| | | <script>
|
| | | import ResembleQueryDialog from '@/components/FormTemplate/ResembleQueryDialog.vue';
|
| | | export default {
|
| | | name: "FormTempalteTest",
|
| | | components: { ResembleQueryDialog },
|
| | | data() {
|
| | | return {
|
| | | visible: false,
|
| | | visible1: false,
|
| | | // é»è®¤ç¦ç¨ç表å
ç´
|
| | | disabledProp: ["id"],
|
| | | // ä¿®æ¹åæ¾çæ°æ®
|
| | | editForm: {},
|
| | | // 表åç±»å
|
| | | type: "add",
|
| | | templateOid: "78B8C7C5-A042-0B96-FE6D-65421451782A",
|
| | | codeClassifyOid: "4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | codeRuleOid: "B95872A6-9CEA-D490-8F1B-9D26548CAF96",
|
| | | rowOid: '6EF696C3-CD87-0E7C-1EA1-8DE3913A95C9'
|
| | | };
|
| | | },
|
| | | };
|