|
|
|
@ -11,6 +11,11 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="'国家'" > |
|
|
|
<el-input v-model="pageData.cnative"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="''" > |
|
|
|
<template #label> |
|
|
|
@ -18,45 +23,46 @@ |
|
|
|
<a href="#" @click="customFlag=true">客户</a> |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
<el-input v-model="pageData.customerName" ></el-input> |
|
|
|
<el-input type="textarea" |
|
|
|
:rows="2" v-model="pageData.customerName" ></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="''" > |
|
|
|
<template #label> |
|
|
|
<span slot="label" style="" class="big-label"> |
|
|
|
<a href="#" @click="localShipAddressFlag=true">客户地址</a> |
|
|
|
<a href="#" @click="overseasShipperFlag=true">收货单位</a> |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
<el-input v-model="pageData.localShipAddress" ></el-input> |
|
|
|
<el-input type="textarea" |
|
|
|
:rows="2" v-model="pageData.overseasShipper" ></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
|
|
|
|
<el-col :span="12" style="margin-top: 30px"> |
|
|
|
<el-form-item :label="''" > |
|
|
|
<template #label> |
|
|
|
<span slot="label" style="" class="big-label"> |
|
|
|
<a href="#" @click="overseasShipperFlag=true">收货人</a> |
|
|
|
<a href="#" @click="localShipAddressFlag=true">客户地址</a> |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
<el-input v-model="pageData.overseasShipper" ></el-input> |
|
|
|
<el-input type="textarea" |
|
|
|
:rows="3" v-model="pageData.localShipAddress" ></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
|
|
|
|
<el-col :span="12" style="margin-top: 30px"> |
|
|
|
<el-form-item :label="''" > |
|
|
|
<template #label> |
|
|
|
<span slot="label" style="" class="big-label"> |
|
|
|
<a href="#" @click="overseasAddressFlag=true">收货人地址</a> |
|
|
|
<a href="#" @click="overseasAddressFlag=true">收货单位地址</a> |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
<el-input v-model="pageData.overseasAddress" ></el-input> |
|
|
|
<el-input type="textarea" |
|
|
|
:rows="3" v-model="pageData.overseasAddress" ></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="'籍贯'" > |
|
|
|
<el-input v-model="pageData.cnative"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-col :span="24" style="margin-top: 30px"> |
|
|
|
<el-form-item label=" "> |
|
|
|
<el-button type="primary" @click="downloadFile()">下载文件模板</el-button> |
|
|
|
</el-form-item> </el-col> |
|
|
|
@ -125,7 +131,7 @@ |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<el-dialog title="收货人地址" @close="overseasAddressFlag = false" :visible.sync="overseasAddressFlag" width="500px" v-drag> |
|
|
|
<el-dialog title="收货单位地址" @close="overseasAddressFlag = false" :visible.sync="overseasAddressFlag" width="500px" v-drag> |
|
|
|
<el-table |
|
|
|
:height="400" |
|
|
|
:data="customerAddrs" |
|
|
|
@ -138,7 +144,7 @@ |
|
|
|
prop="cDeliverAdd" |
|
|
|
header-align="center" |
|
|
|
align="left" |
|
|
|
label="收货人地址"> |
|
|
|
label="收货单位地址"> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<el-footer style="height:40px;margin-top: 10px;text-align:center"> |
|
|
|
@ -146,20 +152,26 @@ |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<el-dialog title="收货人" @close="overseasShipperFlag = false" :visible.sync="overseasShipperFlag" width="500px" v-drag> |
|
|
|
<el-dialog title="收货单位" @close="overseasShipperFlag = false" :visible.sync="overseasShipperFlag" width="500px" v-drag> |
|
|
|
<el-table |
|
|
|
:height="400" |
|
|
|
:data="customerPersons" |
|
|
|
:data="customerAddrs" |
|
|
|
stripe |
|
|
|
highlight-current-row |
|
|
|
border |
|
|
|
@row-dblclick="rowDblclick4" |
|
|
|
style="width: 100%;"> |
|
|
|
<el-table-column |
|
|
|
prop="ccontactname" |
|
|
|
prop="cDeliverUnit" |
|
|
|
header-align="left" |
|
|
|
align="left" |
|
|
|
label="收货单位"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="country" |
|
|
|
header-align="center" |
|
|
|
align="left" |
|
|
|
label="收货人"> |
|
|
|
label="国家"> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<el-footer style="height:40px;margin-top: 10px;text-align:center"> |
|
|
|
@ -287,8 +299,8 @@ |
|
|
|
this.overseasAddressFlag = false |
|
|
|
}, |
|
|
|
rowDblclick4 (row) { |
|
|
|
this.pageData.overseasShipper=row.ccontactname |
|
|
|
this.setCnative() |
|
|
|
this.pageData.overseasShipper=row.cDeliverUnit |
|
|
|
this.pageData.cnative=row.country |
|
|
|
this.overseasShipperFlag = false |
|
|
|
}, |
|
|
|
|
|
|
|
@ -336,15 +348,15 @@ |
|
|
|
return false |
|
|
|
} |
|
|
|
if (null == this.pageData.overseasShipper || this.pageData.overseasShipper=='') { |
|
|
|
this.$message.error("请先填写收货人!") |
|
|
|
this.$message.error("请先填写收货单位!") |
|
|
|
return false |
|
|
|
} |
|
|
|
if (null == this.pageData.overseasAddress || this.pageData.overseasAddress=='') { |
|
|
|
this.$message.error("请先填写收货人地址!") |
|
|
|
this.$message.error("请先填写收货单位地址!") |
|
|
|
return false |
|
|
|
} |
|
|
|
if (null == this.pageData.cnative || this.pageData.cnative=='') { |
|
|
|
this.$message.error("请先填写收货人籍贯!") |
|
|
|
this.$message.error("请先填写收货单位国家!") |
|
|
|
return false |
|
|
|
} |
|
|
|
// 判断文件是否上传 |
|
|
|
|