import request from '@/router/axios'; // 列表查询 export function gridPortalVIDatas(page, limit, params) { return request({ url: "/api/portalVIController/gridPortalVIDatas", method: "get", params: { page, limit, ...params } }); } // 表单单条查询接口 export function getPortalVIById(params) { return request({ url: "/api/portalVIController/getPortalVIById", method: "get", params }); } // 属性超链接类型接口 export function getItemDblList() { return request({ url: "/api/portalVIController/getItemDblList", method: "get", }); } // 表格表单保存 export function savePortalVI(params) { return request({ url: "/api/portalVIController/savePortalVI", method: "post", data: params }); } // 属性树状接口 export function getTreeAttributes(params) { return request({ url: "/api/attributeController/getTreeAttributes", method: "get", params }) } // 通过id删除 export function deleteByIds(params) { return request({ url: "/api/portalVIController/deleteByIds", method: "delete", params }) } // 导出 export function exportExcel (params) { return request({ url: '/api/portalVIController/exportExcel', method: 'post', headers: {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'}, responseType: 'blob', params }) } // 表格查询模板下拉查询 export function getObjTypeQTs(params) { return request({ url: "/api/templateController/getObjTypeQTs", method: "get", params }) } const obj ={ "id": "",// 修改时候必传 "prm": { "formQtName": "", // 表单名称对应下面视图名称 "prmItemList": [ { "itemAddFilter": "", "itemBat": "", "itemCols": "0", "itemCtrlDisplyCol": "", "itemCtrlDisplyCondition": "", "itemCustomClass": "", "itemCut": "", "itemDateFormat": "", "itemDbl": "", "itemEQ": "", "itemEditCondition": "", "itemEditableProgram": "", "itemField": "anticollaboration", "itemFieldWidth": "", "itemFieldWidthList": [], "itemHrefConf": "", "itemHrefFields": "", "itemHttpPathField": "", "itemHttpVolumnPath": "", "itemImgWH": "", "itemInObj": "", "itemIsEditable": "1", "itemIsHidden": "0", "itemIsHttpSave": "0", "itemIsNavigatorExpand": "", "itemIsRequired": "0", "itemIsShowFolder": "", "itemKeyFieldList": [], "itemKeyFields": "", "itemListTable": "", "itemListTxt": "", "itemListVal": "", "itemName": "反协作标识", "itemOR": "", "itemOutFieldList": [], "itemOutFields": "", "itemOutType": "", "itemPageSize": "", "itemParentFolderName": "", "itemQtName": "", "itemQueryRefFields": "", "itemQuerySql": "", "itemRight": "", "itemRows": "", "itemScript": "", "itemSearchFieldList": [], "itemSelectoutFieldList": [], "itemSeniorQueryBOS": [], "itemSeniorQueryCols": "", "itemSeniorQueryColsCounts": "", "itemShowExpression": "", "itemStyle": "", "itemTips": "", "itemTrim": "", "itemTxf": "", "itemType": "text", "itemTypeText": "单行文本框", "itemValue": "N", "itemValueList": [] }, { "itemAddFilter": "", "itemBat": "", "itemCols": "0", "itemCtrlDisplyCol": "", "itemCtrlDisplyCondition": "", "itemCustomClass": "", "itemCut": "", "itemDateFormat": "", "itemDbl": "", "itemEQ": "", "itemEditCondition": "", "itemEditableProgram": "", "itemField": "holistic", "itemFieldWidth": "", "itemFieldWidthList": [], "itemHrefConf": "", "itemHrefFields": "", "itemHttpPathField": "", "itemHttpVolumnPath": "", "itemImgWH": "", "itemInObj": "", "itemIsEditable": "1", "itemIsHidden": "0", "itemIsHttpSave": "0", "itemIsNavigatorExpand": "", "itemIsRequired": "0", "itemIsShowFolder": "", "itemKeyFieldList": [], "itemKeyFields": "", "itemListTable": "", "itemListTxt": "", "itemListVal": "", "itemName": "整体性", "itemOR": "", "itemOutFieldList": [], "itemOutFields": "", "itemOutType": "", "itemPageSize": "", "itemParentFolderName": "", "itemQtName": "", "itemQueryRefFields": "", "itemQuerySql": "", "itemRight": "", "itemRows": "", "itemScript": "", "itemSearchFieldList": [], "itemSelectoutFieldList": [], "itemSeniorQueryBOS": [], "itemSeniorQueryCols": "", "itemSeniorQueryColsCounts": "", "itemShowExpression": "", "itemStyle": "", "itemTips": "", "itemTrim": "", "itemTxf": "", "itemType": "text", "itemTypeText": "单行文本框", "itemValue": "N", "itemValueList": [] }, { "itemAddFilter": "", "itemBat": "", "itemCols": "0", "itemCtrlDisplyCol": "", "itemCtrlDisplyCondition": "", "itemCustomClass": "", "itemCut": "", "itemDateFormat": "", "itemDbl": "", "itemEQ": "", "itemEditCondition": "", "itemEditableProgram": "", "itemField": "isproductbring", "itemFieldWidth": "", "itemFieldWidthList": [], "itemHrefConf": "", "itemHrefFields": "", "itemHttpPathField": "", "itemHttpVolumnPath": "", "itemImgWH": "", "itemInObj": "", "itemIsEditable": "1", "itemIsHidden": "0", "itemIsHttpSave": "0", "itemIsNavigatorExpand": "", "itemIsRequired": "0", "itemIsShowFolder": "", "itemKeyFieldList": [], "itemKeyFields": "", "itemListTable": "", "itemListTxt": "", "itemListVal": "", "itemName": "成品带来", "itemOR": "", "itemOutFieldList": [], "itemOutFields": "", "itemOutType": "", "itemPageSize": "", "itemParentFolderName": "", "itemQtName": "", "itemQueryRefFields": "", "itemQuerySql": "", "itemRight": "", "itemRows": "", "itemScript": "", "itemSearchFieldList": [], "itemSelectoutFieldList": [], "itemSeniorQueryBOS": [], "itemSeniorQueryCols": "", "itemSeniorQueryColsCounts": "", "itemShowExpression": "", "itemStyle": "", "itemTips": "", "itemTrim": "", "itemTxf": "", "itemType": "text", "itemTypeText": "单行文本框", "itemValue": "N", "itemValueList": [] }, { "itemAddFilter": "", "itemBat": "", "itemCols": "0", "itemCtrlDisplyCol": "", "itemCtrlDisplyCondition": "", "itemCustomClass": "", "itemCut": "", "itemDateFormat": "", "itemDbl": "", "itemEQ": "", "itemEditCondition": "", "itemEditableProgram": "", "itemField": "isforging", "itemFieldWidth": "", "itemFieldWidthList": [], "itemHrefConf": "", "itemHrefFields": "", "itemHttpPathField": "", "itemHttpVolumnPath": "", "itemImgWH": "", "itemInObj": "", "itemIsEditable": "1", "itemIsHidden": "0", "itemIsHttpSave": "0", "itemIsNavigatorExpand": "", "itemIsRequired": "0", "itemIsShowFolder": "", "itemKeyFieldList": [], "itemKeyFields": "", "itemListTable": "", "itemListTxt": "", "itemListVal": "", "itemName": "是否锻铸件", "itemOR": "", "itemOutFieldList": [], "itemOutFields": "", "itemOutType": "", "itemPageSize": "", "itemParentFolderName": "", "itemQtName": "", "itemQueryRefFields": "", "itemQuerySql": "", "itemRight": "", "itemRows": "", "itemScript": "", "itemSearchFieldList": [], "itemSelectoutFieldList": [], "itemSeniorQueryBOS": [], "itemSeniorQueryCols": "", "itemSeniorQueryColsCounts": "", "itemShowExpression": "", "itemStyle": "", "itemTips": "", "itemTrim": "", "itemTxf": "", "itemType": "text", "itemTypeText": "单行文本框", "itemValue": "", "itemValueList": [] }, { "itemAddFilter": "", "itemBat": "", "itemCols": "1", "itemCtrlDisplyCol": "", "itemCtrlDisplyCondition": "", "itemCustomClass": "", "itemCut": "", "itemDateFormat": "", "itemDbl": "", "itemEQ": "", "itemEditCondition": "", "itemEditableProgram": "", "itemField": "processremark", "itemFieldWidth": "", "itemFieldWidthList": [], "itemHrefConf": "", "itemHrefFields": "", "itemHttpPathField": "", "itemHttpVolumnPath": "", "itemImgWH": "", "itemInObj": "", "itemIsEditable": "1", "itemIsHidden": "1", "itemIsHttpSave": "0", "itemIsNavigatorExpand": "", "itemIsRequired": "0", "itemIsShowFolder": "", "itemKeyFieldList": [], "itemKeyFields": "", "itemListTable": "", "itemListTxt": "", "itemListVal": "", "itemName": "工艺备注", "itemOR": "", "itemOutFieldList": [], "itemOutFields": "", "itemOutType": "", "itemPageSize": "", "itemParentFolderName": "", "itemQtName": "", "itemQueryRefFields": "", "itemQuerySql": "", "itemRight": "", "itemRows": "", "itemScript": "", "itemSearchFieldList": [], "itemSelectoutFieldList": [], "itemSeniorQueryBOS": [], "itemSeniorQueryCols": "", "itemSeniorQueryColsCounts": "", "itemShowExpression": "", "itemStyle": "", "itemTips": "", "itemTrim": "", "itemTxf": "", "itemType": "text", "itemTypeText": "单行文本框", "itemValue": "", "itemValueList": [] }, { "itemAddFilter": "", "itemBat": "", "itemCols": "1", "itemCtrlDisplyCol": "", "itemCtrlDisplyCondition": "", "itemCustomClass": "", "itemCut": "", "itemDateFormat": "", "itemDbl": "", "itemEQ": "", "itemEditCondition": "", "itemEditableProgram": "", "itemField": "materialtype", "itemFieldWidth": "", "itemFieldWidthList": [], "itemHrefConf": "", "itemHrefFields": "", "itemHttpPathField": "", "itemHttpVolumnPath": "", "itemImgWH": "", "itemInObj": "", "itemIsEditable": "1", "itemIsHidden": "1", "itemIsHttpSave": "0", "itemIsNavigatorExpand": "", "itemIsRequired": "0", "itemIsShowFolder": "", "itemKeyFieldList": [], "itemKeyFields": "", "itemListTable": "", "itemListTxt": "", "itemListVal": "", "itemName": "物料类型", "itemOR": "", "itemOutFieldList": [], "itemOutFields": "", "itemOutType": "", "itemPageSize": "", "itemParentFolderName": "", "itemQtName": "", "itemQueryRefFields": "", "itemQuerySql": "", "itemRight": "", "itemRows": "", "itemScript": "", "itemSearchFieldList": [], "itemSelectoutFieldList": [], "itemSeniorQueryBOS": [], "itemSeniorQueryCols": "", "itemSeniorQueryColsCounts": "", "itemShowExpression": "", "itemStyle": "", "itemTips": "", "itemTrim": "", "itemTxf": "", "itemType": "text", "itemTypeText": "单行文本框", "itemValue": "", "itemValueList": [] }, { "itemAddFilter": "", "itemBat": "", "itemCols": "1", "itemCtrlDisplyCol": "", "itemCtrlDisplyCondition": "", "itemCustomClass": "", "itemCut": "", "itemDateFormat": "", "itemDbl": "", "itemEQ": "", "itemEditCondition": "", "itemEditableProgram": "", "itemField": "iscruxpart", "itemFieldWidth": "", "itemFieldWidthList": [], "itemHrefConf": "", "itemHrefFields": "", "itemHttpPathField": "", "itemHttpVolumnPath": "", "itemImgWH": "", "itemInObj": "", "itemIsEditable": "1", "itemIsHidden": "1", "itemIsHttpSave": "0", "itemIsNavigatorExpand": "", "itemIsRequired": "0", "itemIsShowFolder": "", "itemKeyFieldList": [], "itemKeyFields": "", "itemListTable": "", "itemListTxt": "", "itemListVal": "", "itemName": "是否关键件", "itemOR": "", "itemOutFieldList": [], "itemOutFields": "", "itemOutType": "", "itemPageSize": "", "itemParentFolderName": "", "itemQtName": "", "itemQueryRefFields": "", "itemQuerySql": "", "itemRight": "", "itemRows": "", "itemScript": "", "itemSearchFieldList": [], "itemSelectoutFieldList": [], "itemSeniorQueryBOS": [], "itemSeniorQueryCols": "", "itemSeniorQueryColsCounts": "", "itemShowExpression": "", "itemStyle": "", "itemTips": "", "itemTrim": "", "itemTxf": "", "itemType": "select", "itemTypeText": "下拉菜单", "itemValue": "N", "itemValueList": [ "否{N}", "是{Y}" ] }, { "itemAddFilter": "", "itemBat": "", "itemCols": "1", "itemCtrlDisplyCol": "", "itemCtrlDisplyCondition": "", "itemCustomClass": "", "itemCut": "", "itemDateFormat": "", "itemDbl": "", "itemEQ": "", "itemEditCondition": "", "itemEditableProgram": "", "itemField": "isimportantpart", "itemFieldWidth": "", "itemFieldWidthList": [], "itemHrefConf": "", "itemHrefFields": "", "itemHttpPathField": "", "itemHttpVolumnPath": "", "itemImgWH": "", "itemInObj": "", "itemIsEditable": "1", "itemIsHidden": "1", "itemIsHttpSave": "0", "itemIsNavigatorExpand": "", "itemIsRequired": "0", "itemIsShowFolder": "", "itemKeyFieldList": [], "itemKeyFields": "", "itemListTable": "", "itemListTxt": "", "itemListVal": "", "itemName": "是否重要件", "itemOR": "", "itemOutFieldList": [], "itemOutFields": "", "itemOutType": "", "itemPageSize": "", "itemParentFolderName": "", "itemQtName": "", "itemQueryRefFields": "", "itemQuerySql": "", "itemRight": "", "itemRows": "", "itemScript": "", "itemSearchFieldList": [], "itemSelectoutFieldList": [], "itemSeniorQueryBOS": [], "itemSeniorQueryCols": "", "itemSeniorQueryColsCounts": "", "itemShowExpression": "", "itemStyle": "", "itemTips": "", "itemTrim": "", "itemTxf": "", "itemType": "select", "itemTypeText": "下拉菜单", "itemValue": "N", "itemValueList": [ "是{Y}", "否{N}" ] } ], "showCols": "2" }, "typeFlag": 0, // 业务类型0 or 链接类型1 "typeFlagText": "业务类型的表单",// 业务类型显示值 "typeName": "ppart",// 业务类型名 "viName": "ppartProp_test3", // 视图名称 "viType": 1, // 视图类型 "viTypeText": "表单" // 视图中文名称 } const dataForm = { "id": "", "prm": { "formQtName": "", "prmItemList": [ { "itemAddFilter": "", "itemBat": "", "itemCols": "", "itemCtrlDisplyCol": "", "itemCtrlDisplyCondition": "", "itemCustomClass": "", "itemCut": "", "itemDateFormat": "", "itemDbl": "3", "itemEQ": "", "itemEditCondition": "", "itemEditableProgram": "", "itemField": "", "itemFieldWidth": "150,150,100,80,80,80,100,100,100,100,50,100,250", "itemFieldWidthList": [ { "attributes": {}, "key": "code", "value": "150" }, { "attributes": {}, "key": "partoid.name", "value": "150" }, { "attributes": {}, "key": "validity", "value": "100" }, { "attributes": {}, "key": "lcstatus", "value": "80" }, { "attributes": {}, "key": "additionalunit", "value": "80" }, { "attributes": {}, "key": "distributeunittwo", "value": "80" }, { "attributes": {}, "key": "anticollaboration", "value": "100" }, { "attributes": {}, "key": "holistic", "value": "100" }, { "attributes": {}, "key": "scale", "value": "100" }, { "attributes": {}, "key": "source", "value": "100" }, { "attributes": {}, "key": "isforging", "value": "50" }, { "attributes": {}, "key": "isproductbring", "value": "100" }, { "attributes": {}, "key": "processremark", "value": "250" } ], "itemHrefConf": "", "itemHrefFields": "", "itemHttpPathField": "", "itemHttpVolumnPath": "", "itemImgWH": "0,0", "itemInObj": "A5791895-83D1-D63F-40C4-26705FF3A2BB", "itemIsEditable": "", "itemIsHidden": "", "itemIsHttpSave": "", "itemIsNavigatorExpand": "false", "itemIsRequired": "", "itemIsShowFolder": "false", "itemKeyFieldList": null, "itemKeyFields": "", "itemListTable": "", "itemListTxt": "", "itemListVal": "", "itemName": "", "itemOR": "", "itemOutFieldList": [ "code", "partoid.name", "validity", "lcstatus", "additionalunit", "distributeunittwo", "anticollaboration", "holistic", "scale", "source", "isforging", "isproductbring", "processremark" ], "itemOutFields": "code,partoid.name,validity,lcstatus,additionalunit,distributeunittwo,anticollaboration,holistic,scale,source,isforging,isproductbring,processremark", "itemOutType": "", "itemPageSize": "", "itemParentFolderName": "", "itemQtName": "queryppartbypbom", "itemQueryRefFields": "", "itemQuerySql": "", "itemRight": "", "itemRows": "", "itemScript": "", "itemSearchFieldList": [ "code", "partoid.name", "validity", "lcstatus", "additionalunit", "distributeunittwo", "anticollaboration", "holistic", "scale", "source", "isforging", "isproductbring", "processremark" ], "itemSelectoutFieldList": [ "produceroute", "hotsurfaceroute" ], "itemSeniorQueryBOS": [], "itemSeniorQueryCols": "", "itemSeniorQueryColsCounts": "", "itemShowExpression": "", "itemStyle": "", "itemTips": "", "itemTrim": "", "itemTxf": "", "itemType": "", "itemTypeText": "", "itemValue": "", "itemValueList": [] } ], "showCols": "3" }, "typeFlag": 0, "typeFlagText": "业务类型的表格", "typeName": "ppart", "viName": "ppart_auditlist_test", "viType": 0, "viTypeText": "表格" }