BUG 优化

dev
xiepeng 2024-04-16 11:23:07 +08:00
parent 7b37c0fcf1
commit 258e02c2b6
2 changed files with 3 additions and 5 deletions

View File

@ -103,7 +103,7 @@
<el-button
v-if="index !== 0"
type="danger"
@click="removeContact(index,contact.CUSTOMERCONTACT_ID)"
@click="removeContact(index, contact.CUSTOMERCONTACT_ID)"
>
删除
<!-- 添加的删除文字 -->
@ -183,11 +183,10 @@ const removeContact = async (index, CUSTOMERCONTACT_ID) => {
if (index > 0) {
//
data.form.contacts.splice(index, 1);
await deleteContactInfo({CUSTOMERCONTACT_ID});
await deleteContactInfo({ CUSTOMERCONTACT_ID });
}
};
const fnSubmit = async () => {
await useFormValidate(formRef);
const formData = new FormData();

View File

@ -414,7 +414,6 @@ const fnGetData = async () => {
data.form.CONFIRMINGPHONE = data.form.CONFIRM_PHONE;
data.form.STARTADMINISTRATIVEAREA = data.form.DEPARTURE_ADDR;
data.form.ENDDMINISTRATIVEAREA = data.form.GOAL_ADDR;
console.log(data.form);
};
fnGetData();
const fnClientChange = () => {
@ -554,7 +553,7 @@ fnCustomerType();
const fnLocation = async () => {
const res = await getTrafficLocationSelectList();
const varList = res.varList || [];
console.log(res);
const StartOptionstMap = new Map();
varList.forEach((item) => {
if (item.LOCATIONTYPE === "1") {