Commit 832965a5 authored by Mac's avatar Mac

11

parent 486e10da
...@@ -9,7 +9,7 @@ export declare interface customerFieldlistType { ...@@ -9,7 +9,7 @@ export declare interface customerFieldlistType {
export declare interface customerFieldtabsType { export declare interface customerFieldtabsType {
Id: number Id: number
Name: string Name: string
disable?: boolean disable?: boolean | any
} }
/** 客户字段 新增的类型 */ /** 客户字段 新增的类型 */
export declare interface customerFieldaddMsgType { export declare interface customerFieldaddMsgType {
......
...@@ -13,7 +13,10 @@ ...@@ -13,7 +13,10 @@
interface msg { interface msg {
Enable: number Enable: number
} }
interface IdName {
Id:number,
Name:string
}
...@@ -87,6 +90,26 @@ ...@@ -87,6 +90,26 @@
data data
}) })
} }
//新增修改客户字段
static async setCustomerFiledInfo(data: {
Id:number,
Type:number,
Name:string,
Required:number,
DeptId:number,
WordNum:number,
InputType:string,
OptionsList:Array<IdName>,
Digits:number,
Enable:number,
[propName: string]: any
}): Promise<HttpResponse> {
return Axios('/QYCustomer/SetCustomerFiledInfo', {
method: 'post',
responseType: 'json',
data
})
}
} }
export default customerService export default customerService
This diff is collapsed.
...@@ -187,10 +187,16 @@ ...@@ -187,10 +187,16 @@
customerService.getCustomerFieldTypeEnumList({}).then((res) => { customerService.getCustomerFieldTypeEnumList({}).then((res) => {
if (res.data.Code == 1) { if (res.data.Code == 1) {
tabsList.value = res.data.Data tabsList.value = res.data.Data
tabsList.value.forEach(x => {
x.disable = false
})
} }
}) })
} }
const goedit = (item: customerFieldlistType) => {
addMsg.value = JSON.parse(JSON.stringify(item))
Isadd.value = true;
}
const goaddfield = () => { const goaddfield = () => {
Isadd.value = true; Isadd.value = true;
addMsg.value = { addMsg.value = {
...@@ -255,7 +261,8 @@ ...@@ -255,7 +261,8 @@
deptl, deptl,
getFieldInputType, getFieldInputType,
checkboxList, checkboxList,
tabsList tabsList,
goedit
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment