|
@@ -191,8 +191,8 @@ export default {
|
|
|
let unchangeableShipOwner = ref(true);
|
|
let unchangeableShipOwner = ref(true);
|
|
|
let unchangeableShip = ref(true);
|
|
let unchangeableShip = ref(true);
|
|
|
async function getUserDetail() {
|
|
async function getUserDetail() {
|
|
|
- let res = await api.getUserDetail({
|
|
|
|
|
- userId: route.query.userId,
|
|
|
|
|
|
|
+ let res = await api.getShipOwnerDetail({
|
|
|
|
|
+ shipOwnerId: route.query.shipOwnerId,
|
|
|
});
|
|
});
|
|
|
if (res.data.status == 0) {
|
|
if (res.data.status == 0) {
|
|
|
let r = res.data.result;
|
|
let r = res.data.result;
|
|
@@ -208,7 +208,7 @@ export default {
|
|
|
idcardNo,
|
|
idcardNo,
|
|
|
phone,
|
|
phone,
|
|
|
preferenceCargo,
|
|
preferenceCargo,
|
|
|
- userId,
|
|
|
|
|
|
|
+ userId: shipOwnerId,
|
|
|
userName,
|
|
userName,
|
|
|
|
|
|
|
|
// 船舶信息
|
|
// 船舶信息
|
|
@@ -227,7 +227,7 @@ export default {
|
|
|
idcardNo,
|
|
idcardNo,
|
|
|
phone,
|
|
phone,
|
|
|
preferenceCargo,
|
|
preferenceCargo,
|
|
|
- userId,
|
|
|
|
|
|
|
+ shipOwnerId,
|
|
|
userName,
|
|
userName,
|
|
|
};
|
|
};
|
|
|
idFrontFile.value = idcardFrontFileKey
|
|
idFrontFile.value = idcardFrontFileKey
|
|
@@ -274,12 +274,12 @@ export default {
|
|
|
let idParams = ref({
|
|
let idParams = ref({
|
|
|
type: 1,
|
|
type: 1,
|
|
|
location: "",
|
|
location: "",
|
|
|
- userId: 0,
|
|
|
|
|
|
|
+ shipOwnerId: 0,
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
let shipParams = ref({
|
|
let shipParams = ref({
|
|
|
type: 2,
|
|
type: 2,
|
|
|
- userId: 0,
|
|
|
|
|
|
|
+ shipOwnerId: 0,
|
|
|
location: "",
|
|
location: "",
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -359,7 +359,7 @@ export default {
|
|
|
idBackFile.value[0]?.idcardBackViewUrl ||
|
|
idBackFile.value[0]?.idcardBackViewUrl ||
|
|
|
"",
|
|
"",
|
|
|
};
|
|
};
|
|
|
- let res = await api.updateUserDetail(postData);
|
|
|
|
|
|
|
+ let res = await api.updateShipOwner(postData);
|
|
|
if (res.data.status == 0) {
|
|
if (res.data.status == 0) {
|
|
|
ElNotification({
|
|
ElNotification({
|
|
|
type: "success",
|
|
type: "success",
|
|
@@ -378,7 +378,7 @@ export default {
|
|
|
shipDetail.value.shipCerts = certs.value.sendCerts();
|
|
shipDetail.value.shipCerts = certs.value.sendCerts();
|
|
|
let postData = {
|
|
let postData = {
|
|
|
...shipDetail.value,
|
|
...shipDetail.value,
|
|
|
- userId: route.query.userId,
|
|
|
|
|
|
|
+ shipOwnerId: route.query.shipOwnerId,
|
|
|
};
|
|
};
|
|
|
postData.shipId = postData.shipId || 0;
|
|
postData.shipId = postData.shipId || 0;
|
|
|
let res = await api.updateShip(postData);
|
|
let res = await api.updateShip(postData);
|