Commit 832965a5 authored by Mac's avatar Mac

11

parent 486e10da
......@@ -9,7 +9,7 @@ export declare interface customerFieldlistType {
export declare interface customerFieldtabsType {
Id: number
Name: string
disable?: boolean
disable?: boolean | any
}
/** 客户字段 新增的类型 */
export declare interface customerFieldaddMsgType {
......
......@@ -13,7 +13,10 @@
interface msg {
Enable: number
}
interface IdName {
Id:number,
Name:string
}
......@@ -87,6 +90,26 @@
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
This diff is collapsed.
......@@ -187,10 +187,16 @@
customerService.getCustomerFieldTypeEnumList({}).then((res) => {
if (res.data.Code == 1) {
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 = () => {
Isadd.value = true;
addMsg.value = {
......@@ -255,7 +261,8 @@
deptl,
getFieldInputType,
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