Commit 98c19049 authored by Mac's avatar Mac

1

parent b3a117d9
......@@ -2,80 +2,78 @@
* 所有跟用户相关的接口(TODO:DEMO USER)
*/
import { HttpResponse } from '@/@types'
import Axios from './axios'
/**
* @interface loginParams -登录参数
* @property {string} grant_type -授权类型
* @property {string} email -邮箱
* @property {string} password -用户密码
*/
interface msg {
Enable: number
}
interface IdName {
Id:number,
Name:string
}
/**
* @example Axios.get(`https://xxx.com}`)
* @todo Get the exchange rate of the current currency
*/
class customerService {
// 获取客户字段列表
static async getCustomerFiledList(data: msg): Promise<HttpResponse> {
return Axios('/QYCustomer/GetCustomerFiledList', {
method: 'post',
responseType: 'json',
data
})
}
// 获取客户标签
static async getLabelList(data: any): Promise<HttpResponse> {
return Axios('/QYWeChat/GetWeChatLableList', {
method: 'post',
responseType: 'json',
data
})
}
// 客户标签移动
static async setCustomerFiledState(data: { Type: number; SortFiledId: number; FiledId: number }): Promise<HttpResponse> {
return Axios('/QYCustomer/SetCustomerFiledState', {
method: 'post',
responseType: 'json',
data
})
}
// 获取客户线索规则列表
static async getCustomerClueRuleList(data: any): Promise<HttpResponse> {
return Axios('/QYCustomer/GetCustomerClueRuleList', {
method: 'post',
responseType: 'json',
data
})
}
// 获取客户线索规则详情
static async getCustomerClueRuleDetail(data: any): Promise<HttpResponse> {
return Axios('/QYCustomer/GetCustomerClueRuleInfo', {
method: 'post',
responseType: 'json',
data
})
}
// 获取客户阶段列表
static async getCustomerStageList(data: any): Promise<HttpResponse> {
return Axios('/QYCustomer/GetCustomerStageList', {
method: 'post',
responseType: 'json',
data
})
}
// 获取客户子段类型枚举
static async getCustomerFieldTypeEnumList(data: any): Promise<HttpResponse> {
import { HttpResponse } from '@/@types'
import Axios from './axios'
/**
* @interface loginParams -登录参数
* @property {string} grant_type -授权类型
* @property {string} email -邮箱
* @property {string} password -用户密码
*/
interface msg {
Enable: number
}
interface IdName {
Id: number
Name: string
}
/**
* @example Axios.get(`https://xxx.com}`)
* @todo Get the exchange rate of the current currency
*/
class customerService {
// 获取客户字段列表
static async getCustomerFiledList(data: msg): Promise<HttpResponse> {
return Axios('/QYCustomer/GetCustomerFiledList', {
method: 'post',
responseType: 'json',
data
})
}
// 获取客户标签
static async getLabelList(data: any): Promise<HttpResponse> {
return Axios('/QYWeChat/GetWeChatLableList', {
method: 'post',
responseType: 'json',
data
})
}
// 客户标签移动
static async setCustomerFiledState(data: { Type: number; SortFiledId: number; FiledId: number }): Promise<HttpResponse> {
return Axios('/QYCustomer/SetCustomerFiledState', {
method: 'post',
responseType: 'json',
data
})
}
// 获取客户线索规则列表
static async getCustomerClueRuleList(data: any): Promise<HttpResponse> {
return Axios('/QYCustomer/GetCustomerClueRuleList', {
method: 'post',
responseType: 'json',
data
})
}
// 获取客户线索规则详情
static async getCustomerClueRuleDetail(data: any): Promise<HttpResponse> {
return Axios('/QYCustomer/GetCustomerClueRuleInfo', {
method: 'post',
responseType: 'json',
data
})
}
// 获取客户阶段列表
static async getCustomerStageList(data: any): Promise<HttpResponse> {
return Axios('/QYCustomer/GetCustomerStageList', {
method: 'post',
responseType: 'json',
data
})
}
// 获取客户子段类型枚举
static async getCustomerFieldTypeEnumList(data: any): Promise<HttpResponse> {
return Axios('/QYCustomer/GetCustomerFieldTypeEnumList', {
method: 'post',
responseType: 'json',
......@@ -99,48 +97,53 @@
})
}
//新增修改客户字段
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> {
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
})
}
//获取客户阶段流程列表
static async getCustomerStageFlowList(data: msg): Promise<HttpResponse> {
return Axios('/QYCustomer/GetCustomerStageFlowList', {
method: 'post',
responseType: 'json',
data
})
}
//设置客户阶段流程状态
static async setCustomerStageFlowState(data: {
Type:number,
FlowId:number
}): Promise<HttpResponse> {
return Axios('/QYCustomer/SetCustomerStageFlowState', {
method: 'post',
responseType: 'json',
data
})
}
}
//获取客户阶段流程列表
static async getCustomerStageFlowList(data: msg): Promise<HttpResponse> {
return Axios('/QYCustomer/GetCustomerStageFlowList', {
method: 'post',
responseType: 'json',
data
})
}
//设置客户阶段流程状态
static async setCustomerStageFlowState(data: { Type: number; FlowId: number }): Promise<HttpResponse> {
return Axios('/QYCustomer/SetCustomerStageFlowState', {
method: 'post',
responseType: 'json',
data
})
}
//验证该阶段是否可以删除
static async validataCustomerStageDel(data: { StageId: number }): Promise<HttpResponse> {
return Axios('/QYCustomer/ValidataCustomerStageDel', {
method: 'post',
responseType: 'json',
data
})
}
// 验证阶段输单/无效的 原因选项是否可以删除
static async validataCustomerCauseDel(data: { CauseId: number; Type: number }): Promise<HttpResponse> {
return Axios('/QYCustomer/ValidataCustomerCauseDel', {
method: 'post',
responseType: 'json',
data
})
}
// 验证阶段输单/无效的 原因选项是否可以删除
static async setCustomerStageInfo(data: { Id: number; Type: number ,Name:string,Sort:number,OptionsList:Array<IdName>,IsDefault:number}): Promise<HttpResponse> {
return Axios('/QYCustomer/SetCustomerStageInfo', {
method: 'post',
responseType: 'json',
data
})
}
}
export default customerService
\ No newline at end of file
export default customerService
......@@ -129,8 +129,6 @@
import { useQuasar } from 'quasar'
import customerService from '@/api/customer'
// import { customerFieldtabsType } from '@/@types/customer'
export default defineComponent({
components: { draggable, selectTree },
props: {
......@@ -158,10 +156,8 @@
let departmentType = ref('1')
let tab = ref(1)
let loading = ref(false)
let tabsList = ref < Array < any >> ([])
tabsList.value = props.passtabsList
let checkboxList = ref < Array < any >> ([])
checkboxList.value = props.passcheckboxList
let tabsList = ref < Array < any >> (props.passtabsList)
let checkboxList = ref < Array < any >> (props.passcheckboxList)
let decimalslist = ref([{ Id: 0 }, { Id: 1 }, { Id: 2 }, { Id: 3 }, { Id: 4 }, { Id: 5 }, { Id: 6 }, { Id: 7 }, { Id: 8 }, { Id: 9 }, { Id: 10 }, { Id: 11 },])
let returnString = ref< Array < any >>([])
if (addMsg.value.Id > 0) {
......@@ -260,7 +256,6 @@
ctx.emit('getcancel', 2)
} else {//如果移动失败 重新获取列表
loading.value = false
}
})
}
......@@ -288,7 +283,6 @@
Enable: 1,
};
}
return {
getcancel,//关闭弹窗
savewb,//保存数据
......
......@@ -2,11 +2,11 @@
<div class="customerPhase page-body">
<div style="display: flex;align-items: center;justify-content: space-between;">
<div style="display: flex;align-items: center;">
<q-btn v-if="state.data.length<20" color="accent" style="margin-bottom: 10px;" class="q-mr-md" label="创建阶段流程" @click="goestablish()" size="sm"></q-btn>
<q-btn v-if="state.data.length<20" color="accent" style="margin-bottom: 10px;" class="q-mr-md" label="创建阶段流程" @click="jumpPage('/editor/createStageRange')" size="sm"></q-btn>
<span style="margin-left: 20px;color: rgb(133, 133, 152);">已添加:{{state.data.length}}/20</span>
</div>
<q-btn color="white" text-color="black" style="margin-bottom: 10px;" class="q-mr-md" label="阶段管理" size="sm"
@click="stageManagement()"></q-btn>
@click="jumpPage('/editor/manageStageRange')"></q-btn>
</div>
<table class="payTable">
<thead>
......@@ -25,7 +25,7 @@
<tr v-for="(item,index) in state.data" :key="index">
<td><span>{{item.FlowName}}</span></td>
<td>
<span v-if='item.DeptEmpList && item.DeptEmpList.length>0' v-for="(x,y) in item.DeptEmpList" :key='y'>
<!-- <span v-if='item.DeptEmpList && item.DeptEmpList.length>0' v-for="(x,y) in item.DeptEmpList" :key='y'>
<q-chip color="blue-1" text-color="blue" icon="folder" size="sm" v-if="x.Type==1">
{{x.Name}}
</q-chip>
......@@ -33,7 +33,7 @@
{{x.Name}}
</q-chip>
</span>
<span v-else>未适配其他规则的阶段</span>
<span v-else>未适配其他规则的阶段</span> -->
</td>
<td>
......@@ -63,9 +63,10 @@
</div>
</template>
<script lang="ts">
import { defineComponent, ref, onMounted,reactive } from 'vue'
import { defineComponent, onMounted,reactive } from 'vue'
import customerService from '@/api/customer'
import { useQuasar } from 'quasar'
import router from '@/router/index'
export default defineComponent({
setup(){
......@@ -115,10 +116,18 @@
})
getList()
} else {//如果移动失败 重新获取列表
}
})
}
const jumpPage=(url:string)=>{
router.push({
path:url,
query:{
}
})
}
onMounted(() => {
getList()
})
......@@ -126,7 +135,8 @@
getList,
state,
setFiledState,
godelete
godelete,
jumpPage
}
}
})
......
This diff is collapsed.
This diff is collapsed.
......@@ -39,6 +39,18 @@ const routes: RouteRecordRaw[] = [
path: '/editor/editRule',
component: () => import('@/pages/editor/editRule.vue')
},
// 编辑阶段规则
{
path: '/editor/manageStageRange',
component: () => import('@/pages/editor/manageStageRange.vue')
},
// 创建阶段
{
path: '/editor/createStageRange',
component: () => import('@/pages/editor/createStageRange.vue')
},
{
path: '/auth/login',
component: () => import('@/pages/auth/login.vue')
......
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