add
This commit is contained in:
parent
1b0c731cdd
commit
d29ed64af5
@ -2,8 +2,8 @@
|
||||
<div class="detail-popup">
|
||||
<popup ref="popupRef" title="市场经营--客户回访列表" :async="true" width="80%" @confirm="handleSubmit" @close="handleClose">
|
||||
<el-descriptions :column="2" border>
|
||||
<el-descriptions-item label="合同id" label-align="left" align="left" label-class-name="my-label"> {{
|
||||
formData.contract_id }}</el-descriptions-item>
|
||||
<el-descriptions-item label="合同名称" label-align="left" align="left" label-class-name="my-label"> {{
|
||||
formData.contract_name }}</el-descriptions-item>
|
||||
<el-descriptions-item label="回访编号" label-align="left" align="left" label-class-name="my-label"> {{
|
||||
formData.code }}</el-descriptions-item>
|
||||
<el-descriptions-item label="回访方式" label-align="left" align="left" label-class-name="my-label"> {{
|
||||
|
@ -5,8 +5,9 @@
|
||||
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="合同id" prop="contract_id">
|
||||
<el-input v-model="formData.contract_id" clearable placeholder="请输入合同id" />
|
||||
<el-form-item label="合同名称" prop="contract_id">
|
||||
<el-input v-model="formData.contract_name" clearable placeholder="点击选择合同" readonly
|
||||
@click="showDialog1 = true" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
@ -46,6 +47,11 @@
|
||||
<formTable :formData="formData.evaluate" :config="tableConfig1" />
|
||||
|
||||
</el-form>
|
||||
|
||||
<el-dialog v-model="showDialog1" title="选择合同" width="70%">
|
||||
<dialogTable :config="marketing_contract" @customEvent="customEvent1">
|
||||
</dialogTable>
|
||||
</el-dialog>
|
||||
</popup>
|
||||
</div>
|
||||
</template>
|
||||
@ -56,6 +62,8 @@ import Popup from '@/components/popup/index.vue'
|
||||
import { apiMarketingCustomReturnVisitAdd, apiMarketingCustomReturnVisitEdit, apiMarketingCustomReturnVisitDetail, apimarketing_custom_return_visit_surveyLists, apimarketing_custom_return_visit_surveytDelete, apimarketing_custom_return_visit_evaluateLists, apimarketing_custom_return_visit_evaluateDelete } from '@/api/marketing_custom_return_visit'
|
||||
import { marketing_custom_return_visit_template } from "@/components/dialogTable/dialogTableConfig"
|
||||
import type { PropType } from 'vue'
|
||||
import { marketing_contract } from "@/components/dialogTable/dialogTableConfig";
|
||||
|
||||
|
||||
defineProps({
|
||||
dictData: {
|
||||
@ -68,6 +76,7 @@ const formRef = shallowRef<FormInstance>()
|
||||
const popupRef = shallowRef<InstanceType<typeof Popup>>()
|
||||
const mode = ref('add')
|
||||
const showDialog = ref(false)
|
||||
const showDialog1 = ref(false)
|
||||
|
||||
|
||||
// 弹窗标题
|
||||
@ -79,6 +88,7 @@ const popupTitle = computed(() => {
|
||||
const formData = reactive({
|
||||
id: '',
|
||||
contract_id: '',
|
||||
contract_name: '',
|
||||
code: '',
|
||||
return_visit_type: '',
|
||||
custom_return_visit_template_id: '',
|
||||
@ -148,13 +158,18 @@ const customEvent = (e: any) => {
|
||||
showDialog.value = false
|
||||
}
|
||||
|
||||
const customEvent1 = (e: any) => {
|
||||
formData.contract_id = e.id
|
||||
formData.contract_name = e.contract_name
|
||||
showDialog1.value = false
|
||||
}
|
||||
|
||||
|
||||
// 表单验证
|
||||
const formRules = reactive<any>({
|
||||
contract_id: [{
|
||||
required: true,
|
||||
message: '请输入合同id',
|
||||
message: '请选择合同',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
code: [{
|
||||
|
@ -2,9 +2,6 @@
|
||||
<div>
|
||||
<el-card class="!border-none mb-4" shadow="never">
|
||||
<el-form class="mb-[-16px]" :model="queryParams" inline>
|
||||
<el-form-item label="合同id" prop="contract_id">
|
||||
<el-input class="w-[280px]" v-model="queryParams.contract_id" clearable placeholder="请输入合同id" />
|
||||
</el-form-item>
|
||||
<el-form-item label="回访编号" prop="code">
|
||||
<el-input class="w-[280px]" v-model="queryParams.code" clearable placeholder="请输入回访编号" />
|
||||
</el-form-item>
|
||||
@ -23,7 +20,9 @@
|
||||
<el-input class="w-[280px]" v-model="queryParams.create_user" clearable placeholder="请输入回访人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="回访日期" prop="create_time">
|
||||
<el-input class="w-[280px]" v-model="queryParams.create_time" clearable placeholder="请输入回访日期" />
|
||||
<el-date-picker class="flex-1 !flex" v-model="queryParams.create_time" clearable type="date"
|
||||
value-format="YYYY-MM-DD" placeholder="选择回访日期">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="resetPage">查询</el-button>
|
||||
|
@ -43,12 +43,9 @@
|
||||
<el-descriptions-item label="合同主要内容" label-align="left" align="left" label-class-name="my-label"> {{
|
||||
formData.content }}
|
||||
</el-descriptions-item>
|
||||
|
||||
|
||||
<el-descriptions-item label="签订部门" label-align="left" align="left" label-class-name="my-label"> {{
|
||||
formData.signed_dept_name }}
|
||||
</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item label="签订负责人" label-align="left" align="left" label-class-name="my-label"> {{
|
||||
formData.signed_head_name }}
|
||||
</el-descriptions-item>
|
||||
|
Loading…
x
Reference in New Issue
Block a user