添加主数据代码
This commit is contained in:
34
src/views/mdm/product/helper/api.ts
Normal file
34
src/views/mdm/product/helper/api.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
import { defHttp } from '@/utils/http/axios';
|
||||
|
||||
// 获取列表
|
||||
export function getList(data) {
|
||||
return defHttp.post({ url: '/api/bcm/Products/getList', data });
|
||||
}
|
||||
// 新建
|
||||
export function create(data) {
|
||||
return defHttp.post({ url:'/api/bcm/Products', data });
|
||||
}
|
||||
// 修改
|
||||
export function update(data) {
|
||||
return defHttp.put({ url: '/api/bcm/Products/'+ data.id, data });
|
||||
}
|
||||
// 详情(无转换数据)
|
||||
export function getInfo(id) {
|
||||
return defHttp.get({ url: '/api/bcm/Products/' + id });
|
||||
}
|
||||
// 获取(转换数据)
|
||||
export function getDetailInfo(id) {
|
||||
return defHttp.get({ url: '/api/bcm/Products/detail/' + id });
|
||||
}
|
||||
// 删除
|
||||
export function del(id) {
|
||||
return defHttp.delete({ url: '/api/bcm/Products/' + id });
|
||||
}
|
||||
// 批量删除数据
|
||||
export function batchDelete(data) {
|
||||
return defHttp.delete({ url: '/api/bcm/Products/batchRemove', data });
|
||||
}
|
||||
// 导出
|
||||
export function exportData(data) {
|
||||
return defHttp.post({ url: '/api/bcm/Products/Actions/Export', data });
|
||||
}
|
||||
1358
src/views/mdm/product/helper/columnList.ts
Normal file
1358
src/views/mdm/product/helper/columnList.ts
Normal file
File diff suppressed because it is too large
Load Diff
217
src/views/mdm/product/helper/searchList.ts
Normal file
217
src/views/mdm/product/helper/searchList.ts
Normal file
@@ -0,0 +1,217 @@
|
||||
const searchList = [
|
||||
{
|
||||
"yunzhupaasKey":"input",
|
||||
"useScan":false,
|
||||
"suffixIcon":"",
|
||||
"fullNameI18nCode":[
|
||||
""
|
||||
],
|
||||
"showCount":false,
|
||||
"__config__":{
|
||||
"formId":"formItem388306",
|
||||
"yunzhupaasKey":"input",
|
||||
"visibility":[
|
||||
"pc",
|
||||
"app"
|
||||
],
|
||||
"noShow":false,
|
||||
"tipLabel":"",
|
||||
"tableFixed":"none",
|
||||
"dragDisabled":false,
|
||||
"className":[],
|
||||
"label":"商品名称",
|
||||
"trigger":"blur",
|
||||
"showLabel":true,
|
||||
"required":true,
|
||||
"tableName":"mdm_product",
|
||||
"renderKey":1777015778372,
|
||||
"layout":"colFormItem",
|
||||
"tagIcon":"icon-ym icon-ym-generator-input",
|
||||
"tag":"YunzhupaasInput",
|
||||
"regList":[],
|
||||
"tableAlign":"left",
|
||||
"span":12
|
||||
},
|
||||
"readonly":false,
|
||||
"prop":"product_name",
|
||||
"__vModel__":"product_name",
|
||||
"searchMultiple":false,
|
||||
"disabled":false,
|
||||
"id":"product_name",
|
||||
"placeholder":"请输入",
|
||||
"addonBefore":"",
|
||||
"on":{
|
||||
"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}",
|
||||
"blur":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"
|
||||
},
|
||||
"clearable":true,
|
||||
"searchType":2,
|
||||
"maxlength":null,
|
||||
"fullName":"商品名称",
|
||||
"label":"商品名称",
|
||||
"addonAfter":"",
|
||||
"maskConfig":{
|
||||
"prefixType":1,
|
||||
"useUnrealMask":false,
|
||||
"maskType":1,
|
||||
"unrealMaskLength":1,
|
||||
"prefixLimit":0,
|
||||
"suffixLimit":0,
|
||||
"filler":"*",
|
||||
"prefixSpecifyChar":"",
|
||||
"suffixType":1,
|
||||
"ignoreChar":"",
|
||||
"suffixSpecifyChar":""
|
||||
},
|
||||
"isKeyword":false,
|
||||
"useMask":false,
|
||||
"showPassword":false,
|
||||
"style":{
|
||||
"width":"100%"
|
||||
},
|
||||
"prefixIcon":"",
|
||||
"labelI18nCode":""
|
||||
},
|
||||
{
|
||||
"yunzhupaasKey":"cascader",
|
||||
"filterable":true,
|
||||
"clearable":true,
|
||||
"searchType":1,
|
||||
"multiple":false,
|
||||
"fullName":"商品分类",
|
||||
"fullNameI18nCode":[
|
||||
""
|
||||
],
|
||||
"label":"商品分类",
|
||||
"props":{
|
||||
"children":"children",
|
||||
"label":"fullName",
|
||||
"value":"id"
|
||||
},
|
||||
"__config__":{
|
||||
"yunzhupaasKey":"cascader",
|
||||
"defaultValue":[],
|
||||
"dragDisabled":false,
|
||||
"className":[],
|
||||
"propsUrl":"",
|
||||
"templateJson":[],
|
||||
"showLabel":true,
|
||||
"required":true,
|
||||
"tableName":"mdm_product",
|
||||
"renderKey":1777016020981,
|
||||
"tagIcon":"icon-ym icon-ym-generator-cascader",
|
||||
"tag":"YunzhupaasCascader",
|
||||
"formId":"formItema7e5eb",
|
||||
"visibility":[
|
||||
"pc",
|
||||
"app"
|
||||
],
|
||||
"noShow":false,
|
||||
"dataType":"dictionary",
|
||||
"dictionaryType":"productCategory",
|
||||
"tipLabel":"",
|
||||
"tableFixed":"none",
|
||||
"label":"商品分类",
|
||||
"trigger":"change",
|
||||
"layout":"colFormItem",
|
||||
"useCache":true,
|
||||
"propsName":"",
|
||||
"regList":[],
|
||||
"tableAlign":"left",
|
||||
"span":12
|
||||
},
|
||||
"prop":"product_category",
|
||||
"options":[
|
||||
{
|
||||
"enCode":"10.10",
|
||||
"children":[
|
||||
{
|
||||
"enCode":"10",
|
||||
"children":null,
|
||||
"hasChildren":false,
|
||||
"fullName":"核心发电单元",
|
||||
"id":"817364726802547461",
|
||||
"parentId":"817364810650878725"
|
||||
}
|
||||
],
|
||||
"hasChildren":true,
|
||||
"fullName":"光伏组件",
|
||||
"id":"817364810650878725",
|
||||
"parentId":"0"
|
||||
},
|
||||
{
|
||||
"enCode":"20",
|
||||
"children":[
|
||||
{
|
||||
"enCode":"20.10",
|
||||
"children":null,
|
||||
"hasChildren":false,
|
||||
"fullName":"逆变器",
|
||||
"id":"817364973343736581",
|
||||
"parentId":"817364893576463109"
|
||||
},
|
||||
{
|
||||
"enCode":"20.20",
|
||||
"children":null,
|
||||
"hasChildren":false,
|
||||
"fullName":"光伏控制器",
|
||||
"id":"817365033645245189",
|
||||
"parentId":"817364893576463109"
|
||||
}
|
||||
],
|
||||
"hasChildren":true,
|
||||
"fullName":"电力转换与控制系统",
|
||||
"id":"817364893576463109",
|
||||
"parentId":"0"
|
||||
},
|
||||
{
|
||||
"enCode":"30",
|
||||
"children":[
|
||||
{
|
||||
"enCode":"30.10",
|
||||
"children":null,
|
||||
"hasChildren":false,
|
||||
"fullName":"直流侧设备",
|
||||
"id":"817365215380243205",
|
||||
"parentId":"817365130466558725"
|
||||
},
|
||||
{
|
||||
"enCode":"30.20",
|
||||
"children":null,
|
||||
"hasChildren":false,
|
||||
"fullName":"交流侧设备",
|
||||
"id":"817365288625373957",
|
||||
"parentId":"817365130466558725"
|
||||
},
|
||||
{
|
||||
"enCode":"30.30",
|
||||
"children":null,
|
||||
"hasChildren":false,
|
||||
"fullName":"电缆及桥架",
|
||||
"id":"817365357449708293",
|
||||
"parentId":"817365130466558725"
|
||||
}
|
||||
],
|
||||
"hasChildren":true,
|
||||
"fullName":"电气配套与汇流设备",
|
||||
"id":"817365130466558725",
|
||||
"parentId":"0"
|
||||
}
|
||||
],
|
||||
"__vModel__":"product_category",
|
||||
"searchMultiple":false,
|
||||
"isKeyword":false,
|
||||
"style":{
|
||||
"width":"100%"
|
||||
},
|
||||
"disabled":false,
|
||||
"id":"product_category",
|
||||
"placeholder":"请选择",
|
||||
"labelI18nCode":"",
|
||||
"on":{
|
||||
"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}",
|
||||
"blur":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"
|
||||
}
|
||||
}
|
||||
]
|
||||
export default searchList
|
||||
1278
src/views/mdm/product/helper/superQueryJson.ts
Normal file
1278
src/views/mdm/product/helper/superQueryJson.ts
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user