diff --git a/src/api/custom_service.ts b/src/api/custom_service.ts index 1d967e9..31f8e06 100644 --- a/src/api/custom_service.ts +++ b/src/api/custom_service.ts @@ -2,25 +2,21 @@ import request from '@/utils/request' // 客户售后列表 export function apiCustomServiceLists(params: any) { - return request.get({ url: '/custom_service.custom_service/lists', params }) + return request.get({ url: '/custom.custom_service/lists', params }) } // 添加客户售后 export function apiCustomServiceAdd(params: any) { - return request.post({ url: '/custom_service.custom_service/add', params }) + return request.post({ url: '/custom.custom_service/add', params }) } -// 编辑客户售后 -export function apiCustomServiceEdit(params: any) { - return request.post({ url: '/custom_service.custom_service/edit', params }) +// 处理客户售后 +export function apiCustomServiceSolve(params: any) { + return request.post({ url: '/custom.custom_service/solve', params }) } -// 删除客户售后 -export function apiCustomServiceDelete(params: any) { - return request.post({ url: '/custom_service.custom_service/delete', params }) -} // 客户售后详情 export function apiCustomServiceDetail(params: any) { - return request.get({ url: '/custom_service.custom_service/detail', params }) + return request.get({ url: '/custom.custom_service/detail', params }) } \ No newline at end of file diff --git a/src/components/custom-dialog/index.vue b/src/components/custom-dialog/index.vue index 1dab949..13abb75 100644 --- a/src/components/custom-dialog/index.vue +++ b/src/components/custom-dialog/index.vue @@ -14,18 +14,26 @@
- + + + + - - - + + + + + + + +
diff --git a/src/views/AssetManagement/Asset Account/detail.vue b/src/views/AssetManagement/Asset Account/detail.vue new file mode 100644 index 0000000..2d9d7e8 --- /dev/null +++ b/src/views/AssetManagement/Asset Account/detail.vue @@ -0,0 +1,283 @@ + + + + + diff --git a/src/views/AssetManagement/Asset Account/edit.vue b/src/views/AssetManagement/Asset Account/edit.vue new file mode 100644 index 0000000..fc0fd47 --- /dev/null +++ b/src/views/AssetManagement/Asset Account/edit.vue @@ -0,0 +1,476 @@ + + + diff --git a/src/views/AssetManagement/Asset Account/index.vue b/src/views/AssetManagement/Asset Account/index.vue new file mode 100644 index 0000000..c2e327c --- /dev/null +++ b/src/views/AssetManagement/Asset Account/index.vue @@ -0,0 +1,188 @@ + + + + diff --git a/src/views/AssetManagement/Asset Repair/detail.vue b/src/views/AssetManagement/Asset Repair/detail.vue new file mode 100644 index 0000000..2d9d7e8 --- /dev/null +++ b/src/views/AssetManagement/Asset Repair/detail.vue @@ -0,0 +1,283 @@ + + + + + diff --git a/src/views/AssetManagement/Asset Repair/edit.vue b/src/views/AssetManagement/Asset Repair/edit.vue new file mode 100644 index 0000000..64015dc --- /dev/null +++ b/src/views/AssetManagement/Asset Repair/edit.vue @@ -0,0 +1,357 @@ + + + diff --git a/src/views/AssetManagement/Asset Repair/index.vue b/src/views/AssetManagement/Asset Repair/index.vue new file mode 100644 index 0000000..86b94b2 --- /dev/null +++ b/src/views/AssetManagement/Asset Repair/index.vue @@ -0,0 +1,192 @@ + + + + diff --git a/src/views/AssetManagement/Asset acquisition/detail.vue b/src/views/AssetManagement/Asset acquisition/detail.vue new file mode 100644 index 0000000..2d9d7e8 --- /dev/null +++ b/src/views/AssetManagement/Asset acquisition/detail.vue @@ -0,0 +1,283 @@ + + + + + diff --git a/src/views/AssetManagement/Asset acquisition/edit.vue b/src/views/AssetManagement/Asset acquisition/edit.vue new file mode 100644 index 0000000..39c766c --- /dev/null +++ b/src/views/AssetManagement/Asset acquisition/edit.vue @@ -0,0 +1,391 @@ + + + diff --git a/src/views/AssetManagement/Asset acquisition/index.vue b/src/views/AssetManagement/Asset acquisition/index.vue new file mode 100644 index 0000000..2b5898b --- /dev/null +++ b/src/views/AssetManagement/Asset acquisition/index.vue @@ -0,0 +1,185 @@ + + + + diff --git a/src/views/AssetManagement/Asset depreciation/detail.vue b/src/views/AssetManagement/Asset depreciation/detail.vue new file mode 100644 index 0000000..2d9d7e8 --- /dev/null +++ b/src/views/AssetManagement/Asset depreciation/detail.vue @@ -0,0 +1,283 @@ + + + + + diff --git a/src/views/AssetManagement/Asset depreciation/edit.vue b/src/views/AssetManagement/Asset depreciation/edit.vue new file mode 100644 index 0000000..c8fac66 --- /dev/null +++ b/src/views/AssetManagement/Asset depreciation/edit.vue @@ -0,0 +1,395 @@ + + + diff --git a/src/views/AssetManagement/Asset depreciation/index.vue b/src/views/AssetManagement/Asset depreciation/index.vue new file mode 100644 index 0000000..b734ace --- /dev/null +++ b/src/views/AssetManagement/Asset depreciation/index.vue @@ -0,0 +1,179 @@ + + + + diff --git a/src/views/AssetManagement/Asset disposal/detail.vue b/src/views/AssetManagement/Asset disposal/detail.vue new file mode 100644 index 0000000..2d9d7e8 --- /dev/null +++ b/src/views/AssetManagement/Asset disposal/detail.vue @@ -0,0 +1,283 @@ + + + + + diff --git a/src/views/AssetManagement/Asset disposal/edit.vue b/src/views/AssetManagement/Asset disposal/edit.vue new file mode 100644 index 0000000..6903a4c --- /dev/null +++ b/src/views/AssetManagement/Asset disposal/edit.vue @@ -0,0 +1,379 @@ + + + diff --git a/src/views/AssetManagement/Asset disposal/index.vue b/src/views/AssetManagement/Asset disposal/index.vue new file mode 100644 index 0000000..2df643d --- /dev/null +++ b/src/views/AssetManagement/Asset disposal/index.vue @@ -0,0 +1,191 @@ + + + + diff --git a/src/views/AssetManagement/AssetPurchasing/detail.vue b/src/views/AssetManagement/AssetPurchasing/detail.vue new file mode 100644 index 0000000..2d9d7e8 --- /dev/null +++ b/src/views/AssetManagement/AssetPurchasing/detail.vue @@ -0,0 +1,283 @@ + + + + + diff --git a/src/views/AssetManagement/AssetPurchasing/edit.vue b/src/views/AssetManagement/AssetPurchasing/edit.vue new file mode 100644 index 0000000..2b87336 --- /dev/null +++ b/src/views/AssetManagement/AssetPurchasing/edit.vue @@ -0,0 +1,400 @@ + + + diff --git a/src/views/AssetManagement/AssetPurchasing/index.vue b/src/views/AssetManagement/AssetPurchasing/index.vue new file mode 100644 index 0000000..b734ace --- /dev/null +++ b/src/views/AssetManagement/AssetPurchasing/index.vue @@ -0,0 +1,179 @@ + + + + diff --git a/src/views/AssetManagement/Assetreturn/detail.vue b/src/views/AssetManagement/Assetreturn/detail.vue new file mode 100644 index 0000000..2d9d7e8 --- /dev/null +++ b/src/views/AssetManagement/Assetreturn/detail.vue @@ -0,0 +1,283 @@ + + + + + diff --git a/src/views/AssetManagement/Assetreturn/edit.vue b/src/views/AssetManagement/Assetreturn/edit.vue new file mode 100644 index 0000000..a4c2d3b --- /dev/null +++ b/src/views/AssetManagement/Assetreturn/edit.vue @@ -0,0 +1,381 @@ + + + diff --git a/src/views/AssetManagement/Assetreturn/index.vue b/src/views/AssetManagement/Assetreturn/index.vue new file mode 100644 index 0000000..a4331a1 --- /dev/null +++ b/src/views/AssetManagement/Assetreturn/index.vue @@ -0,0 +1,193 @@ + + + + diff --git a/src/views/AssetManagement/retirements/detail.vue b/src/views/AssetManagement/retirements/detail.vue new file mode 100644 index 0000000..2d9d7e8 --- /dev/null +++ b/src/views/AssetManagement/retirements/detail.vue @@ -0,0 +1,283 @@ + + + + + diff --git a/src/views/AssetManagement/retirements/edit.vue b/src/views/AssetManagement/retirements/edit.vue new file mode 100644 index 0000000..28f242d --- /dev/null +++ b/src/views/AssetManagement/retirements/edit.vue @@ -0,0 +1,374 @@ + + + diff --git a/src/views/AssetManagement/retirements/index.vue b/src/views/AssetManagement/retirements/index.vue new file mode 100644 index 0000000..101fa23 --- /dev/null +++ b/src/views/AssetManagement/retirements/index.vue @@ -0,0 +1,188 @@ + + + + diff --git a/src/views/Materialmanagement/MaterialPriceLibrary/detail.vue b/src/views/Materialmanagement/MaterialPriceLibrary/detail.vue new file mode 100644 index 0000000..2d9d7e8 --- /dev/null +++ b/src/views/Materialmanagement/MaterialPriceLibrary/detail.vue @@ -0,0 +1,283 @@ + + + + + diff --git a/src/views/Materialmanagement/MaterialPriceLibrary/edit.vue b/src/views/Materialmanagement/MaterialPriceLibrary/edit.vue new file mode 100644 index 0000000..a2e0d24 --- /dev/null +++ b/src/views/Materialmanagement/MaterialPriceLibrary/edit.vue @@ -0,0 +1,334 @@ + + + diff --git a/src/views/Materialmanagement/MaterialPriceLibrary/index.vue b/src/views/Materialmanagement/MaterialPriceLibrary/index.vue new file mode 100644 index 0000000..614c868 --- /dev/null +++ b/src/views/Materialmanagement/MaterialPriceLibrary/index.vue @@ -0,0 +1,185 @@ + + + + diff --git a/src/views/Materialmanagement/Selfpurchasereceipt/detail.vue b/src/views/Materialmanagement/Selfpurchasereceipt/detail.vue new file mode 100644 index 0000000..2d9d7e8 --- /dev/null +++ b/src/views/Materialmanagement/Selfpurchasereceipt/detail.vue @@ -0,0 +1,283 @@ + + + + + diff --git a/src/views/Materialmanagement/Selfpurchasereceipt/edit.vue b/src/views/Materialmanagement/Selfpurchasereceipt/edit.vue new file mode 100644 index 0000000..9cecda8 --- /dev/null +++ b/src/views/Materialmanagement/Selfpurchasereceipt/edit.vue @@ -0,0 +1,363 @@ + + + diff --git a/src/views/Materialmanagement/Selfpurchasereceipt/index.vue b/src/views/Materialmanagement/Selfpurchasereceipt/index.vue new file mode 100644 index 0000000..fce76d4 --- /dev/null +++ b/src/views/Materialmanagement/Selfpurchasereceipt/index.vue @@ -0,0 +1,183 @@ + + + + diff --git a/src/views/Materialmanagement/Selfpurchasereceipt_detail/detail.vue b/src/views/Materialmanagement/Selfpurchasereceipt_detail/detail.vue new file mode 100644 index 0000000..2d9d7e8 --- /dev/null +++ b/src/views/Materialmanagement/Selfpurchasereceipt_detail/detail.vue @@ -0,0 +1,283 @@ + + + + + diff --git a/src/views/Materialmanagement/Selfpurchasereceipt_detail/edit.vue b/src/views/Materialmanagement/Selfpurchasereceipt_detail/edit.vue new file mode 100644 index 0000000..08db186 --- /dev/null +++ b/src/views/Materialmanagement/Selfpurchasereceipt_detail/edit.vue @@ -0,0 +1,315 @@ + + + diff --git a/src/views/Materialmanagement/Selfpurchasereceipt_detail/index.vue b/src/views/Materialmanagement/Selfpurchasereceipt_detail/index.vue new file mode 100644 index 0000000..90fd0fd --- /dev/null +++ b/src/views/Materialmanagement/Selfpurchasereceipt_detail/index.vue @@ -0,0 +1,195 @@ + + + + diff --git a/src/views/custom/detail.vue b/src/views/custom/detail.vue index bc2e597..90e7f32 100644 --- a/src/views/custom/detail.vue +++ b/src/views/custom/detail.vue @@ -5,188 +5,190 @@
- -
客户基本资料1
- - - - {{ formData.name }} - - + + - - - {{ formData.custom_type }} + +
客户基本资料1
+ + + + {{ formData.name }} + + -
-
- - - {{ formData.parent_company }} - - - - + + + {{ formData.custom_type_text + }} - {{ formData.phone }} + + + + + {{ formData.parent_company }} + + + + - - - - + {{ formData.phone }} - {{ formData.credit_rating }} - - - - + + + + - {{ formData.province }} - - - - + {{ formData.credit_rating_text }} + + + + - {{ formData.city }} - - - - + {{ formData.province_name }} + + + + - {{ formData.area }} - - - - + {{ formData.city_name }} + + + + - {{ formData.address }} - - - - - {{ formData.notes }} - + {{ formData.area_name }} + + + + - -
-
+ {{ formData.address }} + + + + + {{ formData.notes }} + + + + + + +
主要负责人
+ + + + + {{ formData.master_name }} + + + + + + {{ formData.master_position }} + + + + + + {{ formData.master_phone }} + + + + + + {{ formData.master_email }} + + + + + + {{ formData.master_telephone }} + + + + + {{ formData.master_notes }} + + + +
+ +
其他联系人
+ + + + + + + + + + + + + - -
主要负责人
- - - + - {{ formData.master_name }} - - - - +
+ +
开票信息
+ + + + {{ formData.company_name }} + - {{ formData.master_position }} - - - - + + + + {{ formData.company_tin }} + - {{ formData.master_phone }} - - - - + + + + {{ formData.bank_open_address }} + - {{ formData.master_email }} - - - - + + + + {{ formData.company_telephone }} + - {{ formData.master_telephone }} - - - - - {{ formData.master_notes }} - - - -
- -
其他联系人
- - + {{ formData.bank_account }} + + + +
-
-
- -
开票信息
- - - - {{ formData.company_name }} - + + Config + Role + Task + Task + Task + Task + Task + - - - - {{ formData.company_tin }} - - - - - {{ formData.bank_open_address }} - - - - - - {{ formData.company_telephone }} - - - - - - {{ formData.bank_name }} - - - - - - - {{ formData.bank_account }} - - - -
@@ -200,8 +202,10 @@ import { } from "@/api/common"; import type { FormInstance } from 'element-plus' import Popup from '@/components/popup/index.vue' +import { apiCustomContactsLists } from '@/api/custom_contacts' import { apiCustomDetail } from '@/api/custom' import { timeFormat } from '@/utils/util' +import type { TabsPaneContext } from 'element-plus' import type { PropType } from 'vue' defineProps({ dictData: { @@ -213,67 +217,52 @@ const emit = defineEmits(['success', 'close']) const formRef = shallowRef() const popupRef = shallowRef>() + +const activeName = ref('new_name_1') + +const handleClick = (tab: TabsPaneContext, event: Event) => { + console.log(tab, event) +} const datas = reactive({ provinceOptions: [], cityOptions: [], areaOptions: [], }); - +const contactsList = ref([]) // 表单数据 const formData = reactive({ - id: '', - name: '', - custom_type: '', - parent_company: 5565665, - phone: '', - credit_rating: '', - province: '', - city: '', - street: '', - address: '', - notes: '', - master_name: '', - master_position: '', - master_phone: '', - master_email: '', - master_telephone: '', - master_notes: '', - company_name: '', - company_tin: '', - bank_open_address: '', - company_telephone: '', - bank_name: '', - bank_account: '', - status: '', - other_contacts: [], - area: "" }) // 获取详情 const setFormData = async (data: Record) => { - for (const key in formData) { - if (data[key] != null && data[key] != undefined) { - //@ts-ignore - formData[key] = data[key] + // for (const key in formData) { + // if (data[key] != null && data[key] != undefined) { + // //@ts-ignore + // formData[key] = data[key] - if (key == 'province') { - await getCityList() - } - if (key == 'city') { - await getAreaList() - } + // if (key == 'province') { + // await getCityList() + // } + // if (key == 'city') { + // await getAreaList() + // } - } + // } - } - formData.other_contacts = JSON.parse(formData.other_contacts) - - console.log(formData, '2222222222') + // } + Object.assign(formData, data) + getcontacts(data) +} +const getcontacts = async (row: Record) => { + const data = await apiCustomContactsLists({ + custom_id: row.id + }) + contactsList.value = data.lists } const getDetail = async (row: Record) => { diff --git a/src/views/custom/edit.vue b/src/views/custom/edit.vue index 25b5543..d34c04a 100644 --- a/src/views/custom/edit.vue +++ b/src/views/custom/edit.vue @@ -506,8 +506,10 @@ const getDetail = async (row: Record) => { // 提交按钮 const handleSubmit = async () => { - if (formData.other_contacts && formData.other_contacts.length > 0) { + if (formData.other_contacts && formData.other_contacts.length > 0 && mode.value == 'add') { formData.other_contacts = JSON.stringify(formData.other_contacts) + } else { + delete formData.other_contacts } await formRef.value?.validate() @@ -559,8 +561,6 @@ const getAreaList = async () => { getProvinceList(); - - defineExpose({ open, setFormData, diff --git a/src/views/custom/index.vue b/src/views/custom/index.vue index da42883..3a177ae 100644 --- a/src/views/custom/index.vue +++ b/src/views/custom/index.vue @@ -1,6 +1,6 @@