|
@@ -197,6 +197,7 @@
|
|
|
title="跟进记录"
|
|
|
width="500"
|
|
|
append-to-body
|
|
|
+ destroy-on-close
|
|
|
>
|
|
|
<div style="padding-left: 40px; margin-bottom: 20px">
|
|
|
<el-button size="mini" @click="openModal('edit')">
|
|
@@ -214,7 +215,9 @@
|
|
|
<div>
|
|
|
跟进人:{{ activity.handleUserName }}
|
|
|
<span
|
|
|
- >({{ dictDataEcho(activity.status, afterSalesStatus) }})</span
|
|
|
+ >({{
|
|
|
+ dictValueLabel(activity.status, afterSalesStatus)
|
|
|
+ }})</span
|
|
|
>
|
|
|
</div>
|
|
|
<div style="margin-top: 5px">跟进记录: {{ activity.remark }}</div>
|
|
@@ -300,16 +303,18 @@ let rules = ref({
|
|
|
],
|
|
|
});
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
-const selectConfig = reactive([
|
|
|
+const afterSalesType = ref([]);
|
|
|
+const afterSalesStatus = ref([]);
|
|
|
+const selectConfig = computed(() => [
|
|
|
{
|
|
|
label: "售后类型",
|
|
|
prop: "type",
|
|
|
- data: [],
|
|
|
+ data: afterSalesType.value,
|
|
|
},
|
|
|
{
|
|
|
label: "售后状态",
|
|
|
prop: "status",
|
|
|
- data: [],
|
|
|
+ data: afterSalesStatus.value,
|
|
|
},
|
|
|
]);
|
|
|
const config = computed(() => {
|
|
@@ -320,7 +325,7 @@ const config = computed(() => {
|
|
|
prop: "type",
|
|
|
},
|
|
|
render(type) {
|
|
|
- return proxy.dictDataEcho(type, afterSalesType.value);
|
|
|
+ return proxy.dictValueLabel(type, afterSalesType.value);
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -353,8 +358,8 @@ const config = computed(() => {
|
|
|
label: "售后状态",
|
|
|
prop: "status",
|
|
|
},
|
|
|
- render(type) {
|
|
|
- return proxy.dictDataEcho(type, afterSalesStatus.value);
|
|
|
+ render(status) {
|
|
|
+ return proxy.dictValueLabel(status, afterSalesStatus.value);
|
|
|
},
|
|
|
},
|
|
|
|
|
@@ -475,6 +480,7 @@ const configData = [
|
|
|
label: "售后状态",
|
|
|
required: true,
|
|
|
itemWidth: 51,
|
|
|
+ data: [],
|
|
|
},
|
|
|
{
|
|
|
type: "select",
|
|
@@ -740,29 +746,19 @@ const handleRemove = (index) => {
|
|
|
type: "success",
|
|
|
});
|
|
|
};
|
|
|
-const afterSalesType = ref([]);
|
|
|
-const afterSalesStatus = ref([]);
|
|
|
|
|
|
const getDict = () => {
|
|
|
proxy.getDict(["after_sale_type", "after_sale_status"]).then((res) => {
|
|
|
- afterSalesType.value = res["after_sale_type"];
|
|
|
- configData[0][0].data = afterSalesType.value.map((x) => ({
|
|
|
- label: x.dictValue,
|
|
|
- value: x.dictKey,
|
|
|
- }));
|
|
|
- selectConfig[0].data = afterSalesType.value.map((x) => ({
|
|
|
- label: x.dictValue,
|
|
|
- value: x.dictKey,
|
|
|
- }));
|
|
|
- afterSalesStatus.value = res["after_sale_status"];
|
|
|
- configData[1][0].data = afterSalesStatus.value.map((x) => ({
|
|
|
+ afterSalesType.value = res["after_sale_type"].map((x) => ({
|
|
|
label: x.dictValue,
|
|
|
value: x.dictKey,
|
|
|
}));
|
|
|
- selectConfig[1].data = afterSalesStatus.value.map((x) => ({
|
|
|
+ configData[0][1].data = afterSalesType.value;
|
|
|
+ afterSalesStatus.value = res["after_sale_status"].map((x) => ({
|
|
|
label: x.dictValue,
|
|
|
value: x.dictKey,
|
|
|
}));
|
|
|
+ configData[1][0].data = afterSalesStatus.value;
|
|
|
});
|
|
|
};
|
|
|
getCityData("0");
|