You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3043 lines
115 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
8 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
6 months ago
1 year ago
1 year ago
10 months ago
1 year ago
10 months ago
1 year ago
10 months ago
12 months ago
10 months ago
1 year ago
6 months ago
1 year ago
8 months ago
8 months ago
12 months ago
1 year ago
12 months ago
6 months ago
1 year ago
1 year ago
6 months ago
1 year ago
9 months ago
1 year ago
9 months ago
1 year ago
9 months ago
1 year ago
9 months ago
12 months ago
1 year ago
12 months ago
1 year ago
2 weeks ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
8 months ago
1 year ago
2 weeks ago
1 week ago
2 weeks ago
1 week ago
2 weeks ago
1 week ago
2 weeks ago
1 week ago
2 weeks ago
1 week ago
2 weeks ago
1 week ago
2 weeks ago
1 week ago
2 weeks ago
8 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
12 months ago
10 months ago
12 months ago
1 year ago
12 months ago
1 year ago
9 months ago
1 year ago
1 year ago
1 year ago
9 months ago
1 year ago
9 months ago
1 year ago
9 months ago
12 months ago
1 year ago
1 year ago
1 year ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
9 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 week ago
1 year ago
1 week ago
1 year ago
1 week ago
1 year ago
1 week ago
1 year ago
2 weeks ago
2 weeks ago
1 year ago
8 months ago
1 year ago
1 year ago
2 weeks ago
1 year ago
1 year ago
1 year ago
1 year ago
8 months ago
1 year ago
2 weeks ago
8 months ago
1 year ago
2 weeks ago
1 year ago
1 year ago
1 year ago
1 year ago
12 months ago
1 week ago
1 year ago
2 weeks ago
1 year ago
1 year ago
12 months ago
1 year ago
1 year ago
12 months ago
1 year ago
9 months ago
9 months ago
10 months ago
1 year ago
1 year ago
8 months ago
1 year ago
1 year ago
9 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
8 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
6 months ago
1 year ago
2 weeks ago
2 months ago
1 year ago
1 year ago
1 year ago
6 months ago
1 year ago
1 year ago
2 months ago
1 year ago
1 year ago
1 year ago
1 year ago
12 months ago
1 year ago
8 months ago
1 year ago
1 week ago
1 year ago
2 weeks ago
1 year ago
1 week ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
12 months ago
1 year ago
12 months ago
10 months ago
1 year ago
1 year ago
1 year ago
1 year ago
8 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
9 months ago
1 year ago
9 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
12 months ago
1 year ago
2 weeks ago
1 week ago
1 year ago
12 months ago
10 months ago
1 year ago
8 months ago
1 year ago
12 months ago
1 year ago
1 year ago
2 weeks ago
1 year ago
8 months ago
1 year ago
6 months ago
1 year ago
2 months ago
1 year ago
6 months ago
1 year ago
2 months ago
1 year ago
8 months ago
1 year ago
1 week ago
1 year ago
2 weeks ago
8 months ago
8 months ago
2 weeks ago
6 months ago
2 weeks ago
8 months ago
1 year ago
8 months ago
2 weeks ago
1 week ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
2 weeks ago
8 months ago
1 year ago
8 months ago
6 months ago
1 year ago
8 months ago
12 months ago
6 months ago
1 year ago
6 months ago
1 year ago
1 week ago
1 year ago
2 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <div class="mod-config">
  3. <el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
  4. <el-form-item :label="'工厂编码:'">
  5. <el-input v-model="searchData.site" style="width: 120px"></el-input>
  6. </el-form-item>
  7. <el-form-item :label="'报关单号:'">
  8. <el-input v-model="searchData.declarationNo" clearable style="width: 120px"></el-input>
  9. </el-form-item>
  10. <el-form-item :label="'发货通知单:'">
  11. <el-input v-model="searchData.delNo" clearable style="width: 120px"></el-input>
  12. </el-form-item>
  13. <el-form-item :label="'CMC Invoice:'">
  14. <el-input v-model="searchData.cmcInvoice" clearable style="width: 120px"></el-input>
  15. </el-form-item>
  16. <el-form-item :label="'出口日期'" >
  17. <el-date-picker
  18. style="width: 120px"
  19. v-model="searchData.startDate"
  20. type="date"
  21. format="yyyy-MM-dd"
  22. value-format="yyyy-MM-dd"
  23. placeholder="选择日期">
  24. </el-date-picker>
  25. </el-form-item>
  26. <el-form-item :label="'To'" >
  27. <el-date-picker
  28. style="width: 120px"
  29. v-model="searchData.endDate"
  30. type="date"
  31. format="yyyy-MM-dd"
  32. value-format="yyyy-MM-dd"
  33. placeholder="选择日期">
  34. </el-date-picker>
  35. </el-form-item>
  36. <el-form-item label=" ">
  37. <el-button @click="searchTable()" type="primary" style="margin-left: 2px">{{'查询'}}</el-button>
  38. </el-form-item><br>
  39. <el-form-item label=" ">
  40. <el-button @click="chooseBrandType()" type="primary" style="margin-left: 2px">{{'导出报关要素'}}</el-button>
  41. </el-form-item>
  42. <el-form-item label=" ">
  43. <el-button @click="chooseHsCodeDescType" type="primary" style="margin-left: 2px">{{'导出报关单'}}</el-button>
  44. </el-form-item>
  45. <el-form-item label=" ">
  46. <el-button @click="exportInvoiceList()" type="primary" style="margin-left: 2px">{{'导出发票'}}</el-button>
  47. </el-form-item>
  48. <el-form-item label=" ">
  49. <el-button @click="exportPakingList()" type="primary" style="margin-left: 2px">{{'导出箱单'}}</el-button>
  50. </el-form-item>
  51. <el-form-item label=" ">
  52. <el-button @click="exportGoodsList()" type="primary" style="margin-left: 2px">{{'导出出口货物委托书'}}</el-button>
  53. </el-form-item>
  54. <!-- <el-form-item label=" ">
  55. <el-button @click="exportContract()" type="primary" style="margin-left: 2px">{{'导出合同'}}</el-button>
  56. </el-form-item>-->
  57. <el-form-item label=" ">
  58. <el-button @click="exportAllOpen()" type="primary" style="margin-left: 2px" :loading="exportAllLoading">{{'一键导出'}}</el-button>
  59. </el-form-item>
  60. </el-form>
  61. <el-table
  62. @row-click="changeData"
  63. highlight-current-row
  64. @current-change="handleCurrentChange"
  65. :height="height"
  66. :data="dataList"
  67. ref="mainTable"
  68. border
  69. v-loading="dataListLoading"
  70. style="width: 100%;">
  71. <el-table-column
  72. header-align="center"
  73. align="center"
  74. width="150"
  75. label="操作">
  76. <template slot-scope="scope">
  77. <a type="text" size="small" @click="deleteBG(scope.row)">删除报关单</a>
  78. </template>
  79. </el-table-column>
  80. <el-table-column
  81. v-for="(item,index) in columnList" :key="index"
  82. :sortable="item.columnSortable"
  83. :prop="item.columnProp"
  84. :header-align="item.headerAlign"
  85. :show-overflow-tooltip="item.showOverflowTooltip"
  86. :align="item.align"
  87. :fixed="item.fixed==''?false:item.fixed"
  88. :min-width="item.columnWidth"
  89. :label="item.columnLabel">
  90. <template slot-scope="scope">
  91. <span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
  92. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  93. style="width: 100px; height: 80px"/></span>
  94. </template>
  95. </el-table-column>
  96. </el-table>
  97. <el-pagination
  98. @size-change="sizeChangeHandle"
  99. @current-change="currentChangeHandle"
  100. :current-page="pageIndex"
  101. :page-sizes="[20, 50, 100, 1000]"
  102. :page-size="pageSize"
  103. :total="totalPage"
  104. layout="total, sizes, prev, pager, next, jumper">
  105. </el-pagination>
  106. <el-tabs style="font-size: 12px;min-height: 200px" class="customer-tab" v-model="activeName" type="border-card" @tab-click="tabClick" >
  107. <el-tab-pane label="明细" name="detail">
  108. <el-table
  109. :height="height"
  110. :data="dataList2"
  111. border
  112. style="width: 100%;">
  113. <el-table-column
  114. v-for="(item,index) in columnList2" :key="index"
  115. v-if="shouldShowDetailColumn(item)"
  116. :sortable="item.columnSortable"
  117. :prop="item.columnProp"
  118. :header-align="item.headerAlign"
  119. :show-overflow-tooltip="item.showOverflowTooltip"
  120. :align="item.align"
  121. :fixed="item.fixed==''?false:item.fixed"
  122. :min-width="item.columnWidth"
  123. :label="item.columnLabel">
  124. <template slot-scope="scope">
  125. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  126. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  127. </template>
  128. </el-table-column>
  129. </el-table>
  130. </el-tab-pane>
  131. </el-tabs>
  132. <el-dialog title="一键导出" :close-on-click-modal="false" style="top: -85px" v-drag :visible.sync="exportAllFlag" :width="'740px'">
  133. <el-form label-position="top" style="margin-left: 7px;margin-top: 5px;margin-bottom: 5px">
  134. <el-row :gutter="20">
  135. <el-col :span="6">
  136. <el-form-item :label="'合同协议号'" >
  137. <el-input v-model="exportHeader.contractNo" disabled></el-input>
  138. </el-form-item>
  139. </el-col>
  140. <el-col :span="6">
  141. <el-form-item :label="'运输方式'" >
  142. <el-input v-model="exportHeader.transportMode" disabled></el-input>
  143. </el-form-item>
  144. </el-col>
  145. <el-col :span="6">
  146. <el-form-item :label="'运抵国'" >
  147. <el-input v-model="exportHeader.arrivalCountry" disabled></el-input>
  148. </el-form-item>
  149. </el-col>
  150. <el-col :span="6">
  151. <el-form-item :label="'贸易国'" >
  152. <el-input v-model="exportHeader.tradeCountry" disabled></el-input>
  153. </el-form-item>
  154. </el-col>
  155. </el-row>
  156. <el-row :gutter="20" style="margin-top: 5px">
  157. <div class="custom-divider"><span class="text" style="left: 22%">报关要素</span></div>
  158. <!-- 报关要素-->
  159. <el-col :span="12">
  160. <el-form-item :label="'品牌'" >
  161. <el-radio v-model="brandType" label="境外品牌(其他)">境外品牌其他</el-radio>
  162. <el-radio v-model="brandType" label="无品牌">无品牌</el-radio>
  163. </el-form-item>
  164. </el-col>
  165. <el-col :span="12">
  166. <el-form-item :label="'品名类型'" >
  167. <el-radio v-model="hsCodeDescType" label="Y">中文</el-radio>
  168. <el-radio style="margin-left: 50px;" v-model="hsCodeDescType" label="N">英文</el-radio>
  169. </el-form-item>
  170. </el-col>
  171. <el-col :span="12">
  172. <el-form-item :label="'托/箱'" >
  173. <el-radio v-model="packageUnit" label="托"></el-radio>
  174. <el-radio v-model="packageUnit" label="箱"></el-radio>
  175. </el-form-item>
  176. </el-col>
  177. <el-col :span="12">
  178. <el-form-item :label="'重量'" >
  179. <el-radio v-model="declarationWeight" label="不显示">不显示</el-radio>
  180. <el-radio v-model="declarationWeight" label="显示">显示</el-radio>
  181. </el-form-item>
  182. </el-col>
  183. </el-row>
  184. <el-row :gutter="20">
  185. <div class="custom-divider">
  186. <span class="text">
  187. 发票
  188. <a v-if="!exportInvoice.templateName" href="#" @click="openTemplate('发票')" style="margin-left: 10px; color: #0130ff; text-decoration: none;">模版</a>
  189. <a v-else href="#" @click="openTemplate('发票')" style="margin-left: 10px; color: #0130ff; text-decoration: none;">{{exportInvoice.templateName}}</a>
  190. </span>
  191. </div>
  192. <!-- 发票-->
  193. <el-col :span="8" >
  194. <el-form-item :label="''" >
  195. <el-checkbox v-model="exportInvoice.hsCodeDesc">品名</el-checkbox>
  196. </el-form-item>
  197. </el-col>
  198. <el-col :span="8" >
  199. <el-form-item :label="''" >
  200. <el-checkbox v-model="exportInvoice.contractFlag">合同</el-checkbox>
  201. </el-form-item>
  202. </el-col>
  203. <el-col :span="8" >
  204. <el-form-item :label="''" >
  205. <el-checkbox v-model="exportInvoice.hsCodeFlag">Hs Code</el-checkbox>
  206. </el-form-item>
  207. </el-col>
  208. <el-col :span="12">
  209. <el-form-item :label="'品名类型'" >
  210. <el-radio v-model="exportInvoice.hsCodeDescType" label="Y">中文</el-radio>
  211. <el-radio style="margin-left: 50px;" v-model="exportInvoice.hsCodeDescType" label="N">英文</el-radio>
  212. </el-form-item>
  213. </el-col>
  214. <el-col :span="12">
  215. <el-form-item :label="' '" >
  216. <el-checkbox v-model="exportInvoice.showWeight">显示毛净重</el-checkbox>
  217. </el-form-item>
  218. </el-col>
  219. <el-col :span="24" style="">
  220. <el-form-item :label="'发票备注'" >
  221. <el-input type="textarea" :rows="2" v-model="exportInvoice.fpremark"></el-input>
  222. </el-form-item>
  223. </el-col>
  224. <!-- 箱单-->
  225. </el-row>
  226. <el-row :gutter="20" style="margin-top: 30px">
  227. <div class="custom-divider">
  228. <span class="text">
  229. 箱单
  230. <a v-if="!exportPaking.templateName" href="#" @click="openTemplate('箱单')" style="margin-left: 10px; color: #0130ff; text-decoration: none;">模版</a>
  231. <a v-else href="#" @click="openTemplate('箱单')" style="margin-left: 10px; color: #0130ff; text-decoration: none;">{{exportPaking.templateName}}</a>
  232. </span>
  233. </div>
  234. <el-col :span="8" >
  235. <el-form-item :label="''" >
  236. <el-checkbox v-model="exportPaking.goodsLabel">货物明细</el-checkbox>
  237. </el-form-item>
  238. </el-col>
  239. <el-col :span="12" >
  240. <el-form-item :label="''" >
  241. <el-checkbox v-model="exportPaking.highPalletFlag">是否显示最高托盘尺寸</el-checkbox>
  242. </el-form-item>
  243. </el-col>
  244. <el-col :span="8" v-show="currentRow.buNo==='03-RFID'">
  245. <el-form-item :label="''" >
  246. <el-checkbox v-model="exportPaking.upc">UPC</el-checkbox>
  247. </el-form-item>
  248. </el-col>
  249. <el-form-item :label="''" >
  250. <el-checkbox v-model="exportPaking.so">SO</el-checkbox>
  251. </el-form-item>
  252. <el-col :span="8">
  253. <el-form-item :label="'序号类型'" >
  254. <el-radio v-model="exportPaking.itemNo" label="Y">序号</el-radio>
  255. <el-radio v-model="exportPaking.itemNo" label="N">栈板号</el-radio>
  256. </el-form-item>
  257. </el-col>
  258. <!-- <el-col :span="8" v-show="currentRow.buNo==='01-Label' || currentRow.buNo==='03-RFID'">
  259. <el-form-item :label="'栈板重量参数'" >
  260. <el-input v-model="exportPaking.palletWeight"></el-input>
  261. </el-form-item>
  262. </el-col>-->
  263. <el-col :span="8">
  264. <el-form-item :label="'RFID Base Material'" >
  265. <el-checkbox v-model="exportPaking.material"></el-checkbox>
  266. </el-form-item>
  267. </el-col>
  268. <el-col :span="8">
  269. <el-form-item :label="'HS Code'" >
  270. <el-input :disabled="!exportPaking.material" v-model="exportPaking.hsCode"></el-input>
  271. </el-form-item>
  272. </el-col>
  273. <el-col :span="8">
  274. <el-form-item :label="'Non-reusable plastic packaging'" >
  275. <el-checkbox v-model="exportPaking.packaging"></el-checkbox>
  276. </el-form-item>
  277. </el-col>
  278. <el-col :span="8">
  279. <el-form-item :label="'plastic packaging'" >
  280. <el-input :disabled="!exportPaking.packaging" v-model="exportPaking.kgs"></el-input>
  281. </el-form-item>
  282. </el-col>
  283. <el-col :span="8">
  284. <el-form-item :label="'Shipping Mark'" >
  285. <el-input v-model="exportPaking.shippingMark"></el-input>
  286. </el-form-item>
  287. </el-col>
  288. <el-col :span="8" v-show="currentRow.buNo==='01-Label' || currentRow.buNo==='03-RFID'">
  289. <el-form-item :label="'制造地'" >
  290. <el-input v-model="exportPaking.origin"></el-input>
  291. </el-form-item>
  292. </el-col>
  293. <el-col :span="24" style="">
  294. <el-form-item :label="'箱单备注'" >
  295. <el-input type="textarea" :rows="2" v-model="exportPaking.xdremark"></el-input>
  296. </el-form-item>
  297. </el-col>
  298. </el-row>
  299. <el-row :gutter="20" style="margin-top: 30px">
  300. <!-- 出口货物委托书-->
  301. <div class="custom-divider"><span class="text" style="left: 25%">出口货物委托书</span></div>
  302. <el-col :span="8">
  303. <el-form-item :label="'贸易方式'" >
  304. <el-input v-model="exportGoods.salesMethod"></el-input>
  305. </el-form-item>
  306. </el-col>
  307. <el-col :span="8">
  308. <el-form-item :label="'币制'" >
  309. <el-input v-model="exportGoods.currency"></el-input>
  310. </el-form-item>
  311. </el-col>
  312. <el-col :span="8">
  313. <el-form-item :label="'货物产地'" >
  314. <el-input v-model="exportGoods.madeArea"></el-input>
  315. </el-form-item>
  316. </el-col>
  317. <el-col :span="8">
  318. <el-form-item :label="'发货港'" >
  319. <el-input v-model="exportGoods.sendPort"></el-input>
  320. </el-form-item>
  321. </el-col>
  322. <el-col :span="8">
  323. <el-form-item :label="'唛头'" >
  324. <el-input v-model="exportGoods.voyage"></el-input>
  325. </el-form-item>
  326. </el-col>
  327. <el-col :span="8">
  328. <el-form-item :label="'提/送货日期'" >
  329. <el-input v-model="exportGoods.deliveryGoodsDate"></el-input>
  330. </el-form-item>
  331. </el-col>
  332. <el-col :span="8">
  333. <el-form-item :label="'船期'" >
  334. <el-input v-model="exportGoods.shippingDate"></el-input>
  335. </el-form-item>
  336. </el-col>
  337. <el-col :span="16">
  338. <el-form-item :label="'提货人'" >
  339. <el-select
  340. v-model="exportGoods.pickupAddressValue"
  341. clearable
  342. filterable
  343. placeholder="请选择提货人"
  344. style="width: 100%"
  345. @change="handlePickupAddressChange">
  346. <el-option
  347. v-for="(item, index) in pickupAddressList"
  348. :key="item.valueKey + '-' + index"
  349. :label="buildPickupAddressText(item)"
  350. :value="item.valueKey">
  351. <div style="white-space: normal; line-height: 16px; padding: 4px 0;">
  352. <div>{{ item.company }}</div>
  353. <div v-if="item.address" style="color: #909399;">{{ item.address }}</div>
  354. </div>
  355. </el-option>
  356. </el-select>
  357. </el-form-item>
  358. </el-col>
  359. <el-col :span="24">
  360. <el-form-item :label="'发货人'" >
  361. <el-input type="textarea"
  362. :rows="4" v-model="exportGoods.shipper"></el-input>
  363. </el-form-item>
  364. </el-col>
  365. </el-row>
  366. </el-form>
  367. <!-- <el-table v-show="currentRow.buNo==='02-Hardtag' || currentRow.buNo==='04-MHM'"
  368. :height="240"
  369. :data="propertiesList"
  370. stripe
  371. highlight-current-row
  372. border :row-style="{ height: '30px' }"
  373. style="width: 100%;margin-top: 70px">
  374. <el-table-column
  375. prop="hsCode"
  376. header-align="center"
  377. align="center"
  378. label="HS Code">
  379. </el-table-column>
  380. <el-table-column
  381. prop="hsCodeDesc"
  382. header-align="center"
  383. align="center"
  384. label="品名">
  385. </el-table-column>
  386. <el-table-column
  387. prop="ehundred"
  388. header-align="center"
  389. align="center"
  390. label="品牌">
  391. <template slot-scope="scope">
  392. <el-select v-model="scope.row.brand" placeholder="请选择" style="width: 150px">
  393. <el-option :value="i.availableValue" :label="i.availableValue" v-for="(i,key) in scope.row.availableList" :key="key"></el-option>
  394. </el-select>
  395. </template>
  396. </el-table-column>
  397. </el-table>-->
  398. <el-table v-show="currentRow.buNo==='03-RFID'"
  399. :height="180"
  400. :data="notifyPartDetailList"
  401. stripe class="expClass"
  402. highlight-current-row
  403. border :row-style="{ height: '30px' }"
  404. style="width: 100%;margin-top: 70px">
  405. <el-table-column
  406. prop="pn"
  407. header-align="center"
  408. align="center"
  409. label="PN">
  410. </el-table-column>
  411. <el-table-column
  412. prop="ehundred"
  413. header-align="center"
  414. align="center"
  415. label="E100">
  416. <template slot-scope="scope">
  417. <el-input v-model="scope.row.ehundred" style="width: 100px;"></el-input>
  418. </template>
  419. </el-table-column>
  420. <el-table-column
  421. prop="lossratio"
  422. header-align="center"
  423. align="center"
  424. label="纯FSC纸重量损耗">
  425. <template slot-scope="scope">
  426. <el-input v-model="scope.row.lossratio" style="width: 100px;"></el-input>
  427. </template>
  428. </el-table-column>
  429. </el-table>
  430. <el-footer style="height:40px;margin-top: 80px;text-align:center">
  431. <el-button type="primary" @click="exportAll()">导出Excel</el-button>
  432. <el-button type="success" @click="exportAllPdf()">导出PDF</el-button>
  433. <el-button type="info" @click="exportAllFlag=false">关闭</el-button>
  434. </el-footer>
  435. </el-dialog>
  436. <el-dialog title="一键导出" :close-on-click-modal="false" style="top: -85px" v-drag :visible.sync="exportAllYBFlag" :width="'740px'">
  437. <el-form label-position="top" style="margin-left: 7px;margin-top: 5px;margin-bottom: 5px">
  438. <el-row :gutter="20">
  439. <el-col :span="6">
  440. <el-form-item :label="'合同协议号'" >
  441. <el-input v-model="exportHeader.contractNo" disabled></el-input>
  442. </el-form-item>
  443. </el-col>
  444. <el-col :span="6">
  445. <el-form-item :label="'运输方式'" >
  446. <el-input v-model="exportHeader.transportMode" disabled></el-input>
  447. </el-form-item>
  448. </el-col>
  449. <el-col :span="6">
  450. <el-form-item :label="'运抵国'" >
  451. <el-input v-model="exportHeader.arrivalCountry" disabled></el-input>
  452. </el-form-item>
  453. </el-col>
  454. <el-col :span="6">
  455. <el-form-item :label="'贸易国'" >
  456. <el-input v-model="exportHeader.tradeCountry" disabled></el-input>
  457. </el-form-item>
  458. </el-col>
  459. </el-row>
  460. <el-row :gutter="20" style="margin-top: 5px">
  461. <div class="custom-divider"><span class="text" style="left: 22%">报关要素</span></div>
  462. <!-- 报关要素-->
  463. <el-col :span="12">
  464. <el-form-item :label="'品牌'" >
  465. <el-radio v-model="brandType" label="境外品牌(其他)">境外品牌其他</el-radio>
  466. <el-radio v-model="brandType" label="无品牌">无品牌</el-radio>
  467. </el-form-item>
  468. </el-col>
  469. <el-col :span="12">
  470. <el-form-item :label="'品名类型'" >
  471. <el-radio v-model="hsCodeDescType" label="Y">中文</el-radio>
  472. <el-radio style="margin-left: 50px;" v-model="hsCodeDescType" label="N">英文</el-radio>
  473. </el-form-item>
  474. </el-col>
  475. </el-row>
  476. <el-row :gutter="20">
  477. <div class="custom-divider">
  478. <span class="text">
  479. 发票
  480. <a v-if="!exportInvoice.templateName" href="#" @click="openTemplate('发票')" style="margin-left: 10px; color: #0130ff; text-decoration: none;">模版</a>
  481. <a v-else href="#" @click="openTemplate('发票')" style="margin-left: 10px; color: #0130ff; text-decoration: none;">{{exportInvoice.templateName}}</a>
  482. </span>
  483. </div>
  484. <!-- 发票-->
  485. <el-col :span="4" >
  486. <el-form-item :label="' '" >
  487. <el-checkbox v-model="exportInvoice.hsCodeFlag">Hs Code</el-checkbox>
  488. </el-form-item>
  489. </el-col>
  490. <el-col :span="20" style="">
  491. <el-form-item :label="'发票备注'" >
  492. <el-input type="textarea" :rows="2" v-model="exportInvoice.fpremark"></el-input>
  493. </el-form-item>
  494. </el-col>
  495. <!-- 箱单-->
  496. </el-row>
  497. <el-row :gutter="20" style="margin-top: 30px">
  498. <div class="custom-divider">
  499. <span class="text">
  500. 箱单
  501. <a v-if="!exportPaking.templateName" href="#" @click="openTemplate('箱单')" style="margin-left: 10px; color: #0130ff; text-decoration: none;">模版</a>
  502. <a v-else href="#" @click="openTemplate('箱单')" style="margin-left: 10px; color: #0130ff; text-decoration: none;">{{exportPaking.templateName}}</a>
  503. </span>
  504. </div>
  505. <el-col :span="8">
  506. <el-form-item :label="'Non-reusable plastic packaging'" >
  507. <el-checkbox v-model="exportPaking.packaging"></el-checkbox>
  508. </el-form-item>
  509. </el-col>
  510. <el-col :span="8">
  511. <el-form-item :label="'plastic packaging'" >
  512. <el-input :disabled="!exportPaking.packaging" v-model="exportPaking.kgs"></el-input>
  513. </el-form-item>
  514. </el-col>
  515. <el-col :span="8">
  516. <el-form-item :label="'Shipping Mark'" >
  517. <el-input v-model="exportPaking.shippingMark"></el-input>
  518. </el-form-item>
  519. </el-col>
  520. <el-col :span="24" style="">
  521. <el-form-item :label="'箱单备注'" >
  522. <el-input type="textarea" :rows="2" v-model="exportPaking.xdremark"></el-input>
  523. </el-form-item>
  524. </el-col>
  525. </el-row>
  526. <el-row :gutter="20" style="margin-top: 30px">
  527. <!-- 出口货物委托书-->
  528. <div class="custom-divider"><span class="text" style="left: 25%">出口货物委托书</span></div>
  529. <el-col :span="8">
  530. <el-form-item :label="'贸易方式'" >
  531. <el-input v-model="exportGoods.salesMethod"></el-input>
  532. </el-form-item>
  533. </el-col>
  534. <el-col :span="8">
  535. <el-form-item :label="'货物产地'" >
  536. <el-input v-model="exportGoods.madeArea"></el-input>
  537. </el-form-item>
  538. </el-col>
  539. <el-col :span="8">
  540. <el-form-item :label="'发货港'" >
  541. <el-input v-model="exportGoods.sendPort"></el-input>
  542. </el-form-item>
  543. </el-col>
  544. <el-col :span="8" v-show="hasMexicoShippingMarkBu()">
  545. <el-form-item :label="'墨西哥唛头'" >
  546. <el-checkbox v-model="exportGoods.mexicoShippingMarkFlag"></el-checkbox>
  547. </el-form-item>
  548. </el-col>
  549. <el-col :span="16">
  550. <el-form-item :label="'提货人'" >
  551. <el-select
  552. v-model="exportGoods.pickupAddressValue"
  553. clearable
  554. filterable
  555. placeholder="请选择提货人"
  556. style="width: 100%"
  557. @change="handlePickupAddressChange">
  558. <el-option
  559. v-for="(item, index) in pickupAddressList"
  560. :key="item.valueKey + '_goods_' + index"
  561. :label="buildPickupAddressText(item)"
  562. :value="item.valueKey">
  563. <div style="white-space: normal; line-height: 16px; padding: 4px 0;">
  564. <div>{{ item.company }}</div>
  565. <div v-if="item.address" style="color: #909399;">{{ item.address }}</div>
  566. </div>
  567. </el-option>
  568. </el-select>
  569. </el-form-item>
  570. </el-col>
  571. <el-col :span="8">
  572. <el-form-item :label="'唛头'" >
  573. <el-input type="textarea" :rows="3" v-model="exportGoods.voyage"></el-input>
  574. </el-form-item>
  575. </el-col>
  576. <el-col :span="16">
  577. <el-form-item :label="'发货人'" >
  578. <el-input type="textarea"
  579. :rows="4" v-model="exportGoods.shipper"></el-input>
  580. </el-form-item>
  581. </el-col>
  582. </el-row>
  583. </el-form>
  584. <el-footer style="height:40px;margin-top: 80px;text-align:center">
  585. <el-button type="primary" @click="exportAll()">导出Excel</el-button>
  586. <el-button type="success" @click="exportAllPdf()">导出PDF</el-button>
  587. <el-button type="info" @click="exportAllYBFlag=false">关闭</el-button>
  588. </el-footer>
  589. </el-dialog>
  590. <el-dialog title="导出报关要素" :close-on-click-modal="false" v-drag :visible.sync="brandTypeFlag"
  591. :width="(currentRow.buNo==='02-Hardtag' || currentRow.buNo==='04-MHM')?'600px':'300px'">
  592. <el-form label-position="top" style="margin-left: 7px;margin-top: 10px;margin-bottom: 20px">
  593. <el-row :gutter="20">
  594. <el-col :span="(currentRow.buNo==='02-Hardtag' || currentRow.buNo==='04-MHM')?12:24">
  595. <el-form-item :label="'品牌'" >
  596. <el-radio v-model="brandType" label="境外品牌(其他)">境外品牌其他</el-radio>
  597. <el-radio v-model="brandType" label="无品牌">无品牌</el-radio>
  598. </el-form-item>
  599. </el-col>
  600. <el-col :span="(currentRow.buNo==='02-Hardtag' || currentRow.buNo==='04-MHM')?12:24">
  601. <el-form-item :label="'品名类型'" >
  602. <el-radio v-model="hsCodeDescType" label="Y">中文</el-radio>
  603. <el-radio style="margin-left: 102px;" v-model="hsCodeDescType" label="N">英文</el-radio>
  604. </el-form-item>
  605. </el-col>
  606. </el-row>
  607. </el-form>
  608. <el-table v-show="currentRow.buNo==='02-Hardtag' || currentRow.buNo==='04-MHM'"
  609. :height="240"
  610. :data="propertiesList"
  611. stripe
  612. highlight-current-row
  613. border :row-style="{ height: '30px' }"
  614. style="width: 100%;">
  615. <el-table-column
  616. prop="hsCode"
  617. header-align="center"
  618. align="center"
  619. label="HS Code">
  620. </el-table-column>
  621. <el-table-column
  622. prop="hsCodeDesc"
  623. header-align="center"
  624. align="center"
  625. label="品名">
  626. </el-table-column>
  627. <el-table-column
  628. prop="ehundred"
  629. header-align="center"
  630. align="center"
  631. label="品牌">
  632. <template slot-scope="scope">
  633. <el-select v-model="scope.row.brand" placeholder="请选择" style="width: 150px">
  634. <el-option :value="i.availableValue" :label="i.availableValue" v-for="(i,key) in scope.row.availableList" :key="key"></el-option>
  635. </el-select>
  636. </template>
  637. </el-table-column>
  638. </el-table>
  639. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  640. <el-button type="primary" @click="downloadDeclarationElements()">确定</el-button>
  641. <el-button type="primary" @click="brandTypeFlag=false">关闭</el-button>
  642. </el-footer>
  643. </el-dialog>
  644. <el-dialog title="导出报关单" :close-on-click-modal="false" v-drag :visible.sync="declarationFlag" width="300px">
  645. <el-form label-position="top" style="margin-left: 7px;margin-top: 10px;">
  646. <el-row :gutter="20">
  647. <el-col :span="24">
  648. <el-form-item :label="'品名类型'" >
  649. <el-radio v-model="hsCodeDescType" label="Y">中文</el-radio>
  650. <el-radio v-model="hsCodeDescType" label="N">英文</el-radio>
  651. </el-form-item>
  652. </el-col>
  653. <el-col :span="24">
  654. <el-form-item :label="'托/箱'" >
  655. <el-radio v-model="packageUnit" label="托"></el-radio>
  656. <el-radio v-model="packageUnit" label="箱"></el-radio>
  657. </el-form-item>
  658. </el-col>
  659. <el-col :span="24">
  660. <el-form-item :label="'重量'" >
  661. <el-radio v-model="declarationWeight" label="不显示">不显示</el-radio>
  662. <el-radio v-model="declarationWeight" label="显示">显示</el-radio>
  663. </el-form-item>
  664. </el-col>
  665. </el-row>
  666. </el-form>
  667. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  668. <el-button type="primary" @click="downloadDeclaration()()">确定</el-button>
  669. <el-button type="primary" @click="declarationFlag=false">关闭</el-button>
  670. </el-footer>
  671. </el-dialog>
  672. <el-dialog title="导出发票" :close-on-click-modal="false" v-drag :visible.sync="exportInvoiceFlag" width="450px">
  673. <el-form label-position="top" style="margin-left: 2px;margin-top: 10px;">
  674. <el-row :gutter="20">
  675. <el-col :span="24">
  676. <el-form-item :label="''" >
  677. <template #label>
  678. <span slot="label" style="" class="big-label">
  679. <a href="#" @click="openTemplate('发票')">发票模版</a>
  680. </span>
  681. </template>
  682. <el-input v-model="exportInvoice.templateName" disabled ></el-input>
  683. </el-form-item>
  684. </el-col>
  685. <el-col :span="12" >
  686. <el-form-item :label="''" >
  687. <el-checkbox v-model="exportInvoice.hsCodeDesc">品名</el-checkbox>
  688. </el-form-item>
  689. </el-col>
  690. <el-col :span="12" >
  691. <el-form-item :label="''" >
  692. <el-checkbox v-model="exportInvoice.hsCodeFlag">Hs Code</el-checkbox>
  693. </el-form-item>
  694. </el-col>
  695. <el-col :span="12" >
  696. <el-form-item :label="''" >
  697. <el-checkbox v-model="exportInvoice.contractFlag">合同</el-checkbox>
  698. </el-form-item>
  699. </el-col>
  700. <el-col :span="12" >
  701. <el-form-item :label="''" >
  702. <el-checkbox v-model="exportInvoice.goodsLabel">货物明细</el-checkbox>
  703. </el-form-item>
  704. </el-col>
  705. <el-col :span="12">
  706. <el-form-item :label="'品名类型'" >
  707. <el-radio v-model="exportInvoice.hsCodeDescType" label="Y">中文</el-radio>
  708. <el-radio v-model="exportInvoice.hsCodeDescType" label="N">英文</el-radio>
  709. </el-form-item>
  710. </el-col>
  711. <el-col :span="12">
  712. <el-form-item :label="' '" >
  713. <el-checkbox v-model="exportInvoice.showWeight">显示毛净重</el-checkbox>
  714. </el-form-item>
  715. </el-col>
  716. <el-col :span="12">
  717. <el-form-item :label="'RFID Base Material'" >
  718. <el-checkbox v-model="exportInvoice.material"></el-checkbox>
  719. </el-form-item>
  720. </el-col>
  721. <el-col :span="12">
  722. <el-form-item :label="'HS Code'" >
  723. <el-input :disabled="!exportInvoice.material" v-model="exportInvoice.hsCode"></el-input>
  724. </el-form-item>
  725. </el-col>
  726. <el-col :span="12">
  727. <el-form-item :label="'Non-reusable plastic packaging'" >
  728. <el-checkbox v-model="exportInvoice.packaging"></el-checkbox>
  729. </el-form-item>
  730. </el-col>
  731. <el-col :span="12">
  732. <el-form-item :label="'plastic packaging'" >
  733. <el-input :disabled="!exportInvoice.packaging" v-model="exportInvoice.kgs"></el-input>
  734. </el-form-item>
  735. </el-col>
  736. <el-col :span="12" v-show="currentRow.buNo==='01-Label' || currentRow.buNo==='03-RFID'">
  737. <el-form-item :label="'制造地'" >
  738. <el-input v-model="exportInvoice.origin"></el-input>
  739. </el-form-item>
  740. </el-col>
  741. <el-col :span="24" style="">
  742. <el-form-item :label="'备注'" >
  743. <el-input type="textarea" :rows="3" v-model="exportInvoice.fpremark"></el-input>
  744. </el-form-item>
  745. </el-col>
  746. </el-row>
  747. </el-form>
  748. <el-table v-show="currentRow.buNo==='03-RFID'"
  749. :height="240"
  750. :data="notifyPartDetailList"
  751. stripe class="expClass"
  752. highlight-current-row
  753. border :row-style="{ height: '30px' }"
  754. style="width: 100%;margin-top: 60px">
  755. <el-table-column
  756. prop="pn"
  757. header-align="center"
  758. align="center"
  759. label="PN">
  760. </el-table-column>
  761. <el-table-column
  762. prop="ehundred"
  763. header-align="center"
  764. align="center"
  765. label="E100">
  766. <template slot-scope="scope">
  767. <el-input v-model="scope.row.ehundred" style="width: 100px;"></el-input>
  768. </template>
  769. </el-table-column>
  770. <el-table-column
  771. prop="lossratio"
  772. header-align="center"
  773. align="center"
  774. label="纯FSC纸重量损耗">
  775. <template slot-scope="scope">
  776. <el-input v-model="scope.row.lossratio" style="width: 100px;"></el-input>
  777. </template>
  778. </el-table-column>
  779. </el-table>
  780. <el-footer style="height:40px;margin-top: 70px;text-align:center">
  781. <el-button type="primary" @click="downloadInvoice()">确定</el-button>
  782. <el-button type="primary" @click="exportInvoiceFlag=false">关闭</el-button>
  783. </el-footer>
  784. </el-dialog>
  785. <el-dialog title="导出箱单" :close-on-click-modal="false" v-drag :visible.sync="exportPakingFlag" width="450px">
  786. <el-form label-position="top" style="margin-left: 2px;margin-top: 10px;">
  787. <el-row :gutter="20">
  788. <el-col :span="24">
  789. <el-form-item :label="''" >
  790. <template #label>
  791. <span slot="label" style="" class="big-label">
  792. <a href="#" @click="openTemplate('箱单')">箱单模版</a>
  793. </span>
  794. </template>
  795. <el-input v-model="exportPaking.templateName" disabled ></el-input>
  796. </el-form-item>
  797. </el-col>
  798. <el-col :span="12" v-show="currentRow.buNo==='03-RFID'">
  799. <el-form-item :label="''" >
  800. <el-checkbox v-model="exportPaking.upc">UPC</el-checkbox>
  801. </el-form-item>
  802. </el-col>
  803. <el-col :span="12" v-show="currentRow.buNo==='03-RFID'">
  804. <el-form-item :label="''" >
  805. <el-checkbox v-model="exportPaking.so">SO</el-checkbox>
  806. </el-form-item>
  807. </el-col>
  808. <el-col :span="12">
  809. <el-form-item :label="'序号类型'" >
  810. <el-radio v-model="exportPaking.itemNo" label="Y">序号</el-radio>
  811. <el-radio v-model="exportPaking.itemNo" label="N">栈板号</el-radio>
  812. </el-form-item>
  813. </el-col>
  814. <el-col :span="12" v-show="currentRow.buNo==='04-MHM'">
  815. <el-form-item :label="'品名类型'" >
  816. <el-radio v-model="exportPaking.hsCodeDescType" label="Y">中文</el-radio>
  817. <el-radio v-model="exportPaking.hsCodeDescType" label="N">英文</el-radio>
  818. </el-form-item>
  819. </el-col>
  820. <!-- <el-col :span="12" >
  821. <el-form-item :label="''" >
  822. <el-checkbox v-model="exportPaking.boxChange">显示箱数零头</el-checkbox>
  823. </el-form-item>
  824. </el-col>-->
  825. <el-col :span="12" >
  826. <el-form-item :label="' '" >
  827. <el-checkbox v-model="exportPaking.goodsLabel">货物明细</el-checkbox>
  828. </el-form-item>
  829. </el-col>
  830. <el-col :span="12" >
  831. <el-form-item :label="' '" >
  832. <el-checkbox v-model="exportPaking.highPalletFlag">是否显示最高托盘尺寸</el-checkbox>
  833. </el-form-item>
  834. </el-col>
  835. <el-col :span="12">
  836. <el-form-item :label="'Shipping Mark'" >
  837. <el-input v-model="exportPaking.shippingMark"></el-input>
  838. </el-form-item>
  839. </el-col>
  840. <!-- <el-col :span="12" v-show="currentRow.buNo==='01-Label' || currentRow.buNo==='03-RFID'">
  841. <el-form-item :label="'栈板重量参数'" >
  842. <el-input v-model="exportPaking.palletWeight"></el-input>
  843. </el-form-item>
  844. </el-col>-->
  845. <el-col :span="12">
  846. <el-form-item :label="'RFID Base Material'" >
  847. <el-checkbox v-model="exportPaking.material"></el-checkbox>
  848. </el-form-item>
  849. </el-col>
  850. <el-col :span="12">
  851. <el-form-item :label="'HS Code'" >
  852. <el-input :disabled="!exportPaking.material" v-model="exportPaking.hsCode"></el-input>
  853. </el-form-item>
  854. </el-col>
  855. <el-col :span="12">
  856. <el-form-item :label="'Non-reusable plastic packaging'" >
  857. <el-checkbox v-model="exportPaking.packaging"></el-checkbox>
  858. </el-form-item>
  859. </el-col>
  860. <el-col :span="12">
  861. <el-form-item :label="'plastic packaging'" >
  862. <el-input :disabled="!exportPaking.packaging" v-model="exportPaking.kgs"></el-input>
  863. </el-form-item>
  864. </el-col>
  865. <el-col :span="12" v-show="currentRow.buNo==='01-Label' || currentRow.buNo==='03-RFID'">
  866. <el-form-item :label="'制造地'" >
  867. <el-input v-model="exportPaking.origin"></el-input>
  868. </el-form-item>
  869. </el-col>
  870. <el-col :span="24" style="">
  871. <el-form-item :label="'备注'" >
  872. <el-input type="textarea" :rows="3" v-model="exportPaking.xdremark"></el-input>
  873. </el-form-item>
  874. </el-col>
  875. </el-row>
  876. </el-form>
  877. <el-table v-show="currentRow.buNo==='03-RFID'"
  878. :height="240"
  879. :data="notifyPartDetailList"
  880. stripe class="expClass"
  881. highlight-current-row
  882. border :row-style="{ height: '30px' }"
  883. style="width: 100%;margin-top: 60px">
  884. <el-table-column
  885. prop="pn"
  886. header-align="center"
  887. align="center"
  888. label="PN">
  889. </el-table-column>
  890. <el-table-column
  891. prop="ehundred"
  892. header-align="center"
  893. align="center"
  894. label="E100">
  895. <template slot-scope="scope">
  896. <el-input v-model="scope.row.ehundred" style="width: 100px;"></el-input>
  897. </template>
  898. </el-table-column>
  899. <el-table-column
  900. prop="lossratio"
  901. header-align="center"
  902. align="center"
  903. label="纯FSC纸重量损耗">
  904. <template slot-scope="scope">
  905. <el-input v-model="scope.row.lossratio" style="width: 100px;"></el-input>
  906. </template>
  907. </el-table-column>
  908. </el-table>
  909. <el-footer style="height:40px;margin-top: 70px;text-align:center">
  910. <el-button type="primary" @click="downloadPackingList()">确定</el-button>
  911. <el-button type="primary" @click="exportPakingFlag=false">关闭</el-button>
  912. </el-footer>
  913. </el-dialog>
  914. <el-dialog title="导出出口货物委托书" :close-on-click-modal="false" v-drag :visible.sync="exportGoodsFlag" width="500px">
  915. <el-form label-position="top" style="margin-left: 7px;margin-top: 10px;">
  916. <el-row :gutter="20">
  917. <el-col :span="12">
  918. <el-form-item :label="'品名类型'" >
  919. <el-radio v-model="exportGoods.hsCodeDescType" label="Y">中文</el-radio>
  920. <el-radio v-model="exportGoods.hsCodeDescType" label="N">英文</el-radio>
  921. </el-form-item>
  922. </el-col>
  923. <el-col :span="12">
  924. <el-form-item :label="'贸易方式'" >
  925. <el-input v-model="exportGoods.salesMethod"></el-input>
  926. </el-form-item>
  927. </el-col>
  928. <el-col :span="12">
  929. <el-form-item :label="'币制'" >
  930. <el-input v-model="exportGoods.currency"></el-input>
  931. </el-form-item>
  932. </el-col>
  933. <el-col :span="12">
  934. <el-form-item :label="'货物产地'" >
  935. <el-input v-model="exportGoods.madeArea"></el-input>
  936. </el-form-item>
  937. </el-col>
  938. <el-col :span="12">
  939. <el-form-item :label="'发货港'" >
  940. <el-input v-model="exportGoods.sendPort"></el-input>
  941. </el-form-item>
  942. </el-col>
  943. <el-col :span="12" v-show="hasPickupAddressBu()">
  944. <el-form-item :label="'唛头'" >
  945. <el-input type="textarea" :rows="3" v-model="exportGoods.voyage"></el-input>
  946. </el-form-item>
  947. </el-col>
  948. <el-col :span="hasPickupAddressBu()?24:12" v-show="hasMexicoShippingMarkBu()">
  949. <el-form-item :label="'墨西哥唛头'" >
  950. <el-checkbox v-model="exportGoods.mexicoShippingMarkFlag"></el-checkbox>
  951. </el-form-item>
  952. </el-col>
  953. <el-col v-show="!hasPickupAddressBu()" :span="12">
  954. <el-form-item :label="'提/送货日期'" >
  955. <el-input v-model="exportGoods.deliveryGoodsDate"></el-input>
  956. </el-form-item>
  957. </el-col>
  958. <el-col v-show="!hasPickupAddressBu()" :span="12">
  959. <el-form-item :label="'船期'" >
  960. <el-input v-model="exportGoods.shippingDate"></el-input>
  961. </el-form-item>
  962. </el-col>
  963. <el-col :span="24">
  964. <el-form-item :label="'提货人'" >
  965. <el-select
  966. v-model="exportGoods.pickupAddressValue"
  967. clearable
  968. filterable
  969. placeholder="请选择提货人"
  970. style="width: 100%"
  971. @change="handlePickupAddressChange">
  972. <el-option
  973. v-for="(item, index) in pickupAddressList"
  974. :key="item.valueKey + '_goods_' + index"
  975. :label="buildPickupAddressText(item)"
  976. :value="item.valueKey">
  977. <div style="white-space: normal; line-height: 16px; padding: 4px 0;">
  978. <div>{{ item.company }}</div>
  979. <div v-if="item.address" style="color: #909399;">{{ item.address }}</div>
  980. </div>
  981. </el-option>
  982. </el-select>
  983. </el-form-item>
  984. </el-col>
  985. <el-col :span="24">
  986. <el-form-item :label="'发货人'" >
  987. <el-input type="textarea"
  988. :rows="4" v-model="exportGoods.shipper"></el-input>
  989. </el-form-item>
  990. </el-col>
  991. </el-row>
  992. </el-form>
  993. <el-footer style="height:40px;margin-top: 80px;text-align:center">
  994. <el-button type="primary" @click="downloadExportGoods()">确定</el-button>
  995. <el-button type="primary" @click="exportGoodsFlag=false">关闭</el-button>
  996. </el-footer>
  997. </el-dialog>
  998. <el-dialog title="模版" @close="closeTemplateDialog" @open="openTemplateDialog" :visible.sync="templateFlag" width="559px" v-drag>
  999. <el-form inline="inline" label-position="top" :model="templateData" style="margin-left: 7px;margin-top: -5px;">
  1000. <el-form-item label="模版名称">
  1001. <el-input v-model="templateData.name" clearable style="width: 150px"></el-input>
  1002. </el-form-item>
  1003. <el-form-item label="运输方式">
  1004. <el-input v-model="templateData.shippingMode" clearable style="width: 150px"></el-input>
  1005. </el-form-item>
  1006. <el-form-item label=" ">
  1007. <el-button type="primary" style="padding: 3px 12px" @click="searchTemplateList()">查询</el-button>
  1008. </el-form-item>
  1009. </el-form>
  1010. <el-table
  1011. :height="height + 110"
  1012. :data="templateList"
  1013. stripe
  1014. highlight-current-row
  1015. border
  1016. @row-dblclick="templateRowDblclick"
  1017. style="width: 100%;">
  1018. <el-table-column
  1019. prop="buNo"
  1020. header-align="center"
  1021. align="center"
  1022. label="BuNo">
  1023. </el-table-column>
  1024. <el-table-column
  1025. prop="name"
  1026. header-align="center"
  1027. align="center"
  1028. label="模版名称">
  1029. </el-table-column>
  1030. <el-table-column
  1031. prop="shippingMode"
  1032. header-align="center"
  1033. align="center"
  1034. label="运输方式">
  1035. </el-table-column>
  1036. </el-table>
  1037. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  1038. <el-button @click="templateFlag = false">关闭</el-button>
  1039. </el-footer>
  1040. </el-dialog>
  1041. </div>
  1042. </template>
  1043. <script>
  1044. import {} from "@/api/sysLanguage.js"
  1045. import {
  1046. searchDeclarationHeader,
  1047. searchDeclarationDetail,
  1048. deleteDeclaration,
  1049. downloadDeclarationElements,
  1050. getNotifyPartDetail,
  1051. getCustomerInfo,
  1052. getEcssContactsList,
  1053. searchTemplateList,
  1054. getPropertiesListByDeclaration,
  1055. searchEcssCoDelPalletHeaderData
  1056. }from "@/api/ecss/ecss.js"
  1057. import { getTableUserListLanguage} from "@/api/table.js"
  1058. import {getTableDefaultListLanguage} from "../../../api/table";
  1059. import {EventBus} from "../../../main";
  1060. import ExportUtil from "@/utils/export";
  1061. export default {
  1062. name: "declaration",
  1063. components:{
  1064. },
  1065. data() {
  1066. return {
  1067. bizhi:'',
  1068. exportAllFlag:false,
  1069. exportAllYBFlag:false,
  1070. templateFlag:false,
  1071. templateData:{
  1072. type:'',
  1073. buNo:'',
  1074. customName:'',
  1075. name:'',
  1076. shippingMode:''
  1077. },
  1078. templateList:[],
  1079. customerInfoList:[],
  1080. pickupAddressList:[],
  1081. notifyPartDetailList:[],
  1082. propertiesList:[],
  1083. currentRow:{},
  1084. exportHeader:{
  1085. contractNo:'',
  1086. transportMode:'',
  1087. arrivalCountry:'',
  1088. tradeCountry:''
  1089. },
  1090. exportGoodsFlag:false,
  1091. exportGoods:{
  1092. salesMethod:'EXW',
  1093. currency: 'USD',
  1094. madeArea: 'Nantong, China',
  1095. sendPort:'Shanghai, China',
  1096. deliveryGoodsDate:'',
  1097. voyage :'',
  1098. shippingDate:'',
  1099. hsCodeDescType:'N',
  1100. mexicoShippingMarkFlag: false,
  1101. shipper:'Checkpoint Commercial (Shanghai) Co., Ltd. 保点贸易(上海)有限公司\t\t\t\t\t\t\n' +
  1102. 'Room 1411, No. 31, Lane 2419, Hunan Road, Pudong New Area, Shanghai\t\t\t\t\t\t\n' +
  1103. '电话/Tel: (86-21)38112888 传真/Fax: (86-21)38112990\t\t\t\t\t\t\n' +
  1104. '上海市浦东新区沪南路2419弄31号1411室\t\t\t\t\t\t\n',
  1105. pickupAddressValue:'',
  1106. pickupCompany:'',
  1107. pickupAddress:''
  1108. },
  1109. brandTypeFlag:false,
  1110. declarationFlag:false,
  1111. exportInvoiceFlag:false,
  1112. exportInvoice:{
  1113. origin:"made in china",
  1114. templateName:'',
  1115. hsCodeDesc:'',
  1116. contractFlag:'',
  1117. packaging:'',
  1118. kgs:'',
  1119. hsCode:'',
  1120. material:'',
  1121. hsCodeDescType:'',
  1122. goodsLabel:true,
  1123. hsCodeFlag:true,
  1124. showWeight:false,
  1125. fpremark:''
  1126. },
  1127. exportPakingFlag:false,
  1128. exportPaking:{
  1129. origin:"made in china",
  1130. itemNo:'',
  1131. upc:'',
  1132. so:'',
  1133. shippingMark:'',
  1134. palletWeight:'',
  1135. templateName:'',
  1136. hsCodeDesc:'',
  1137. contractFlag:'',
  1138. packaging:'',
  1139. kgs:'',
  1140. hsCode:'',
  1141. material:'',
  1142. hsCodeDescType:'',
  1143. goodsLabel:true,
  1144. boxChange:'',
  1145. xdremark:'',
  1146. highPalletFlag:''
  1147. },
  1148. brandType:'',
  1149. hsCodeDescType:'Y',
  1150. packageUnit: '托',
  1151. declarationWeight: '不显示',
  1152. exportParam: {},
  1153. pageIndex: 1,
  1154. pageSize: 100,
  1155. totalPage: 0,
  1156. height: 200,
  1157. dataList:[],
  1158. dataList2:[],
  1159. dataListLoading: false,
  1160. exportAllLoading: false,
  1161. searchData: {
  1162. page: 1,
  1163. limit: 100,
  1164. site:"",
  1165. declarationNo:'',
  1166. username:this.$store.state.user.name,
  1167. delNo:'',
  1168. cmcInvoice:'',
  1169. startDate:'',
  1170. endDate:'',
  1171. },
  1172. buttons:{
  1173. search:'查询',
  1174. },
  1175. activeName:'detail',
  1176. columnList: [
  1177. {
  1178. userId: this.$store.state.user.name,
  1179. functionId: 801006,
  1180. serialNumber: '801006Table1Site',
  1181. tableId: "801006Table1",
  1182. tableName: "报关单主记录",
  1183. columnProp: "site",
  1184. headerAlign: "center",
  1185. align: "left",
  1186. columnLabel: "工厂编号",
  1187. columnHidden: false,
  1188. columnImage: false,
  1189. columnSortable: false,
  1190. sortLv: 0,
  1191. status: true,
  1192. fixed: '',
  1193. columnWidth: 80
  1194. },
  1195. {
  1196. userId: this.$store.state.user.name,
  1197. functionId: 801006,
  1198. serialNumber: '801006Table1DeclarationNo',
  1199. tableId: "801006Table1",
  1200. tableName: "报关单主记录",
  1201. columnProp: "declarationNo",
  1202. headerAlign: "center",
  1203. align: "left",
  1204. columnLabel: "报关单号",
  1205. columnHidden: false,
  1206. columnImage: false,
  1207. columnSortable: false,
  1208. sortLv: 0,
  1209. status: true,
  1210. fixed: '',
  1211. columnWidth: 100
  1212. },
  1213. {
  1214. userId: this.$store.state.user.name,
  1215. functionId: 801006,
  1216. serialNumber: '801006Table1CmcInvoice',
  1217. tableId: "801006Table1",
  1218. tableName: "报关单主记录",
  1219. columnProp: "cmcInvoice",
  1220. headerAlign: "center",
  1221. align: "left",
  1222. columnLabel: "合同协议号",
  1223. columnHidden: false,
  1224. columnImage: false,
  1225. columnSortable: false,
  1226. sortLv: 0,
  1227. status: true,
  1228. fixed: '',
  1229. columnWidth: 80
  1230. },
  1231. {
  1232. userId: this.$store.state.user.name,
  1233. functionId: 801006,
  1234. serialNumber: '801006Table1CustomsOfficeCode',
  1235. tableId: "801006Table1",
  1236. tableName: "报关单主记录",
  1237. columnProp: "customsOfficeCode",
  1238. headerAlign: "center",
  1239. align: "left",
  1240. columnLabel: "海关编号",
  1241. columnHidden: false,
  1242. columnImage: false,
  1243. columnSortable: false,
  1244. sortLv: 0,
  1245. status: true,
  1246. fixed: '',
  1247. columnWidth: 80
  1248. },
  1249. {
  1250. userId: this.$store.state.user.name,
  1251. functionId: 801006,
  1252. serialNumber: '801006Table1InputCode',
  1253. tableId: "801006Table1",
  1254. tableName: "报关单主记录",
  1255. columnProp: "inputCode",
  1256. headerAlign: "center",
  1257. align: "left",
  1258. columnLabel: "录入编号",
  1259. columnHidden: false,
  1260. columnImage: false,
  1261. columnSortable: false,
  1262. sortLv: 0,
  1263. status: true,
  1264. fixed: '',
  1265. columnWidth: 80
  1266. },
  1267. {
  1268. userId: this.$store.state.user.name,
  1269. functionId: 801006,
  1270. serialNumber: '801006Table1DutyStatus',
  1271. tableId: "801006Table1",
  1272. tableName: "报关单主记录",
  1273. columnProp: "dutyStatus",
  1274. headerAlign: "center",
  1275. align: "left",
  1276. columnLabel: "征免性质",
  1277. columnHidden: false,
  1278. columnImage: false,
  1279. columnSortable: false,
  1280. sortLv: 0,
  1281. status: true,
  1282. fixed: '',
  1283. columnWidth: 80
  1284. },
  1285. {
  1286. userId: this.$store.state.user.name,
  1287. functionId: 801006,
  1288. serialNumber: '801006Table1LocalShipper',
  1289. tableId: "801006Table1",
  1290. tableName: "报关单主记录",
  1291. columnProp: "localShipper",
  1292. headerAlign: "center",
  1293. align: "left",
  1294. columnLabel: "境内发货人",
  1295. columnHidden: false,
  1296. columnImage: false,
  1297. columnSortable: false,
  1298. sortLv: 0,
  1299. status: true,
  1300. fixed: '',
  1301. columnWidth: 130
  1302. },
  1303. {
  1304. userId: this.$store.state.user.name,
  1305. functionId: 801006,
  1306. serialNumber: '801006Table1LocalShipAddress',
  1307. tableId: "801006Table1",
  1308. tableName: "报关单主记录",
  1309. columnProp: "localShipAddress",
  1310. headerAlign: "center",
  1311. align: "left",
  1312. columnLabel: "境内发货人地址",
  1313. columnHidden: false,
  1314. columnImage: false,
  1315. columnSortable: false,
  1316. sortLv: 0,
  1317. status: true,
  1318. fixed: '',
  1319. columnWidth: 180
  1320. },
  1321. {
  1322. userId: this.$store.state.user.name,
  1323. functionId: 801006,
  1324. serialNumber: '801006Table1ShipType',
  1325. tableId: "801006Table1",
  1326. tableName: "报关单主记录",
  1327. columnProp: "shipType",
  1328. headerAlign: "center",
  1329. align: "left",
  1330. columnLabel: "出境关别",
  1331. columnHidden: false,
  1332. columnImage: false,
  1333. columnSortable: false,
  1334. sortLv: 0,
  1335. status: true,
  1336. fixed: '',
  1337. columnWidth: 80
  1338. },
  1339. {
  1340. userId: this.$store.state.user.name,
  1341. functionId: 801006,
  1342. serialNumber: '801006Table1ShipDate',
  1343. tableId: "801006Table1",
  1344. tableName: "报关单主记录",
  1345. columnProp: "shipDate",
  1346. headerAlign: "center",
  1347. align: "left",
  1348. columnLabel: "出口日期",
  1349. columnHidden: false,
  1350. columnImage: false,
  1351. columnSortable: false,
  1352. sortLv: 0,
  1353. status: true,
  1354. fixed: '',
  1355. columnWidth: 100
  1356. },
  1357. {
  1358. userId: this.$store.state.user.name,
  1359. functionId: 801006,
  1360. serialNumber: '801006Table1SubmitDate',
  1361. tableId: "801006Table1",
  1362. tableName: "报关单主记录",
  1363. columnProp: "submitDate",
  1364. headerAlign: "center",
  1365. align: "left",
  1366. columnLabel: "申报日期",
  1367. columnHidden: false,
  1368. columnImage: false,
  1369. columnSortable: false,
  1370. sortLv: 0,
  1371. status: true,
  1372. fixed: '',
  1373. columnWidth: 100
  1374. },
  1375. {
  1376. userId: this.$store.state.user.name,
  1377. functionId: 801006,
  1378. serialNumber: '801006Table1FilingNo',
  1379. tableId: "801006Table1",
  1380. tableName: "报关单主记录",
  1381. columnProp: "filingNo",
  1382. headerAlign: "center",
  1383. align: "left",
  1384. columnLabel: "备案号",
  1385. columnHidden: false,
  1386. columnImage: false,
  1387. columnSortable: false,
  1388. sortLv: 0,
  1389. status: true,
  1390. fixed: '',
  1391. columnWidth: 100
  1392. },
  1393. {
  1394. userId: this.$store.state.user.name,
  1395. functionId: 801006,
  1396. serialNumber: '801006Table1OverseasShipper',
  1397. tableId: "801006Table1",
  1398. tableName: "报关单主记录",
  1399. columnProp: "overseasShipper",
  1400. headerAlign: "center",
  1401. align: "left",
  1402. columnLabel: "境外收货人",
  1403. columnHidden: false,
  1404. columnImage: false,
  1405. columnSortable: false,
  1406. sortLv: 0,
  1407. status: true,
  1408. fixed: '',
  1409. columnWidth: 80
  1410. },
  1411. {
  1412. userId: this.$store.state.user.name,
  1413. functionId: 801006,
  1414. serialNumber: '801006Table1ShippingMode',
  1415. tableId: "801006Table1",
  1416. tableName: "报关单主记录",
  1417. columnProp: "shippingMode",
  1418. headerAlign: "center",
  1419. align: "left",
  1420. columnLabel: "运输方式",
  1421. columnHidden: false,
  1422. columnImage: false,
  1423. columnSortable: false,
  1424. sortLv: 0,
  1425. status: true,
  1426. fixed: '',
  1427. columnWidth: 80
  1428. },
  1429. {
  1430. userId: this.$store.state.user.name,
  1431. functionId: 801006,
  1432. serialNumber: '801006Table1ShippingData',
  1433. tableId: "801006Table1",
  1434. tableName: "报关单主记录",
  1435. columnProp: "shippingData",
  1436. headerAlign: "center",
  1437. align: "left",
  1438. columnLabel: "运输工具以及航次号",
  1439. columnHidden: false,
  1440. columnImage: false,
  1441. columnSortable: false,
  1442. sortLv: 0,
  1443. status: true,
  1444. fixed: '',
  1445. columnWidth: 120
  1446. },
  1447. {
  1448. userId: this.$store.state.user.name,
  1449. functionId: 801006,
  1450. serialNumber: '801006Table1DeliverNo',
  1451. tableId: "801006Table1",
  1452. tableName: "报关单主记录",
  1453. columnProp: "deliverNo",
  1454. headerAlign: "center",
  1455. align: "left",
  1456. columnLabel: "提运单号",
  1457. columnHidden: false,
  1458. columnImage: false,
  1459. columnSortable: false,
  1460. sortLv: 0,
  1461. status: true,
  1462. fixed: '',
  1463. columnWidth: 100
  1464. },
  1465. {
  1466. userId: this.$store.state.user.name,
  1467. functionId: 801006,
  1468. serialNumber: '801006Table1SalesPartner',
  1469. tableId: "801006Table1",
  1470. tableName: "报关单主记录",
  1471. columnProp: "salesPartner",
  1472. headerAlign: "center",
  1473. align: "left",
  1474. columnLabel: "生产销售单位",
  1475. columnHidden: false,
  1476. columnImage: false,
  1477. columnSortable: false,
  1478. sortLv: 0,
  1479. status: true,
  1480. fixed: '',
  1481. columnWidth: 180
  1482. },
  1483. {
  1484. userId: this.$store.state.user.name,
  1485. functionId: 801006,
  1486. serialNumber: '801006Table1RegulatoryMethod',
  1487. tableId: "801006Table1",
  1488. tableName: "报关单主记录",
  1489. columnProp: "regulatoryMethod",
  1490. headerAlign: "center",
  1491. align: "left",
  1492. columnLabel: "监管方式",
  1493. columnHidden: false,
  1494. columnImage: false,
  1495. columnSortable: false,
  1496. sortLv: 0,
  1497. status: true,
  1498. fixed: '',
  1499. columnWidth: 80
  1500. },
  1501. {
  1502. userId: this.$store.state.user.name,
  1503. functionId: 801006,
  1504. serialNumber: '801006Table1DutyStatus',
  1505. tableId: "801006Table1",
  1506. tableName: "报关单主记录",
  1507. columnProp: "dutyStatus",
  1508. headerAlign: "center",
  1509. align: "left",
  1510. columnLabel: "征免性质",
  1511. columnHidden: false,
  1512. columnImage: false,
  1513. columnSortable: false,
  1514. sortLv: 0,
  1515. status: true,
  1516. fixed: '',
  1517. columnWidth: 80
  1518. },
  1519. {
  1520. userId: this.$store.state.user.name,
  1521. functionId: 801006,
  1522. serialNumber: '801006Table1PermitNumber',
  1523. tableId: "801006Table1",
  1524. tableName: "报关单主记录",
  1525. columnProp: "permitNumber",
  1526. headerAlign: "center",
  1527. align: "left",
  1528. columnLabel: "许可证号",
  1529. columnHidden: false,
  1530. columnImage: false,
  1531. columnSortable: false,
  1532. sortLv: 0,
  1533. status: true,
  1534. fixed: '',
  1535. columnWidth: 80
  1536. },
  1537. {
  1538. userId: this.$store.state.user.name,
  1539. functionId: 801006,
  1540. serialNumber: '801006Table1SalesArea',
  1541. tableId: "801006Table1",
  1542. tableName: "报关单主记录",
  1543. columnProp: "salesArea",
  1544. headerAlign: "center",
  1545. align: "left",
  1546. columnLabel: "贸易国(地区)",
  1547. columnHidden: false,
  1548. columnImage: false,
  1549. columnSortable: false,
  1550. sortLv: 0,
  1551. status: true,
  1552. fixed: '',
  1553. columnWidth: 80
  1554. },
  1555. {
  1556. userId: this.$store.state.user.name,
  1557. functionId: 801006,
  1558. serialNumber: '801006Table1ReceiveArea',
  1559. tableId: "801006Table1",
  1560. tableName: "报关单主记录",
  1561. columnProp: "receiveArea",
  1562. headerAlign: "center",
  1563. align: "left",
  1564. columnLabel: "运抵国(地区)",
  1565. columnHidden: false,
  1566. columnImage: false,
  1567. columnSortable: false,
  1568. sortLv: 0,
  1569. status: true,
  1570. fixed: '',
  1571. columnWidth: 80
  1572. },
  1573. {
  1574. userId: this.$store.state.user.name,
  1575. functionId: 801006,
  1576. serialNumber: '801006Table1ShippingPort',
  1577. tableId: "801006Table1",
  1578. tableName: "报关单主记录",
  1579. columnProp: "shippingPort",
  1580. headerAlign: "center",
  1581. align: "left",
  1582. columnLabel: "运港",
  1583. columnHidden: false,
  1584. columnImage: false,
  1585. columnSortable: false,
  1586. sortLv: 0,
  1587. status: true,
  1588. fixed: '',
  1589. columnWidth: 80
  1590. },
  1591. {
  1592. userId: this.$store.state.user.name,
  1593. functionId: 801006,
  1594. serialNumber: '801006Table1ExitPort',
  1595. tableId: "801006Table1",
  1596. tableName: "报关单主记录",
  1597. columnProp: "exitPort",
  1598. headerAlign: "center",
  1599. align: "left",
  1600. columnLabel: "离境口岸",
  1601. columnHidden: false,
  1602. columnImage: false,
  1603. columnSortable: false,
  1604. sortLv: 0,
  1605. status: true,
  1606. fixed: '',
  1607. columnWidth: 80
  1608. },
  1609. {
  1610. userId: this.$store.state.user.name,
  1611. functionId: 801006,
  1612. serialNumber: '801006Table1Documents',
  1613. tableId: "801006Table1",
  1614. tableName: "报关单主记录",
  1615. columnProp: "documents",
  1616. headerAlign: "center",
  1617. align: "left",
  1618. columnLabel: "随附单证及编号",
  1619. columnHidden: false,
  1620. columnImage: false,
  1621. columnSortable: false,
  1622. sortLv: 0,
  1623. status: true,
  1624. fixed: '',
  1625. columnWidth: 120
  1626. },
  1627. {
  1628. userId: this.$store.state.user.name,
  1629. functionId: 801006,
  1630. serialNumber: '801006Table1Remark',
  1631. tableId: "801006Table1",
  1632. tableName: "报关单主记录",
  1633. columnProp: "remark",
  1634. headerAlign: "center",
  1635. align: "left",
  1636. columnLabel: "标记唛码及备注",
  1637. columnHidden: false,
  1638. columnImage: false,
  1639. columnSortable: false,
  1640. sortLv: 0,
  1641. status: true,
  1642. fixed: '',
  1643. columnWidth: 120
  1644. },
  1645. {
  1646. userId: this.$store.state.user.name,
  1647. functionId: 801006,
  1648. serialNumber: '801006Table1PackageType',
  1649. tableId: "801006Table1",
  1650. tableName: "报关单主记录",
  1651. columnProp: "packageType",
  1652. headerAlign: "center",
  1653. align: "left",
  1654. columnLabel: "包装种类",
  1655. columnHidden: false,
  1656. columnImage: false,
  1657. columnSortable: false,
  1658. sortLv: 0,
  1659. status: true,
  1660. fixed: '',
  1661. columnWidth: 80
  1662. },
  1663. {
  1664. userId: this.$store.state.user.name,
  1665. functionId: 801006,
  1666. serialNumber: '801006Table1PackageQty',
  1667. tableId: "801006Table1",
  1668. tableName: "报关单主记录",
  1669. columnProp: "packageQty",
  1670. headerAlign: "center",
  1671. align: "right",
  1672. columnLabel: "件数",
  1673. columnHidden: false,
  1674. columnImage: false,
  1675. columnSortable: false,
  1676. sortLv: 0,
  1677. status: true,
  1678. fixed: '',
  1679. columnWidth: 60
  1680. },
  1681. {
  1682. userId: this.$store.state.user.name,
  1683. functionId: 801006,
  1684. serialNumber: '801006Table1GrossWeight',
  1685. tableId: "801006Table1",
  1686. tableName: "报关单主记录",
  1687. columnProp: "grossWeight",
  1688. headerAlign: "center",
  1689. align: "right",
  1690. columnLabel: "毛重(KG)",
  1691. columnHidden: false,
  1692. columnImage: false,
  1693. columnSortable: false,
  1694. sortLv: 0,
  1695. status: true,
  1696. fixed: '',
  1697. columnWidth: 80
  1698. },
  1699. {
  1700. userId: this.$store.state.user.name,
  1701. functionId: 801006,
  1702. serialNumber: '801006Table1NetWeight',
  1703. tableId: "801006Table1",
  1704. tableName: "报关单主记录",
  1705. columnProp: "netWeight",
  1706. headerAlign: "center",
  1707. align: "right",
  1708. columnLabel: "净重(KG)",
  1709. columnHidden: false,
  1710. columnImage: false,
  1711. columnSortable: false,
  1712. sortLv: 0,
  1713. status: true,
  1714. fixed: '',
  1715. columnWidth: 80
  1716. },
  1717. {
  1718. userId: this.$store.state.user.name,
  1719. functionId: 801006,
  1720. serialNumber: '801006Table1PaymentType',
  1721. tableId: "801006Table1",
  1722. tableName: "报关单主记录",
  1723. columnProp: "paymentType",
  1724. headerAlign: "center",
  1725. align: "left",
  1726. columnLabel: "成交方式",
  1727. columnHidden: false,
  1728. columnImage: false,
  1729. columnSortable: false,
  1730. sortLv: 0,
  1731. status: true,
  1732. fixed: '',
  1733. columnWidth: 80
  1734. },
  1735. {
  1736. userId: this.$store.state.user.name,
  1737. functionId: 801006,
  1738. serialNumber: '801006Table1ShipPrice',
  1739. tableId: "801006Table1",
  1740. tableName: "报关单主记录",
  1741. columnProp: "shipPrice",
  1742. headerAlign: "center",
  1743. align: "right",
  1744. columnLabel: "运费",
  1745. columnHidden: false,
  1746. columnImage: false,
  1747. columnSortable: false,
  1748. sortLv: 0,
  1749. status: true,
  1750. fixed: '',
  1751. columnWidth: 60
  1752. },
  1753. {
  1754. userId: this.$store.state.user.name,
  1755. functionId: 801006,
  1756. serialNumber: '801006Table1Premium',
  1757. tableId: "801006Table1",
  1758. tableName: "报关单主记录",
  1759. columnProp: "premium",
  1760. headerAlign: "center",
  1761. align: "right",
  1762. columnLabel: "保费",
  1763. columnHidden: false,
  1764. columnImage: false,
  1765. columnSortable: false,
  1766. sortLv: 0,
  1767. status: true,
  1768. fixed: '',
  1769. columnWidth: 60
  1770. },
  1771. {
  1772. userId: this.$store.state.user.name,
  1773. functionId: 801006,
  1774. serialNumber: '801006Table1OtherPrice',
  1775. tableId: "801006Table1",
  1776. tableName: "报关单主记录",
  1777. columnProp: "otherPrice",
  1778. headerAlign: "center",
  1779. align: "right",
  1780. columnLabel: "杂费",
  1781. columnHidden: false,
  1782. columnImage: false,
  1783. columnSortable: false,
  1784. sortLv: 0,
  1785. status: true,
  1786. fixed: '',
  1787. columnWidth: 60
  1788. },
  1789. {
  1790. userId: this.$store.state.user.name,
  1791. functionId: 801006,
  1792. serialNumber: '801006Table1SpecialRelationshipComfirm',
  1793. tableId: "801006Table1",
  1794. tableName: "报关单主记录",
  1795. columnProp: "specialRelationshipComfirm",
  1796. headerAlign: "center",
  1797. align: "left",
  1798. columnLabel: "特殊关系确认",
  1799. columnHidden: false,
  1800. columnImage: false,
  1801. columnSortable: false,
  1802. sortLv: 0,
  1803. status: true,
  1804. fixed: '',
  1805. columnWidth: 60
  1806. },
  1807. {
  1808. userId: this.$store.state.user.name,
  1809. functionId: 801006,
  1810. serialNumber: '801006Table1PriceInfluenceConfirm',
  1811. tableId: "801006Table1",
  1812. tableName: "报关单主记录",
  1813. columnProp: "priceInfluenceConfirm",
  1814. headerAlign: "center",
  1815. align: "left",
  1816. columnLabel: "价格影响确认",
  1817. columnHidden: false,
  1818. columnImage: false,
  1819. columnSortable: false,
  1820. sortLv: 0,
  1821. status: true,
  1822. fixed: '',
  1823. columnWidth: 60
  1824. },
  1825. {
  1826. userId: this.$store.state.user.name,
  1827. functionId: 801006,
  1828. serialNumber: '801006Table1RoyaltyPaymentsConfirm',
  1829. tableId: "801006Table1",
  1830. tableName: "报关单主记录",
  1831. columnProp: "royaltyPaymentsConfirm",
  1832. headerAlign: "center",
  1833. align: "left",
  1834. columnLabel: "支付特许使用费确认",
  1835. columnHidden: false,
  1836. columnImage: false,
  1837. columnSortable: false,
  1838. sortLv: 0,
  1839. status: true,
  1840. fixed: '',
  1841. columnWidth: 60
  1842. },
  1843. {
  1844. userId: this.$store.state.user.name,
  1845. functionId: 801006,
  1846. serialNumber: '801006Table1DelNo',
  1847. tableId: "801006Table1",
  1848. tableName: "报关单主记录",
  1849. columnProp: "delNo",
  1850. headerAlign: "center",
  1851. align: "left",
  1852. columnLabel: "发货通知单号",
  1853. columnHidden: false,
  1854. columnImage: false,
  1855. columnSortable: false,
  1856. sortLv: 0,
  1857. status: true,
  1858. fixed: '',
  1859. columnWidth: 90
  1860. },
  1861. ],
  1862. columnList2: [
  1863. {
  1864. userId: this.$store.state.user.name,
  1865. functionId: 801006,
  1866. serialNumber: '801006Table2ItemNo',
  1867. tableId: "801006Table2",
  1868. tableName: "报关单子记录",
  1869. columnProp: "itemNo",
  1870. headerAlign: "center",
  1871. align: "right",
  1872. columnLabel: "序号",
  1873. columnHidden: false,
  1874. columnImage: false,
  1875. columnSortable: false,
  1876. sortLv: 0,
  1877. status: true,
  1878. fixed: '',
  1879. columnWidth: 50
  1880. },
  1881. {
  1882. userId: this.$store.state.user.name,
  1883. functionId: 801006,
  1884. serialNumber: '801006Table2HsCode',
  1885. tableId: "801006Table2",
  1886. tableName: "报关单子记录",
  1887. columnProp: "hsCode",
  1888. headerAlign: "center",
  1889. align: "left",
  1890. columnLabel: "HS Code",
  1891. columnHidden: false,
  1892. columnImage: false,
  1893. columnSortable: false,
  1894. sortLv: 0,
  1895. status: true,
  1896. fixed: '',
  1897. columnWidth: 100
  1898. },
  1899. {
  1900. userId: this.$store.state.user.name,
  1901. functionId: 801006,
  1902. serialNumber: '801006Table2HsCodeDesc',
  1903. tableId: "801006Table2",
  1904. tableName: "报关单子记录",
  1905. columnProp: "hsCodeDesc",
  1906. headerAlign: "center",
  1907. align: "left",
  1908. columnLabel: "品名",
  1909. columnHidden: false,
  1910. columnImage: false,
  1911. columnSortable: false,
  1912. sortLv: 0,
  1913. status: true,
  1914. fixed: '',
  1915. columnWidth: 100
  1916. },
  1917. {
  1918. userId: this.$store.state.user.name,
  1919. functionId: 801006,
  1920. serialNumber: '801006Table2HsCodeDesc',
  1921. tableId: "801006Table2",
  1922. tableName: "报关单子记录",
  1923. columnProp: "brand",
  1924. headerAlign: "center",
  1925. align: "left",
  1926. columnLabel: "品牌",
  1927. columnHidden: false,
  1928. columnImage: false,
  1929. columnSortable: false,
  1930. sortLv: 0,
  1931. status: true,
  1932. fixed: '',
  1933. columnWidth: 80
  1934. },
  1935. {
  1936. userId: this.$store.state.user.name,
  1937. functionId: 801006,
  1938. serialNumber: '801006Table2Qty',
  1939. tableId: "801006Table2",
  1940. tableName: "报关单子记录",
  1941. columnProp: "qty",
  1942. headerAlign: "center",
  1943. align: "right",
  1944. columnLabel: "数量",
  1945. columnHidden: false,
  1946. columnImage: false,
  1947. columnSortable: false,
  1948. sortLv: 0,
  1949. status: true,
  1950. fixed: '',
  1951. columnWidth: 60
  1952. },
  1953. {
  1954. userId: this.$store.state.user.name,
  1955. functionId: 801006,
  1956. serialNumber: '801006Table2NetWeight',
  1957. tableId: "801006Table2",
  1958. tableName: "报关单子记录",
  1959. columnProp: "netWeight",
  1960. headerAlign: "center",
  1961. align: "right",
  1962. columnLabel: "净重",
  1963. columnHidden: false,
  1964. columnImage: false,
  1965. columnSortable: false,
  1966. sortLv: 0,
  1967. status: true,
  1968. fixed: '',
  1969. columnWidth: 60
  1970. },
  1971. {
  1972. userId: this.$store.state.user.name,
  1973. functionId: 801006,
  1974. serialNumber: '801006Table2UnitPrice',
  1975. tableId: "801006Table2",
  1976. tableName: "报关单子记录",
  1977. columnProp: "unitPrice",
  1978. headerAlign: "center",
  1979. align: "right",
  1980. columnLabel: "单价",
  1981. columnHidden: false,
  1982. columnImage: false,
  1983. columnSortable: false,
  1984. sortLv: 0,
  1985. status: true,
  1986. fixed: '',
  1987. columnWidth: 60
  1988. },
  1989. {
  1990. userId: this.$store.state.user.name,
  1991. functionId: 801006,
  1992. serialNumber: '801006Table2TotalPrice',
  1993. tableId: "801006Table2",
  1994. tableName: "报关单子记录",
  1995. columnProp: "totalPrice",
  1996. headerAlign: "center",
  1997. align: "right",
  1998. columnLabel: "总价",
  1999. columnHidden: false,
  2000. columnImage: false,
  2001. columnSortable: false,
  2002. sortLv: 0,
  2003. status: true,
  2004. fixed: '',
  2005. columnWidth: 60
  2006. },
  2007. {
  2008. userId: this.$store.state.user.name,
  2009. functionId: 801006,
  2010. serialNumber: '801006Table2Currency',
  2011. tableId: "801006Table2",
  2012. tableName: "报关单子记录",
  2013. columnProp: "currency",
  2014. headerAlign: "center",
  2015. align: "left",
  2016. columnLabel: "币制",
  2017. columnHidden: false,
  2018. columnImage: false,
  2019. columnSortable: false,
  2020. sortLv: 0,
  2021. status: true,
  2022. fixed: '',
  2023. columnWidth: 60
  2024. },
  2025. {
  2026. userId: this.$store.state.user.name,
  2027. functionId: 801006,
  2028. serialNumber: '801006Table2MadeArea',
  2029. tableId: "801006Table2",
  2030. tableName: "报关单子记录",
  2031. columnProp: "madeArea",
  2032. headerAlign: "center",
  2033. align: "left",
  2034. columnLabel: "原产国(地区)",
  2035. columnHidden: false,
  2036. columnImage: false,
  2037. columnSortable: false,
  2038. sortLv: 0,
  2039. status: true,
  2040. fixed: '',
  2041. columnWidth: 80
  2042. },
  2043. {
  2044. userId: this.$store.state.user.name,
  2045. functionId: 801006,
  2046. serialNumber: '801006Table2Destination',
  2047. tableId: "801006Table2",
  2048. tableName: "报关单子记录",
  2049. columnProp: "destination",
  2050. headerAlign: "center",
  2051. align: "left",
  2052. columnLabel: "最终目的国(地区)",
  2053. columnHidden: false,
  2054. columnImage: false,
  2055. columnSortable: false,
  2056. sortLv: 0,
  2057. status: true,
  2058. fixed: '',
  2059. columnWidth: 100
  2060. },
  2061. {
  2062. userId: this.$store.state.user.name,
  2063. functionId: 801006,
  2064. serialNumber: '801006Table2SourceArea',
  2065. tableId: "801006Table2",
  2066. tableName: "报关单子记录",
  2067. columnProp: "sourceArea",
  2068. headerAlign: "center",
  2069. align: "left",
  2070. columnLabel: "境内货源地",
  2071. columnHidden: false,
  2072. columnImage: false,
  2073. columnSortable: false,
  2074. sortLv: 0,
  2075. status: true,
  2076. fixed: '',
  2077. columnWidth: 80
  2078. },
  2079. ],
  2080. }
  2081. },
  2082. mounted() {
  2083. this.$nextTick(() => {
  2084. this.height = (window.innerHeight - 240)/2;
  2085. })
  2086. },
  2087. methods: {
  2088. shouldShowDetailColumn(item) {
  2089. const isLabelOrRfid = this.currentRow && (this.currentRow.buNo === '01-Label' || this.currentRow.buNo === '03-RFID')
  2090. return !(item.columnProp === 'brand' && isLabelOrRfid)
  2091. },
  2092. // 每页数
  2093. sizeChangeHandle (val) {
  2094. this.pageSize = val
  2095. this.pageIndex = 1
  2096. this.searchTable()
  2097. },
  2098. // 当前页
  2099. currentChangeHandle (val) {
  2100. this.pageIndex = val
  2101. this.searchTable()
  2102. },
  2103. changeData(row){
  2104. this.currentRow = JSON.parse(JSON.stringify(row));
  2105. this.refreshCurrentTabTable ();
  2106. },
  2107. searchTable(){
  2108. this.searchData.limit = this.pageSize
  2109. this.searchData.page = this.pageIndex
  2110. searchDeclarationHeader(this.searchData).then(({data}) => {
  2111. //区分请求成功和失败的状况
  2112. if (data && data.code == 0) {
  2113. this.dataList = data.page.list
  2114. this.pageIndex = data.page.currPage
  2115. this.pageSize = data.page.pageSize
  2116. this.totalPage = data.page.totalCount
  2117. if(this.dataList.length>0){
  2118. this.$refs.mainTable.setCurrentRow(this.dataList[0]);
  2119. this.changeData(this.dataList[0])
  2120. }else {
  2121. this.changeData(null)
  2122. }
  2123. } else {
  2124. this.dataList = [];
  2125. }
  2126. });
  2127. },
  2128. tabClick (tab, event) {
  2129. // 刷新列表数据
  2130. this.refreshCurrentTabTable()
  2131. },
  2132. refreshCurrentTabTable(){
  2133. if(this.currentRow===''||this.currentRow===null){
  2134. this.currentRow={site:'',declarationNo:''}
  2135. }
  2136. if(this.activeName==='detail'){
  2137. searchDeclarationDetail(this.currentRow).then(({data}) => {
  2138. //区分请求成功和失败的状况
  2139. if (data && data.code == 0) {
  2140. this.dataList2 = data.rows
  2141. this.bizhi = data.rows[0].currency
  2142. } else {
  2143. this.dataList2 = [];
  2144. }
  2145. });
  2146. }
  2147. },
  2148. deleteBG(row){
  2149. this.$confirm('是否删除此条数据?', '提示', {
  2150. confirmButtonText: '确定',
  2151. cancelButtonText: '取消',
  2152. type: 'warning'
  2153. }).then(() => {
  2154. deleteDeclaration(row).then(({data}) => {
  2155. if (data && data.code === 0) {
  2156. this.searchTable()
  2157. this.$message({
  2158. message: '操作成功',
  2159. type: 'success',
  2160. duration: 1500,
  2161. onClose: () => {}
  2162. })
  2163. } else {
  2164. this.$alert(data.msg, '错误', {
  2165. confirmButtonText: '确定'
  2166. })
  2167. }
  2168. })
  2169. }).catch(() => {
  2170. this.$message({
  2171. type: 'info',
  2172. message: '已取消删除'
  2173. });
  2174. });
  2175. },
  2176. handleCurrentChange(val) {
  2177. this.currentRow = val;
  2178. },
  2179. chooseBrandType() {
  2180. if (!this.currentRow || !this.currentRow.buNo) {
  2181. this.$message.warning('请选择报关单!')
  2182. return
  2183. }
  2184. this.brandType='境外品牌(其他)'
  2185. this.brandTypeFlag = true
  2186. if (this.currentRow.buNo==='02-Hardtag' || this.currentRow.buNo==='04-MHM') {
  2187. this.currentRow.brand='品牌'
  2188. getPropertiesListByDeclaration(this.currentRow).then(({data}) => {
  2189. if (data && data.code == 0) {
  2190. this.propertiesList = data.rows
  2191. } else {
  2192. this.propertiesList = [];
  2193. }
  2194. });
  2195. }
  2196. },
  2197. chooseHsCodeDescType() {
  2198. if (!this.currentRow || !this.currentRow.buNo) {
  2199. this.$message.warning('请选择报关单!')
  2200. return
  2201. }
  2202. //this.hsCodeDescType=''
  2203. this.declarationFlag = true
  2204. },
  2205. searchTemplateOne() {
  2206. this.templateData.buNo = this.currentRow.buNo
  2207. this.templateData.customName = this.currentRow.customName
  2208. //this.templateData.shippingMode = this.currentRow.shippingMode
  2209. searchTemplateList(this.templateData).then(({data}) => {
  2210. if (data && data.code === 0){
  2211. if (data.rows && data.rows.length > 0) {
  2212. this.templateRowDblclick(data.rows[0]);
  2213. }
  2214. }
  2215. })
  2216. },
  2217. buildPickupAddressText(item) {
  2218. const company = item && item.company ? item.company : ''
  2219. const address = item && item.address ? item.address : ''
  2220. return [company, address].filter(text => text && text.trim()).join(' / ')
  2221. },
  2222. handlePickupAddressChange(value) {
  2223. const selected = this.pickupAddressList.find(item => item.valueKey === value)
  2224. if (selected) {
  2225. this.exportGoods.pickupCompany = selected.company
  2226. this.exportGoods.pickupAddress = selected.address
  2227. } else {
  2228. this.exportGoods.pickupCompany = ''
  2229. this.exportGoods.pickupAddress = ''
  2230. }
  2231. },
  2232. loadPickupAddressList(buNo) {
  2233. this.pickupAddressList = []
  2234. this.exportGoods.pickupAddressValue = ''
  2235. this.exportGoods.pickupCompany = ''
  2236. this.exportGoods.pickupAddress = ''
  2237. if (!buNo) {
  2238. return Promise.resolve()
  2239. }
  2240. return getEcssContactsList({buNo: buNo}).then(({data}) => {
  2241. if (data && data.code === 0) {
  2242. const rows = Array.isArray(data.rows) ? data.rows : []
  2243. const uniqMap = {}
  2244. rows.forEach(item => {
  2245. const company = item && item.company ? String(item.company).trim() : ''
  2246. const address = item && item.address ? String(item.address).trim() : ''
  2247. const defaultOption = item && item.defaultOption ? String(item.defaultOption).trim().toUpperCase() : ''
  2248. if (!company && !address) {
  2249. return
  2250. }
  2251. const valueKey = company + '||' + address
  2252. if (!uniqMap[valueKey]) {
  2253. uniqMap[valueKey] = {
  2254. company: company,
  2255. address: address,
  2256. valueKey: valueKey,
  2257. defaultOption: defaultOption
  2258. }
  2259. } else if (defaultOption === 'Y') {
  2260. uniqMap[valueKey].defaultOption = 'Y'
  2261. }
  2262. })
  2263. this.pickupAddressList = Object.keys(uniqMap).map(key => uniqMap[key])
  2264. const defaultItem = this.pickupAddressList.find(item => item.defaultOption === 'Y')
  2265. if (defaultItem) {
  2266. this.exportGoods.pickupAddressValue = defaultItem.valueKey
  2267. this.handlePickupAddressChange(defaultItem.valueKey)
  2268. }
  2269. } else {
  2270. this.pickupAddressList = []
  2271. }
  2272. }).catch(() => {
  2273. this.pickupAddressList = []
  2274. })
  2275. },
  2276. exportInvoiceList() {
  2277. if (!this.currentRow || !this.currentRow.buNo) {
  2278. this.$message.warning('请选择报关单!')
  2279. return
  2280. }
  2281. this.exportInvoice.templateName=''
  2282. this.exportInvoice.hsCodeDesc=this.currentRow.hsCodeDesc
  2283. this.exportInvoice.contractFlag=this.currentRow.contractFlag
  2284. this.exportInvoice.packaging=this.currentRow.packaging
  2285. this.exportInvoice.kgs=this.currentRow.kgs
  2286. this.exportInvoice.hsCode=this.currentRow.hsCode
  2287. this.exportInvoice.material=this.currentRow.material
  2288. this.exportInvoice.hsCodeDescType=this.currentRow.hsCodeDescType
  2289. this.exportInvoice.goodsLabel=this.currentRow.goodsLabel
  2290. this.exportInvoice.origin="made in china"
  2291. //this.exportInvoice = this.currentRow
  2292. if (!this.exportInvoice.origin) {
  2293. this.exportInvoice.origin = 'made in china'
  2294. }
  2295. if (!this.exportInvoice.itemNo) {
  2296. this.exportInvoice.itemNo = 'Y'
  2297. }
  2298. this.notifyPartDetailList = [];
  2299. this.exportInvoiceFlag = true
  2300. if (this.currentRow.buNo==='03-RFID') {
  2301. getNotifyPartDetail(this.currentRow).then(({data}) => {
  2302. //区分请求成功和失败的状况
  2303. if (data && data.code == 0) {
  2304. this.notifyPartDetailList = data.rows
  2305. this.notifyPartDetailList.forEach(o => {
  2306. if (!o.lossratio) {
  2307. o.lossratio = '1.05';
  2308. }
  2309. });
  2310. } else {
  2311. this.notifyPartDetailList = [];
  2312. }
  2313. });
  2314. }
  2315. this.templateData.type='发票'
  2316. this.searchTemplateOne();
  2317. },
  2318. exportPakingList() {
  2319. if (!this.currentRow || !this.currentRow.buNo) {
  2320. this.$message.warning('请选择报关单!')
  2321. return
  2322. }
  2323. this.exportPaking.origin='made in china'
  2324. this.exportPaking.itemNo=this.currentRow.itemNo
  2325. this.exportPaking.upc=this.currentRow.upc
  2326. this.exportPaking.so=this.currentRow.so
  2327. this.exportPaking.shippingMark=this.currentRow.cmcInvoice
  2328. this.exportPaking.palletWeight=this.currentRow.palletWeight
  2329. this.exportPaking.hsCodeDesc=this.currentRow.hsCodeDesc
  2330. this.exportPaking.contractFlag=this.currentRow.contractFlag
  2331. this.exportPaking.packaging=this.currentRow.packaging
  2332. this.exportPaking.kgs=this.currentRow.kgs
  2333. this.exportPaking.hsCode=this.currentRow.hsCode
  2334. this.exportPaking.material=this.currentRow.material
  2335. this.exportPaking.hsCodeDescType=this.currentRow.hsCodeDescType
  2336. this.exportPaking.goodsLabel=this.currentRow.goodsLabel
  2337. this.exportPaking.boxChange=this.currentRow.boxChange
  2338. //this.exportPaking = this.currentRow
  2339. if (!this.exportPaking.origin) {
  2340. this.exportPaking.origin = 'made in china'
  2341. }
  2342. if (!this.exportPaking.itemNo) {
  2343. this.exportPaking.itemNo = 'Y'
  2344. }
  2345. this.notifyPartDetailList = [];
  2346. this.exportPaking.templateName=''
  2347. this.exportPakingFlag = true
  2348. if (this.currentRow.buNo==='03-RFID') {
  2349. getNotifyPartDetail(this.currentRow).then(({data}) => {
  2350. //区分请求成功和失败的状况
  2351. if (data && data.code == 0) {
  2352. this.notifyPartDetailList = data.rows
  2353. this.notifyPartDetailList.forEach(o => {
  2354. if (!o.lossratio) {
  2355. o.lossratio = '1.05';
  2356. }
  2357. });
  2358. } else {
  2359. this.notifyPartDetailList = [];
  2360. }
  2361. });
  2362. }
  2363. this.templateData.type='箱单'
  2364. this.searchTemplateOne();
  2365. },
  2366. exportGoodsList() {
  2367. if (!this.currentRow || !this.currentRow.buNo) {
  2368. this.$message.warning('请选择报关单!')
  2369. return
  2370. }
  2371. this.exportGoods.hsCodeDescType = 'N'
  2372. this.exportGoods.salesMethod = 'EXW'
  2373. this.exportGoods.currency = this.dataList2.length>0?this.dataList2[0].currency:'USD'
  2374. this.exportGoods.madeArea = 'Nantong, China'
  2375. this.exportGoods.sendPort = 'Shanghai, China'
  2376. this.exportGoods.deliveryGoodsDate = ''
  2377. this.exportGoods.voyage = this.buildDefaultVoyage()
  2378. this.exportGoods.shippingDate = ''
  2379. this.loadPickupAddressList(this.currentRow.buNo)
  2380. this.exportGoodsFlag = true
  2381. },
  2382. hasPickupAddressBu() {
  2383. if (!this.currentRow || !this.currentRow.buNo) {
  2384. return false
  2385. }
  2386. return ['05-Alpha', '04-MHM', '02-Hardtag'].includes(this.currentRow.buNo)
  2387. },
  2388. hasMexicoShippingMarkBu() {
  2389. if (!this.currentRow || !this.currentRow.buNo) {
  2390. return false
  2391. }
  2392. return ['05-Alpha', '04-MHM', '02-Hardtag'].includes(this.currentRow.buNo)
  2393. },
  2394. buildDefaultVoyage() {
  2395. if (!this.currentRow || !this.currentRow.buNo) {
  2396. return ''
  2397. }
  2398. const cmcInvoice = this.currentRow.cmcInvoice ? String(this.currentRow.cmcInvoice).trim() : ''
  2399. if (this.hasMexicoShippingMarkBu()) {
  2400. const destination = this.currentRow.destination ? String(this.currentRow.destination).trim() : ''
  2401. return ['Checkpoint', destination, cmcInvoice].filter(Boolean).join('\n')
  2402. }
  2403. if (this.currentRow.buNo === '01-Label' || this.currentRow.buNo === '03-RFID') {
  2404. return cmcInvoice
  2405. }
  2406. return ''
  2407. },
  2408. // 导出
  2409. downloadDeclarationElements() {
  2410. if (!this.currentRow || !this.currentRow.buNo) {
  2411. this.$message.warning('请选择报关单!')
  2412. return
  2413. }
  2414. let exportParam={}
  2415. exportParam.declarationNo = this.currentRow.declarationNo
  2416. exportParam.site = this.currentRow.site
  2417. exportParam.delNo = this.currentRow.delNo
  2418. exportParam.brandType = this.brandType
  2419. exportParam.hsCodeDescType=this.hsCodeDescType
  2420. if (this.propertiesList.length>0) {
  2421. this.currentRow.brand='品牌'
  2422. exportParam.brand = '品牌'
  2423. exportParam.propertiesList = this.propertiesList
  2424. }
  2425. let error;
  2426. ExportUtil.export(
  2427. "/ecss/coDel/downloadDeclarationElements",
  2428. exportParam, "报关要素 "+this.currentRow.cmcInvoice+" "+this.currentRow.destination+"-"+this.currentRow.shippingMode+".xlsx"
  2429. );
  2430. this.brandTypeFlag = false
  2431. },
  2432. downloadDeclaration() {
  2433. if (!this.currentRow || !this.currentRow.buNo) {
  2434. this.$message.warning('请选择报关单!')
  2435. return
  2436. }
  2437. if (!this.packageUnit ) {
  2438. this.$message.warning('请选择托/箱!')
  2439. return
  2440. }
  2441. let exportParam={}
  2442. exportParam.declarationNo = this.currentRow.declarationNo
  2443. exportParam.site = this.currentRow.site
  2444. exportParam.delNo = this.currentRow.delNo
  2445. exportParam.hsCodeDescType=this.hsCodeDescType
  2446. exportParam.packageUnit=this.packageUnit
  2447. exportParam.declarationWeight = this.declarationWeight
  2448. ExportUtil.export(
  2449. "/ecss/coDel/downloadDeclaration",
  2450. exportParam, "报关单 "+this.currentRow.cmcInvoice+" "+this.currentRow.destination+"-"+this.currentRow.shippingMode+".xlsx"
  2451. );
  2452. this.declarationFlag = false
  2453. },
  2454. downloadInvoice() {
  2455. if (!this.currentRow || !this.currentRow.buNo) {
  2456. this.$message.warning('请选择报关单!')
  2457. return
  2458. }
  2459. let exportParam=this.exportInvoice
  2460. exportParam.hsCodeDescTypeInvoice=this.exportInvoice.hsCodeDescType
  2461. exportParam.declarationNo = this.currentRow.declarationNo
  2462. exportParam.site = this.currentRow.site
  2463. exportParam.delNo = this.currentRow.delNo
  2464. exportParam.notifyPartDetailList = this.notifyPartDetailList
  2465. ExportUtil.export(
  2466. "/ecss/coDel/downloadInvoice",
  2467. exportParam, "CI "+this.currentRow.cmcInvoice+" "+this.currentRow.destination+"-"+this.currentRow.shippingMode+".xlsx"
  2468. );
  2469. this.exportInvoiceFlag=false
  2470. this.searchTable()
  2471. },
  2472. downloadPackingList() {
  2473. if (!this.currentRow || !this.currentRow.buNo) {
  2474. this.$message.warning('请选择报关单!')
  2475. return
  2476. }
  2477. if ((this.currentRow.buNo==='01-Label' || this.currentRow.buNo==='03-RFID')
  2478. && !this.exportPaking.origin) {
  2479. this.$message.warning('请填写制造地!')
  2480. return
  2481. }
  2482. /* if ((this.currentRow.buNo==='01-Label' || this.currentRow.buNo==='03-RFID')
  2483. && !this.exportPaking.palletWeight) {
  2484. this.$message.warning('请填写栈板重量!')
  2485. return
  2486. }*/
  2487. if (this.exportPaking.material && !this.exportPaking.hsCode) {
  2488. this.$message.warning('请填写hsCode!')
  2489. return
  2490. }
  2491. if (this.exportPaking.packaging && !this.exportPaking.kgs) {
  2492. this.$message.warning('请填写plastic packaging!')
  2493. return
  2494. }
  2495. let exportParam=this.exportPaking
  2496. exportParam.declarationNo = this.currentRow.declarationNo
  2497. exportParam.site = this.currentRow.site
  2498. exportParam.delNo = this.currentRow.delNo
  2499. exportParam.notifyPartDetailList = this.notifyPartDetailList
  2500. ExportUtil.export(
  2501. "/ecss/coDel/downloadPackingList",
  2502. exportParam, "PL "+this.currentRow.cmcInvoice+" "+this.currentRow.destination+"-"+this.currentRow.shippingMode+".xlsx"
  2503. );
  2504. this.exportPakingFlag = false;
  2505. this.searchTable()
  2506. },
  2507. downloadExportGoods() {
  2508. if (!this.currentRow || !this.currentRow.buNo) {
  2509. this.$message.warning('请选择报关单!')
  2510. return
  2511. }
  2512. let exportParam=this.exportGoods
  2513. exportParam.declarationNo = this.currentRow.declarationNo
  2514. exportParam.site = this.currentRow.site
  2515. exportParam.delNo = this.currentRow.delNo
  2516. ExportUtil.export(
  2517. "/ecss/coDel/downloadExportGoods",
  2518. exportParam, "Booking "+this.currentRow.cmcInvoice+" "+this.currentRow.destination+"-"+this.currentRow.shippingMode+".xlsx"
  2519. );
  2520. this.exportGoodsFlag = false;
  2521. this.searchTable()
  2522. },
  2523. exportContract(){
  2524. if (!this.currentRow || !this.currentRow.buNo) {
  2525. this.$message.warning('请选择报关单!')
  2526. return
  2527. }
  2528. let exportParam=this.exportGoods
  2529. exportParam.declarationNo = this.currentRow.declarationNo
  2530. exportParam.site = this.currentRow.site
  2531. exportParam.delNo = this.currentRow.delNo
  2532. ExportUtil.export(
  2533. "/ecss/coDel/downloadContract",
  2534. exportParam, this.currentRow.cmcInvoice+"合同.xlsx"
  2535. );
  2536. this.searchTable()
  2537. },
  2538. exportAll(){
  2539. if (!this.currentRow || !this.currentRow.buNo) {
  2540. this.$message.warning('请选择报关单!')
  2541. return
  2542. }
  2543. if (!this.packageUnit ) {
  2544. this.$message.warning('请选择托/箱!')
  2545. return
  2546. }
  2547. let exportParam=this.exportPaking
  2548. exportParam.salesMethod=this.exportGoods.salesMethod
  2549. exportParam.currency=this.exportGoods.currency
  2550. exportParam.madeArea=this.exportGoods.madeArea
  2551. exportParam.sendPort=this.exportGoods.sendPort
  2552. exportParam.deliveryGoodsDate=this.exportGoods.deliveryGoodsDate
  2553. exportParam.voyage=this.exportGoods.voyage
  2554. exportParam.shippingDate=this.exportGoods.shippingDate
  2555. exportParam.hsCodeDescType=this.exportGoods.hsCodeDescType
  2556. exportParam.shipper=this.exportGoods.shipper
  2557. exportParam.pickupCompany=this.exportGoods.pickupCompany
  2558. exportParam.pickupAddress=this.exportGoods.pickupAddress
  2559. exportParam.pickupAddressValue=this.exportGoods.pickupAddressValue
  2560. exportParam.mexicoShippingMarkFlag=this.exportGoods.mexicoShippingMarkFlag
  2561. exportParam.brandType = this.brandType
  2562. exportParam.hsCodeDescType=this.hsCodeDescType
  2563. exportParam.packageUnit=this.packageUnit
  2564. exportParam.declarationWeight = this.declarationWeight
  2565. if (this.propertiesList.length>0) {
  2566. this.currentRow.brand='品牌'
  2567. exportParam.brand = '品牌'
  2568. exportParam.propertiesList = this.propertiesList
  2569. }
  2570. exportParam.hsCodeDesc = this.exportInvoice.hsCodeDesc
  2571. exportParam.hsCodeDescTypeInvoice=this.exportInvoice.hsCodeDescType
  2572. exportParam.hsCodeFlag=this.exportInvoice.hsCodeFlag
  2573. exportParam.contractFlag = this.exportInvoice.contractFlag
  2574. exportParam.fpremark = this.exportInvoice.fpremark
  2575. exportParam.showWeight = this.exportInvoice.showWeight
  2576. exportParam.declarationNo = this.currentRow.declarationNo
  2577. exportParam.site = this.currentRow.site
  2578. exportParam.delNo = this.currentRow.delNo
  2579. exportParam.notifyPartDetailList = this.notifyPartDetailList
  2580. ExportUtil.export(
  2581. "/ecss/coDel/downloadAll",
  2582. exportParam, this.currentRow.cmcInvoice+" "+this.currentRow.destination+"-"+this.currentRow.shippingMode+".xlsx"
  2583. );
  2584. this.exportAllFlag = false
  2585. this.exportAllYBFlag = false
  2586. this.searchTable()
  2587. },
  2588. async exportAllOpen() {
  2589. if (!this.currentRow || !this.currentRow.buNo) {
  2590. this.$message.warning('请选择报关单!')
  2591. return
  2592. }
  2593. this.exportAllLoading = true
  2594. try {
  2595. // 抬头信息
  2596. this.exportHeader.contractNo = this.currentRow.cmcInvoice || ''
  2597. this.exportHeader.transportMode = this.currentRow.shippingMode || ''
  2598. this.exportHeader.arrivalCountry = this.currentRow.receiveArea || ''
  2599. this.exportHeader.tradeCountry = this.currentRow.salesArea || ''
  2600. // 获取装箱数据,根据托数设置托/箱默认值
  2601. try {
  2602. // 只传递必要的字段,避免日期格式问题
  2603. const queryData = {
  2604. site: this.currentRow.site,
  2605. buNo: this.currentRow.buNo,
  2606. delNo: this.currentRow.delNo
  2607. }
  2608. const palletData = await searchEcssCoDelPalletHeaderData(queryData)
  2609. if (palletData && palletData.data && palletData.data.code === 0) {
  2610. const palletList = palletData.data.rows || []
  2611. // 计算总托数
  2612. const totalPalletQty = palletList.reduce((sum, item) => {
  2613. return sum + (item.palletQty || 0)
  2614. }, 0)
  2615. // 根据托数设置默认值:托数不为0选择"托",托数为0选择"箱"
  2616. this.packageUnit = totalPalletQty > 0 ? '托' : '箱'
  2617. } else {
  2618. // 如果获取装箱数据失败,默认选择"箱"
  2619. this.packageUnit = '箱'
  2620. }
  2621. } catch (error) {
  2622. console.error('获取装箱数据失败:', error)
  2623. // 如果获取装箱数据失败,默认选择"箱"
  2624. this.packageUnit = '箱'
  2625. }
  2626. // 报关要素
  2627. this.brandType='境外品牌(其他)'
  2628. if (this.currentRow.buNo==='02-Hardtag' || this.currentRow.buNo==='04-MHM') {
  2629. this.currentRow.brand='品牌'
  2630. getPropertiesListByDeclaration(this.currentRow).then(({data}) => {
  2631. if (data && data.code == 0) {
  2632. this.propertiesList = data.rows
  2633. } else {
  2634. this.propertiesList = [];
  2635. }
  2636. });
  2637. }
  2638. // 发票
  2639. this.exportInvoice.templateName=''
  2640. this.exportInvoice.hsCodeDesc=this.currentRow.hsCodeDesc
  2641. this.exportInvoice.contractFlag=this.currentRow.contractFlag
  2642. this.exportInvoice.packaging=this.currentRow.packaging
  2643. this.exportInvoice.kgs=this.currentRow.kgs
  2644. this.exportInvoice.hsCode=this.currentRow.hsCode
  2645. this.exportInvoice.material=this.currentRow.material
  2646. this.exportInvoice.hsCodeDescType=this.currentRow.hsCodeDescType
  2647. this.exportInvoice.goodsLabel=this.currentRow.goodsLabel
  2648. this.exportInvoice.origin="made in china"
  2649. if (!this.exportInvoice.origin) {
  2650. this.exportInvoice.origin = 'made in china'
  2651. }
  2652. if (!this.exportInvoice.itemNo) {
  2653. this.exportInvoice.itemNo = 'Y'
  2654. }
  2655. this.notifyPartDetailList = [];
  2656. this.templateData.type='发票'
  2657. await this.searchTemplateOne();
  2658. // 箱单
  2659. //this.exportPaking.origin='made in china'
  2660. this.exportPaking.itemNo=this.currentRow.itemNo
  2661. this.exportPaking.upc=this.currentRow.upc
  2662. this.exportPaking.so=this.currentRow.so
  2663. this.exportPaking.shippingMark=this.exportHeader.contractNo
  2664. this.exportPaking.palletWeight=this.currentRow.palletWeight
  2665. this.exportPaking.hsCodeDesc=this.currentRow.hsCodeDesc
  2666. this.exportPaking.contractFlag=this.currentRow.contractFlag
  2667. this.exportPaking.packaging=this.currentRow.packaging
  2668. this.exportPaking.kgs=this.currentRow.kgs
  2669. this.exportPaking.hsCode=this.currentRow.hsCode
  2670. this.exportPaking.material=this.currentRow.material
  2671. this.exportPaking.hsCodeDescType=this.currentRow.hsCodeDescType
  2672. this.exportPaking.goodsLabel=this.currentRow.goodsLabel
  2673. this.exportPaking.boxChange=this.currentRow.boxChange
  2674. if (!this.exportPaking.origin) {
  2675. this.exportPaking.origin = 'made in china'
  2676. }
  2677. if (!this.exportPaking.itemNo) {
  2678. this.exportPaking.itemNo = 'Y'
  2679. }
  2680. this.notifyPartDetailList = [];
  2681. this.exportPaking.templateName=''
  2682. if (this.currentRow.buNo==='03-RFID') {
  2683. await getNotifyPartDetail(this.currentRow).then(({data}) => {
  2684. //区分请求成功和失败的状况
  2685. if (data && data.code == 0) {
  2686. this.notifyPartDetailList = data.rows
  2687. this.notifyPartDetailList.forEach(o => {
  2688. if (!o.lossratio) {
  2689. o.lossratio = '1.05';
  2690. }
  2691. });
  2692. } else {
  2693. this.notifyPartDetailList = [];
  2694. }
  2695. });
  2696. }
  2697. this.templateData.type='箱单'
  2698. await searchTemplateList(this.templateData).then(({data}) => {
  2699. if (data && data.code === 0){
  2700. if (data.rows && data.rows.length > 0) {
  2701. let row = data.rows[0];
  2702. this.exportPaking.templateName=row.name
  2703. this.exportPaking.upc=row.upc
  2704. this.exportPaking.so=row.so
  2705. //this.exportPaking.shippingMark=row.shippingMark
  2706. this.exportPaking.palletWeight=row.palletWeight
  2707. this.exportPaking.boxChange=row.boxChange
  2708. this.exportPaking.itemNo=row.itemNo
  2709. this.exportPaking.origin=this.currentRow.origin?this.currentRow.origin:row.origin
  2710. this.exportPaking.packaging=this.currentRow.packaging?this.currentRow.packaging:row.packaging
  2711. this.exportPaking.kgs=this.currentRow.kgs?this.currentRow.kgs:row.kgs
  2712. this.exportPaking.hsCode=this.currentRow.hsCode?this.currentRow.hsCode:row.hsCode
  2713. this.exportPaking.material=this.currentRow.material?this.currentRow.material:row.material
  2714. this.exportPaking.hsCodeDescType=this.currentRow.hsCodeDescType?this.currentRow.hsCodeDescType:row.hsCodeDescType
  2715. this.exportPaking.goodsLabel=this.currentRow.goodsLabel?this.currentRow.goodsLabel:row.goodsLabel
  2716. this.notifyPartDetailList.forEach(o => {
  2717. // 开启fsc损耗则给默认值
  2718. if (o.lossratio) {
  2719. if (row.fscWeight) {
  2720. o.lossratio = o.lossratio;
  2721. } else {
  2722. o.lossratio = '';
  2723. }
  2724. } else {
  2725. if (row.fscWeight) {
  2726. o.lossratio = '1.05';
  2727. } else {
  2728. o.lossratio = '';
  2729. }
  2730. }
  2731. });
  2732. }
  2733. }
  2734. })
  2735. this.exportGoods.salesMethod = 'EXW'
  2736. this.exportGoods.currency = this.bizhi
  2737. this.exportGoods.madeArea = 'Nantong, China'
  2738. this.exportGoods.sendPort = 'Shanghai, China'
  2739. this.exportGoods.deliveryGoodsDate = ''
  2740. this.exportGoods.voyage = this.buildDefaultVoyage()
  2741. this.exportGoods.shippingDate = '';
  2742. await this.loadPickupAddressList(this.currentRow.buNo)
  2743. //this.templateData.type='出口货物委托书'
  2744. //await this.searchTemplateOne();
  2745. if (this.currentRow.buNo==='03-RFID') {
  2746. this.exportPaking.kgs=4.5
  2747. } else {
  2748. this.exportPaking.kgs=2.5
  2749. }
  2750. if (this.packageUnit==='箱') {
  2751. this.exportPaking.kgs=0.1
  2752. }
  2753. if (this.currentRow.buNo==='05-Alpha' || this.currentRow.buNo==='04-MHM') {
  2754. this.exportPaking.kgs=3
  2755. } else if (this.currentRow.buNo==='02-Hardtag'){
  2756. this.exportPaking.kgs=5.4
  2757. }
  2758. this.exportPaking.shippingMark=this.exportHeader.contractNo
  2759. if (this.currentRow.buNo==='03-RFID' || this.currentRow.buNo==='01-Label') {
  2760. this.exportAllFlag = true
  2761. } else {
  2762. this.exportAllYBFlag = true
  2763. }
  2764. } finally {
  2765. this.exportAllLoading = false
  2766. }
  2767. },
  2768. exportAllPdf(){
  2769. if (!this.currentRow || !this.currentRow.buNo) {
  2770. this.$message.warning('请选择报关单!')
  2771. return
  2772. }
  2773. if (!this.packageUnit ) {
  2774. this.$message.warning('请选择托/箱!')
  2775. return
  2776. }
  2777. let exportParam=this.exportPaking
  2778. exportParam.salesMethod=this.exportGoods.salesMethod
  2779. exportParam.currency=this.exportGoods.currency
  2780. exportParam.madeArea=this.exportGoods.madeArea
  2781. exportParam.sendPort=this.exportGoods.sendPort
  2782. exportParam.deliveryGoodsDate=this.exportGoods.deliveryGoodsDate
  2783. exportParam.voyage=this.exportGoods.voyage
  2784. exportParam.shippingDate=this.exportGoods.shippingDate
  2785. exportParam.hsCodeDescType=this.exportGoods.hsCodeDescType
  2786. exportParam.shipper=this.exportGoods.shipper
  2787. exportParam.pickupCompany=this.exportGoods.pickupCompany
  2788. exportParam.pickupAddress=this.exportGoods.pickupAddress
  2789. exportParam.pickupAddressValue=this.exportGoods.pickupAddressValue
  2790. exportParam.mexicoShippingMarkFlag=this.exportGoods.mexicoShippingMarkFlag
  2791. exportParam.brandType = this.brandType
  2792. exportParam.hsCodeDescType=this.hsCodeDescType
  2793. exportParam.packageUnit=this.packageUnit
  2794. exportParam.declarationWeight = this.declarationWeight
  2795. if (this.propertiesList.length>0) {
  2796. this.currentRow.brand='品牌'
  2797. exportParam.brand = '品牌'
  2798. exportParam.propertiesList = this.propertiesList
  2799. }
  2800. exportParam.hsCodeDesc = this.exportInvoice.hsCodeDesc
  2801. exportParam.hsCodeDescTypeInvoice=this.exportInvoice.hsCodeDescType
  2802. exportParam.hsCodeFlag=this.exportInvoice.hsCodeFlag
  2803. exportParam.contractFlag = this.exportInvoice.contractFlag
  2804. exportParam.fpremark = this.exportInvoice.fpremark
  2805. exportParam.showWeight = this.exportInvoice.showWeight
  2806. exportParam.declarationNo = this.currentRow.declarationNo
  2807. exportParam.site = this.currentRow.site
  2808. exportParam.delNo = this.currentRow.delNo
  2809. exportParam.notifyPartDetailList = this.notifyPartDetailList
  2810. ExportUtil.export(
  2811. "/ecss/coDel/downloadAllPdf",
  2812. exportParam, this.currentRow.cmcInvoice+" "+this.currentRow.destination+"-"+this.currentRow.shippingMode+".pdf"
  2813. );
  2814. this.exportAllFlag = false
  2815. this.exportAllYBFlag = false
  2816. this.searchTable()
  2817. },
  2818. getCustomerInfo() {
  2819. getCustomerInfo(this.currentRow).then(({data}) => {
  2820. //区分请求成功和失败的状况
  2821. if (data && data.code == 0) {
  2822. this.customerInfoList = data.rows
  2823. } else {
  2824. this.customerInfoList = [];
  2825. }
  2826. });
  2827. },
  2828. // 动态列开始 获取 用户保存的 格式列
  2829. async getTableUserColumn (tableId, columnId) {
  2830. let queryTableUser = {
  2831. userId: this.$store.state.user.name,
  2832. functionId: this.$route.meta.menuId,
  2833. tableId: tableId,
  2834. status: true,
  2835. languageCode: this.$i18n.locale
  2836. }
  2837. await getTableUserListLanguage(queryTableUser).then(({data}) => {
  2838. if (data.rows.length > 0) {
  2839. //this.columnList1 = []
  2840. switch (columnId) {
  2841. case 1:
  2842. this.columnList = data.rows
  2843. break;
  2844. // case 2:
  2845. // this.columnDetailList = data.rows
  2846. // break;
  2847. // case 3:
  2848. // this.columnList2 = data.rows
  2849. // break;
  2850. // case 4:
  2851. // this.columnList3 = data.rows
  2852. // break;
  2853. }
  2854. } else {
  2855. this.getColumnList(tableId, columnId)
  2856. }
  2857. })
  2858. },
  2859. // 获取 tableDefault 列
  2860. async getColumnList (tableId, columnId) {
  2861. let queryTable = {
  2862. functionId: this.$route.meta.menuId,
  2863. tableId: tableId,
  2864. languageCode: this.$i18n.locale
  2865. }
  2866. await getTableDefaultListLanguage(queryTable).then(({data}) => {
  2867. if (!data.rows.length == 0) {
  2868. switch (columnId) {
  2869. case 1:
  2870. this.columnList = data.rows
  2871. break;
  2872. // case 2:
  2873. // this.columnDetailList = data.rows
  2874. // break;
  2875. // case 3:
  2876. // this.columnList2 = data.rows
  2877. // break;
  2878. // case 4:
  2879. // this.columnList3 = data.rows
  2880. // break;
  2881. }
  2882. } else {
  2883. // this.showDefault = true.
  2884. }
  2885. })
  2886. },
  2887. openTemplate (type) {
  2888. this.templateData.type=type;
  2889. this.templateData.buNo = this.currentRow.buNo
  2890. this.templateData.customName = this.currentRow.customName
  2891. //this.templateData.shippingMode = this.currentRow.shippingMode
  2892. this.templateFlag = true;
  2893. },
  2894. openTemplateDialog () {
  2895. //请求
  2896. this.searchTemplateList();
  2897. },
  2898. closeTemplateDialog () {
  2899. this.templateList = []
  2900. this.templateFlag = false
  2901. },
  2902. searchTemplateList () {
  2903. this.templateData.buNo = this.currentRow.buNo
  2904. this.templateData.customName = ''
  2905. searchTemplateList(this.templateData).then(({data}) => {
  2906. if (data && data.code === 0){
  2907. this.templateList = data.rows;
  2908. }
  2909. })
  2910. },
  2911. templateRowDblclick (row) {
  2912. if (this.templateData.type=='发票') {
  2913. this.exportInvoice.templateName=row.name
  2914. this.exportInvoice.hsCodeDesc=row.hsCodeDesc
  2915. this.exportInvoice.contractFlag=row.contractFlag
  2916. this.exportInvoice.origin=this.currentRow.origin?this.currentRow.origin:row.origin
  2917. this.exportInvoice.packaging=this.currentRow.packaging?this.currentRow.packaging:row.packaging
  2918. this.exportInvoice.kgs=this.currentRow.kgs?this.currentRow.kgs:row.kgs
  2919. this.exportInvoice.hsCode=this.currentRow.hsCode?this.currentRow.hsCode:row.hsCode
  2920. this.exportInvoice.material=this.currentRow.material?this.currentRow.material:row.material
  2921. this.exportInvoice.hsCodeDescType=row.hsCodeDescType
  2922. this.exportInvoice.hsCodeFlag=row.hsCodeFlag
  2923. this.exportInvoice.goodsLabel=this.currentRow.goodsLabel?this.currentRow.goodsLabel:row.goodsLabel
  2924. this.exportInvoice.fpremark = row.remark
  2925. this.exportInvoice.showWeight = row.showWeight
  2926. this.exportPaking.so=row.so
  2927. } else if (this.templateData.type=='箱单'){
  2928. this.exportPaking.templateName=row.name
  2929. this.exportPaking.upc=row.upc
  2930. this.exportPaking.so=row.so
  2931. //this.exportPaking.shippingMark=row.shippingMark
  2932. this.exportPaking.palletWeight=row.palletWeight
  2933. this.exportPaking.boxChange=row.boxChange
  2934. this.exportPaking.itemNo=row.itemNo
  2935. this.exportPaking.origin=this.currentRow.origin?this.currentRow.origin:row.origin
  2936. this.exportPaking.packaging=this.currentRow.packaging?this.currentRow.packaging:row.packaging
  2937. this.exportPaking.kgs=this.currentRow.kgs?this.currentRow.kgs:row.kgs
  2938. this.exportPaking.hsCode=this.currentRow.hsCode?this.currentRow.hsCode:row.hsCode
  2939. this.exportPaking.material=this.currentRow.material?this.currentRow.material:row.material
  2940. this.exportPaking.hsCodeDescType=this.currentRow.hsCodeDescType?this.currentRow.hsCodeDescType:row.hsCodeDescType
  2941. this.exportPaking.goodsLabel=this.currentRow.goodsLabel?this.currentRow.goodsLabel:row.goodsLabel
  2942. this.exportPaking.xdremark = row.remark,
  2943. this.exportPaking.highPalletFlag = row.highPalletFlag
  2944. } else if (this.templateData.type=='出口货物委托书'){
  2945. this.exportGoods.salesMethod = row.salesMethod
  2946. this.exportGoods.currency = row.currency
  2947. this.exportGoods.madeArea = row.madeArea
  2948. this.exportGoods.sendPort = row.sendPort
  2949. this.exportGoods.deliveryGoodsDate = row.deliveryGoodsDate
  2950. if (this.currentRow.buNo==='01-Label' || this.currentRow.buNo==='03-RFID' || this.hasMexicoShippingMarkBu()) {
  2951. this.exportGoods.voyage = this.buildDefaultVoyage()
  2952. } else {
  2953. this.exportGoods.voyage = row.voyage || this.buildDefaultVoyage()
  2954. }
  2955. this.exportGoods.shippingDate = row.shippingDate;
  2956. this.exportGoods.shipper=row.shipper
  2957. }
  2958. if (this.templateData.type!=='出口货物委托书') {
  2959. this.notifyPartDetailList.forEach(o => {
  2960. // 开启fsc损耗则给默认值
  2961. if (o.lossratio) {
  2962. if (row.fscWeight) {
  2963. o.lossratio = o.lossratio;
  2964. } else {
  2965. o.lossratio = '';
  2966. }
  2967. } else {
  2968. if (row.fscWeight) {
  2969. o.lossratio = '1.05';
  2970. } else {
  2971. o.lossratio = '';
  2972. }
  2973. }
  2974. });
  2975. }
  2976. this.templateFlag = false
  2977. },
  2978. },
  2979. activated() {
  2980. this.searchTable()
  2981. },
  2982. created() {
  2983. // 动态列
  2984. this.getTableUserColumn(this.$route.meta.menuId+'table1',1)
  2985. }
  2986. }
  2987. </script>
  2988. <style scoped>
  2989. /deep/ .expClass .cell {
  2990. line-height: 24px;
  2991. font-size: 12px;
  2992. height: 24px;
  2993. }
  2994. .custom-divider {
  2995. position: relative;
  2996. height: 1px;
  2997. background: #ebeef5;
  2998. margin: 10px 0;
  2999. width: 720px;
  3000. }
  3001. .custom-divider .text {
  3002. position: absolute;
  3003. left: 20%;
  3004. top: -10px;
  3005. transform: translateX(-50%);
  3006. padding: 0 15px;
  3007. background: white;
  3008. color: #909399;
  3009. }
  3010. </style>