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 <el-button
v-if="index !== 0" v-if="index !== 0"
type="danger" 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) { if (index > 0) {
// //
data.form.contacts.splice(index, 1); data.form.contacts.splice(index, 1);
await deleteContactInfo({CUSTOMERCONTACT_ID}); await deleteContactInfo({ CUSTOMERCONTACT_ID });
} }
}; };
const fnSubmit = async () => { const fnSubmit = async () => {
await useFormValidate(formRef); await useFormValidate(formRef);
const formData = new FormData(); const formData = new FormData();

View File

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