|
|
@ -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) { |
|
|
|