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.

2445 lines
89 KiB

11 months ago
10 months ago
11 months ago
10 months ago
10 months ago
10 months ago
11 months ago
8 months ago
8 months ago
9 months ago
11 months ago
10 months ago
11 months ago
8 months ago
5 months ago
8 months ago
5 months ago
8 months ago
5 months ago
7 months ago
5 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
8 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
10 months ago
10 months ago
7 months ago
5 months ago
7 months ago
7 months ago
7 months ago
7 months ago
10 months ago
10 months ago
10 months ago
10 months ago
7 months ago
10 months ago
7 months ago
10 months ago
7 months ago
10 months ago
7 months ago
10 months ago
10 months ago
11 months ago
10 months ago
10 months ago
8 months ago
10 months ago
11 months ago
10 months ago
11 months ago
10 months ago
11 months ago
8 months ago
10 months ago
10 months ago
7 months ago
10 months ago
8 months ago
7 months ago
10 months ago
8 months ago
7 months ago
10 months ago
7 months ago
5 months ago
10 months ago
11 months ago
10 months ago
11 months ago
10 months ago
11 months ago
10 months ago
11 months ago
10 months ago
11 months ago
10 months ago
11 months ago
10 months ago
11 months ago
10 months ago
10 months ago
10 months ago
8 months ago
8 months ago
8 months ago
10 months ago
10 months ago
10 months ago
10 months ago
8 months ago
10 months ago
10 months ago
7 months ago
10 months ago
4 months ago
10 months ago
8 months ago
10 months ago
10 months ago
10 months ago
10 months ago
7 months ago
10 months ago
7 months ago
5 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
8 months ago
7 months ago
8 months ago
7 months ago
5 months ago
8 months ago
7 months ago
8 months ago
4 months ago
8 months ago
10 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
11 months ago
8 months ago
11 months ago
7 months ago
10 months ago
8 months ago
11 months 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" style="width: 120px"></el-input>
  9. </el-form-item>
  10. <el-form-item :label="'发货通知单:'">
  11. <el-input v-model="searchData.delNo" style="width: 120px"></el-input>
  12. </el-form-item>
  13. <el-form-item :label="'CMC Invoice:'">
  14. <el-input v-model="searchData.cmcInvoice" 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">{{'一键导出'}}</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. :sortable="item.columnSortable"
  116. :prop="item.columnProp"
  117. :header-align="item.headerAlign"
  118. :show-overflow-tooltip="item.showOverflowTooltip"
  119. :align="item.align"
  120. :fixed="item.fixed==''?false:item.fixed"
  121. :min-width="item.columnWidth"
  122. :label="item.columnLabel">
  123. <template slot-scope="scope">
  124. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  125. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  126. </template>
  127. </el-table-column>
  128. </el-table>
  129. </el-tab-pane>
  130. </el-tabs>
  131. <el-dialog title="一键导出" :close-on-click-modal="false" v-drag :visible.sync="exportAllFlag" :width="'740px'">
  132. <el-form label-position="top" style="margin-left: 7px;margin-top: 10px;margin-bottom: 20px">
  133. <el-row :gutter="20">
  134. <div class="custom-divider"><span class="text" style="left: 22%">报关要素</span></div>
  135. <!-- 报关要素-->
  136. <el-col :span="12">
  137. <el-form-item :label="'品牌'" >
  138. <el-radio v-model="brandType" label="境外品牌(其他)">境外品牌其他</el-radio>
  139. <el-radio v-model="brandType" label="无品牌">无品牌</el-radio>
  140. </el-form-item>
  141. </el-col>
  142. <el-col :span="12">
  143. <el-form-item :label="'品名类型'" >
  144. <el-radio v-model="hsCodeDescType" label="Y">中文</el-radio>
  145. <el-radio style="margin-left: 50px;" v-model="hsCodeDescType" label="N">英文</el-radio>
  146. </el-form-item>
  147. </el-col>
  148. <el-col :span="12">
  149. <el-form-item :label="'托/箱'" >
  150. <el-radio v-model="packageUnit" label="托"></el-radio>
  151. <el-radio v-model="packageUnit" label="箱"></el-radio>
  152. </el-form-item>
  153. </el-col>
  154. <el-col :span="12">
  155. <el-form-item :label="'重量'" >
  156. <el-radio v-model="declarationWeight" label="不显示">不显示</el-radio>
  157. <el-radio v-model="declarationWeight" label="显示">显示</el-radio>
  158. </el-form-item>
  159. </el-col>
  160. </el-row>
  161. <el-row :gutter="20">
  162. <div class="custom-divider"><span class="text">发票</span></div>
  163. <!-- 发票-->
  164. <el-col :span="8" >
  165. <el-form-item :label="''" >
  166. <el-checkbox v-model="exportInvoice.hsCodeDesc">品名</el-checkbox>
  167. </el-form-item>
  168. </el-col>
  169. <el-col :span="8" >
  170. <el-form-item :label="''" >
  171. <el-checkbox v-model="exportInvoice.contractFlag">合同</el-checkbox>
  172. </el-form-item>
  173. </el-col>
  174. <el-col :span="24" style="">
  175. <el-form-item :label="'发票备注'" >
  176. <el-input type="textarea" :rows="2" v-model="exportInvoice.fpremark"></el-input>
  177. </el-form-item>
  178. </el-col>
  179. <!-- 箱单-->
  180. </el-row>
  181. <el-row :gutter="20" style="margin-top: 30px">
  182. <div class="custom-divider"><span class="text">箱单</span></div>
  183. <el-col :span="8" >
  184. <el-form-item :label="''" >
  185. <el-checkbox v-model="exportPaking.goodsLabel">货物明细</el-checkbox>
  186. </el-form-item>
  187. </el-col>
  188. <el-col :span="8" v-show="currentRow.buNo==='03-RFID'">
  189. <el-form-item :label="''" >
  190. <el-checkbox v-model="exportPaking.upc">UPC</el-checkbox>
  191. </el-form-item>
  192. </el-col>
  193. <el-col :span="8" v-show="currentRow.buNo==='03-RFID'">
  194. <el-form-item :label="''" >
  195. <el-checkbox v-model="exportPaking.so">SO</el-checkbox>
  196. </el-form-item>
  197. </el-col>
  198. <el-col :span="8">
  199. <el-form-item :label="'序号类型'" >
  200. <el-radio v-model="exportPaking.itemNo" label="Y">序号</el-radio>
  201. <el-radio v-model="exportPaking.itemNo" label="N">栈板号</el-radio>
  202. </el-form-item>
  203. </el-col>
  204. <el-col :span="8">
  205. <el-form-item :label="'Shipping Mark'" >
  206. <el-input v-model="exportPaking.shippingMark"></el-input>
  207. </el-form-item>
  208. </el-col>
  209. <el-col :span="8" v-show="currentRow.buNo==='01-Label' || currentRow.buNo==='03-RFID'">
  210. <el-form-item :label="'栈板重量参数'" >
  211. <el-input v-model="exportPaking.palletWeight"></el-input>
  212. </el-form-item>
  213. </el-col>
  214. <el-col :span="8">
  215. <el-form-item :label="'RFID Base Material'" >
  216. <el-checkbox v-model="exportPaking.material"></el-checkbox>
  217. </el-form-item>
  218. </el-col>
  219. <el-col :span="8">
  220. <el-form-item :label="'HS Code'" >
  221. <el-input :disabled="!exportPaking.material" v-model="exportPaking.hsCode"></el-input>
  222. </el-form-item>
  223. </el-col>
  224. <el-col :span="8" v-show="currentRow.buNo==='01-Label' || currentRow.buNo==='03-RFID'">
  225. <el-form-item :label="'制造地'" >
  226. <el-input v-model="exportPaking.origin"></el-input>
  227. </el-form-item>
  228. </el-col>
  229. <el-col :span="8">
  230. <el-form-item :label="'Non-reusable plastic packaging'" >
  231. <el-checkbox v-model="exportPaking.packaging"></el-checkbox>
  232. </el-form-item>
  233. </el-col>
  234. <el-col :span="8">
  235. <el-form-item :label="'plastic packaging'" >
  236. <el-input :disabled="!exportPaking.packaging" v-model="exportPaking.kgs"></el-input>
  237. </el-form-item>
  238. </el-col>
  239. <el-col :span="24" style="">
  240. <el-form-item :label="'箱单备注'" >
  241. <el-input type="textarea" :rows="2" v-model="exportPaking.xdremark"></el-input>
  242. </el-form-item>
  243. </el-col>
  244. </el-row>
  245. <el-row :gutter="20" style="margin-top: 30px">
  246. <!-- 出口货物委托书-->
  247. <div class="custom-divider"><span class="text" style="left: 25%">出口货物委托书</span></div>
  248. <el-col :span="8">
  249. <el-form-item :label="'贸易方式'" >
  250. <el-input v-model="exportGoods.salesMethod"></el-input>
  251. </el-form-item>
  252. </el-col>
  253. <el-col :span="8">
  254. <el-form-item :label="'币制'" >
  255. <el-input v-model="exportGoods.currency"></el-input>
  256. </el-form-item>
  257. </el-col>
  258. <el-col :span="8">
  259. <el-form-item :label="'货物产地'" >
  260. <el-input v-model="exportGoods.madeArea"></el-input>
  261. </el-form-item>
  262. </el-col>
  263. <el-col :span="8">
  264. <el-form-item :label="'发货港'" >
  265. <el-input v-model="exportGoods.sendPort"></el-input>
  266. </el-form-item>
  267. </el-col>
  268. <el-col :span="8">
  269. <el-form-item :label="'唛头'" >
  270. <el-input v-model="exportGoods.voyage"></el-input>
  271. </el-form-item>
  272. </el-col>
  273. <el-col :span="8">
  274. <el-form-item :label="'提/送货日期'" >
  275. <el-input v-model="exportGoods.deliveryGoodsDate"></el-input>
  276. </el-form-item>
  277. </el-col>
  278. <el-col :span="8">
  279. <el-form-item :label="'船期'" >
  280. <el-input v-model="exportGoods.shippingDate"></el-input>
  281. </el-form-item>
  282. </el-col>
  283. <el-col :span="16">
  284. <el-form-item :label="'发货人'" >
  285. <el-input type="textarea"
  286. :rows="4" v-model="exportGoods.shipper"></el-input>
  287. </el-form-item>
  288. </el-col>
  289. </el-row>
  290. </el-form>
  291. <el-table v-show="currentRow.buNo==='02-Hardtag' || currentRow.buNo==='04-MHM'"
  292. :height="240"
  293. :data="propertiesList"
  294. stripe
  295. highlight-current-row
  296. border :row-style="{ height: '30px' }"
  297. style="width: 100%;margin-top: 70px">
  298. <el-table-column
  299. prop="hsCode"
  300. header-align="center"
  301. align="center"
  302. label="HS Code">
  303. </el-table-column>
  304. <el-table-column
  305. prop="hsCodeDesc"
  306. header-align="center"
  307. align="center"
  308. label="品名">
  309. </el-table-column>
  310. <el-table-column
  311. prop="ehundred"
  312. header-align="center"
  313. align="center"
  314. label="品牌">
  315. <template slot-scope="scope">
  316. <el-select v-model="scope.row.brand" placeholder="请选择" style="width: 150px">
  317. <el-option :value="i.availableValue" :label="i.availableValue" v-for="(i,key) in scope.row.availableList" :key="key"></el-option>
  318. </el-select>
  319. </template>
  320. </el-table-column>
  321. </el-table>
  322. <el-table v-show="currentRow.buNo==='03-RFID'"
  323. :height="180"
  324. :data="notifyPartDetailList"
  325. stripe class="expClass"
  326. highlight-current-row
  327. border :row-style="{ height: '30px' }"
  328. style="width: 100%;margin-top: 70px">
  329. <el-table-column
  330. prop="pn"
  331. header-align="center"
  332. align="center"
  333. label="PN">
  334. </el-table-column>
  335. <el-table-column
  336. prop="ehundred"
  337. header-align="center"
  338. align="center"
  339. label="E100">
  340. <template slot-scope="scope">
  341. <el-input v-model="scope.row.ehundred" style="width: 100px;"></el-input>
  342. </template>
  343. </el-table-column>
  344. <el-table-column
  345. prop="lossratio"
  346. header-align="center"
  347. align="center"
  348. label="纯FSC纸重量损耗">
  349. <template slot-scope="scope">
  350. <el-input v-model="scope.row.lossratio" style="width: 100px;"></el-input>
  351. </template>
  352. </el-table-column>
  353. </el-table>
  354. <el-footer style="height:40px;margin-top: 80px;text-align:center">
  355. <el-button type="primary" @click="exportAll()">确定</el-button>
  356. <el-button type="primary" @click="exportAllFlag=false">关闭</el-button>
  357. </el-footer>
  358. </el-dialog>
  359. <el-dialog title="导出报关要素" :close-on-click-modal="false" v-drag :visible.sync="brandTypeFlag"
  360. :width="(currentRow.buNo==='02-Hardtag' || currentRow.buNo==='04-MHM')?'600px':'300px'">
  361. <el-form label-position="top" style="margin-left: 7px;margin-top: 10px;margin-bottom: 20px">
  362. <el-row :gutter="20">
  363. <el-col :span="(currentRow.buNo==='02-Hardtag' || currentRow.buNo==='04-MHM')?12:24">
  364. <el-form-item :label="'品牌'" >
  365. <el-radio v-model="brandType" label="境外品牌(其他)">境外品牌其他</el-radio>
  366. <el-radio v-model="brandType" label="无品牌">无品牌</el-radio>
  367. </el-form-item>
  368. </el-col>
  369. <el-col :span="(currentRow.buNo==='02-Hardtag' || currentRow.buNo==='04-MHM')?12:24">
  370. <el-form-item :label="'品名类型'" >
  371. <el-radio v-model="hsCodeDescType" label="Y">中文</el-radio>
  372. <el-radio style="margin-left: 102px;" v-model="hsCodeDescType" label="N">英文</el-radio>
  373. </el-form-item>
  374. </el-col>
  375. </el-row>
  376. </el-form>
  377. <el-table v-show="currentRow.buNo==='02-Hardtag' || currentRow.buNo==='04-MHM'"
  378. :height="240"
  379. :data="propertiesList"
  380. stripe
  381. highlight-current-row
  382. border :row-style="{ height: '30px' }"
  383. style="width: 100%;">
  384. <el-table-column
  385. prop="hsCode"
  386. header-align="center"
  387. align="center"
  388. label="HS Code">
  389. </el-table-column>
  390. <el-table-column
  391. prop="hsCodeDesc"
  392. header-align="center"
  393. align="center"
  394. label="品名">
  395. </el-table-column>
  396. <el-table-column
  397. prop="ehundred"
  398. header-align="center"
  399. align="center"
  400. label="品牌">
  401. <template slot-scope="scope">
  402. <el-select v-model="scope.row.brand" placeholder="请选择" style="width: 150px">
  403. <el-option :value="i.availableValue" :label="i.availableValue" v-for="(i,key) in scope.row.availableList" :key="key"></el-option>
  404. </el-select>
  405. </template>
  406. </el-table-column>
  407. </el-table>
  408. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  409. <el-button type="primary" @click="downloadDeclarationElements()">确定</el-button>
  410. <el-button type="primary" @click="brandTypeFlag=false">关闭</el-button>
  411. </el-footer>
  412. </el-dialog>
  413. <el-dialog title="导出报关单" :close-on-click-modal="false" v-drag :visible.sync="declarationFlag" width="300px">
  414. <el-form label-position="top" style="margin-left: 7px;margin-top: 10px;">
  415. <el-row :gutter="20">
  416. <el-col :span="24">
  417. <el-form-item :label="'品名类型'" >
  418. <el-radio v-model="hsCodeDescType" label="Y">中文</el-radio>
  419. <el-radio v-model="hsCodeDescType" label="N">英文</el-radio>
  420. </el-form-item>
  421. </el-col>
  422. <el-col :span="24">
  423. <el-form-item :label="'托/箱'" >
  424. <el-radio v-model="packageUnit" label="托"></el-radio>
  425. <el-radio v-model="packageUnit" label="箱"></el-radio>
  426. </el-form-item>
  427. </el-col>
  428. <el-col :span="24">
  429. <el-form-item :label="'重量'" >
  430. <el-radio v-model="declarationWeight" label="不显示">不显示</el-radio>
  431. <el-radio v-model="declarationWeight" label="显示">显示</el-radio>
  432. </el-form-item>
  433. </el-col>
  434. </el-row>
  435. </el-form>
  436. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  437. <el-button type="primary" @click="downloadDeclaration()()">确定</el-button>
  438. <el-button type="primary" @click="declarationFlag=false">关闭</el-button>
  439. </el-footer>
  440. </el-dialog>
  441. <el-dialog title="导出发票" :close-on-click-modal="false" v-drag :visible.sync="exportInvoiceFlag" width="450px">
  442. <el-form label-position="top" style="margin-left: 2px;margin-top: 10px;">
  443. <el-row :gutter="20">
  444. <el-col :span="24">
  445. <el-form-item :label="''" >
  446. <template #label>
  447. <span slot="label" style="" class="big-label">
  448. <a href="#" @click="openTemplate('发票')">发票模版</a>
  449. </span>
  450. </template>
  451. <el-input v-model="exportInvoice.templateName" disabled ></el-input>
  452. </el-form-item>
  453. </el-col>
  454. <el-col :span="12" >
  455. <el-form-item :label="''" >
  456. <el-checkbox v-model="exportInvoice.hsCodeDesc">品名</el-checkbox>
  457. </el-form-item>
  458. </el-col>
  459. <el-col :span="12" >
  460. <el-form-item :label="''" >
  461. <el-checkbox v-model="exportInvoice.hsCodeFlag">Hs Code</el-checkbox>
  462. </el-form-item>
  463. </el-col>
  464. <el-col :span="12" >
  465. <el-form-item :label="''" >
  466. <el-checkbox v-model="exportInvoice.contractFlag">合同</el-checkbox>
  467. </el-form-item>
  468. </el-col>
  469. <el-col :span="12" >
  470. <el-form-item :label="''" >
  471. <el-checkbox v-model="exportInvoice.goodsLabel">货物明细</el-checkbox>
  472. </el-form-item>
  473. </el-col>
  474. <el-col :span="12">
  475. <el-form-item :label="'品名类型'" >
  476. <el-radio v-model="exportInvoice.hsCodeDescType" label="Y">中文</el-radio>
  477. <el-radio v-model="exportInvoice.hsCodeDescType" label="N">英文</el-radio>
  478. </el-form-item>
  479. </el-col>
  480. <el-col :span="12" v-show="currentRow.buNo==='01-Label' || currentRow.buNo==='03-RFID'">
  481. <el-form-item :label="'制造地'" >
  482. <el-input v-model="exportInvoice.origin"></el-input>
  483. </el-form-item>
  484. </el-col>
  485. <el-col :span="12">
  486. <el-form-item :label="'RFID Base Material'" >
  487. <el-checkbox v-model="exportInvoice.material"></el-checkbox>
  488. </el-form-item>
  489. </el-col>
  490. <el-col :span="12">
  491. <el-form-item :label="'HS Code'" >
  492. <el-input :disabled="!exportInvoice.material" v-model="exportInvoice.hsCode"></el-input>
  493. </el-form-item>
  494. </el-col>
  495. <el-col :span="12">
  496. <el-form-item :label="'Non-reusable plastic packaging'" >
  497. <el-checkbox v-model="exportInvoice.packaging"></el-checkbox>
  498. </el-form-item>
  499. </el-col>
  500. <el-col :span="12">
  501. <el-form-item :label="'plastic packaging'" >
  502. <el-input :disabled="!exportInvoice.packaging" v-model="exportInvoice.kgs"></el-input>
  503. </el-form-item>
  504. </el-col>
  505. <el-col :span="24" style="">
  506. <el-form-item :label="'备注'" >
  507. <el-input type="textarea" :rows="3" v-model="exportInvoice.fpremark"></el-input>
  508. </el-form-item>
  509. </el-col>
  510. </el-row>
  511. </el-form>
  512. <el-table v-show="currentRow.buNo==='03-RFID'"
  513. :height="240"
  514. :data="notifyPartDetailList"
  515. stripe class="expClass"
  516. highlight-current-row
  517. border :row-style="{ height: '30px' }"
  518. style="width: 100%;margin-top: 60px">
  519. <el-table-column
  520. prop="pn"
  521. header-align="center"
  522. align="center"
  523. label="PN">
  524. </el-table-column>
  525. <el-table-column
  526. prop="ehundred"
  527. header-align="center"
  528. align="center"
  529. label="E100">
  530. <template slot-scope="scope">
  531. <el-input v-model="scope.row.ehundred" style="width: 100px;"></el-input>
  532. </template>
  533. </el-table-column>
  534. <el-table-column
  535. prop="lossratio"
  536. header-align="center"
  537. align="center"
  538. label="纯FSC纸重量损耗">
  539. <template slot-scope="scope">
  540. <el-input v-model="scope.row.lossratio" style="width: 100px;"></el-input>
  541. </template>
  542. </el-table-column>
  543. </el-table>
  544. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  545. <el-button type="primary" @click="downloadInvoice()">确定</el-button>
  546. <el-button type="primary" @click="exportInvoiceFlag=false">关闭</el-button>
  547. </el-footer>
  548. </el-dialog>
  549. <el-dialog title="导出箱单" :close-on-click-modal="false" v-drag :visible.sync="exportPakingFlag" width="450px">
  550. <el-form label-position="top" style="margin-left: 2px;margin-top: 10px;">
  551. <el-row :gutter="20">
  552. <el-col :span="24">
  553. <el-form-item :label="''" >
  554. <template #label>
  555. <span slot="label" style="" class="big-label">
  556. <a href="#" @click="openTemplate('箱单')">箱单模版</a>
  557. </span>
  558. </template>
  559. <el-input v-model="exportPaking.templateName" disabled ></el-input>
  560. </el-form-item>
  561. </el-col>
  562. <el-col :span="12" v-show="currentRow.buNo==='03-RFID'">
  563. <el-form-item :label="''" >
  564. <el-checkbox v-model="exportPaking.upc">UPC</el-checkbox>
  565. </el-form-item>
  566. </el-col>
  567. <el-col :span="12" v-show="currentRow.buNo==='03-RFID'">
  568. <el-form-item :label="''" >
  569. <el-checkbox v-model="exportPaking.so">SO</el-checkbox>
  570. </el-form-item>
  571. </el-col>
  572. <el-col :span="12">
  573. <el-form-item :label="'序号类型'" >
  574. <el-radio v-model="exportPaking.itemNo" label="Y">序号</el-radio>
  575. <el-radio v-model="exportPaking.itemNo" label="N">栈板号</el-radio>
  576. </el-form-item>
  577. </el-col>
  578. <el-col :span="12" v-show="currentRow.buNo==='04-MHM'">
  579. <el-form-item :label="'品名类型'" >
  580. <el-radio v-model="exportPaking.hsCodeDescType" label="Y">中文</el-radio>
  581. <el-radio v-model="exportPaking.hsCodeDescType" label="N">英文</el-radio>
  582. </el-form-item>
  583. </el-col>
  584. <!-- <el-col :span="12" >
  585. <el-form-item :label="''" >
  586. <el-checkbox v-model="exportPaking.boxChange">显示箱数零头</el-checkbox>
  587. </el-form-item>
  588. </el-col>-->
  589. <el-col :span="12" >
  590. <el-form-item :label="''" >
  591. <el-checkbox v-model="exportPaking.goodsLabel">货物明细</el-checkbox>
  592. </el-form-item>
  593. </el-col>
  594. <el-col :span="12">
  595. <el-form-item :label="'Shipping Mark'" >
  596. <el-input v-model="exportPaking.shippingMark"></el-input>
  597. </el-form-item>
  598. </el-col>
  599. <el-col :span="12" v-show="currentRow.buNo==='01-Label' || currentRow.buNo==='03-RFID'">
  600. <el-form-item :label="'制造地'" >
  601. <el-input v-model="exportPaking.origin"></el-input>
  602. </el-form-item>
  603. </el-col>
  604. <el-col :span="12" v-show="currentRow.buNo==='01-Label' || currentRow.buNo==='03-RFID'">
  605. <el-form-item :label="'栈板重量参数'" >
  606. <el-input v-model="exportPaking.palletWeight"></el-input>
  607. </el-form-item>
  608. </el-col>
  609. <el-col :span="12">
  610. <el-form-item :label="'RFID Base Material'" >
  611. <el-checkbox v-model="exportPaking.material"></el-checkbox>
  612. </el-form-item>
  613. </el-col>
  614. <el-col :span="12">
  615. <el-form-item :label="'HS Code'" >
  616. <el-input :disabled="!exportPaking.material" v-model="exportPaking.hsCode"></el-input>
  617. </el-form-item>
  618. </el-col>
  619. <el-col :span="12">
  620. <el-form-item :label="'Non-reusable plastic packaging'" >
  621. <el-checkbox v-model="exportPaking.packaging"></el-checkbox>
  622. </el-form-item>
  623. </el-col>
  624. <el-col :span="12">
  625. <el-form-item :label="'plastic packaging'" >
  626. <el-input :disabled="!exportPaking.packaging" v-model="exportPaking.kgs"></el-input>
  627. </el-form-item>
  628. </el-col>
  629. <el-col :span="24" style="">
  630. <el-form-item :label="'备注'" >
  631. <el-input type="textarea" :rows="3" v-model="exportPaking.xdremark"></el-input>
  632. </el-form-item>
  633. </el-col>
  634. </el-row>
  635. </el-form>
  636. <el-table v-show="currentRow.buNo==='03-RFID'"
  637. :height="240"
  638. :data="notifyPartDetailList"
  639. stripe class="expClass"
  640. highlight-current-row
  641. border :row-style="{ height: '30px' }"
  642. style="width: 100%;margin-top: 60px">
  643. <el-table-column
  644. prop="pn"
  645. header-align="center"
  646. align="center"
  647. label="PN">
  648. </el-table-column>
  649. <el-table-column
  650. prop="ehundred"
  651. header-align="center"
  652. align="center"
  653. label="E100">
  654. <template slot-scope="scope">
  655. <el-input v-model="scope.row.ehundred" style="width: 100px;"></el-input>
  656. </template>
  657. </el-table-column>
  658. <el-table-column
  659. prop="lossratio"
  660. header-align="center"
  661. align="center"
  662. label="纯FSC纸重量损耗">
  663. <template slot-scope="scope">
  664. <el-input v-model="scope.row.lossratio" style="width: 100px;"></el-input>
  665. </template>
  666. </el-table-column>
  667. </el-table>
  668. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  669. <el-button type="primary" @click="downloadPackingList()">确定</el-button>
  670. <el-button type="primary" @click="exportPakingFlag=false">关闭</el-button>
  671. </el-footer>
  672. </el-dialog>
  673. <el-dialog title="导出出口货物委托书" :close-on-click-modal="false" v-drag :visible.sync="exportGoodsFlag" width="500px">
  674. <el-form label-position="top" style="margin-left: 7px;margin-top: 10px;">
  675. <el-row :gutter="20">
  676. <el-col :span="12">
  677. <el-form-item :label="'品名类型'" >
  678. <el-radio v-model="exportGoods.hsCodeDescType" label="Y">中文</el-radio>
  679. <el-radio v-model="exportGoods.hsCodeDescType" label="N">英文</el-radio>
  680. </el-form-item>
  681. </el-col>
  682. <el-col :span="12">
  683. <el-form-item :label="'贸易方式'" >
  684. <el-input v-model="exportGoods.salesMethod"></el-input>
  685. </el-form-item>
  686. </el-col>
  687. <el-col :span="12">
  688. <el-form-item :label="'币制'" >
  689. <el-input v-model="exportGoods.currency"></el-input>
  690. </el-form-item>
  691. </el-col>
  692. <el-col :span="12">
  693. <el-form-item :label="'货物产地'" >
  694. <el-input v-model="exportGoods.madeArea"></el-input>
  695. </el-form-item>
  696. </el-col>
  697. <el-col :span="12">
  698. <el-form-item :label="'发货港'" >
  699. <el-input v-model="exportGoods.sendPort"></el-input>
  700. </el-form-item>
  701. </el-col>
  702. <el-col :span="12">
  703. <el-form-item :label="'唛头'" >
  704. <el-input v-model="exportGoods.voyage"></el-input>
  705. </el-form-item>
  706. </el-col>
  707. <el-col :span="12">
  708. <el-form-item :label="'提/送货日期'" >
  709. <el-input v-model="exportGoods.deliveryGoodsDate"></el-input>
  710. </el-form-item>
  711. </el-col>
  712. <el-col :span="12">
  713. <el-form-item :label="'船期'" >
  714. <el-input v-model="exportGoods.shippingDate"></el-input>
  715. </el-form-item>
  716. </el-col>
  717. <el-col :span="24">
  718. <el-form-item :label="'发货人'" >
  719. <el-input type="textarea"
  720. :rows="4" v-model="exportGoods.shipper"></el-input>
  721. </el-form-item>
  722. </el-col>
  723. </el-row>
  724. </el-form>
  725. <el-footer style="height:40px;margin-top: 80px;text-align:center">
  726. <el-button type="primary" @click="downloadExportGoods()">确定</el-button>
  727. <el-button type="primary" @click="exportGoodsFlag=false">关闭</el-button>
  728. </el-footer>
  729. </el-dialog>
  730. <el-dialog title="模版" @close="closeTemplateDialog" @open="openTemplateDialog" :visible.sync="templateFlag" width="559px" v-drag>
  731. <el-form inline="inline" label-position="top" :model="templateData" style="margin-left: 7px;margin-top: -5px;">
  732. <el-form-item label="模版名称">
  733. <el-input v-model="templateData.name" clearable style="width: 110px"></el-input>
  734. </el-form-item>
  735. <el-form-item label=" ">
  736. <el-button type="primary" style="padding: 3px 12px" @click="searchTemplateList()">查询</el-button>
  737. </el-form-item>
  738. </el-form>
  739. <el-table
  740. :height="height + 110"
  741. :data="templateList"
  742. stripe
  743. highlight-current-row
  744. border
  745. @row-dblclick="templateRowDblclick"
  746. style="width: 100%;">
  747. <el-table-column
  748. prop="buNo"
  749. header-align="center"
  750. align="center"
  751. label="BuNo">
  752. </el-table-column>
  753. <el-table-column
  754. prop="name"
  755. header-align="center"
  756. align="center"
  757. label="模版名称">
  758. </el-table-column>
  759. <el-table-column
  760. prop="shippingMode"
  761. header-align="center"
  762. align="center"
  763. label="运输方式">
  764. </el-table-column>
  765. </el-table>
  766. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  767. <el-button @click="templateFlag = false">关闭</el-button>
  768. </el-footer>
  769. </el-dialog>
  770. </div>
  771. </template>
  772. <script>
  773. import {} from "@/api/sysLanguage.js"
  774. import {
  775. searchDeclarationHeader,
  776. searchDeclarationDetail,
  777. deleteDeclaration,
  778. downloadDeclarationElements,
  779. getNotifyPartDetail,
  780. getCustomerInfo,
  781. searchTemplateList,
  782. getPropertiesListByDeclaration
  783. }from "@/api/ecss/ecss.js"
  784. import {EventBus} from "../../../main";
  785. import ExportUtil from "@/utils/export";
  786. export default {
  787. name: "declaration",
  788. components:{
  789. },
  790. data() {
  791. return {
  792. exportAllFlag:false,
  793. templateFlag:false,
  794. templateData:{},
  795. templateList:[],
  796. customerInfoList:[],
  797. notifyPartDetailList:[],
  798. propertiesList:[],
  799. currentRow:{},
  800. exportGoodsFlag:false,
  801. exportGoods:{
  802. salesMethod:'EXW',
  803. currency: 'USD',
  804. madeArea: 'Shanghai, China',
  805. sendPort:'Shanghai, China',
  806. deliveryGoodsDate:'',
  807. voyage :'',
  808. shippingDate:'',
  809. hsCodeDescType:'N',
  810. shipper:'Checkpoint Commercial (Shanghai) Co., Ltd. 保点贸易(上海)有限公司\t\t\t\t\t\t\n' +
  811. 'Room 1411, No. 31, Lane 2419, Hunan Road, Pudong New Area, Shanghai\t\t\t\t\t\t\n' +
  812. '电话/Tel: (86-21)38112888 传真/Fax: (86-21)38112990\t\t\t\t\t\t\n' +
  813. '上海市浦东新区沪南路2419弄31号1411室\t\t\t\t\t\t\n'
  814. },
  815. brandTypeFlag:false,
  816. declarationFlag:false,
  817. exportInvoiceFlag:false,
  818. exportInvoice:{
  819. origin:"made in china",
  820. templateName:'',
  821. hsCodeDesc:'',
  822. contractFlag:'',
  823. packaging:'',
  824. kgs:'',
  825. hsCode:'',
  826. material:'',
  827. hsCodeDescType:'',
  828. goodsLabel:true,
  829. hsCodeFlag:true,
  830. fpremark:''
  831. },
  832. exportPakingFlag:false,
  833. exportPaking:{
  834. origin:"made in china",
  835. itemNo:'',
  836. upc:'',
  837. so:'',
  838. shippingMark:'',
  839. palletWeight:'',
  840. templateName:'',
  841. hsCodeDesc:'',
  842. contractFlag:'',
  843. packaging:'',
  844. kgs:'',
  845. hsCode:'',
  846. material:'',
  847. hsCodeDescType:'',
  848. goodsLabel:true,
  849. boxChange:'',
  850. xdremark:''
  851. },
  852. brandType:'',
  853. hsCodeDescType:'N',
  854. packageUnit: '',
  855. declarationWeight: '不显示',
  856. exportParam: {},
  857. pageIndex: 1,
  858. pageSize: 100,
  859. totalPage: 0,
  860. height: 200,
  861. dataList:[],
  862. dataList2:[],
  863. dataListLoading: false,
  864. searchData: {
  865. page: 1,
  866. limit: 100,
  867. site:"",
  868. declarationNo:'',
  869. delNo:'',
  870. cmcInvoice:'',
  871. startDate:'',
  872. endDate:'',
  873. },
  874. buttons:{
  875. search:'查询',
  876. },
  877. activeName:'detail',
  878. columnList: [
  879. {
  880. userId: this.$store.state.user.name,
  881. functionId: 801006,
  882. serialNumber: '801006Table1Site',
  883. tableId: "801006Table1",
  884. tableName: "报关单主记录",
  885. columnProp: "site",
  886. headerAlign: "center",
  887. align: "left",
  888. columnLabel: "工厂编号",
  889. columnHidden: false,
  890. columnImage: false,
  891. columnSortable: false,
  892. sortLv: 0,
  893. status: true,
  894. fixed: '',
  895. columnWidth: 80
  896. },
  897. {
  898. userId: this.$store.state.user.name,
  899. functionId: 801006,
  900. serialNumber: '801006Table1DeclarationNo',
  901. tableId: "801006Table1",
  902. tableName: "报关单主记录",
  903. columnProp: "declarationNo",
  904. headerAlign: "center",
  905. align: "left",
  906. columnLabel: "报关单号",
  907. columnHidden: false,
  908. columnImage: false,
  909. columnSortable: false,
  910. sortLv: 0,
  911. status: true,
  912. fixed: '',
  913. columnWidth: 100
  914. },
  915. {
  916. userId: this.$store.state.user.name,
  917. functionId: 801006,
  918. serialNumber: '801006Table1CustomsOfficeCode',
  919. tableId: "801006Table1",
  920. tableName: "报关单主记录",
  921. columnProp: "customsOfficeCode",
  922. headerAlign: "center",
  923. align: "left",
  924. columnLabel: "海关编号",
  925. columnHidden: false,
  926. columnImage: false,
  927. columnSortable: false,
  928. sortLv: 0,
  929. status: true,
  930. fixed: '',
  931. columnWidth: 80
  932. },
  933. {
  934. userId: this.$store.state.user.name,
  935. functionId: 801006,
  936. serialNumber: '801006Table1InputCode',
  937. tableId: "801006Table1",
  938. tableName: "报关单主记录",
  939. columnProp: "inputCode",
  940. headerAlign: "center",
  941. align: "left",
  942. columnLabel: "录入编号",
  943. columnHidden: false,
  944. columnImage: false,
  945. columnSortable: false,
  946. sortLv: 0,
  947. status: true,
  948. fixed: '',
  949. columnWidth: 80
  950. },
  951. {
  952. userId: this.$store.state.user.name,
  953. functionId: 801006,
  954. serialNumber: '801006Table2Levy',
  955. tableId: "801006Table2",
  956. tableName: "报关单子记录",
  957. columnProp: "dutyStatus",
  958. headerAlign: "center",
  959. align: "left",
  960. columnLabel: "征免性质",
  961. columnHidden: false,
  962. columnImage: false,
  963. columnSortable: false,
  964. sortLv: 0,
  965. status: true,
  966. fixed: '',
  967. columnWidth: 80
  968. },
  969. {
  970. userId: this.$store.state.user.name,
  971. functionId: 801006,
  972. serialNumber: '801006Table1LocalShipper',
  973. tableId: "801006Table1",
  974. tableName: "报关单主记录",
  975. columnProp: "localShipper",
  976. headerAlign: "center",
  977. align: "left",
  978. columnLabel: "境内发货人",
  979. columnHidden: false,
  980. columnImage: false,
  981. columnSortable: false,
  982. sortLv: 0,
  983. status: true,
  984. fixed: '',
  985. columnWidth: 130
  986. },
  987. {
  988. userId: this.$store.state.user.name,
  989. functionId: 801006,
  990. serialNumber: '801006Table1LocalShipAddress',
  991. tableId: "801006Table1",
  992. tableName: "报关单主记录",
  993. columnProp: "localShipAddress",
  994. headerAlign: "center",
  995. align: "left",
  996. columnLabel: "境内发货人地址",
  997. columnHidden: false,
  998. columnImage: false,
  999. columnSortable: false,
  1000. sortLv: 0,
  1001. status: true,
  1002. fixed: '',
  1003. columnWidth: 180
  1004. },
  1005. {
  1006. userId: this.$store.state.user.name,
  1007. functionId: 801006,
  1008. serialNumber: '801006Table1ShipType',
  1009. tableId: "801006Table1",
  1010. tableName: "报关单主记录",
  1011. columnProp: "shipType",
  1012. headerAlign: "center",
  1013. align: "left",
  1014. columnLabel: "出境关别",
  1015. columnHidden: false,
  1016. columnImage: false,
  1017. columnSortable: false,
  1018. sortLv: 0,
  1019. status: true,
  1020. fixed: '',
  1021. columnWidth: 80
  1022. },
  1023. {
  1024. userId: this.$store.state.user.name,
  1025. functionId: 801006,
  1026. serialNumber: '801006Table1ShipDate',
  1027. tableId: "801006Table1",
  1028. tableName: "报关单主记录",
  1029. columnProp: "shipDate",
  1030. headerAlign: "center",
  1031. align: "left",
  1032. columnLabel: "出口日期",
  1033. columnHidden: false,
  1034. columnImage: false,
  1035. columnSortable: false,
  1036. sortLv: 0,
  1037. status: true,
  1038. fixed: '',
  1039. columnWidth: 100
  1040. },
  1041. {
  1042. userId: this.$store.state.user.name,
  1043. functionId: 801006,
  1044. serialNumber: '801006Table1SubmitDate',
  1045. tableId: "801006Table1",
  1046. tableName: "报关单主记录",
  1047. columnProp: "submitDate",
  1048. headerAlign: "center",
  1049. align: "left",
  1050. columnLabel: "申报日期",
  1051. columnHidden: false,
  1052. columnImage: false,
  1053. columnSortable: false,
  1054. sortLv: 0,
  1055. status: true,
  1056. fixed: '',
  1057. columnWidth: 100
  1058. },
  1059. {
  1060. userId: this.$store.state.user.name,
  1061. functionId: 801006,
  1062. serialNumber: '801006Table1FilingNo',
  1063. tableId: "801006Table1",
  1064. tableName: "报关单主记录",
  1065. columnProp: "filingNo",
  1066. headerAlign: "center",
  1067. align: "left",
  1068. columnLabel: "备案号",
  1069. columnHidden: false,
  1070. columnImage: false,
  1071. columnSortable: false,
  1072. sortLv: 0,
  1073. status: true,
  1074. fixed: '',
  1075. columnWidth: 100
  1076. },
  1077. {
  1078. userId: this.$store.state.user.name,
  1079. functionId: 801006,
  1080. serialNumber: '801006Table1OverseasShipper',
  1081. tableId: "801006Table1",
  1082. tableName: "报关单主记录",
  1083. columnProp: "overseasShipper",
  1084. headerAlign: "center",
  1085. align: "left",
  1086. columnLabel: "境外收货人",
  1087. columnHidden: false,
  1088. columnImage: false,
  1089. columnSortable: false,
  1090. sortLv: 0,
  1091. status: true,
  1092. fixed: '',
  1093. columnWidth: 80
  1094. },
  1095. {
  1096. userId: this.$store.state.user.name,
  1097. functionId: 801006,
  1098. serialNumber: '801006Table1ShippingMode',
  1099. tableId: "801006Table1",
  1100. tableName: "报关单主记录",
  1101. columnProp: "shippingMode",
  1102. headerAlign: "center",
  1103. align: "left",
  1104. columnLabel: "运输方式",
  1105. columnHidden: false,
  1106. columnImage: false,
  1107. columnSortable: false,
  1108. sortLv: 0,
  1109. status: true,
  1110. fixed: '',
  1111. columnWidth: 80
  1112. },
  1113. {
  1114. userId: this.$store.state.user.name,
  1115. functionId: 801006,
  1116. serialNumber: '801006Table1ShippingData',
  1117. tableId: "801006Table1",
  1118. tableName: "报关单主记录",
  1119. columnProp: "shippingData",
  1120. headerAlign: "center",
  1121. align: "left",
  1122. columnLabel: "运输工具以及航次号",
  1123. columnHidden: false,
  1124. columnImage: false,
  1125. columnSortable: false,
  1126. sortLv: 0,
  1127. status: true,
  1128. fixed: '',
  1129. columnWidth: 120
  1130. },
  1131. {
  1132. userId: this.$store.state.user.name,
  1133. functionId: 801006,
  1134. serialNumber: '801006Table1DeliverNo',
  1135. tableId: "801006Table1",
  1136. tableName: "报关单主记录",
  1137. columnProp: "deliverNo",
  1138. headerAlign: "center",
  1139. align: "left",
  1140. columnLabel: "提运单号",
  1141. columnHidden: false,
  1142. columnImage: false,
  1143. columnSortable: false,
  1144. sortLv: 0,
  1145. status: true,
  1146. fixed: '',
  1147. columnWidth: 100
  1148. },
  1149. {
  1150. userId: this.$store.state.user.name,
  1151. functionId: 801006,
  1152. serialNumber: '801006Table1SalesPartner',
  1153. tableId: "801006Table1",
  1154. tableName: "报关单主记录",
  1155. columnProp: "salesPartner",
  1156. headerAlign: "center",
  1157. align: "left",
  1158. columnLabel: "生产销售单位",
  1159. columnHidden: false,
  1160. columnImage: false,
  1161. columnSortable: false,
  1162. sortLv: 0,
  1163. status: true,
  1164. fixed: '',
  1165. columnWidth: 180
  1166. },
  1167. {
  1168. userId: this.$store.state.user.name,
  1169. functionId: 801006,
  1170. serialNumber: '801006Table1RegulatoryMethod',
  1171. tableId: "801006Table1",
  1172. tableName: "报关单主记录",
  1173. columnProp: "regulatoryMethod",
  1174. headerAlign: "center",
  1175. align: "left",
  1176. columnLabel: "监管方式",
  1177. columnHidden: false,
  1178. columnImage: false,
  1179. columnSortable: false,
  1180. sortLv: 0,
  1181. status: true,
  1182. fixed: '',
  1183. columnWidth: 80
  1184. },
  1185. {
  1186. userId: this.$store.state.user.name,
  1187. functionId: 801006,
  1188. serialNumber: '801006Table1DutyStatus',
  1189. tableId: "801006Table1",
  1190. tableName: "报关单主记录",
  1191. columnProp: "dutyStatus",
  1192. headerAlign: "center",
  1193. align: "left",
  1194. columnLabel: "征免性质",
  1195. columnHidden: false,
  1196. columnImage: false,
  1197. columnSortable: false,
  1198. sortLv: 0,
  1199. status: true,
  1200. fixed: '',
  1201. columnWidth: 80
  1202. },
  1203. {
  1204. userId: this.$store.state.user.name,
  1205. functionId: 801006,
  1206. serialNumber: '801006Table1PermitNumber',
  1207. tableId: "801006Table1",
  1208. tableName: "报关单主记录",
  1209. columnProp: "permitNumber",
  1210. headerAlign: "center",
  1211. align: "left",
  1212. columnLabel: "许可证号",
  1213. columnHidden: false,
  1214. columnImage: false,
  1215. columnSortable: false,
  1216. sortLv: 0,
  1217. status: true,
  1218. fixed: '',
  1219. columnWidth: 80
  1220. },
  1221. {
  1222. userId: this.$store.state.user.name,
  1223. functionId: 801006,
  1224. serialNumber: '801006Table1CmcInvoice',
  1225. tableId: "801006Table1",
  1226. tableName: "报关单主记录",
  1227. columnProp: "cmcInvoice",
  1228. headerAlign: "center",
  1229. align: "left",
  1230. columnLabel: "合同协议号",
  1231. columnHidden: false,
  1232. columnImage: false,
  1233. columnSortable: false,
  1234. sortLv: 0,
  1235. status: true,
  1236. fixed: '',
  1237. columnWidth: 80
  1238. },
  1239. {
  1240. userId: this.$store.state.user.name,
  1241. functionId: 801006,
  1242. serialNumber: '801006Table1SalesArea',
  1243. tableId: "801006Table1",
  1244. tableName: "报关单主记录",
  1245. columnProp: "salesArea",
  1246. headerAlign: "center",
  1247. align: "left",
  1248. columnLabel: "贸易国(地区)",
  1249. columnHidden: false,
  1250. columnImage: false,
  1251. columnSortable: false,
  1252. sortLv: 0,
  1253. status: true,
  1254. fixed: '',
  1255. columnWidth: 80
  1256. },
  1257. {
  1258. userId: this.$store.state.user.name,
  1259. functionId: 801006,
  1260. serialNumber: '801006Table1ReceiveArea',
  1261. tableId: "801006Table1",
  1262. tableName: "报关单主记录",
  1263. columnProp: "receiveArea",
  1264. headerAlign: "center",
  1265. align: "left",
  1266. columnLabel: "运抵国(地区)",
  1267. columnHidden: false,
  1268. columnImage: false,
  1269. columnSortable: false,
  1270. sortLv: 0,
  1271. status: true,
  1272. fixed: '',
  1273. columnWidth: 80
  1274. },
  1275. {
  1276. userId: this.$store.state.user.name,
  1277. functionId: 801006,
  1278. serialNumber: '801006Table1ShippingPort',
  1279. tableId: "801006Table1",
  1280. tableName: "报关单主记录",
  1281. columnProp: "shippingPort",
  1282. headerAlign: "center",
  1283. align: "left",
  1284. columnLabel: "运港",
  1285. columnHidden: false,
  1286. columnImage: false,
  1287. columnSortable: false,
  1288. sortLv: 0,
  1289. status: true,
  1290. fixed: '',
  1291. columnWidth: 80
  1292. },
  1293. {
  1294. userId: this.$store.state.user.name,
  1295. functionId: 801006,
  1296. serialNumber: '801006Table1ExitPort',
  1297. tableId: "801006Table1",
  1298. tableName: "报关单主记录",
  1299. columnProp: "exitPort",
  1300. headerAlign: "center",
  1301. align: "left",
  1302. columnLabel: "离境口岸",
  1303. columnHidden: false,
  1304. columnImage: false,
  1305. columnSortable: false,
  1306. sortLv: 0,
  1307. status: true,
  1308. fixed: '',
  1309. columnWidth: 80
  1310. },
  1311. {
  1312. userId: this.$store.state.user.name,
  1313. functionId: 801006,
  1314. serialNumber: '801006Table1Documents',
  1315. tableId: "801006Table1",
  1316. tableName: "报关单主记录",
  1317. columnProp: "documents",
  1318. headerAlign: "center",
  1319. align: "left",
  1320. columnLabel: "随附单证及编号",
  1321. columnHidden: false,
  1322. columnImage: false,
  1323. columnSortable: false,
  1324. sortLv: 0,
  1325. status: true,
  1326. fixed: '',
  1327. columnWidth: 120
  1328. },
  1329. {
  1330. userId: this.$store.state.user.name,
  1331. functionId: 801006,
  1332. serialNumber: '801006Table1Remark',
  1333. tableId: "801006Table1",
  1334. tableName: "报关单主记录",
  1335. columnProp: "remark",
  1336. headerAlign: "center",
  1337. align: "left",
  1338. columnLabel: "标记唛码及备注",
  1339. columnHidden: false,
  1340. columnImage: false,
  1341. columnSortable: false,
  1342. sortLv: 0,
  1343. status: true,
  1344. fixed: '',
  1345. columnWidth: 120
  1346. },
  1347. {
  1348. userId: this.$store.state.user.name,
  1349. functionId: 801006,
  1350. serialNumber: '801006Table1PackageType',
  1351. tableId: "801006Table1",
  1352. tableName: "报关单主记录",
  1353. columnProp: "packageType",
  1354. headerAlign: "center",
  1355. align: "left",
  1356. columnLabel: "包装种类",
  1357. columnHidden: false,
  1358. columnImage: false,
  1359. columnSortable: false,
  1360. sortLv: 0,
  1361. status: true,
  1362. fixed: '',
  1363. columnWidth: 80
  1364. },
  1365. {
  1366. userId: this.$store.state.user.name,
  1367. functionId: 801006,
  1368. serialNumber: '801006Table1PackageQty',
  1369. tableId: "801006Table1",
  1370. tableName: "报关单主记录",
  1371. columnProp: "packageQty",
  1372. headerAlign: "center",
  1373. align: "right",
  1374. columnLabel: "件数",
  1375. columnHidden: false,
  1376. columnImage: false,
  1377. columnSortable: false,
  1378. sortLv: 0,
  1379. status: true,
  1380. fixed: '',
  1381. columnWidth: 60
  1382. },
  1383. {
  1384. userId: this.$store.state.user.name,
  1385. functionId: 801006,
  1386. serialNumber: '801006Table1GrossWeight',
  1387. tableId: "801006Table1",
  1388. tableName: "报关单主记录",
  1389. columnProp: "grossWeight",
  1390. headerAlign: "center",
  1391. align: "right",
  1392. columnLabel: "毛重(KG)",
  1393. columnHidden: false,
  1394. columnImage: false,
  1395. columnSortable: false,
  1396. sortLv: 0,
  1397. status: true,
  1398. fixed: '',
  1399. columnWidth: 80
  1400. },
  1401. {
  1402. userId: this.$store.state.user.name,
  1403. functionId: 801006,
  1404. serialNumber: '801006Table1NetWeight',
  1405. tableId: "801006Table1",
  1406. tableName: "报关单主记录",
  1407. columnProp: "netWeight",
  1408. headerAlign: "center",
  1409. align: "right",
  1410. columnLabel: "毛重(KG)",
  1411. columnHidden: false,
  1412. columnImage: false,
  1413. columnSortable: false,
  1414. sortLv: 0,
  1415. status: true,
  1416. fixed: '',
  1417. columnWidth: 80
  1418. },
  1419. {
  1420. userId: this.$store.state.user.name,
  1421. functionId: 801006,
  1422. serialNumber: '801006Table1PaymentType',
  1423. tableId: "801006Table1",
  1424. tableName: "报关单主记录",
  1425. columnProp: "paymentType",
  1426. headerAlign: "center",
  1427. align: "left",
  1428. columnLabel: "成交方式",
  1429. columnHidden: false,
  1430. columnImage: false,
  1431. columnSortable: false,
  1432. sortLv: 0,
  1433. status: true,
  1434. fixed: '',
  1435. columnWidth: 80
  1436. },
  1437. {
  1438. userId: this.$store.state.user.name,
  1439. functionId: 801006,
  1440. serialNumber: '801006Table1ShipPrice',
  1441. tableId: "801006Table1",
  1442. tableName: "报关单主记录",
  1443. columnProp: "shipPrice",
  1444. headerAlign: "center",
  1445. align: "right",
  1446. columnLabel: "运费",
  1447. columnHidden: false,
  1448. columnImage: false,
  1449. columnSortable: false,
  1450. sortLv: 0,
  1451. status: true,
  1452. fixed: '',
  1453. columnWidth: 60
  1454. },
  1455. {
  1456. userId: this.$store.state.user.name,
  1457. functionId: 801006,
  1458. serialNumber: '801006Table1Premium',
  1459. tableId: "801006Table1",
  1460. tableName: "报关单主记录",
  1461. columnProp: "premium",
  1462. headerAlign: "center",
  1463. align: "right",
  1464. columnLabel: "保费",
  1465. columnHidden: false,
  1466. columnImage: false,
  1467. columnSortable: false,
  1468. sortLv: 0,
  1469. status: true,
  1470. fixed: '',
  1471. columnWidth: 60
  1472. },
  1473. {
  1474. userId: this.$store.state.user.name,
  1475. functionId: 801006,
  1476. serialNumber: '801006Table1OtherPrice',
  1477. tableId: "801006Table1",
  1478. tableName: "报关单主记录",
  1479. columnProp: "otherPrice",
  1480. headerAlign: "center",
  1481. align: "right",
  1482. columnLabel: "杂费",
  1483. columnHidden: false,
  1484. columnImage: false,
  1485. columnSortable: false,
  1486. sortLv: 0,
  1487. status: true,
  1488. fixed: '',
  1489. columnWidth: 60
  1490. },
  1491. {
  1492. userId: this.$store.state.user.name,
  1493. functionId: 801006,
  1494. serialNumber: '801006Table1SpecialRelationshipComfirm',
  1495. tableId: "801006Table1",
  1496. tableName: "报关单主记录",
  1497. columnProp: "specialRelationshipComfirm",
  1498. headerAlign: "center",
  1499. align: "left",
  1500. columnLabel: "特殊关系确认",
  1501. columnHidden: false,
  1502. columnImage: false,
  1503. columnSortable: false,
  1504. sortLv: 0,
  1505. status: true,
  1506. fixed: '',
  1507. columnWidth: 60
  1508. },
  1509. {
  1510. userId: this.$store.state.user.name,
  1511. functionId: 801006,
  1512. serialNumber: '801006Table1PriceInfluenceConfirm',
  1513. tableId: "801006Table1",
  1514. tableName: "报关单主记录",
  1515. columnProp: "priceInfluenceConfirm",
  1516. headerAlign: "center",
  1517. align: "left",
  1518. columnLabel: "价格影响确认",
  1519. columnHidden: false,
  1520. columnImage: false,
  1521. columnSortable: false,
  1522. sortLv: 0,
  1523. status: true,
  1524. fixed: '',
  1525. columnWidth: 60
  1526. },
  1527. {
  1528. userId: this.$store.state.user.name,
  1529. functionId: 801006,
  1530. serialNumber: '801006Table1RoyaltyPaymentsConfirm',
  1531. tableId: "801006Table1",
  1532. tableName: "报关单主记录",
  1533. columnProp: "royaltyPaymentsConfirm",
  1534. headerAlign: "center",
  1535. align: "left",
  1536. columnLabel: "支付特许使用费确认",
  1537. columnHidden: false,
  1538. columnImage: false,
  1539. columnSortable: false,
  1540. sortLv: 0,
  1541. status: true,
  1542. fixed: '',
  1543. columnWidth: 60
  1544. },
  1545. {
  1546. userId: this.$store.state.user.name,
  1547. functionId: 801006,
  1548. serialNumber: '801006Table1DelNo',
  1549. tableId: "801006Table1",
  1550. tableName: "报关单主记录",
  1551. columnProp: "delNo",
  1552. headerAlign: "center",
  1553. align: "left",
  1554. columnLabel: "发货通知单号",
  1555. columnHidden: false,
  1556. columnImage: false,
  1557. columnSortable: false,
  1558. sortLv: 0,
  1559. status: true,
  1560. fixed: '',
  1561. columnWidth: 90
  1562. },
  1563. ],
  1564. columnList2: [
  1565. {
  1566. userId: this.$store.state.user.name,
  1567. functionId: 801006,
  1568. serialNumber: '801006Table2ItemNo',
  1569. tableId: "801006Table2",
  1570. tableName: "报关单子记录",
  1571. columnProp: "itemNo",
  1572. headerAlign: "center",
  1573. align: "right",
  1574. columnLabel: "序号",
  1575. columnHidden: false,
  1576. columnImage: false,
  1577. columnSortable: false,
  1578. sortLv: 0,
  1579. status: true,
  1580. fixed: '',
  1581. columnWidth: 50
  1582. },
  1583. {
  1584. userId: this.$store.state.user.name,
  1585. functionId: 801006,
  1586. serialNumber: '801006Table2HsCode',
  1587. tableId: "801006Table2",
  1588. tableName: "报关单子记录",
  1589. columnProp: "hsCode",
  1590. headerAlign: "center",
  1591. align: "left",
  1592. columnLabel: "HS Code",
  1593. columnHidden: false,
  1594. columnImage: false,
  1595. columnSortable: false,
  1596. sortLv: 0,
  1597. status: true,
  1598. fixed: '',
  1599. columnWidth: 100
  1600. },
  1601. {
  1602. userId: this.$store.state.user.name,
  1603. functionId: 801006,
  1604. serialNumber: '801006Table2HsCodeDesc',
  1605. tableId: "801006Table2",
  1606. tableName: "报关单子记录",
  1607. columnProp: "hsCodeDesc",
  1608. headerAlign: "center",
  1609. align: "left",
  1610. columnLabel: "品名",
  1611. columnHidden: false,
  1612. columnImage: false,
  1613. columnSortable: false,
  1614. sortLv: 0,
  1615. status: true,
  1616. fixed: '',
  1617. columnWidth: 100
  1618. },
  1619. {
  1620. userId: this.$store.state.user.name,
  1621. functionId: 801006,
  1622. serialNumber: '801006Table2Qty',
  1623. tableId: "801006Table2",
  1624. tableName: "报关单子记录",
  1625. columnProp: "qty",
  1626. headerAlign: "center",
  1627. align: "right",
  1628. columnLabel: "数量",
  1629. columnHidden: false,
  1630. columnImage: false,
  1631. columnSortable: false,
  1632. sortLv: 0,
  1633. status: true,
  1634. fixed: '',
  1635. columnWidth: 60
  1636. },
  1637. {
  1638. userId: this.$store.state.user.name,
  1639. functionId: 801006,
  1640. serialNumber: '801006Table2NetWeight',
  1641. tableId: "801006Table2",
  1642. tableName: "报关单子记录",
  1643. columnProp: "netWeight",
  1644. headerAlign: "center",
  1645. align: "right",
  1646. columnLabel: "净重",
  1647. columnHidden: false,
  1648. columnImage: false,
  1649. columnSortable: false,
  1650. sortLv: 0,
  1651. status: true,
  1652. fixed: '',
  1653. columnWidth: 60
  1654. },
  1655. {
  1656. userId: this.$store.state.user.name,
  1657. functionId: 801006,
  1658. serialNumber: '801006Table2UnitPrice',
  1659. tableId: "801006Table2",
  1660. tableName: "报关单子记录",
  1661. columnProp: "unitPrice",
  1662. headerAlign: "center",
  1663. align: "right",
  1664. columnLabel: "单价",
  1665. columnHidden: false,
  1666. columnImage: false,
  1667. columnSortable: false,
  1668. sortLv: 0,
  1669. status: true,
  1670. fixed: '',
  1671. columnWidth: 60
  1672. },
  1673. {
  1674. userId: this.$store.state.user.name,
  1675. functionId: 801006,
  1676. serialNumber: '801006Table2TotalPrice',
  1677. tableId: "801006Table2",
  1678. tableName: "报关单子记录",
  1679. columnProp: "totalPrice",
  1680. headerAlign: "center",
  1681. align: "right",
  1682. columnLabel: "总价",
  1683. columnHidden: false,
  1684. columnImage: false,
  1685. columnSortable: false,
  1686. sortLv: 0,
  1687. status: true,
  1688. fixed: '',
  1689. columnWidth: 60
  1690. },
  1691. {
  1692. userId: this.$store.state.user.name,
  1693. functionId: 801006,
  1694. serialNumber: '801006Table2Currency',
  1695. tableId: "801006Table2",
  1696. tableName: "报关单子记录",
  1697. columnProp: "currency",
  1698. headerAlign: "center",
  1699. align: "left",
  1700. columnLabel: "币制",
  1701. columnHidden: false,
  1702. columnImage: false,
  1703. columnSortable: false,
  1704. sortLv: 0,
  1705. status: true,
  1706. fixed: '',
  1707. columnWidth: 60
  1708. },
  1709. {
  1710. userId: this.$store.state.user.name,
  1711. functionId: 801006,
  1712. serialNumber: '801006Table2MadeArea',
  1713. tableId: "801006Table2",
  1714. tableName: "报关单子记录",
  1715. columnProp: "madeArea",
  1716. headerAlign: "center",
  1717. align: "left",
  1718. columnLabel: "原产国(地区)",
  1719. columnHidden: false,
  1720. columnImage: false,
  1721. columnSortable: false,
  1722. sortLv: 0,
  1723. status: true,
  1724. fixed: '',
  1725. columnWidth: 80
  1726. },
  1727. {
  1728. userId: this.$store.state.user.name,
  1729. functionId: 801006,
  1730. serialNumber: '801006Table2Destination',
  1731. tableId: "801006Table2",
  1732. tableName: "报关单子记录",
  1733. columnProp: "destination",
  1734. headerAlign: "center",
  1735. align: "left",
  1736. columnLabel: "最终目的国(地区)",
  1737. columnHidden: false,
  1738. columnImage: false,
  1739. columnSortable: false,
  1740. sortLv: 0,
  1741. status: true,
  1742. fixed: '',
  1743. columnWidth: 100
  1744. },
  1745. {
  1746. userId: this.$store.state.user.name,
  1747. functionId: 801006,
  1748. serialNumber: '801006Table2SourceArea',
  1749. tableId: "801006Table2",
  1750. tableName: "报关单子记录",
  1751. columnProp: "sourceArea",
  1752. headerAlign: "center",
  1753. align: "left",
  1754. columnLabel: "境内货源地",
  1755. columnHidden: false,
  1756. columnImage: false,
  1757. columnSortable: false,
  1758. sortLv: 0,
  1759. status: true,
  1760. fixed: '',
  1761. columnWidth: 80
  1762. },
  1763. ],
  1764. }
  1765. },
  1766. mounted() {
  1767. this.$nextTick(() => {
  1768. this.height = (window.innerHeight - 240)/2;
  1769. })
  1770. },
  1771. methods: {
  1772. // 每页数
  1773. sizeChangeHandle (val) {
  1774. this.pageSize = val
  1775. this.pageIndex = 1
  1776. this.searchTable()
  1777. },
  1778. // 当前页
  1779. currentChangeHandle (val) {
  1780. this.pageIndex = val
  1781. this.searchTable()
  1782. },
  1783. changeData(row){
  1784. this.currentRow = JSON.parse(JSON.stringify(row));
  1785. this.refreshCurrentTabTable ();
  1786. },
  1787. searchTable(){
  1788. this.searchData.limit = this.pageSize
  1789. this.searchData.page = this.pageIndex
  1790. searchDeclarationHeader(this.searchData).then(({data}) => {
  1791. //区分请求成功和失败的状况
  1792. if (data && data.code == 0) {
  1793. this.dataList = data.page.list
  1794. this.pageIndex = data.page.currPage
  1795. this.pageSize = data.page.pageSize
  1796. this.totalPage = data.page.totalCount
  1797. if(this.dataList.length>0){
  1798. this.$refs.mainTable.setCurrentRow(this.dataList[0]);
  1799. this.changeData(this.dataList[0])
  1800. }else {
  1801. this.changeData(null)
  1802. }
  1803. } else {
  1804. this.dataList = [];
  1805. }
  1806. });
  1807. },
  1808. tabClick (tab, event) {
  1809. // 刷新列表数据
  1810. this.refreshCurrentTabTable()
  1811. },
  1812. refreshCurrentTabTable(){
  1813. if(this.currentRow===''||this.currentRow===null){
  1814. this.currentRow={site:'',declarationNo:''}
  1815. }
  1816. if(this.activeName==='detail'){
  1817. searchDeclarationDetail(this.currentRow).then(({data}) => {
  1818. //区分请求成功和失败的状况
  1819. if (data && data.code == 0) {
  1820. this.dataList2 = data.rows
  1821. } else {
  1822. this.dataList2 = [];
  1823. }
  1824. });
  1825. }
  1826. },
  1827. deleteBG(row){
  1828. this.$confirm('是否删除此条数据?', '提示', {
  1829. confirmButtonText: '确定',
  1830. cancelButtonText: '取消',
  1831. type: 'warning'
  1832. }).then(() => {
  1833. deleteDeclaration(row).then(({data}) => {
  1834. if (data && data.code === 0) {
  1835. this.searchTable()
  1836. this.$message({
  1837. message: '操作成功',
  1838. type: 'success',
  1839. duration: 1500,
  1840. onClose: () => {}
  1841. })
  1842. } else {
  1843. this.$alert(data.msg, '错误', {
  1844. confirmButtonText: '确定'
  1845. })
  1846. }
  1847. })
  1848. }).catch(() => {
  1849. this.$message({
  1850. type: 'info',
  1851. message: '已取消删除'
  1852. });
  1853. });
  1854. },
  1855. handleCurrentChange(val) {
  1856. this.currentRow = val;
  1857. },
  1858. chooseBrandType() {
  1859. if (!this.currentRow || !this.currentRow.buNo) {
  1860. this.$message.warning('请选择报关单!')
  1861. return
  1862. }
  1863. this.brandType='境外品牌(其他)'
  1864. this.brandTypeFlag = true
  1865. if (this.currentRow.buNo==='02-Hardtag' || this.currentRow.buNo==='04-MHM') {
  1866. this.currentRow.brand='品牌'
  1867. getPropertiesListByDeclaration(this.currentRow).then(({data}) => {
  1868. if (data && data.code == 0) {
  1869. this.propertiesList = data.rows
  1870. } else {
  1871. this.propertiesList = [];
  1872. }
  1873. });
  1874. }
  1875. },
  1876. chooseHsCodeDescType() {
  1877. if (!this.currentRow || !this.currentRow.buNo) {
  1878. this.$message.warning('请选择报关单!')
  1879. return
  1880. }
  1881. //this.hsCodeDescType=''
  1882. this.declarationFlag = true
  1883. },
  1884. searchTemplateOne() {
  1885. this.templateData.buNo = this.currentRow.buNo
  1886. this.templateData.customName = this.currentRow.customName
  1887. this.templateData.shippingMode = this.currentRow.shippingMode
  1888. searchTemplateList(this.templateData).then(({data}) => {
  1889. if (data && data.code === 0){
  1890. if (data.rows && data.rows.length > 0) {
  1891. this.templateRowDblclick(data.rows[0]);
  1892. }
  1893. }
  1894. })
  1895. },
  1896. exportInvoiceList() {
  1897. if (!this.currentRow || !this.currentRow.buNo) {
  1898. this.$message.warning('请选择报关单!')
  1899. return
  1900. }
  1901. this.exportInvoice.templateName=''
  1902. this.exportInvoice.hsCodeDesc=this.currentRow.hsCodeDesc
  1903. this.exportInvoice.contractFlag=this.currentRow.contractFlag
  1904. this.exportInvoice.packaging=this.currentRow.packaging
  1905. this.exportInvoice.kgs=this.currentRow.kgs
  1906. this.exportInvoice.hsCode=this.currentRow.hsCode
  1907. this.exportInvoice.material=this.currentRow.material
  1908. this.exportInvoice.hsCodeDescType=this.currentRow.hsCodeDescType
  1909. this.exportInvoice.goodsLabel=this.currentRow.goodsLabel
  1910. this.exportInvoice.origin="made in china"
  1911. //this.exportInvoice = this.currentRow
  1912. if (!this.exportInvoice.origin) {
  1913. this.exportInvoice.origin = 'made in china'
  1914. }
  1915. if (!this.exportInvoice.itemNo) {
  1916. this.exportInvoice.itemNo = 'Y'
  1917. }
  1918. this.notifyPartDetailList = [];
  1919. this.exportInvoiceFlag = true
  1920. if (this.currentRow.buNo==='03-RFID') {
  1921. getNotifyPartDetail(this.currentRow).then(({data}) => {
  1922. //区分请求成功和失败的状况
  1923. if (data && data.code == 0) {
  1924. this.notifyPartDetailList = data.rows
  1925. this.notifyPartDetailList.forEach(o => {
  1926. if (!o.lossratio) {
  1927. o.lossratio = '1.2';
  1928. }
  1929. });
  1930. } else {
  1931. this.notifyPartDetailList = [];
  1932. }
  1933. });
  1934. }
  1935. this.templateData.type='发票'
  1936. this.searchTemplateOne();
  1937. },
  1938. exportPakingList() {
  1939. if (!this.currentRow || !this.currentRow.buNo) {
  1940. this.$message.warning('请选择报关单!')
  1941. return
  1942. }
  1943. this.exportPaking.origin='made in china'
  1944. this.exportPaking.itemNo=this.currentRow.itemNo
  1945. this.exportPaking.upc=this.currentRow.upc
  1946. this.exportPaking.so=this.currentRow.so
  1947. this.exportPaking.shippingMark=this.currentRow.shippingMark
  1948. this.exportPaking.palletWeight=this.currentRow.palletWeight
  1949. this.exportPaking.hsCodeDesc=this.currentRow.hsCodeDesc
  1950. this.exportPaking.contractFlag=this.currentRow.contractFlag
  1951. this.exportPaking.packaging=this.currentRow.packaging
  1952. this.exportPaking.kgs=this.currentRow.kgs
  1953. this.exportPaking.hsCode=this.currentRow.hsCode
  1954. this.exportPaking.material=this.currentRow.material
  1955. this.exportPaking.hsCodeDescType=this.currentRow.hsCodeDescType
  1956. this.exportPaking.goodsLabel=this.currentRow.goodsLabel
  1957. this.exportPaking.boxChange=this.currentRow.boxChange
  1958. //this.exportPaking = this.currentRow
  1959. if (!this.exportPaking.origin) {
  1960. this.exportPaking.origin = 'made in china'
  1961. }
  1962. if (!this.exportPaking.itemNo) {
  1963. this.exportPaking.itemNo = 'Y'
  1964. }
  1965. this.notifyPartDetailList = [];
  1966. this.exportPaking.templateName=''
  1967. this.exportPakingFlag = true
  1968. if (this.currentRow.buNo==='03-RFID') {
  1969. getNotifyPartDetail(this.currentRow).then(({data}) => {
  1970. //区分请求成功和失败的状况
  1971. if (data && data.code == 0) {
  1972. this.notifyPartDetailList = data.rows
  1973. this.notifyPartDetailList.forEach(o => {
  1974. if (!o.lossratio) {
  1975. o.lossratio = '1.2';
  1976. }
  1977. });
  1978. } else {
  1979. this.notifyPartDetailList = [];
  1980. }
  1981. });
  1982. }
  1983. this.templateData.type='箱单'
  1984. this.searchTemplateOne();
  1985. },
  1986. exportGoodsList() {
  1987. if (!this.currentRow || !this.currentRow.buNo) {
  1988. this.$message.warning('请选择报关单!')
  1989. return
  1990. }
  1991. this.exportGoods.hsCodeDescType = 'N'
  1992. this.exportGoods.salesMethod = 'EXW'
  1993. this.exportGoods.currency = this.currentRow.currency?this.currentRow.currency:this.dataList2.length>0?this.dataList2[0].currency:'USD'
  1994. this.exportGoods.madeArea = 'Shanghai, China'
  1995. this.exportGoods.sendPort = 'Shanghai, China'
  1996. this.exportGoods.deliveryGoodsDate = ''
  1997. this.exportGoods.voyage = this.currentRow.buNo==='01-Label' || this.currentRow.buNo==='03-RFID'?this.currentRow.cmcInvoice:''
  1998. this.exportGoods.shippingDate = ''
  1999. this.exportGoodsFlag = true
  2000. },
  2001. // 导出
  2002. downloadDeclarationElements() {
  2003. if (!this.currentRow || !this.currentRow.buNo) {
  2004. this.$message.warning('请选择报关单!')
  2005. return
  2006. }
  2007. let exportParam={}
  2008. exportParam.declarationNo = this.currentRow.declarationNo
  2009. exportParam.site = this.currentRow.site
  2010. exportParam.delNo = this.currentRow.delNo
  2011. exportParam.brandType = this.brandType
  2012. exportParam.hsCodeDescType=this.hsCodeDescType
  2013. if (this.propertiesList.length>0) {
  2014. this.currentRow.brand='品牌'
  2015. exportParam.brand = '品牌'
  2016. exportParam.propertiesList = this.propertiesList
  2017. }
  2018. let error;
  2019. ExportUtil.export(
  2020. "/ecss/coDel/downloadDeclarationElements",
  2021. exportParam, this.currentRow.declarationNo+"报关要素.xlsx"
  2022. );
  2023. this.brandTypeFlag = false
  2024. },
  2025. downloadDeclaration() {
  2026. if (!this.currentRow || !this.currentRow.buNo) {
  2027. this.$message.warning('请选择报关单!')
  2028. return
  2029. }
  2030. if (!this.packageUnit ) {
  2031. this.$message.warning('请选择托/箱!')
  2032. return
  2033. }
  2034. let exportParam={}
  2035. exportParam.declarationNo = this.currentRow.declarationNo
  2036. exportParam.site = this.currentRow.site
  2037. exportParam.delNo = this.currentRow.delNo
  2038. exportParam.hsCodeDescType=this.hsCodeDescType
  2039. exportParam.packageUnit=this.packageUnit
  2040. exportParam.declarationWeight = this.declarationWeight
  2041. ExportUtil.export(
  2042. "/ecss/coDel/downloadDeclaration",
  2043. exportParam, this.currentRow.declarationNo+"报关单.xlsx"
  2044. );
  2045. this.declarationFlag = false
  2046. },
  2047. downloadInvoice() {
  2048. if (!this.currentRow || !this.currentRow.buNo) {
  2049. this.$message.warning('请选择报关单!')
  2050. return
  2051. }
  2052. let exportParam=this.exportInvoice
  2053. exportParam.declarationNo = this.currentRow.declarationNo
  2054. exportParam.site = this.currentRow.site
  2055. exportParam.delNo = this.currentRow.delNo
  2056. exportParam.notifyPartDetailList = this.notifyPartDetailList
  2057. ExportUtil.export(
  2058. "/ecss/coDel/downloadInvoice",
  2059. exportParam, this.currentRow.declarationNo+"发票.xlsx"
  2060. );
  2061. this.exportInvoiceFlag=false
  2062. this.searchTable()
  2063. },
  2064. downloadPackingList() {
  2065. if (!this.currentRow || !this.currentRow.buNo) {
  2066. this.$message.warning('请选择报关单!')
  2067. return
  2068. }
  2069. if ((this.currentRow.buNo==='01-Label' || this.currentRow.buNo==='03-RFID')
  2070. && !this.exportPaking.origin) {
  2071. this.$message.warning('请填写制造地!')
  2072. return
  2073. }
  2074. if ((this.currentRow.buNo==='01-Label' || this.currentRow.buNo==='03-RFID')
  2075. && !this.exportPaking.palletWeight) {
  2076. this.$message.warning('请填写栈板重量!')
  2077. return
  2078. }
  2079. if (this.exportPaking.material && !this.exportPaking.hsCode) {
  2080. this.$message.warning('请填写hsCode!')
  2081. return
  2082. }
  2083. if (this.exportPaking.packaging && !this.exportPaking.kgs) {
  2084. this.$message.warning('请填写plastic packaging!')
  2085. return
  2086. }
  2087. let exportParam=this.exportPaking
  2088. exportParam.declarationNo = this.currentRow.declarationNo
  2089. exportParam.site = this.currentRow.site
  2090. exportParam.delNo = this.currentRow.delNo
  2091. exportParam.notifyPartDetailList = this.notifyPartDetailList
  2092. ExportUtil.export(
  2093. "/ecss/coDel/downloadPackingList",
  2094. exportParam, this.currentRow.declarationNo+"箱单.xlsx"
  2095. );
  2096. this.exportPakingFlag = false;
  2097. this.searchTable()
  2098. },
  2099. downloadExportGoods() {
  2100. if (!this.currentRow || !this.currentRow.buNo) {
  2101. this.$message.warning('请选择报关单!')
  2102. return
  2103. }
  2104. let exportParam=this.exportGoods
  2105. exportParam.declarationNo = this.currentRow.declarationNo
  2106. exportParam.site = this.currentRow.site
  2107. exportParam.delNo = this.currentRow.delNo
  2108. ExportUtil.export(
  2109. "/ecss/coDel/downloadExportGoods",
  2110. exportParam, this.currentRow.declarationNo+"出口货物委托书.xlsx"
  2111. );
  2112. this.exportGoodsFlag = false;
  2113. this.searchTable()
  2114. },
  2115. exportContract(){
  2116. if (!this.currentRow || !this.currentRow.buNo) {
  2117. this.$message.warning('请选择报关单!')
  2118. return
  2119. }
  2120. let exportParam=this.exportGoods
  2121. exportParam.declarationNo = this.currentRow.declarationNo
  2122. exportParam.site = this.currentRow.site
  2123. exportParam.delNo = this.currentRow.delNo
  2124. ExportUtil.export(
  2125. "/ecss/coDel/downloadContract",
  2126. exportParam, this.currentRow.declarationNo+"合同.xlsx"
  2127. );
  2128. this.searchTable()
  2129. },
  2130. exportAll(){
  2131. if (!this.currentRow || !this.currentRow.buNo) {
  2132. this.$message.warning('请选择报关单!')
  2133. return
  2134. }
  2135. if (!this.packageUnit ) {
  2136. this.$message.warning('请选择托/箱!')
  2137. return
  2138. }
  2139. let exportParam=this.exportPaking
  2140. exportParam.salesMethod=this.exportGoods.salesMethod
  2141. exportParam.currency=this.exportGoods.currency
  2142. exportParam.madeArea=this.exportGoods.madeArea
  2143. exportParam.sendPort=this.exportGoods.sendPort
  2144. exportParam.deliveryGoodsDate=this.exportGoods.deliveryGoodsDate
  2145. exportParam.voyage=this.exportGoods.voyage
  2146. exportParam.shippingDate=this.exportGoods.shippingDate
  2147. exportParam.hsCodeDescType=this.exportGoods.hsCodeDescType
  2148. exportParam.shipper=this.exportGoods.shipper
  2149. exportParam.brandType = this.brandType
  2150. exportParam.hsCodeDescType=this.hsCodeDescType
  2151. exportParam.packageUnit=this.packageUnit
  2152. exportParam.declarationWeight = this.declarationWeight
  2153. if (this.propertiesList.length>0) {
  2154. this.currentRow.brand='品牌'
  2155. exportParam.brand = '品牌'
  2156. exportParam.propertiesList = this.propertiesList
  2157. }
  2158. exportParam.hsCodeDesc = this.exportInvoice.hsCodeDesc
  2159. exportParam.contractFlag = this.exportInvoice.contractFlag
  2160. exportParam.fpremark = this.exportInvoice.fpremark
  2161. exportParam.declarationNo = this.currentRow.declarationNo
  2162. exportParam.site = this.currentRow.site
  2163. exportParam.delNo = this.currentRow.delNo
  2164. exportParam.notifyPartDetailList = this.notifyPartDetailList
  2165. ExportUtil.export(
  2166. "/ecss/coDel/downloadAll",
  2167. exportParam, this.currentRow.declarationNo+"单证信息.xlsx"
  2168. );
  2169. this.exportAllFlag = false
  2170. this.searchTable()
  2171. },
  2172. async exportAllOpen() {
  2173. if (!this.currentRow || !this.currentRow.buNo) {
  2174. this.$message.warning('请选择报关单!')
  2175. return
  2176. }
  2177. // 报关要素
  2178. this.brandType='境外品牌(其他)'
  2179. this.exportAllFlag = true
  2180. if (this.currentRow.buNo==='02-Hardtag' || this.currentRow.buNo==='04-MHM') {
  2181. this.currentRow.brand='品牌'
  2182. getPropertiesListByDeclaration(this.currentRow).then(({data}) => {
  2183. if (data && data.code == 0) {
  2184. this.propertiesList = data.rows
  2185. } else {
  2186. this.propertiesList = [];
  2187. }
  2188. });
  2189. }
  2190. // 发票
  2191. this.exportInvoice.templateName=''
  2192. this.exportInvoice.hsCodeDesc=this.currentRow.hsCodeDesc
  2193. this.exportInvoice.contractFlag=this.currentRow.contractFlag
  2194. this.exportInvoice.packaging=this.currentRow.packaging
  2195. this.exportInvoice.kgs=this.currentRow.kgs
  2196. this.exportInvoice.hsCode=this.currentRow.hsCode
  2197. this.exportInvoice.material=this.currentRow.material
  2198. this.exportInvoice.hsCodeDescType=this.currentRow.hsCodeDescType
  2199. this.exportInvoice.goodsLabel=this.currentRow.goodsLabel
  2200. this.exportInvoice.origin="made in china"
  2201. if (!this.exportInvoice.origin) {
  2202. this.exportInvoice.origin = 'made in china'
  2203. }
  2204. if (!this.exportInvoice.itemNo) {
  2205. this.exportInvoice.itemNo = 'Y'
  2206. }
  2207. this.notifyPartDetailList = [];
  2208. this.templateData.type='发票'
  2209. await this.searchTemplateOne();
  2210. // 箱单
  2211. //this.exportPaking.origin='made in china'
  2212. this.exportPaking.itemNo=this.currentRow.itemNo
  2213. this.exportPaking.upc=this.currentRow.upc
  2214. this.exportPaking.so=this.currentRow.so
  2215. this.exportPaking.shippingMark=this.currentRow.shippingMark
  2216. this.exportPaking.palletWeight=this.currentRow.palletWeight
  2217. this.exportPaking.hsCodeDesc=this.currentRow.hsCodeDesc
  2218. this.exportPaking.contractFlag=this.currentRow.contractFlag
  2219. this.exportPaking.packaging=this.currentRow.packaging
  2220. this.exportPaking.kgs=this.currentRow.kgs
  2221. this.exportPaking.hsCode=this.currentRow.hsCode
  2222. this.exportPaking.material=this.currentRow.material
  2223. this.exportPaking.hsCodeDescType=this.currentRow.hsCodeDescType
  2224. this.exportPaking.goodsLabel=this.currentRow.goodsLabel
  2225. this.exportPaking.boxChange=this.currentRow.boxChange
  2226. if (!this.exportPaking.origin) {
  2227. this.exportPaking.origin = 'made in china'
  2228. }
  2229. if (!this.exportPaking.itemNo) {
  2230. this.exportPaking.itemNo = 'Y'
  2231. }
  2232. this.notifyPartDetailList = [];
  2233. this.exportPaking.templateName=''
  2234. if (this.currentRow.buNo==='03-RFID') {
  2235. await getNotifyPartDetail(this.currentRow).then(({data}) => {
  2236. //区分请求成功和失败的状况
  2237. if (data && data.code == 0) {
  2238. this.notifyPartDetailList = data.rows
  2239. this.notifyPartDetailList.forEach(o => {
  2240. if (!o.lossratio) {
  2241. o.lossratio = '1.2';
  2242. }
  2243. });
  2244. } else {
  2245. this.notifyPartDetailList = [];
  2246. }
  2247. });
  2248. }
  2249. this.templateData.type='箱单'
  2250. await searchTemplateList(this.templateData).then(({data}) => {
  2251. if (data && data.code === 0){
  2252. if (data.rows && data.rows.length > 0) {
  2253. let row = data.rows[0];
  2254. this.exportPaking.templateName=row.name
  2255. this.exportPaking.upc=row.upc
  2256. this.exportPaking.so=row.so
  2257. this.exportPaking.shippingMark=row.shippingMark
  2258. this.exportPaking.palletWeight=row.palletWeight
  2259. this.exportPaking.boxChange=row.boxChange
  2260. this.exportPaking.itemNo=row.itemNo
  2261. this.exportPaking.origin=this.currentRow.origin?this.currentRow.origin:row.origin
  2262. this.exportPaking.packaging=this.currentRow.packaging?this.currentRow.packaging:row.packaging
  2263. this.exportPaking.kgs=this.currentRow.kgs?this.currentRow.kgs:row.kgs
  2264. this.exportPaking.hsCode=this.currentRow.hsCode?this.currentRow.hsCode:row.hsCode
  2265. this.exportPaking.material=this.currentRow.material?this.currentRow.material:row.material
  2266. this.exportPaking.hsCodeDescType=this.currentRow.hsCodeDescType?this.currentRow.hsCodeDescType:row.hsCodeDescType
  2267. this.exportPaking.goodsLabel=this.currentRow.goodsLabel?this.currentRow.goodsLabel:row.goodsLabel
  2268. this.notifyPartDetailList.forEach(o => {
  2269. // 开启fsc损耗则给默认值
  2270. if (o.lossratio) {
  2271. if (row.fscWeight) {
  2272. o.lossratio = o.lossratio;
  2273. } else {
  2274. o.lossratio = '';
  2275. }
  2276. } else {
  2277. if (row.fscWeight) {
  2278. o.lossratio = '1.2';
  2279. } else {
  2280. o.lossratio = '';
  2281. }
  2282. }
  2283. });
  2284. }
  2285. }
  2286. })
  2287. this.exportGoods.salesMethod = 'EXW'
  2288. this.exportGoods.currency = this.currentRow.currency?this.currentRow.currency:this.dataList2.length>0?this.dataList2[0].currency:'USD'
  2289. this.exportGoods.madeArea = 'Shanghai, China'
  2290. this.exportGoods.sendPort = 'Shanghai, China'
  2291. this.exportGoods.deliveryGoodsDate = ''
  2292. this.exportGoods.voyage = this.currentRow.buNo==='01-Label' || this.currentRow.buNo==='03-RFID'?this.currentRow.cmcInvoice:''
  2293. this.exportGoods.shippingDate = '';
  2294. this.templateData.type='出口货物委托书'
  2295. await this.searchTemplateOne();
  2296. },
  2297. getCustomerInfo() {
  2298. getCustomerInfo(this.currentRow).then(({data}) => {
  2299. //区分请求成功和失败的状况
  2300. if (data && data.code == 0) {
  2301. this.customerInfoList = data.rows
  2302. } else {
  2303. this.customerInfoList = [];
  2304. }
  2305. });
  2306. },
  2307. openTemplate (type) {
  2308. this.templateData.type=type;
  2309. this.templateFlag = true;
  2310. },
  2311. openTemplateDialog () {
  2312. //请求
  2313. this.searchTemplateList();
  2314. },
  2315. closeTemplateDialog () {
  2316. this.templateList = []
  2317. this.templateFlag = false
  2318. },
  2319. searchTemplateList () {
  2320. this.templateData.buNo = this.currentRow.buNo
  2321. this.templateData.customName = ''
  2322. searchTemplateList(this.templateData).then(({data}) => {
  2323. if (data && data.code === 0){
  2324. this.templateList = data.rows;
  2325. }
  2326. })
  2327. },
  2328. templateRowDblclick (row) {
  2329. if (this.templateData.type=='发票') {
  2330. this.exportInvoice.templateName=row.name
  2331. this.exportInvoice.hsCodeDesc=row.hsCodeDesc
  2332. this.exportInvoice.contractFlag=row.contractFlag
  2333. this.exportInvoice.origin=this.currentRow.origin?this.currentRow.origin:row.origin
  2334. this.exportInvoice.packaging=this.currentRow.packaging?this.currentRow.packaging:row.packaging
  2335. this.exportInvoice.kgs=this.currentRow.kgs?this.currentRow.kgs:row.kgs
  2336. this.exportInvoice.hsCode=this.currentRow.hsCode?this.currentRow.hsCode:row.hsCode
  2337. this.exportInvoice.material=this.currentRow.material?this.currentRow.material:row.material
  2338. this.exportInvoice.hsCodeDescType=this.currentRow.hsCodeDescType?this.currentRow.hsCodeDescType:row.hsCodeDescType
  2339. this.exportInvoice.goodsLabel=this.currentRow.goodsLabel?this.currentRow.goodsLabel:row.goodsLabel
  2340. this.exportInvoice.fpremark = row.remark
  2341. } else if (this.templateData.type=='箱单'){
  2342. this.exportPaking.templateName=row.name
  2343. this.exportPaking.upc=row.upc
  2344. this.exportPaking.so=row.so
  2345. this.exportPaking.shippingMark=row.shippingMark
  2346. this.exportPaking.palletWeight=row.palletWeight
  2347. this.exportPaking.boxChange=row.boxChange
  2348. this.exportPaking.itemNo=row.itemNo
  2349. this.exportPaking.origin=this.currentRow.origin?this.currentRow.origin:row.origin
  2350. this.exportPaking.packaging=this.currentRow.packaging?this.currentRow.packaging:row.packaging
  2351. this.exportPaking.kgs=this.currentRow.kgs?this.currentRow.kgs:row.kgs
  2352. this.exportPaking.hsCode=this.currentRow.hsCode?this.currentRow.hsCode:row.hsCode
  2353. this.exportPaking.material=this.currentRow.material?this.currentRow.material:row.material
  2354. this.exportPaking.hsCodeDescType=this.currentRow.hsCodeDescType?this.currentRow.hsCodeDescType:row.hsCodeDescType
  2355. this.exportPaking.goodsLabel=this.currentRow.goodsLabel?this.currentRow.goodsLabel:row.goodsLabel
  2356. this.exportPaking.xdremark = row.remark
  2357. } else if (this.templateData.type=='出口货物委托书'){
  2358. this.exportGoods.salesMethod = row.salesMethod
  2359. this.exportGoods.currency = row.currency
  2360. this.exportGoods.madeArea = row.madeArea
  2361. this.exportGoods.sendPort = row.sendPort
  2362. this.exportGoods.deliveryGoodsDate = row.deliveryGoodsDate
  2363. this.exportGoods.voyage = this.currentRow.buNo==='01-Label' || this.currentRow.buNo==='03-RFID'?this.currentRow.cmcInvoice:row.voyage
  2364. this.exportGoods.shippingDate = row.shippingDate;
  2365. this.exportGoods.shipper=row.shipper
  2366. }
  2367. if (this.templateData.type!=='出口货物委托书') {
  2368. this.notifyPartDetailList.forEach(o => {
  2369. // 开启fsc损耗则给默认值
  2370. if (o.lossratio) {
  2371. if (row.fscWeight) {
  2372. o.lossratio = o.lossratio;
  2373. } else {
  2374. o.lossratio = '';
  2375. }
  2376. } else {
  2377. if (row.fscWeight) {
  2378. o.lossratio = '1.2';
  2379. } else {
  2380. o.lossratio = '';
  2381. }
  2382. }
  2383. });
  2384. }
  2385. this.templateFlag = false
  2386. },
  2387. },
  2388. activated() {
  2389. this.searchTable()
  2390. },
  2391. created() {
  2392. }
  2393. }
  2394. </script>
  2395. <style scoped>
  2396. /deep/ .expClass .cell {
  2397. line-height: 24px;
  2398. font-size: 12px;
  2399. height: 24px;
  2400. }
  2401. .custom-divider {
  2402. position: relative;
  2403. height: 1px;
  2404. background: #ebeef5;
  2405. margin: 10px 0;
  2406. width: 720px;
  2407. }
  2408. .custom-divider .text {
  2409. position: absolute;
  2410. left: 20%;
  2411. top: -10px;
  2412. transform: translateX(-50%);
  2413. padding: 0 15px;
  2414. background: white;
  2415. color: #909399;
  2416. }
  2417. </style>