sha
This commit is contained in:
@@ -47,3 +47,7 @@ export const updateProduceStatus = (data) => {
|
|||||||
export const updateProduceSort = (data) => {
|
export const updateProduceSort = (data) => {
|
||||||
return request.post({ url: '/admin-api/crm/sign-prodcut/adjust/sort', data: data })
|
return request.post({ url: '/admin-api/crm/sign-prodcut/adjust/sort', data: data })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const getSignProfit = (params) => {
|
||||||
|
return request.get({ url: '/admin-api/crm/sign/profit', params })
|
||||||
|
}
|
||||||
|
|||||||
@@ -119,6 +119,11 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<template v-if="appStore.getAppInfo?.instanceType == 1">
|
<template v-if="appStore.getAppInfo?.instanceType == 1">
|
||||||
|
<el-col :span="8" :offset="0" v-if="form.signClass">
|
||||||
|
<el-form-item label="利润">
|
||||||
|
<div style="color: blue; font-weight: bold; font-size: 16px">{{ profitNum }}</div>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
<el-col :span="8" :offset="0">
|
<el-col :span="8" :offset="0">
|
||||||
<el-form-item label="接待人" prop="receiver">
|
<el-form-item label="接待人" prop="receiver">
|
||||||
<el-select v-model="form.receiver" placeholder="选择接待人" clearable filterable>
|
<el-select v-model="form.receiver" placeholder="选择接待人" clearable filterable>
|
||||||
@@ -336,7 +341,7 @@
|
|||||||
|
|
||||||
<script setup name="DialogSuccess">
|
<script setup name="DialogSuccess">
|
||||||
import * as ClueApi from '@/api/clue'
|
import * as ClueApi from '@/api/clue'
|
||||||
import { createSign } from '@/api/clue/sign'
|
import { createSign, getSignProfit } from '@/api/clue/sign'
|
||||||
import { getDiyFieldList } from '@/api/clue/orderField'
|
import { getDiyFieldList } from '@/api/clue/orderField'
|
||||||
import { getPlaceList } from '@/api/school/place'
|
import { getPlaceList } from '@/api/school/place'
|
||||||
import { getClassTypeList } from '@/api/school/class'
|
import { getClassTypeList } from '@/api/school/class'
|
||||||
@@ -594,6 +599,19 @@ function signPriceChange() {
|
|||||||
if (form.value.isPayoff) {
|
if (form.value.isPayoff) {
|
||||||
form.value.payAmount = form.value.signPrice
|
form.value.payAmount = form.value.signPrice
|
||||||
}
|
}
|
||||||
|
calcSignProfit()
|
||||||
|
}
|
||||||
|
|
||||||
|
const profitNum = ref(0)
|
||||||
|
function calcSignProfit() {
|
||||||
|
if (form.value.signClass && appStore.getAppInfo?.instanceType == 1) {
|
||||||
|
// 计算员工利润
|
||||||
|
getSignProfit({ signClass: form.value.signClass, signPrice: form.value.signPrice }).then(
|
||||||
|
(data) => {
|
||||||
|
profitNum.value = data
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleRemove(type, index) {
|
function handleRemove(type, index) {
|
||||||
|
|||||||
@@ -748,7 +748,6 @@ onMounted(() => {
|
|||||||
left: 20px;
|
left: 20px;
|
||||||
top: 20px;
|
top: 20px;
|
||||||
width: 350px;
|
width: 350px;
|
||||||
display: flex;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.map-tip {
|
.map-tip {
|
||||||
|
|||||||
Reference in New Issue
Block a user