diff --git a/src/components/relateCompany/index.vue b/src/components/relateCompany/index.vue
new file mode 100644
index 000000000..ac22c9126
--- /dev/null
+++ b/src/components/relateCompany/index.vue
@@ -0,0 +1,157 @@
+
+
+
+
+
+
diff --git a/src/views/crm/business/BusinessForm.vue b/src/views/crm/business/BusinessForm.vue
index 6947dd4a2..c799adca2 100644
--- a/src/views/crm/business/BusinessForm.vue
+++ b/src/views/crm/business/BusinessForm.vue
@@ -532,7 +532,7 @@ console.log('%csrc/views/crm/business/BusinessForm.vue:516 getIntDictOptions(DIC
const customerId = route.query.customerId;
formData.value.customerId = Number(route.query.bizId) || ''
formData.value.clueDeveloper = Number(route.query.clueDeveloper) || ''
- formData.value.maintainer = Number(route.query.maintainer) || ''
+ route.query.maintainer ? formData.value.maintainer = Number(route.query.maintainer) : ''
formData.value.requestorUserId = customerId ? '' : useUserStore().getUser.id;
formType.value = route.query.id || route.params.id;
diff --git a/src/views/crm/contract/contractUpload.vue b/src/views/crm/contract/contractUpload.vue
index 504e4f851..1314b332e 100644
--- a/src/views/crm/contract/contractUpload.vue
+++ b/src/views/crm/contract/contractUpload.vue
@@ -64,7 +64,7 @@ const submitForm = async () => {
formLoading.value = true
try {
const data = formData.value as unknown as OrganizationsVO
- data.customerId = formType.value
+ data.id = formType.value
await ContractApi.contractUpload(data)
message.success(t('common.createSuccess'))
dialogVisible.value = false
diff --git a/src/views/crm/customer/detail/authorizedPersonForm.vue b/src/views/crm/customer/detail/authorizedPersonForm.vue
index 98c0bb3b4..7bc1d6507 100644
--- a/src/views/crm/customer/detail/authorizedPersonForm.vue
+++ b/src/views/crm/customer/detail/authorizedPersonForm.vue
@@ -1,233 +1,106 @@
-
+
-
+
- 创建授权人
+ 创建关联单位
-
-
+
-
-
-
-
-
-
- {{row.customerName}}
-
-
-
-
-
-
-
-
-
- {{getName(getIntDictOptions(DICT_TYPE.CRM_CONTACT_ROLE_TYPE), row.authPersonType)}}
-
-
-
-
-
-
-
-
- {{row.phoneNumber}}
-
-
-
-
-
-
-
-
-
- {{row.wechat}}
-
-
-
-
-
-
-
-
-
- {{row.idNumber}}
-
-
-
-
-
-
-
-
-
- {{row.email}}
-
-
-
-
-
- —
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
-
-
-
-
-
+
+
+
+
+
+
\ No newline at end of file
+
diff --git a/src/views/crm/customer/detail/index.vue b/src/views/crm/customer/detail/index.vue
index 5111611cd..2acc4437d 100644
--- a/src/views/crm/customer/detail/index.vue
+++ b/src/views/crm/customer/detail/index.vue
@@ -69,7 +69,7 @@
-
+
+
搜索
重置
@@ -102,7 +94,7 @@
>
新增
-
导出
-
+ -->
@@ -118,7 +110,6 @@
-
diff --git a/src/views/crm/filetemplate/index.vue b/src/views/crm/filetemplate/index.vue
index 41a82f13f..a69e80ce0 100644
--- a/src/views/crm/filetemplate/index.vue
+++ b/src/views/crm/filetemplate/index.vue
@@ -28,7 +28,7 @@
>
新增
-
导出
-
+ -->
diff --git a/src/views/crm/productprocurementcost/index.vue b/src/views/crm/productprocurementcost/index.vue
index aabf6c714..ac9ecf5a4 100644
--- a/src/views/crm/productprocurementcost/index.vue
+++ b/src/views/crm/productprocurementcost/index.vue
@@ -70,10 +70,22 @@
-
-
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
@@ -133,6 +145,7 @@ import download from '@/utils/download'
import { ProductProcurementCostApi, ProductProcurementCostVO } from '@/api/crm/productprocurementcost'
import ProductProcurementCostForm from './ProductProcurementCostForm.vue'
import * as ProductApi from '@/api/crm/product'
+import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
const productList = ref([]) // 产品列表
diff --git a/src/views/crm/quotation/QuotationDetail.vue b/src/views/crm/quotation/QuotationDetail.vue
index 2d993bcdd..6523d63c3 100644
--- a/src/views/crm/quotation/QuotationDetail.vue
+++ b/src/views/crm/quotation/QuotationDetail.vue
@@ -8,7 +8,7 @@
:model="formData"
:rules="formRules"
:fields="formFields"
- label-width="110px"
+ label-width="120px"
v-loading="formLoading"
>
@@ -99,13 +99,13 @@
-->
-
+
@@ -209,7 +209,7 @@
-
+
@@ -385,18 +385,19 @@
-
+
+
-
+
@@ -417,15 +418,15 @@
-
+
+
@@ -459,7 +460,7 @@
-->
-
+
diff --git a/src/views/crm/quotation/QuotationForm.vue b/src/views/crm/quotation/QuotationForm.vue
index 52eb72598..8623c7aca 100644
--- a/src/views/crm/quotation/QuotationForm.vue
+++ b/src/views/crm/quotation/QuotationForm.vue
@@ -250,9 +250,9 @@
-
+
@@ -551,7 +551,7 @@ const formData = ref({
auditStatus: undefined,
serviceFeeCollectionMethodId: undefined,
requestorUserId: undefined,
- expanderUserId: undefined,
+ clueDeveloper: undefined,
pricingUserId: undefined,
signUserId: undefined,
signPhoneNumber: undefined,
@@ -741,8 +741,9 @@ const onBusinessChange = async (businessId: string) => {
formData.value.paymentTerm = res.paymentTerm;
formData.value.creditMethod = res.creditMethod;
formData.value.creditCalcCycle = res.creditCalcCycle;
- formData.value.deptId = res.deptId;
+ // formData.value.deptId = res.deptId;
formData.value.offlinePrice = res.offlinePrice;
+ formData.value.clueDeveloper = res.clueDeveloper
// formData.value.onlinePrice = res.onlinePrice || '';
// formData.value.totalPrice = res.totalPrice || '';
formData.value.creditAmount = res.creditAmount;
@@ -897,7 +898,7 @@ const resetForm = () => {
processInstanceId: undefined,
auditStatus: undefined,
requestorUserId: undefined,
- expanderUserId: undefined,
+ clueDeveloper: undefined,
pricingUserId: undefined,
signUserId: undefined,
signPhoneNumber: undefined,
@@ -919,7 +920,6 @@ const resetForm = () => {
}
const changePartnerType = async (val) => {
- formData.value.partnerCompanyId = ''
formData.value.creditCode = ''
formData.value.bankName = ''
formData.value.bankAccount = ''
@@ -930,6 +930,12 @@ const changePartnerType = async (val) => {
partnerType: val
})
orgList.value = org.list
+
+ if (orgList.value.length) {
+ formData.value.partnerCompanyId = orgList.value[0]['id']
+ onPartnerChange(formData.value.partnerCompanyId)
+ }
+
}
const route = useRoute();