diff --git a/src/Views/ApplyJoin/Join.vue b/src/Views/ApplyJoin/Join.vue
index bf087b7..11aa0fc 100644
--- a/src/Views/ApplyJoin/Join.vue
+++ b/src/Views/ApplyJoin/Join.vue
@@ -16,7 +16,7 @@
{{ ApplyList.Name }}
{{ ApplyList.socialCreditCode }}
-
{{ ApplyList.Phone }}
+
申请加入
diff --git a/src/Views/Booking/AddBooking.vue b/src/Views/Booking/AddBooking.vue
index 57352b4..6b1af56 100644
--- a/src/Views/Booking/AddBooking.vue
+++ b/src/Views/Booking/AddBooking.vue
@@ -68,12 +68,14 @@
@@ -88,8 +90,8 @@
clearable
@select="
(e) => {
- console.log(e);
store.state.Data.portloadlist.forEach((i) => {
+ console.log(e, i);
if (e.code == i.code) {
form.portLoading = i.name;
}
@@ -350,7 +352,12 @@
-
+
+
+
+
+
+
-
{
store.state.Data.Ctnlist.forEach((i) => {
@@ -629,6 +642,15 @@ export default {
portLoading: "QINGDAO,CHINA",
portLoadingCode: "CNTAO",
});
+ const formDatatype = ref(false);
+ watch(
+ form,
+ (nowVal, oldVal) => {
+ console.log(nowVal, oldVal, formDatatype.value);
+ formDatatype.value = true;
+ },
+ { deep: true }
+ );
const serviceItemList = ref([]);
store.state.Data.cobServiceItemTenantList.forEach((item) => {
if (item.defaultSelected == 1) {
@@ -675,6 +697,13 @@ export default {
form.value.serviceItemList.forEach((item) => {
serviceItemList.value.push(item.code);
});
+ store.state.Data.portloadlist.forEach((item) => {
+ if (item.code == form.value.portLoadingCode) {
+ console.log(item);
+ form.value.portLoadingCode = item.WebShow;
+ }
+ });
+
fileList.value = [];
res.data.bookingFileList.forEach((item) => {
fileList.value.push({ ...item, name: item.fileName });
@@ -685,6 +714,9 @@ export default {
}
});
}
+ setTimeout(() => {
+ formDatatype.value = false;
+ }, 500);
});
const handleClick = (data) => {
setTimeout(() => {
@@ -699,6 +731,7 @@ export default {
const ClickSave = () => {
let ApiData = form.value;
+ ApiData.portLoadingCode = ApiData.portLoadingCode.split(";")[2];
// fileList
ApiData = {
...ApiData,
@@ -712,6 +745,12 @@ export default {
type: "success",
});
form.value = res.data;
+ store.state.Data.portloadlist.forEach((item) => {
+ if (item.code == form.value.portLoadingCode) {
+ console.log(item);
+ form.value.portLoadingCode = item.WebShow;
+ }
+ });
form.value.cargoData = {
dangerClass: res.data.dangerClass,
dangerLable: res.data.dangerLable,
@@ -731,6 +770,9 @@ export default {
},
});
}
+ setTimeout(() => {
+ formDatatype.value = false;
+ }, 500);
});
};
@@ -805,12 +847,20 @@ export default {
};
const RefSendDialog = ref();
const ClicSend = () => {
- bookingCustomInfo({ id: form.value.id }).then((res) => {
- if (res.code == 200) {
- console.log(res);
- RefSendDialog.value.OpenDialog(res.data);
- }
- });
+ console.log(formDatatype.value);
+ if (!formDatatype.value) {
+ bookingCustomInfo({ id: form.value.id }).then((res) => {
+ if (res.code == 200) {
+ console.log(res);
+ RefSendDialog.value.OpenDialog(res.data);
+ }
+ });
+ } else {
+ ElMessage({
+ message: "数据变动,请先保存数据。",
+ type: "warning",
+ });
+ }
// bookingCustomSubmit({ id: form.value.id }).then((res) => {
// if (res.code == 200) {
// ElMessage({
@@ -879,13 +929,14 @@ export default {
const results = queryString
? restaurants.filter((item) => {
return (
- item.code.toLowerCase().indexOf(queryString.toLowerCase()) !== -1
+ item.WebShow.toLowerCase().indexOf(queryString.toLowerCase()) !==
+ -1
);
})
: restaurants;
let RData = [];
results.forEach((item) => {
- RData.push({ ...item, value: item.code });
+ RData.push({ ...item, value: item.WebShow });
});
cb(RData);
};
diff --git a/src/Views/Booking/SendDialog.vue b/src/Views/Booking/SendDialog.vue
index a7db7ef..13f484b 100644
--- a/src/Views/Booking/SendDialog.vue
+++ b/src/Views/Booking/SendDialog.vue
@@ -42,6 +42,11 @@ export default {
const DialogData = ref({});
const OpenDialog = (data) => {
DialogData.value = data;
+ console.log(DialogData.value.ctnList.length);
+ if (DialogData.value.ctnList.length == 0) {
+ DialogData.value.ctnList.push({});
+ }
+ console.log(DialogData.value.ctnList);
dialogVisible.value = true;
};
const OffDialog = () => {
diff --git a/src/Views/Booking/index.vue b/src/Views/Booking/index.vue
index 45b07dd..87117b8 100644
--- a/src/Views/Booking/index.vue
+++ b/src/Views/Booking/index.vue
@@ -69,6 +69,8 @@ export default {
title: "船公司",
EType: "Select",
DName: "carrierCode",
+ filterable: true,
+ label: "WebShow",
SelectList: store.state.Data.Carrierlist,
},
{
@@ -97,18 +99,22 @@ export default {
{
code: "0",
name: "已录入",
+ type: "primary",
},
{
code: "1",
name: "已审核",
+ type: "success",
},
{
code: "3",
name: "已提交",
+ type: "warning",
},
{
code: "4",
name: "已驳回",
+ type: "danger",
},
],
ClickOpen: true,
diff --git a/src/Views/BookingOrder/index.vue b/src/Views/BookingOrder/index.vue
index c2abbc1..786e713 100644
--- a/src/Views/BookingOrder/index.vue
+++ b/src/Views/BookingOrder/index.vue
@@ -41,12 +41,8 @@
基本信息
+
-
-
-
@@ -66,6 +62,11 @@
+
+
+
+
+
@@ -94,12 +95,7 @@
/>
-
-
-
-
-
-
+
+
+
+
-
+
{
if (valid) {
- console.log("通过");
+ console.log("通过", RegData.value);
UserReg(RegData.value).then((res) => {
console.log(res);
if (res.code == 200) {
@@ -260,7 +269,9 @@ export default {
message: "注册成功!",
type: "success",
});
- FnLogin();
+ LoginData["account"] = RegData.value.account;
+ LoginData["password"] = RegData.value.password;
+ Login();
}
});
} else {
@@ -273,7 +284,7 @@ export default {
console.log(res);
if (res.code == 200) {
ElMessage({
- message: "注册成功!",
+ message: "修改成功!",
type: "success",
});
FnLogin();
@@ -318,6 +329,13 @@ export default {
trigger: "change",
},
],
+ email: [
+ {
+ required: true,
+ message: "请输入邮箱!",
+ trigger: "change",
+ },
+ ],
phone: [
{
required: true,
@@ -372,12 +390,12 @@ export default {
rulePasFormRef.value.validateField("phone", (errorMessage) => {
if (errorMessage) {
console.log();
- // captchaSms({ phonenumber: RegData.value.phone }).then((res) => {
+ // captchaSms({ phonenumber: PasData.value.phone }).then((res) => {
// console.log(res);
// });
disabled.value = true;
btnText.value = "请稍候...";
- genRegisterCheckCode({ phone: RegData.value.phone }).then((res) => {
+ genPhoneCheckCode({ phone: PasData.value.phone }).then((res) => {
console.log(res);
let i = 0;
@@ -439,7 +457,7 @@ export default {
align-items: center;
justify-content: center;
width: 1140px;
- height: 586px;
+ // height: 586px;
padding: 70px 75px;
box-sizing: border-box;
background: #ffffff;
diff --git a/src/Views/Userinfo/index.vue b/src/Views/Userinfo/index.vue
index 552a438..01dde7c 100644
--- a/src/Views/Userinfo/index.vue
+++ b/src/Views/Userinfo/index.vue
@@ -55,12 +55,7 @@
-
+
@@ -78,6 +73,45 @@
+
+
+
+
+
+
+
+ {{ $store.state.User.userInfo.phone }}
+
+
+
+
+
+
+ {{ Form2btnText }}
+
+
+
+
+
+ 更改
+
+
+
+
+
@@ -88,20 +122,26 @@
import { ref } from "vue";
import {
UserChangPhone,
- genRegisterCheckCode,
+ genPhoneCheckCode,
userChangPassword,
+ UserEmail,
} from "@/api/Index";
import { ElMessage } from "element-plus";
+import { useStore } from "vuex";
export default {
name: "ViewUserinfo",
setup() {
+ const store = useStore();
const ruleFormRef = ref();
const form = ref({});
const form1 = ref({});
+ const form2 = ref({});
const disabled = ref(false);
const btnText = ref("获取验证码");
const newdisabled = ref(false);
const newbtnText = ref("获取验证码");
+ const Form2disabled = ref(false);
+ const Form2btnText = ref("获取验证码");
const bindforgetSendCode = (phoneData, type) => {
ruleFormRef.value.validateField("phone", (errorMessage) => {
if (errorMessage) {
@@ -112,11 +152,14 @@ export default {
if (type == "new") {
newdisabled.value = true;
newbtnText.value = "发送中...";
+ } else if (type == "Form2") {
+ Form2disabled.value = true;
+ Form2btnText.value = "发送中...";
} else {
disabled.value = true;
btnText.value = "发送中...";
}
- genRegisterCheckCode({ phone: phoneData }).then((res) => {
+ genPhoneCheckCode({ phone: phoneData }).then((res) => {
console.log(res);
let i = 0;
@@ -126,6 +169,8 @@ export default {
++i;
if (type == "new") {
newbtnText.value = `${60 - i}s`;
+ } else if (type == "Form2") {
+ Form2btnText.value = `${60 - i}s`;
} else {
btnText.value = `${60 - i}s`;
}
@@ -135,6 +180,9 @@ export default {
if (type == "new") {
newdisabled.value = false;
newbtnText.value = "获取验证码";
+ } else if (type == "Form2") {
+ Form2disabled.value = false;
+ Form2btnText.value = "获取验证码";
} else {
disabled.value = false;
btnText.value = "获取验证码";
@@ -152,6 +200,12 @@ export default {
const onSubmit = () => {
UserChangPhone(form.value).then((res) => {
if (res.code == 200) {
+ store.commit("XGetUser", {
+ userInfo: {
+ ...store.state.User.userInfo,
+ phone: form.value.newPhone,
+ },
+ });
ElMessage({
message: res.message,
type: "success",
@@ -169,17 +223,31 @@ export default {
}
});
};
+ const onSubmitChangeEmail = () => {
+ UserEmail(form2.value).then((res) => {
+ if (res.code == 200) {
+ ElMessage({
+ message: res.message,
+ type: "success",
+ });
+ }
+ });
+ };
return {
ruleFormRef,
form,
form1,
+ form2,
disabled,
btnText,
newdisabled,
newbtnText,
+ Form2disabled,
+ Form2btnText,
bindforgetSendCode,
onSubmit,
onSubmitChangePas,
+ onSubmitChangeEmail,
};
},
};
diff --git a/src/Views/workmate/index.vue b/src/Views/workmate/index.vue
index a785bdc..db414e0 100644
--- a/src/Views/workmate/index.vue
+++ b/src/Views/workmate/index.vue
@@ -43,6 +43,39 @@
+
+
+
+ {{ $store.state.User.userInfo.phone }}
+
+
+
+
+
+ {{ Form2btnText }}
+
+
+
+
+
+ {{ form2.type == "ClickDelete" ? "移出" : "转让" }}
+
+
+
+