diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue index 0d5e315..199dc55 100644 --- a/src/views/customer/advice/adviceEdit.vue +++ b/src/views/customer/advice/adviceEdit.vue @@ -52,7 +52,7 @@ handleMessage: '', // 处置意见 adviceTime: '', // 投诉时间 }) -const companyInfo: SimpleCompany = reactive({ +const companyInfo: Ref = ref({ customerName: '', // 公司名称 customerNo: '', // 客户编号 id: '', // 客户id @@ -99,6 +99,7 @@ loading.value = true getAdviceDetail({ id: infoId.value }).then((res) => { dataForm.value = res.data + companyInfo.value = res.data loading.value = false }) } @@ -123,13 +124,13 @@ // 选中客户 const handleCompanySelect = (select: Record) => { const item = select as SimpleCompany - companyInfo.customerName = item.customerName - companyInfo.customerNo = item.customerNo - companyInfo.id = item.id - companyInfo.gradeName = item.gradeName - companyInfo.companySizeName = item.companySizeName - companyInfo.businessSizeName = item.businessSizeName - companyInfo.evaluationName = item.evaluationName + companyInfo.value.customerName = item.customerName + companyInfo.value.customerNo = item.customerNo + companyInfo.value.id = item.id + companyInfo.value.gradeName = item.gradeName + companyInfo.value.companySizeName = item.companySizeName + companyInfo.value.businessSizeName = item.businessSizeName + companyInfo.value.evaluationName = item.evaluationName dataForm.value.customerNo = item.customerNo dataForm.value.customerId = item.id @@ -145,13 +146,13 @@ if (val && val.length) { const getValue = val[0] console.log(getValue) - companyInfo.customerName = getValue.customerName - companyInfo.customerNo = getValue.customerNo - companyInfo.id = getValue.id - companyInfo.gradeName = getValue.gradeName as string - companyInfo.companySizeName = getValue.companySizeName as string - companyInfo.businessSizeName = getValue.businessSizeName as string - companyInfo.evaluationName = getValue.evaluationName as string + companyInfo.value.customerName = getValue.customerName + companyInfo.value.customerNo = getValue.customerNo + companyInfo.value.id = getValue.id + companyInfo.value.gradeName = getValue.gradeName as string + companyInfo.value.companySizeName = getValue.companySizeName as string + companyInfo.value.businessSizeName = getValue.businessSizeName as string + companyInfo.value.evaluationName = getValue.evaluationName as string dataForm.value.customerNo = getValue.customerNo // 委托方代码 dataForm.value.customerId = getValue.id // 委托方id dataForm.value.customerName = getValue.customerName // 委托方名称 diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue index 0d5e315..199dc55 100644 --- a/src/views/customer/advice/adviceEdit.vue +++ b/src/views/customer/advice/adviceEdit.vue @@ -52,7 +52,7 @@ handleMessage: '', // 处置意见 adviceTime: '', // 投诉时间 }) -const companyInfo: SimpleCompany = reactive({ +const companyInfo: Ref = ref({ customerName: '', // 公司名称 customerNo: '', // 客户编号 id: '', // 客户id @@ -99,6 +99,7 @@ loading.value = true getAdviceDetail({ id: infoId.value }).then((res) => { dataForm.value = res.data + companyInfo.value = res.data loading.value = false }) } @@ -123,13 +124,13 @@ // 选中客户 const handleCompanySelect = (select: Record) => { const item = select as SimpleCompany - companyInfo.customerName = item.customerName - companyInfo.customerNo = item.customerNo - companyInfo.id = item.id - companyInfo.gradeName = item.gradeName - companyInfo.companySizeName = item.companySizeName - companyInfo.businessSizeName = item.businessSizeName - companyInfo.evaluationName = item.evaluationName + companyInfo.value.customerName = item.customerName + companyInfo.value.customerNo = item.customerNo + companyInfo.value.id = item.id + companyInfo.value.gradeName = item.gradeName + companyInfo.value.companySizeName = item.companySizeName + companyInfo.value.businessSizeName = item.businessSizeName + companyInfo.value.evaluationName = item.evaluationName dataForm.value.customerNo = item.customerNo dataForm.value.customerId = item.id @@ -145,13 +146,13 @@ if (val && val.length) { const getValue = val[0] console.log(getValue) - companyInfo.customerName = getValue.customerName - companyInfo.customerNo = getValue.customerNo - companyInfo.id = getValue.id - companyInfo.gradeName = getValue.gradeName as string - companyInfo.companySizeName = getValue.companySizeName as string - companyInfo.businessSizeName = getValue.businessSizeName as string - companyInfo.evaluationName = getValue.evaluationName as string + companyInfo.value.customerName = getValue.customerName + companyInfo.value.customerNo = getValue.customerNo + companyInfo.value.id = getValue.id + companyInfo.value.gradeName = getValue.gradeName as string + companyInfo.value.companySizeName = getValue.companySizeName as string + companyInfo.value.businessSizeName = getValue.businessSizeName as string + companyInfo.value.evaluationName = getValue.evaluationName as string dataForm.value.customerNo = getValue.customerNo // 委托方代码 dataForm.value.customerId = getValue.id // 委托方id dataForm.value.customerName = getValue.customerName // 委托方名称 diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue index b6f79f9..d0fabb0 100644 --- a/src/views/customer/advice/adviceList.vue +++ b/src/views/customer/advice/adviceList.vue @@ -30,6 +30,7 @@ { text: '投诉/建议内容', value: 'content', align: 'center' }, { text: '投诉人', value: 'advicePerson', align: 'center', width: '90' }, { text: '联系方式', value: 'personPhone', align: 'center', width: '120' }, + { text: '投诉时间', value: 'adviceTime', align: 'center', width: '180' }, ]) // 表格数据 const list = ref([]) @@ -266,8 +267,15 @@ :data="list" :total="total" :columns="columns" :query="listQuery" :list-loading="loadingTable" is-showmulti-select @change="changePage" @multi-select="handleSelectionChange" > +