Commit 20b1178e authored by dragondean@qq.com's avatar dragondean@qq.com

提单模板抬头模板选择

parent 5de0e9b0
......@@ -313,6 +313,7 @@
<el-input v-model="ladingform.prefixCounter" :placeholder="$t('请输入货柜前缀')" />
</el-form-item>
<el-form-item :label="$t('抬头')" prop="titleZh">
<el-link type="primary" @click.native="setTpl('sea')">海运模板</el-link> | <el-link type="primary" @click.native="setTpl('air')">空运模板</el-link>
<ueditor v-model="ladingform.titleZh" :min-height="192" style="width:960px"/>
</el-form-item>
......@@ -393,6 +394,9 @@ import RoutersSelectorWithoutChannel from '@/components/RoutersSelectorWithoutCh
import { has } from 'min-dash';
import Template from "../../cms/template/index";
// 海运和空运的抬头模板
import tpl from './tpl'
console.log(tpl)
export default {
name: "Warehouse",
components: {
......@@ -642,6 +646,9 @@ export default {
console.log("transportDatas:"+JSON.stringify(this.transportDatas));
},
methods: {
setTpl(type){
this.ladingform.titleZh = tpl[type]
},
/** 查询列表 */
getList() {
this.loading = true;
......
const sea = `
<table style="width:96%;">
<tbody>
<tr class="firstRow">
<td style="text-align:center;">
<img src="https://static2.groupage.cn/logo.png" alt="" style="width:118px;"/>
</td>
<td class="laymain" style="vertical-align:text-top;">
<p style="font-size:36px;color:#008fd7;font-family:&#39;Times New Roman&#39;;text-align:center;">
E&C LOGISTICS LIMITED
</p>
<p style="font-size:16px;color:#008fd7;font-family:&#39;Times New Roman&#39;;text-align:center;">
China Head Add.: +8618058993570/ 13556084412/13660548225/
</p>
<p style="font-size:16px;color:#008fd7;font-family:&#39;Times New Roman&#39;;text-align:center;">
Yiwu Branch: +15957997302/ 18058993571/13105572235
</p>
<p style="font-size:16px;color:#008fd7;font-family:&#39;Times New Roman&#39;;text-align:center;">
NGR head office: 07011331745/ 08140352000/
</p>
<p style="font-size:16px;color:#008fd7;font-family:&#39;Times New Roman&#39;;text-align:center;">
Alaba Branch (Air-Cargo) : 07082148641/ 08105496751/ 07011331745
</p>
</td>
<td style="text-align:center;">
<img src="https://static2.groupage.cn/weixin.jpg" alt="" style="width:142px;"/>
<p style="font-size:16px;color:#008fd7;font-family:&#39;Times New Roman&#39;;text-align:center;">
Website: www.groupage.cn
</p>
</td>
</tr>
</tbody>
</table>
<table style="width:96%;">
<tbody>
<tr class="firstRow">
<td style="font-size: 16px; color: rgb(0, 143, 215); word-break: break-all;">
<span style="color: rgb(0, 143, 215); font-family: "></span><span style="color: rgb(0, 143, 215); font-family: ">Lagos Airport Branch</span>: 07018291182/07082148641
</td>
<td style="font-size:16px;color:#008fd7;font-family:&#39;Times New Roman&#39;;text-align:center;">
Trade fair Branch: 07013178195/ 09023762194
</td>
</tr>
</tbody>
</table>
<p style="font-size:16px;color:#008fd7;font-family:&#39;Times New Roman&#39;;text-align:center;">
IDUMOTA/ISLAND : 07010775374/09025168630/09024538636
</p>
<p style="font-size:16px;color:#008fd7;font-family:&#39;Times New Roman&#39;;text-align:center;">
Complaint Line:+86 15920356527(CHINA) / +2349021774695 (NIGERIA)
</p>
<p style="font-size:33px;color:#000;font-family:&#39;Times New Roman&#39;;text-align:center;">
PACKING LIST
</p>
`
const air= `
<table style="width:96%;">
<tbody>
<tr class="firstRow">
<td style="text-align:center;">
<img src="https://jd.static.jdshangmen.com/logo.png" alt="" style="width:118px;"/>
</td>
<td class="laymain" style="vertical-align:text-top;">
<p style="font-size:36px;color:#008fd7;font-family:&#39;Times New Roman&#39;;text-align:center;">
E&C LOGISTICS LIMITED
</p>
<p style="font-size:16px;color:#008fd7;font-family:&#39;Times New Roman&#39;;text-align:center;">
China Head Add.: +8618058993570/ 13556084412/13660548225/
</p>
<p style="font-size:16px;color:#008fd7;font-family:&#39;Times New Roman&#39;;text-align:center;">
Yiwu Branch: +15957997302/ 18058993571/13105572235
</p>
<p style="font-size:16px;color:#008fd7;font-family:&#39;Times New Roman&#39;;text-align:center;">
NGR head office: 07011331745/ 08140352000/
</p>
<p style="font-size:16px;color:#008fd7;font-family:&#39;Times New Roman&#39;;text-align:center;">
Alaba Branch (Air-Cargo) : 07082148641/ 08105496751/ 07011331745
</p>
</td>
<td style="text-align:center;">
<img src="https://jd.static.jdshangmen.com/weixin.jpg" alt="" style="width:142px;"/>
<p style="font-size:16px;color:#008fd7;font-family:&#39;Times New Roman&#39;;text-align:center;">
Website: www.groupage.cn
</p>
</td>
</tr>
</tbody>
</table>
<table style="width:96%;">
<tbody>
<tr class="firstRow">
<td style="font-size:16px;color:#008fd7;font-family:&#39;Times New Roman&#39;;text-align:center;">
Lagos Airport Branch: 07018291182/07082148641
</td>
<td style="font-size:16px;color:#008fd7;font-family:&#39;Times New Roman&#39;;text-align:center;">
Trade fair Branch: 07013178195/ 09023762194
</td>
</tr>
</tbody>
</table>
<p style="font-size:16px;color:#008fd7;font-family:&#39;Times New Roman&#39;;text-align:center;">
IDUMOTA/ISLAND : 07010775374/09025168630/09024538636
</p>
<p style="font-size:16px;color:#008fd7;font-family:&#39;Times New Roman&#39;;text-align:center;">
Complaint Line:+86 15920356527(CHINA) / +2349021774695 (NIGERIA)
</p>
<p style="font-size:33px;color:#000;font-family:&#39;Times New Roman&#39;;text-align:center;">
AIR WAY BILL
</p>
`
module.exports = {
sea, air
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment