|
|
|
@ -68,12 +68,14 @@
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.carrierCode"
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
filterable
|
|
|
|
|
clearable
|
|
|
|
|
@change="ChangecarrierCode"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in store.state.Data.Carrierlist"
|
|
|
|
|
:key="item.code"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:label="item.WebShow"
|
|
|
|
|
:value="item.code"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
@ -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 @@
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="包装">
|
|
|
|
|
<!-- <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
|
|
|
|
|
v-for="item in store.state.Data.packagelist"
|
|
|
|
|
:key="item.code"
|
|
|
|
@ -394,9 +401,13 @@
|
|
|
|
|
<el-input v-model="form.cargoData.ventilationRate" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</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-form-item label="温度单位">
|
|
|
|
|
<!-- <el-input v-model="form.cargoData.temperatureUnit" /> -->
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.cargoData.temperatureUnit"
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
@ -491,6 +502,8 @@
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="scope.row.ctnCode"
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
filterable
|
|
|
|
|
clearable
|
|
|
|
|
@change="
|
|
|
|
|
(e) => {
|
|
|
|
|
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);
|
|
|
|
|
};
|
|
|
|
|