|
|
|
@ -198,6 +198,33 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="船运货物类型" prop="shipmentTypeCode">
|
|
|
|
|
<!-- <el-input v-model="form.name"></el-input> -->
|
|
|
|
|
<el-select
|
|
|
|
|
clearable
|
|
|
|
|
v-model="form.shipmentTypeCode"
|
|
|
|
|
filterable
|
|
|
|
|
@change="
|
|
|
|
|
(e) =>
|
|
|
|
|
SelectChange(
|
|
|
|
|
e,
|
|
|
|
|
this.shipmentTypeCodeData,
|
|
|
|
|
'shipmentTypeName'
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
placeholder="请选择船运货物类型"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in shipmentTypeCodeData"
|
|
|
|
|
:key="item.code"
|
|
|
|
|
:label="item.value"
|
|
|
|
|
:value="item.code"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
@ -231,30 +258,11 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="船运货物类型" prop="shipmentTypeCode">
|
|
|
|
|
<!-- <el-input v-model="form.name"></el-input> -->
|
|
|
|
|
<el-select
|
|
|
|
|
clearable
|
|
|
|
|
v-model="form.shipmentTypeCode"
|
|
|
|
|
filterable
|
|
|
|
|
@change="
|
|
|
|
|
(e) =>
|
|
|
|
|
SelectChange(
|
|
|
|
|
e,
|
|
|
|
|
this.shipmentTypeCodeData,
|
|
|
|
|
'shipmentTypeName'
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
placeholder="请选择船运货物类型"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in shipmentTypeCodeData"
|
|
|
|
|
:key="item.code"
|
|
|
|
|
:label="item.value"
|
|
|
|
|
:value="item.code"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
<el-form-item label="船东提单号" prop="shipMasterBillNo">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.shipMasterBillNo"
|
|
|
|
|
placeholder="请输入船东提单号"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
@ -268,6 +276,16 @@
|
|
|
|
|
:rules="rules1"
|
|
|
|
|
:disabled="form.EditType == '查看'"
|
|
|
|
|
>
|
|
|
|
|
<div class="BondBox">
|
|
|
|
|
<p>BOND选择</p>
|
|
|
|
|
<el-radio v-model="form.bondOwnCode" label="1">自有BOND</el-radio>
|
|
|
|
|
<el-radio v-model="form.bondOwnCode" label="2">大简云BOND</el-radio>
|
|
|
|
|
<span
|
|
|
|
|
>注意:若使用我司bond发送,会产生bond使用费人民币{{
|
|
|
|
|
price
|
|
|
|
|
}}元</span
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 进口商信息 (IM) -->
|
|
|
|
|
<el-col :span="23">
|
|
|
|
|
<div class="mini_title">
|
|
|
|
@ -319,7 +337,9 @@
|
|
|
|
|
<el-form-item
|
|
|
|
|
label="公司ID"
|
|
|
|
|
prop="companyId"
|
|
|
|
|
:rules="[
|
|
|
|
|
:rules="
|
|
|
|
|
form.bondOwnCode == '1'
|
|
|
|
|
? [
|
|
|
|
|
{ required: true, message: '请填写 ID' },
|
|
|
|
|
{
|
|
|
|
|
validator: (rule, value, callback) => {
|
|
|
|
@ -327,7 +347,9 @@
|
|
|
|
|
},
|
|
|
|
|
trigger: ['blur', 'change'],
|
|
|
|
|
},
|
|
|
|
|
]"
|
|
|
|
|
]
|
|
|
|
|
: ''
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<i class="el-icon-question" @click="FnOpenDialog"></i>
|
|
|
|
|
<el-input
|
|
|
|
@ -572,7 +594,9 @@
|
|
|
|
|
<el-form-item
|
|
|
|
|
label="公司ID"
|
|
|
|
|
prop="companyId"
|
|
|
|
|
:rules="[
|
|
|
|
|
:rules="
|
|
|
|
|
form.bondOwnCode == '1'
|
|
|
|
|
? [
|
|
|
|
|
{ required: true, message: '请填写 ID' },
|
|
|
|
|
{
|
|
|
|
|
validator: (rule, value, callback) => {
|
|
|
|
@ -580,7 +604,9 @@
|
|
|
|
|
},
|
|
|
|
|
trigger: ['blur', 'change'],
|
|
|
|
|
},
|
|
|
|
|
]"
|
|
|
|
|
]
|
|
|
|
|
: ''
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<i class="el-icon-question" @click="FnOpenDialog"></i>
|
|
|
|
|
<el-input
|
|
|
|
@ -825,7 +851,9 @@
|
|
|
|
|
<el-form-item
|
|
|
|
|
label="公司ID"
|
|
|
|
|
prop="companyId"
|
|
|
|
|
:rules="[
|
|
|
|
|
:rules="
|
|
|
|
|
form.bondOwnCode == '1'
|
|
|
|
|
? [
|
|
|
|
|
{ required: true, message: '请填写 ID' },
|
|
|
|
|
{
|
|
|
|
|
validator: (rule, value, callback) => {
|
|
|
|
@ -833,7 +861,9 @@
|
|
|
|
|
},
|
|
|
|
|
trigger: ['blur', 'change'],
|
|
|
|
|
},
|
|
|
|
|
]"
|
|
|
|
|
]
|
|
|
|
|
: ''
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<i class="el-icon-question" @click="FnOpenDialog"></i>
|
|
|
|
|
<el-input
|
|
|
|
@ -1078,7 +1108,9 @@
|
|
|
|
|
<el-form-item
|
|
|
|
|
label="公司ID"
|
|
|
|
|
prop="companyId"
|
|
|
|
|
:rules="[
|
|
|
|
|
:rules="
|
|
|
|
|
form.bondOwnCode == '1'
|
|
|
|
|
? [
|
|
|
|
|
{ required: true, message: '请填写 ID' },
|
|
|
|
|
{
|
|
|
|
|
validator: (rule, value, callback) => {
|
|
|
|
@ -1086,7 +1118,9 @@
|
|
|
|
|
},
|
|
|
|
|
trigger: ['blur', 'change'],
|
|
|
|
|
},
|
|
|
|
|
]"
|
|
|
|
|
]
|
|
|
|
|
: ''
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<i class="el-icon-question" @click="FnOpenDialog"></i>
|
|
|
|
|
<el-input
|
|
|
|
@ -2020,6 +2054,33 @@
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
<CompanyIdDialog ref="CompanyIdDialog" />
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="发送确认"
|
|
|
|
|
:visible.sync="dialogVisible"
|
|
|
|
|
width="960px"
|
|
|
|
|
:before-close="
|
|
|
|
|
() => {
|
|
|
|
|
dialogVisible = false;
|
|
|
|
|
}
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<span>
|
|
|
|
|
您正在使用大简云的BOND来发送ISF,需额外付大简云BOND服务费:{{
|
|
|
|
|
price
|
|
|
|
|
}}元/票
|
|
|
|
|
</span>
|
|
|
|
|
<div :style="{ marginTop: '20px' }">
|
|
|
|
|
<el-checkbox v-model="BondCheckboxType"> </el-checkbox>
|
|
|
|
|
<span>
|
|
|
|
|
本人承诺,以上所填写信息均真实、有效,且确保发送时间为装船前24小时,否则,因虚假申报或晚申报导致的一切后果,如被目的港退回、罚款<br />
|
|
|
|
|
等,一律由我司自行承担,与平台无关。
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<span slot="footer" class="dialog-footer" v-if="BondCheckboxType">
|
|
|
|
|
<el-button type="primary" @click="dialogVisibleOK">确认发送</el-button>
|
|
|
|
|
</span>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
@ -2035,6 +2096,7 @@ import {
|
|
|
|
|
SaveTemplate,
|
|
|
|
|
GetTemplate,
|
|
|
|
|
GetCodeCity,
|
|
|
|
|
GetPrice,
|
|
|
|
|
ExportPDF,
|
|
|
|
|
GetCodeProvince,
|
|
|
|
|
} from "@/api/views/AmsIndex";
|
|
|
|
@ -2047,7 +2109,12 @@ export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
moment,
|
|
|
|
|
price: "*",
|
|
|
|
|
FunUpDataC: "",
|
|
|
|
|
FormC: {},
|
|
|
|
|
activeNames: ["0", "1", "2", "3", "4"],
|
|
|
|
|
dialogVisible: false,
|
|
|
|
|
BondCheckboxType: true,
|
|
|
|
|
form: {
|
|
|
|
|
dischargeHarbourCode: "", //外国卸货港
|
|
|
|
|
deliveryHarbourCode: "", //交货地
|
|
|
|
@ -2057,6 +2124,7 @@ export default {
|
|
|
|
|
shipmentTypeCode: "", //贸易类型
|
|
|
|
|
companyListBackup: companyListBackup(),
|
|
|
|
|
companyList: [],
|
|
|
|
|
bondOwnCode: "1",
|
|
|
|
|
},
|
|
|
|
|
CargosList: [{ hstCode: "" }],
|
|
|
|
|
rules: {
|
|
|
|
@ -2067,6 +2135,7 @@ export default {
|
|
|
|
|
inFoType: [{ required: true, message: "请选择申报类型" }],
|
|
|
|
|
blTypeCode: [{ required: true, message: "请选择提单类型" }],
|
|
|
|
|
mblno: [{ required: true, message: "请填写AMS B/L NO" }],
|
|
|
|
|
shipMasterBillNo: [{ required: true, message: "请填写船东提单号" }],
|
|
|
|
|
shipmentTypeCode: [{ required: true, message: "请选择船运货物类型" }],
|
|
|
|
|
},
|
|
|
|
|
rules1: {
|
|
|
|
@ -2282,6 +2351,18 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
GetData() {
|
|
|
|
|
GetPrice().then((res) => {
|
|
|
|
|
if (res.data.code == 200) {
|
|
|
|
|
this.price = res.data.result.price;
|
|
|
|
|
} else {
|
|
|
|
|
this.$message({
|
|
|
|
|
message: "查询ISF计费规则失败",
|
|
|
|
|
type: "warning",
|
|
|
|
|
showClose: true,
|
|
|
|
|
duration: 0,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
GetCountry().then((res) => {
|
|
|
|
|
this.CountryData_original = res.data.result;
|
|
|
|
|
this.CountryData_original.forEach((item) => {
|
|
|
|
@ -2608,6 +2689,24 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
FunUpData(res, form) {
|
|
|
|
|
console.log(res, form);
|
|
|
|
|
console.log({
|
|
|
|
|
ids: res.data.data,
|
|
|
|
|
msgType: form.EditType == "复制" ? "1" : "2",
|
|
|
|
|
});
|
|
|
|
|
Send({
|
|
|
|
|
ids: res.data.data,
|
|
|
|
|
msgType: form.EditType == "复制" ? "1" : "2",
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
if (res.data.code == 200) {
|
|
|
|
|
this.$message({
|
|
|
|
|
message: "发送成功",
|
|
|
|
|
type: "success",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 保存草稿
|
|
|
|
|
FunSave(FunType) {
|
|
|
|
|
if (this.form.EditType == "查看") {
|
|
|
|
@ -2668,17 +2767,13 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
if (refFormtype) {
|
|
|
|
|
Send({
|
|
|
|
|
ids: res.data.data,
|
|
|
|
|
msgType: form.EditType == "复制" ? "1" : "2",
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
if (res.data.code == 200) {
|
|
|
|
|
this.$message({
|
|
|
|
|
message: "发送成功",
|
|
|
|
|
type: "success",
|
|
|
|
|
});
|
|
|
|
|
if (form.bondOwnCode == "2") {
|
|
|
|
|
this.dialogVisible = true;
|
|
|
|
|
this.FunUpDataC = res;
|
|
|
|
|
this.FormC = form;
|
|
|
|
|
} else {
|
|
|
|
|
this.FunUpData(res, form);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.$message({
|
|
|
|
|
message: "请填写必填内容!",
|
|
|
|
@ -2715,6 +2810,10 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
dialogVisibleOK() {
|
|
|
|
|
this.dialogVisible = false;
|
|
|
|
|
this.FunUpData(this.FunUpDataC, this.FormC);
|
|
|
|
|
},
|
|
|
|
|
// 删单
|
|
|
|
|
FunDel() {
|
|
|
|
|
Send({ ids: this.form.gid, msgType: "3" }).then((res) => {
|
|
|
|
@ -2853,4 +2952,18 @@ export default {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
color: #a8a8a8;
|
|
|
|
|
}
|
|
|
|
|
.BondBox {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
margin: 0px 0 0px 32px;
|
|
|
|
|
p {
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
margin-right: 16px;
|
|
|
|
|
margin-top: -5px;
|
|
|
|
|
}
|
|
|
|
|
span {
|
|
|
|
|
color: red;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|