|
|
@ -68,12 +68,14 @@
|
|
|
|
<el-select
|
|
|
|
<el-select
|
|
|
|
v-model="form.carrierCode"
|
|
|
|
v-model="form.carrierCode"
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
|
|
|
filterable
|
|
|
|
|
|
|
|
clearable
|
|
|
|
@change="ChangecarrierCode"
|
|
|
|
@change="ChangecarrierCode"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="item in store.state.Data.Carrierlist"
|
|
|
|
v-for="item in store.state.Data.Carrierlist"
|
|
|
|
:key="item.code"
|
|
|
|
:key="item.code"
|
|
|
|
:label="item.name"
|
|
|
|
:label="item.WebShow"
|
|
|
|
:value="item.code"
|
|
|
|
:value="item.code"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
@ -88,8 +90,8 @@
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
@select="
|
|
|
|
@select="
|
|
|
|
(e) => {
|
|
|
|
(e) => {
|
|
|
|
console.log(e);
|
|
|
|
|
|
|
|
store.state.Data.portloadlist.forEach((i) => {
|
|
|
|
store.state.Data.portloadlist.forEach((i) => {
|
|
|
|
|
|
|
|
console.log(e, i);
|
|
|
|
if (e.code == i.code) {
|
|
|
|
if (e.code == i.code) {
|
|
|
|
form.portLoading = i.name;
|
|
|
|
form.portLoading = i.name;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -350,7 +352,12 @@
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="包装">
|
|
|
|
<el-form-item label="包装">
|
|
|
|
<!-- <el-input v-model="form.kindPkgs" /> -->
|
|
|
|
<!-- <el-input v-model="form.kindPkgs" /> -->
|
|
|
|
<el-select v-model="form.kindPkgs" :style="{ width: '100%' }">
|
|
|
|
<el-select
|
|
|
|
|
|
|
|
v-model="form.kindPkgs"
|
|
|
|
|
|
|
|
filterable
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
|
|
|
>
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="item in store.state.Data.packagelist"
|
|
|
|
v-for="item in store.state.Data.packagelist"
|
|
|
|
:key="item.code"
|
|
|
|
:key="item.code"
|
|
|
@ -394,9 +401,13 @@
|
|
|
|
<el-input v-model="form.cargoData.ventilationRate" />
|
|
|
|
<el-input v-model="form.cargoData.ventilationRate" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="湿度">
|
|
|
|
|
|
|
|
<el-input v-model="form.cargoData.humidity" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="温度单位">
|
|
|
|
<el-form-item label="温度单位">
|
|
|
|
<!-- <el-input v-model="form.cargoData.temperatureUnit" /> -->
|
|
|
|
|
|
|
|
<el-select
|
|
|
|
<el-select
|
|
|
|
v-model="form.cargoData.temperatureUnit"
|
|
|
|
v-model="form.cargoData.temperatureUnit"
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
:style="{ width: '100%' }"
|
|
|
@ -491,6 +502,8 @@
|
|
|
|
<el-select
|
|
|
|
<el-select
|
|
|
|
v-model="scope.row.ctnCode"
|
|
|
|
v-model="scope.row.ctnCode"
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
|
|
|
filterable
|
|
|
|
|
|
|
|
clearable
|
|
|
|
@change="
|
|
|
|
@change="
|
|
|
|
(e) => {
|
|
|
|
(e) => {
|
|
|
|
store.state.Data.Ctnlist.forEach((i) => {
|
|
|
|
store.state.Data.Ctnlist.forEach((i) => {
|
|
|
@ -629,6 +642,15 @@ export default {
|
|
|
|
portLoading: "QINGDAO,CHINA",
|
|
|
|
portLoading: "QINGDAO,CHINA",
|
|
|
|
portLoadingCode: "CNTAO",
|
|
|
|
portLoadingCode: "CNTAO",
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
const formDatatype = ref(false);
|
|
|
|
|
|
|
|
watch(
|
|
|
|
|
|
|
|
form,
|
|
|
|
|
|
|
|
(nowVal, oldVal) => {
|
|
|
|
|
|
|
|
console.log(nowVal, oldVal, formDatatype.value);
|
|
|
|
|
|
|
|
formDatatype.value = true;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{ deep: true }
|
|
|
|
|
|
|
|
);
|
|
|
|
const serviceItemList = ref([]);
|
|
|
|
const serviceItemList = ref([]);
|
|
|
|
store.state.Data.cobServiceItemTenantList.forEach((item) => {
|
|
|
|
store.state.Data.cobServiceItemTenantList.forEach((item) => {
|
|
|
|
if (item.defaultSelected == 1) {
|
|
|
|
if (item.defaultSelected == 1) {
|
|
|
@ -675,6 +697,13 @@ export default {
|
|
|
|
form.value.serviceItemList.forEach((item) => {
|
|
|
|
form.value.serviceItemList.forEach((item) => {
|
|
|
|
serviceItemList.value.push(item.code);
|
|
|
|
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 = [];
|
|
|
|
fileList.value = [];
|
|
|
|
res.data.bookingFileList.forEach((item) => {
|
|
|
|
res.data.bookingFileList.forEach((item) => {
|
|
|
|
fileList.value.push({ ...item, name: item.fileName });
|
|
|
|
fileList.value.push({ ...item, name: item.fileName });
|
|
|
@ -685,6 +714,9 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
formDatatype.value = false;
|
|
|
|
|
|
|
|
}, 500);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
const handleClick = (data) => {
|
|
|
|
const handleClick = (data) => {
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
@ -699,6 +731,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
const ClickSave = () => {
|
|
|
|
const ClickSave = () => {
|
|
|
|
let ApiData = form.value;
|
|
|
|
let ApiData = form.value;
|
|
|
|
|
|
|
|
ApiData.portLoadingCode = ApiData.portLoadingCode.split(";")[2];
|
|
|
|
// fileList
|
|
|
|
// fileList
|
|
|
|
ApiData = {
|
|
|
|
ApiData = {
|
|
|
|
...ApiData,
|
|
|
|
...ApiData,
|
|
|
@ -712,6 +745,12 @@ export default {
|
|
|
|
type: "success",
|
|
|
|
type: "success",
|
|
|
|
});
|
|
|
|
});
|
|
|
|
form.value = res.data;
|
|
|
|
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 = {
|
|
|
|
form.value.cargoData = {
|
|
|
|
dangerClass: res.data.dangerClass,
|
|
|
|
dangerClass: res.data.dangerClass,
|
|
|
|
dangerLable: res.data.dangerLable,
|
|
|
|
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 RefSendDialog = ref();
|
|
|
|
const ClicSend = () => {
|
|
|
|
const ClicSend = () => {
|
|
|
|
bookingCustomInfo({ id: form.value.id }).then((res) => {
|
|
|
|
console.log(formDatatype.value);
|
|
|
|
if (res.code == 200) {
|
|
|
|
if (!formDatatype.value) {
|
|
|
|
console.log(res);
|
|
|
|
bookingCustomInfo({ id: form.value.id }).then((res) => {
|
|
|
|
RefSendDialog.value.OpenDialog(res.data);
|
|
|
|
if (res.code == 200) {
|
|
|
|
}
|
|
|
|
console.log(res);
|
|
|
|
});
|
|
|
|
RefSendDialog.value.OpenDialog(res.data);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
ElMessage({
|
|
|
|
|
|
|
|
message: "数据变动,请先保存数据。",
|
|
|
|
|
|
|
|
type: "warning",
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
// bookingCustomSubmit({ id: form.value.id }).then((res) => {
|
|
|
|
// bookingCustomSubmit({ id: form.value.id }).then((res) => {
|
|
|
|
// if (res.code == 200) {
|
|
|
|
// if (res.code == 200) {
|
|
|
|
// ElMessage({
|
|
|
|
// ElMessage({
|
|
|
@ -879,13 +929,14 @@ export default {
|
|
|
|
const results = queryString
|
|
|
|
const results = queryString
|
|
|
|
? restaurants.filter((item) => {
|
|
|
|
? restaurants.filter((item) => {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
item.code.toLowerCase().indexOf(queryString.toLowerCase()) !== -1
|
|
|
|
item.WebShow.toLowerCase().indexOf(queryString.toLowerCase()) !==
|
|
|
|
|
|
|
|
-1
|
|
|
|
);
|
|
|
|
);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
: restaurants;
|
|
|
|
: restaurants;
|
|
|
|
let RData = [];
|
|
|
|
let RData = [];
|
|
|
|
results.forEach((item) => {
|
|
|
|
results.forEach((item) => {
|
|
|
|
RData.push({ ...item, value: item.code });
|
|
|
|
RData.push({ ...item, value: item.WebShow });
|
|
|
|
});
|
|
|
|
});
|
|
|
|
cb(RData);
|
|
|
|
cb(RData);
|
|
|
|
};
|
|
|
|
};
|
|
|
|