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.

1731 lines
57 KiB

11 months ago
10 months ago
11 months ago
11 months ago
11 months ago
10 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
11 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
8 months ago
11 months ago
11 months ago
11 months ago
11 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 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
11 months ago
11 months ago
11 months ago
10 months ago
11 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
10 months ago
11 months ago
10 months ago
10 months ago
11 months ago
11 months ago
10 months ago
8 months ago
11 months ago
11 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="'BU:'">
  5. <el-select v-model="searchData.buNo" placeholder="请选择" >
  6. <el-option label="全部" value=""></el-option>
  7. <el-option
  8. v-for = "i in buList"
  9. :key = "i.buNo"
  10. :label = "i.buDesc"
  11. :value = "i.buNo">
  12. </el-option>
  13. </el-select>
  14. </el-form-item>
  15. <el-form-item :label="'发货通知单:'">
  16. <el-input v-model="searchData.delNo" style="width: 120px"></el-input>
  17. </el-form-item>
  18. <el-form-item :label="'CMC Invoice:'">
  19. <el-input v-model="searchData.cmcInvoice" style="width: 120px"></el-input>
  20. </el-form-item>
  21. <el-form-item :label="'ReadyDate'" >
  22. <el-date-picker
  23. style="width: 120px"
  24. v-model="searchData.startDate"
  25. type="date"
  26. format="yyyy-MM-dd"
  27. value-format="yyyy-MM-dd"
  28. placeholder="选择日期">
  29. </el-date-picker>
  30. </el-form-item>
  31. <el-form-item :label="'To'" >
  32. <el-date-picker
  33. style="width: 120px"
  34. v-model="searchData.endDate"
  35. type="date"
  36. format="yyyy-MM-dd"
  37. value-format="yyyy-MM-dd"
  38. placeholder="选择日期">
  39. </el-date-picker>
  40. </el-form-item>
  41. <el-form-item :label="' '" >
  42. <el-button @click="searchTable()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'查询'}}</el-button>
  43. <download-excel
  44. :fields="fields()"
  45. :data="exportData"
  46. type="xls"
  47. :name="exportName"
  48. :header="exportHeader"
  49. :footer="exportFooter"
  50. :fetch="createExportData"
  51. :before-generate="startDownload"
  52. :before-finish="finishDownload"
  53. worksheet="导出信息"
  54. class="el-button el-button--primary el-button--medium">
  55. {{ '导出' }}
  56. </download-excel>
  57. </el-form-item>
  58. </el-form>
  59. <el-table
  60. @row-click="changeData"
  61. highlight-current-row
  62. :height="height"
  63. :data="dataList"
  64. ref="mainTable"
  65. border :cell-style="cellStyle"
  66. v-loading="dataListLoading"
  67. style="width: 100%;">
  68. <el-table-column
  69. header-align="center"
  70. align="center"
  71. width="100"
  72. fixed="left"
  73. label="操作">
  74. <template slot-scope="scope">
  75. <a type="text" size="small" v-if="scope.row.notifyStatus==='仓库已确认'" @click="declarationModel(scope.row)">创建报关单</a>
  76. </template>
  77. </el-table-column>
  78. <el-table-column
  79. v-for="(item,index) in columnList1" :key="index"
  80. :sortable="item.columnSortable"
  81. :prop="item.columnProp"
  82. :header-align="item.headerAlign"
  83. :show-overflow-tooltip="item.showOverflowTooltip"
  84. :align="item.align"
  85. :fixed="item.fixed==''?false:item.fixed"
  86. :min-width="item.columnWidth"
  87. :label="item.columnLabel">
  88. <template slot-scope="scope">
  89. <span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
  90. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  91. style="width: 100px; height: 80px"/></span>
  92. </template>
  93. </el-table-column>
  94. </el-table>
  95. <el-pagination
  96. @size-change="sizeChangeHandle"
  97. @current-change="currentChangeHandle"
  98. :current-page="pageIndex"
  99. :page-sizes="[20, 50, 100, 1000]"
  100. :page-size="pageSize"
  101. :total="totalPage"
  102. layout="total, sizes, prev, pager, next, jumper">
  103. </el-pagination>
  104. <el-tabs style="font-size: 12px;min-height: 200px" class="customer-tab" v-model="activeName" type="border-card" @tab-click="tabClick" >
  105. <el-tab-pane label="明细" name="detail">
  106. <el-table
  107. :height="height"
  108. :data="dataList2"
  109. border
  110. style="width: 100%;">
  111. <el-table-column
  112. v-for="(item,index) in columnList2" :key="index"
  113. :sortable="item.columnSortable"
  114. :prop="item.columnProp"
  115. :header-align="item.headerAlign"
  116. :show-overflow-tooltip="item.showOverflowTooltip"
  117. :align="item.align"
  118. :fixed="item.fixed==''?false:item.fixed"
  119. :min-width="item.columnWidth"
  120. :label="item.columnLabel">
  121. <template slot-scope="scope">
  122. <template v-if="item.columnProp === 'ttlAmount' || item.columnProp === 'sumPrice'">
  123. <span>{{!!scope.row[item.columnProp]?scope.row[item.columnProp].toFixed(2):''}}</span>
  124. </template>
  125. <template v-else>
  126. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  127. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  128. </template>
  129. </template>
  130. </el-table-column>
  131. </el-table>
  132. </el-tab-pane>
  133. <el-tab-pane label="装箱明细" name="pallet">
  134. <el-table
  135. :data="dataList3"
  136. :height="height"
  137. border
  138. v-loading="dataListLoading"
  139. style="width: 100%; ">
  140. <el-table-column
  141. v-for="(item,index) in columnList3" :key="index"
  142. :sortable="item.columnSortable"
  143. :prop="item.columnProp"
  144. :header-align="item.headerAlign"
  145. :show-overflow-tooltip="item.showOverflowTooltip"
  146. :align="item.align"
  147. :fixed="item.fixed==''?false:item.fixed"
  148. :min-width="item.columnWidth"
  149. :label="item.columnLabel">
  150. <template slot-scope="scope">
  151. <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
  152. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  153. style="width: 100px; height: 80px"/></span>
  154. </template>
  155. </el-table-column>
  156. </el-table>
  157. </el-tab-pane>
  158. </el-tabs>
  159. <el-dialog title="创建报关单" :close-on-click-modal="false" v-drag :visible.sync="declarationFlag" width="1100px">
  160. <el-form label-position="top" style="margin-left: 7px;margin-top: -5px;">
  161. <el-row :gutter="20">
  162. <el-col :span="4">
  163. <el-form-item :label="'CMC Invoice'" >
  164. <el-input v-model="declarationData.cmcInvoice" disabled ></el-input>
  165. </el-form-item>
  166. </el-col>
  167. <el-col :span="4">
  168. <el-form-item :label="'海关编号'" >
  169. <el-input v-model="declarationData.customsOfficeCode" ></el-input>
  170. </el-form-item>
  171. </el-col>
  172. <el-col :span="4">
  173. <el-form-item :label="'录入编号'" >
  174. <el-input v-model="declarationData.inputCode" ></el-input>
  175. </el-form-item>
  176. </el-col>
  177. <el-col :span="4">
  178. <el-form-item :label="'境内发货人'" >
  179. <el-input v-model="declarationData.localShipper" ></el-input>
  180. </el-form-item>
  181. </el-col>
  182. <el-col :span="4">
  183. <el-form-item :label="'境内发货地址'" >
  184. <el-input v-model="declarationData.localShipAddress" ></el-input>
  185. </el-form-item>
  186. </el-col>
  187. <el-col :span="4">
  188. <el-form-item :label="'出关类别'" >
  189. <el-input v-model="declarationData.shipType" ></el-input>
  190. </el-form-item>
  191. </el-col>
  192. <el-col :span="4">
  193. <el-form-item :label="'出口日期'" >
  194. <el-date-picker
  195. style="width: 100%"
  196. v-model="declarationData.shipDate"
  197. type="date"
  198. format="yyyy-MM-dd"
  199. value-format="yyyy-MM-dd"
  200. placeholder="选择日期">
  201. </el-date-picker>
  202. </el-form-item>
  203. </el-col>
  204. <el-col :span="4">
  205. <el-form-item :label="'申报日期'" >
  206. <el-date-picker
  207. style="width: 100%"
  208. v-model="declarationData.submitDate"
  209. type="date"
  210. format="yyyy-MM-dd"
  211. value-format="yyyy-MM-dd"
  212. placeholder="选择日期">
  213. </el-date-picker>
  214. </el-form-item>
  215. </el-col>
  216. <el-col :span="4">
  217. <el-form-item :label="'境外收货人'" >
  218. <el-input v-model="declarationData.overseasShipper" ></el-input>
  219. </el-form-item>
  220. </el-col>
  221. <el-col :span="12">
  222. <el-form-item :label="'境外收货地址'" >
  223. <el-input v-model="declarationData.overseasAddress" ></el-input>
  224. </el-form-item>
  225. </el-col>
  226. <el-col :span="4">
  227. <el-form-item :label="'备案号'" >
  228. <el-input v-model="declarationData.filingNo" ></el-input>
  229. </el-form-item>
  230. </el-col>
  231. <el-col :span="4">
  232. <el-form-item :label="'运输方式'" >
  233. <el-input v-model="declarationData.shippingMode" disabled ></el-input>
  234. </el-form-item>
  235. </el-col>
  236. <el-col :span="4">
  237. <el-form-item :label="'运输工具名称及航次号'" >
  238. <el-input v-model="declarationData.shippingData" ></el-input>
  239. </el-form-item>
  240. </el-col>
  241. <el-col :span="4">
  242. <el-form-item :label="'提运单号'" >
  243. <el-input v-model="declarationData.deliverNo" ></el-input>
  244. </el-form-item>
  245. </el-col>
  246. <el-col :span="4">
  247. <el-form-item :label="'生产销售单位'" >
  248. <el-input v-model="declarationData.salesPartner" ></el-input>
  249. </el-form-item>
  250. </el-col>
  251. <el-col :span="4">
  252. <el-form-item :label="'监管方式'" >
  253. <el-input v-model="declarationData.regulatoryMethod" ></el-input>
  254. </el-form-item>
  255. </el-col>
  256. <el-col :span="4">
  257. <el-form-item :label="'征免性质'" >
  258. <el-input v-model="declarationData.dutyStatus" ></el-input>
  259. </el-form-item>
  260. </el-col>
  261. <el-col :span="4">
  262. <el-form-item :label="'许可证号'" >
  263. <el-input v-model="declarationData.permitNumber" ></el-input>
  264. </el-form-item>
  265. </el-col>
  266. <el-col :span="4">
  267. <el-form-item :label="'贸易国(地区)'" >
  268. <el-input v-model="declarationData.salesArea" ></el-input>
  269. </el-form-item>
  270. </el-col>
  271. <el-col :span="4">
  272. <el-form-item :label="'运抵国(地区)'" >
  273. <el-input v-model="declarationData.receiveArea" ></el-input>
  274. </el-form-item>
  275. </el-col>
  276. <el-col :span="4">
  277. <el-form-item :label="'指运港'" >
  278. <el-input v-model="declarationData.shippingPort" ></el-input>
  279. </el-form-item>
  280. </el-col>
  281. <el-col :span="4">
  282. <el-form-item :label="'离境口岸'" >
  283. <el-input v-model="declarationData.exitPort" ></el-input>
  284. </el-form-item>
  285. </el-col>
  286. <el-col :span="4">
  287. <el-form-item :label="'随附单证及编号'" >
  288. <el-input v-model="declarationData.documents" ></el-input>
  289. </el-form-item>
  290. </el-col>
  291. <el-col :span="4">
  292. <el-form-item :label="'标记唛码及备注'" >
  293. <el-input v-model="declarationData.remark" ></el-input>
  294. </el-form-item>
  295. </el-col>
  296. <el-col :span="4">
  297. <el-form-item :label="'包装种类'" >
  298. <el-select v-model="declarationData.packageType" style="width: 100%">
  299. <el-option value="箱" label="箱"></el-option>
  300. <el-option value="托" label="托"></el-option>
  301. </el-select>
  302. </el-form-item>
  303. </el-col>
  304. <el-col :span="4">
  305. <el-form-item :label="'件数'" >
  306. <el-input v-model="declarationData.packageQty" ></el-input>
  307. </el-form-item>
  308. </el-col>
  309. <el-col :span="4">
  310. <el-form-item :label="'毛重(KG)'" >
  311. <el-input v-model="declarationData.grossWeight" ></el-input>
  312. </el-form-item>
  313. </el-col>
  314. <el-col :span="4">
  315. <el-form-item :label="'净重(KG)'" >
  316. <el-input v-model="declarationData.netWeight" ></el-input>
  317. </el-form-item>
  318. </el-col>
  319. <el-col :span="4">
  320. <el-form-item :label="'成交方式'" >
  321. <el-input v-model="declarationData.paymentType" ></el-input>
  322. </el-form-item>
  323. </el-col>
  324. <el-col :span="4">
  325. <el-form-item :label="'运费'" >
  326. <el-input v-model="declarationData.shipPrice" ></el-input>
  327. </el-form-item>
  328. </el-col>
  329. <el-col :span="4">
  330. <el-form-item :label="'保费'" >
  331. <el-input v-model="declarationData.premium" ></el-input>
  332. </el-form-item>
  333. </el-col>
  334. <el-col :span="4">
  335. <el-form-item :label="'杂费'" >
  336. <el-input v-model="declarationData.otherPrice" ></el-input>
  337. </el-form-item>
  338. </el-col>
  339. <el-col :span="4">
  340. <el-form-item :label="'特殊关系确认'" >
  341. <el-select v-model="declarationData.specialRelationshipComfirm" style="width: 100%">
  342. <el-option value="Y" label="是"></el-option>
  343. <el-option value="N" label="否"></el-option>
  344. </el-select>
  345. </el-form-item>
  346. </el-col>
  347. <el-col :span="4">
  348. <el-form-item :label="'价格影响确认'" >
  349. <el-select v-model="declarationData.priceInfluenceConfirm" style="width: 100%">
  350. <el-option value="Y" label="是"></el-option>
  351. <el-option value="N" label="否"></el-option>
  352. </el-select>
  353. </el-form-item>
  354. </el-col>
  355. <el-col :span="4">
  356. <el-form-item :label="'支付特许使用费确认'" >
  357. <el-select v-model="declarationData.royaltyPaymentsConfirm" style="width: 100%">
  358. <el-option value="Y" label="是"></el-option>
  359. <el-option value="N" label="否"></el-option>
  360. </el-select>
  361. </el-form-item>
  362. </el-col>
  363. </el-row>
  364. </el-form>
  365. <div class="rq ">
  366. <el-table
  367. height="250"
  368. :data="detailList"
  369. border
  370. v-loading="dataListLoading"
  371. style="width: 100%;">
  372. <el-table-column
  373. prop="hsCodeDesc"
  374. header-align="center"
  375. align="left"
  376. label="品名"
  377. min-width="120">
  378. </el-table-column>
  379. <el-table-column
  380. prop="hsCode"
  381. header-align="center"
  382. align="left"
  383. label="HS Code"
  384. min-width="80">
  385. </el-table-column>
  386. <el-table-column
  387. prop="qty"
  388. header-align="center"
  389. align="right"
  390. label="数量"
  391. min-width="60">
  392. </el-table-column>
  393. <el-table-column
  394. prop="netWeight"
  395. header-align="center"
  396. align="right"
  397. label="净重"
  398. min-width="60">
  399. </el-table-column>
  400. <el-table-column
  401. prop="unitPrice"
  402. header-align="center"
  403. align="right"
  404. label="单价"
  405. min-width="60">
  406. <!-- <template slot-scope="scope">
  407. <el-input v-model="scope.row.unitPrice" @change="changeToalPrice(scope.row)" type="number" style="height: 11px;width:98%"></el-input>
  408. </template>-->
  409. </el-table-column>
  410. <el-table-column
  411. prop="totalPrice"
  412. header-align="center"
  413. align="right"
  414. label="总价"
  415. min-width="60">
  416. <template slot-scope="scope">
  417. <span >{{scope.row.totalPrice.toFixed(2)}}</span>
  418. </template>
  419. </el-table-column>
  420. <el-table-column
  421. prop="currency"
  422. header-align="center"
  423. align="left"
  424. label="币制"
  425. min-width="60">
  426. <template slot-scope="scope">
  427. <el-input v-model="scope.row.currency" style="height: 11px;width:98%"></el-input>
  428. </template>
  429. </el-table-column>
  430. <el-table-column
  431. prop="madeArea"
  432. header-align="center"
  433. align="left"
  434. label="原产国(地区)"
  435. min-width="80">
  436. <template slot-scope="scope">
  437. <el-input v-model="scope.row.madeArea" style="height: 11px;width:98%"></el-input>
  438. </template>
  439. </el-table-column>
  440. <el-table-column
  441. prop="destination"
  442. header-align="center"
  443. align="left"
  444. label="最终目的国(地区)"
  445. min-width="100">
  446. <template slot-scope="scope">
  447. <el-input v-model="scope.row.destination" style="height: 11px;width:98%"></el-input>
  448. </template>
  449. </el-table-column>
  450. <el-table-column
  451. prop="sourceArea"
  452. header-align="center"
  453. align="left"
  454. label="境内货源地"
  455. min-width="100">
  456. <template slot-scope="scope">
  457. <el-input v-model="scope.row.sourceArea" style="height: 11px;width:98%"></el-input>
  458. </template>
  459. </el-table-column>
  460. <el-table-column
  461. prop="levy"
  462. header-align="center"
  463. align="left"
  464. label="征免"
  465. min-width="60">
  466. <template slot-scope="scope">
  467. <el-input v-model="scope.row.levy" style="height: 11px;width:98%"></el-input>
  468. </template>
  469. </el-table-column>
  470. </el-table>
  471. </div>
  472. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  473. <el-button type="primary" @click="saveDeclaration()">保存</el-button>
  474. <el-button type="primary" @click="declarationFlag=false">关闭</el-button>
  475. </el-footer>
  476. </el-dialog>
  477. </div>
  478. </template>
  479. <script>
  480. import {} from "@/api/sysLanguage.js"
  481. import {
  482. searchEcssCoDelNotifyHeaderForDanZheng,
  483. searchEcssCoDelNotifyDetail,
  484. searchCoDelPalletData,
  485. getDeclarationDefaultData,
  486. saveDeclaration,
  487. }from "@/api/ecss/ecss.js"
  488. import {getBuList}from '@/api/factory/site.js'
  489. export default {
  490. name: "null",
  491. components:{
  492. },
  493. data() {
  494. return {
  495. pageIndex: 1,
  496. pageSize: 100,
  497. totalPage: 0,
  498. height: 200,
  499. buList:[],
  500. dataList:[],
  501. dataList2:[],
  502. dataList3:[],
  503. detailList:[],
  504. dataListLoading: false,
  505. searchData: {
  506. page: 1,
  507. limit: 100,
  508. buNo:'',
  509. delNo:'',
  510. cmcInvoice:'',
  511. notifyStatus:'',
  512. startDate:'',
  513. endDate:'',
  514. username:this.$store.state.user.name,
  515. },
  516. buttons:{
  517. search:'查询',
  518. },
  519. activeName:'detail',
  520. columnList1: [
  521. {
  522. userId: this.$store.state.user.name,
  523. functionId: 801001,
  524. serialNumber: '801001Table1BuDesc',
  525. tableId: "801001Table1",
  526. tableName: "关务系统发货通知单",
  527. columnProp: "buDesc",
  528. headerAlign: "center",
  529. align: "left",
  530. columnLabel: "BU",
  531. columnHidden: false,
  532. columnImage: false,
  533. columnSortable: false,
  534. sortLv: 0,
  535. status: true,
  536. fixed: '',
  537. columnWidth: 60
  538. },
  539. {
  540. userId: this.$store.state.user.name,
  541. functionId: 801001,
  542. serialNumber: '801001Table1CmcInvoice',
  543. tableId: "801001Table1",
  544. tableName: "关务系统发货通知单",
  545. columnProp: "cmcInvoice",
  546. headerAlign: "center",
  547. align: "left",
  548. columnLabel: "CMC Invoice",
  549. columnHidden: false,
  550. columnImage: false,
  551. columnSortable: false,
  552. sortLv: 0,
  553. status: true,
  554. fixed: '',
  555. columnWidth: 100
  556. },
  557. {
  558. userId: this.$store.state.user.name,
  559. functionId: 801001,
  560. serialNumber: '801001Table1DelNo',
  561. tableId: "801001Table1",
  562. tableName: "关务系统发货通知单",
  563. columnProp: "delNo",
  564. headerAlign: "center",
  565. align: "center",
  566. columnLabel: "发货通知单号",
  567. columnHidden: false,
  568. columnImage: false,
  569. columnSortable: false,
  570. sortLv: 0,
  571. status: true,
  572. fixed: '',
  573. columnWidth: 110
  574. },
  575. {
  576. userId: this.$store.state.user.name,
  577. functionId: 801001,
  578. serialNumber: '801001Table1ReadyDate',
  579. tableId: "801001Table1",
  580. tableName: "关务系统发货通知单",
  581. columnProp: "readyDate",
  582. headerAlign: "center",
  583. align: "center",
  584. columnLabel: "ReadyDate",
  585. columnHidden: false,
  586. columnImage: false,
  587. columnSortable: false,
  588. sortLv: 0,
  589. status: true,
  590. fixed: '',
  591. columnWidth: 100
  592. },
  593. {
  594. userId: this.$store.state.user.name,
  595. functionId: 801001,
  596. serialNumber: '801001Table1CustomerName',
  597. tableId: "801001Table1",
  598. tableName: "关务系统发货通知单",
  599. columnProp: "customerName",
  600. headerAlign: "center",
  601. align: "left",
  602. columnLabel: "客户名称",
  603. columnHidden: false,
  604. columnImage: false,
  605. columnSortable: false,
  606. sortLv: 0,
  607. status: true,
  608. fixed: '',
  609. columnWidth: 220
  610. },
  611. {
  612. userId: this.$store.state.user.name,
  613. functionId: 801001,
  614. serialNumber: '801001Table1ShippingMode',
  615. tableId: "801001Table1",
  616. tableName: "关务系统发货通知单",
  617. columnProp: "shippingMode",
  618. headerAlign: "center",
  619. align: "left",
  620. columnLabel: "ShippingMode",
  621. columnHidden: false,
  622. columnImage: false,
  623. columnSortable: false,
  624. sortLv: 0,
  625. status: true,
  626. fixed: '',
  627. columnWidth: 100
  628. },
  629. {
  630. userId: this.$store.state.user.name,
  631. functionId: 801001,
  632. serialNumber: '801001Table1Destination',
  633. tableId: "801001Table1",
  634. tableName: "关务系统发货通知单",
  635. columnProp: "destination",
  636. headerAlign: "center",
  637. align: "left",
  638. columnLabel: "Destination",
  639. columnHidden: false,
  640. columnImage: false,
  641. columnSortable: false,
  642. sortLv: 0,
  643. status: true,
  644. fixed: '',
  645. columnWidth: 100
  646. },
  647. {
  648. userId: this.$store.state.user.name,
  649. functionId: 801001,
  650. serialNumber: '801001Table1NotifyStatus',
  651. tableId: "801001Table1",
  652. tableName: "关务系统发货通知单",
  653. columnProp: "notifyStatus",
  654. headerAlign: "center",
  655. align: "left",
  656. columnLabel: "通知单状态",
  657. columnHidden: false,
  658. columnImage: false,
  659. columnSortable: false,
  660. sortLv: 0,
  661. status: true,
  662. fixed: '',
  663. columnWidth: 100
  664. },
  665. {
  666. userId: this.$store.state.user.name,
  667. functionId: 801001,
  668. serialNumber: '801001Table1NotifyDate',
  669. tableId: "801001Table1",
  670. tableName: "关务系统发货通知单",
  671. columnProp: "notifyDate",
  672. headerAlign: "center",
  673. align: "center",
  674. columnLabel: "发货日期",
  675. columnHidden: false,
  676. columnImage: false,
  677. columnSortable: false,
  678. sortLv: 0,
  679. status: true,
  680. fixed: '',
  681. columnWidth: 120
  682. },
  683. {
  684. userId: this.$store.state.user.name,
  685. functionId: 801001,
  686. serialNumber: '801001Table1ErpDelNo',
  687. tableId: "801001Table1",
  688. tableName: "关务系统发货通知单",
  689. columnProp: "erpDelNo",
  690. headerAlign: "center",
  691. align: "left",
  692. columnLabel: "ERP发货单号",
  693. columnHidden: false,
  694. columnImage: false,
  695. columnSortable: false,
  696. sortLv: 0,
  697. status: true,
  698. fixed: '',
  699. columnWidth: 100
  700. },
  701. {
  702. userId: this.$store.state.user.name,
  703. functionId: 801001,
  704. serialNumber: '801001Table1CreateBy',
  705. tableId: "801001Table1",
  706. tableName: "关务系统发货通知单",
  707. columnProp: "createBy",
  708. headerAlign: "center",
  709. align: "left",
  710. columnLabel: "创建人",
  711. columnHidden: false,
  712. columnImage: false,
  713. columnSortable: false,
  714. sortLv: 0,
  715. status: true,
  716. fixed: '',
  717. columnWidth: 80
  718. },
  719. {
  720. userId: this.$store.state.user.name,
  721. functionId: 801001,
  722. serialNumber: '801001Table1CreateDate',
  723. tableId: "801001Table1",
  724. tableName: "关务系统发货通知单",
  725. columnProp: "createDate",
  726. headerAlign: "center",
  727. align: "center",
  728. columnLabel: "创建时间",
  729. columnHidden: false,
  730. columnImage: false,
  731. columnSortable: false,
  732. sortLv: 0,
  733. status: true,
  734. fixed: '',
  735. columnWidth: 130
  736. },
  737. {
  738. userId: this.$store.state.user.name,
  739. functionId: 801001,
  740. serialNumber: '801001Table1UpdateBy',
  741. tableId: "801001Table1",
  742. tableName: "关务系统发货通知单",
  743. columnProp: "updateBy",
  744. headerAlign: "center",
  745. align: "left",
  746. columnLabel: "修改人",
  747. columnHidden: false,
  748. columnImage: false,
  749. columnSortable: false,
  750. sortLv: 0,
  751. status: true,
  752. fixed: '',
  753. columnWidth: 80
  754. },
  755. {
  756. userId: this.$store.state.user.name,
  757. functionId: 801001,
  758. serialNumber: '801001Table1UpdateDate',
  759. tableId: "801001Table1",
  760. tableName: "关务系统发货通知单",
  761. columnProp: "updateDate",
  762. headerAlign: "center",
  763. align: "center",
  764. columnLabel: "修改时间",
  765. columnHidden: false,
  766. columnImage: false,
  767. columnSortable: false,
  768. sortLv: 0,
  769. status: true,
  770. fixed: '',
  771. columnWidth: 130
  772. },
  773. {
  774. userId: this.$store.state.user.name,
  775. functionId: 801001,
  776. serialNumber: '801001Table1Remark',
  777. tableId: "801001Table1",
  778. tableName: "关务系统发货通知单",
  779. columnProp: "remark",
  780. headerAlign: "center",
  781. align: "left",
  782. columnLabel: "Remark",
  783. columnHidden: false,
  784. columnImage: false,
  785. columnSortable: false,
  786. sortLv: 0,
  787. status: true,
  788. fixed: '',
  789. columnWidth: 300
  790. },
  791. ],
  792. columnList2: [
  793. {
  794. userId: this.$store.state.user.name,
  795. functionId: 801001,
  796. serialNumber: '801001Table2ItemNo',
  797. tableId: "801001Table2",
  798. tableName: "关务系统发货通知单明细",
  799. columnProp: "itemNo",
  800. headerAlign: "center",
  801. align: "left",
  802. columnLabel: "行号",
  803. columnHidden: false,
  804. columnImage: false,
  805. columnSortable: false,
  806. sortLv: 0,
  807. status: true,
  808. fixed: '',
  809. columnWidth: 80
  810. },
  811. {
  812. userId: this.$store.state.user.name,
  813. functionId: 801001,
  814. serialNumber: '801001Table2PartNo',
  815. tableId: "801001Table2",
  816. tableName: "关务系统发货通知单明细",
  817. columnProp: "pn",
  818. headerAlign: "center",
  819. align: "left",
  820. columnLabel: "PN",
  821. columnHidden: false,
  822. columnImage: false,
  823. columnSortable: false,
  824. sortLv: 0,
  825. status: true,
  826. fixed: '',
  827. columnWidth: 100
  828. },
  829. {
  830. userId: this.$store.state.user.name,
  831. functionId: 801001,
  832. serialNumber: '801001Table2PartDescription',
  833. tableId: "801001Table2",
  834. tableName: "关务系统发货通知单明细",
  835. columnProp: "partDescription",
  836. headerAlign: "center",
  837. align: "left",
  838. columnLabel: "Description",
  839. columnHidden: false,
  840. columnImage: false,
  841. columnSortable: false,
  842. sortLv: 0,
  843. status: true,
  844. fixed: '',
  845. columnWidth: 300
  846. },
  847. {
  848. userId: this.$store.state.user.name,
  849. functionId: 801001,
  850. serialNumber: '801001Table2Qty',
  851. tableId: "801001Table2",
  852. tableName: "关务系统发货通知单明细",
  853. columnProp: "qty",
  854. headerAlign: "center",
  855. align: "right",
  856. columnLabel: "Qty (pcs)",
  857. columnHidden: false,
  858. columnImage: false,
  859. columnSortable: false,
  860. sortLv: 0,
  861. status: true,
  862. fixed: '',
  863. columnWidth: 100
  864. },
  865. {
  866. userId: this.$store.state.user.name,
  867. functionId: 801001,
  868. serialNumber: '801001Table2SalesOrder',
  869. tableId: "801001Table2",
  870. tableName: "关务系统发货通知单明细",
  871. columnProp: "salesOrder",
  872. headerAlign: "center",
  873. align: "left",
  874. columnLabel: "销售订单号",
  875. columnHidden: false,
  876. columnImage: false,
  877. columnSortable: false,
  878. sortLv: 0,
  879. status: true,
  880. fixed: '',
  881. columnWidth: 100
  882. },
  883. {
  884. userId: this.$store.state.user.name,
  885. functionId: 801001,
  886. serialNumber: '801001Table2CustomerPO',
  887. tableId: "801001Table2",
  888. tableName: "关务系统发货通知单明细",
  889. columnProp: "customerPO",
  890. headerAlign: "center",
  891. align: "left",
  892. columnLabel: "客户采购单号",
  893. columnHidden: false,
  894. columnImage: false,
  895. columnSortable: false,
  896. sortLv: 0,
  897. status: true,
  898. fixed: '',
  899. columnWidth: 100
  900. },
  901. {
  902. userId: this.$store.state.user.name,
  903. functionId: 801001,
  904. serialNumber: '801001Table2Version',
  905. tableId: "801001Table2",
  906. tableName: "关务系统发货通知单明细",
  907. columnProp: "version",
  908. headerAlign: "center",
  909. align: "left",
  910. columnLabel: "Version",
  911. columnHidden: false,
  912. columnImage: false,
  913. columnSortable: false,
  914. sortLv: 0,
  915. status: true,
  916. fixed: '',
  917. columnWidth: 100
  918. },
  919. {
  920. userId: this.$store.state.user.name,
  921. functionId: 801001,
  922. serialNumber: '801001Table2Status',
  923. tableId: "801001Table2",
  924. tableName: "关务系统发货通知单明细",
  925. columnProp: "status",
  926. headerAlign: "center",
  927. align: "left",
  928. columnLabel: "Status",
  929. columnHidden: false,
  930. columnImage: false,
  931. columnSortable: false,
  932. sortLv: 0,
  933. status: true,
  934. fixed: '',
  935. columnWidth: 100
  936. },
  937. {
  938. userId: this.$store.state.user.name,
  939. functionId: 801001,
  940. serialNumber: '801001Table2Family',
  941. tableId: "801001Table2",
  942. tableName: "关务系统发货通知单明细",
  943. columnProp: "family",
  944. headerAlign: "center",
  945. align: "left",
  946. columnLabel: "Family",
  947. columnHidden: false,
  948. columnImage: false,
  949. columnSortable: false,
  950. sortLv: 0,
  951. status: true,
  952. fixed: '',
  953. columnWidth: 100
  954. },
  955. {
  956. userId: this.$store.state.user.name,
  957. functionId: 801001,
  958. serialNumber: '801001Table2Lt',
  959. tableId: "801001Table2",
  960. tableName: "关务系统发货通知单明细",
  961. columnProp: "lt",
  962. headerAlign: "center",
  963. align: "right",
  964. columnLabel: "LT (wks)",
  965. columnHidden: false,
  966. columnImage: false,
  967. columnSortable: false,
  968. sortLv: 0,
  969. status: true,
  970. fixed: '',
  971. columnWidth: 100
  972. },
  973. {
  974. userId: this.$store.state.user.name,
  975. functionId: 801001,
  976. serialNumber: '801001Table2CmcComment',
  977. tableId: "801001Table2",
  978. tableName: "关务系统发货通知单明细",
  979. columnProp: "cmcComment",
  980. headerAlign: "center",
  981. align: "left",
  982. columnLabel: "CMC Comment",
  983. columnHidden: false,
  984. columnImage: false,
  985. columnSortable: false,
  986. sortLv: 0,
  987. status: true,
  988. fixed: '',
  989. columnWidth: 100
  990. },
  991. {
  992. userId: this.$store.state.user.name,
  993. functionId: 801001,
  994. serialNumber: '801001Table2SaleType',
  995. tableId: "801001Table2",
  996. tableName: "关务系统发货通知单明细",
  997. columnProp: "saleType",
  998. headerAlign: "center",
  999. align: "left",
  1000. columnLabel: "内外销方式",
  1001. columnHidden: false,
  1002. columnImage: false,
  1003. columnSortable: false,
  1004. sortLv: 0,
  1005. status: true,
  1006. fixed: '',
  1007. columnWidth: 100
  1008. },
  1009. {
  1010. userId: this.$store.state.user.name,
  1011. functionId: 801001,
  1012. serialNumber: '801001Table2AwbBl',
  1013. tableId: "801001Table2",
  1014. tableName: "关务系统发货通知单明细",
  1015. columnProp: "awbBl",
  1016. headerAlign: "center",
  1017. align: "left",
  1018. columnLabel: "AWB/ BL#",
  1019. columnHidden: false,
  1020. columnImage: false,
  1021. columnSortable: false,
  1022. sortLv: 0,
  1023. status: true,
  1024. fixed: '',
  1025. columnWidth: 100
  1026. },
  1027. {
  1028. userId: this.$store.state.user.name,
  1029. functionId: 801001,
  1030. serialNumber: '801001Table2ShippingNumber',
  1031. tableId: "801001Table2",
  1032. tableName: "关务系统发货通知单明细",
  1033. columnProp: "shippingNumber",
  1034. headerAlign: "center",
  1035. align: "left",
  1036. columnLabel: "ShippingNumber",
  1037. columnHidden: false,
  1038. columnImage: false,
  1039. columnSortable: false,
  1040. sortLv: 0,
  1041. status: true,
  1042. fixed: '',
  1043. columnWidth: 120
  1044. },
  1045. {
  1046. userId: this.$store.state.user.name,
  1047. functionId: 801001,
  1048. serialNumber: '801001Table2ForwarderInfo',
  1049. tableId: "801001Table2",
  1050. tableName: "关务系统发货通知单明细",
  1051. columnProp: "forwarderInfo",
  1052. headerAlign: "center",
  1053. align: "left",
  1054. columnLabel: "Forwarder Info",
  1055. columnHidden: false,
  1056. columnImage: false,
  1057. columnSortable: false,
  1058. sortLv: 0,
  1059. status: true,
  1060. fixed: '',
  1061. columnWidth: 100
  1062. },
  1063. {
  1064. userId: this.$store.state.user.name,
  1065. functionId: 801001,
  1066. serialNumber: '801001Table2Currency',
  1067. tableId: "801001Table2",
  1068. tableName: "关务系统发货通知单明细",
  1069. columnProp: "currency",
  1070. headerAlign: "center",
  1071. align: "left",
  1072. columnLabel: "Currency",
  1073. columnHidden: false,
  1074. columnImage: false,
  1075. columnSortable: false,
  1076. sortLv: 0,
  1077. status: true,
  1078. fixed: '',
  1079. columnWidth: 100
  1080. },
  1081. {
  1082. userId: this.$store.state.user.name,
  1083. functionId: 801001,
  1084. serialNumber: '801001Table2Tp',
  1085. tableId: "801001Table2",
  1086. tableName: "关务系统发货通知单明细",
  1087. columnProp: "tp",
  1088. headerAlign: "center",
  1089. align: "right",
  1090. columnLabel: "TP",
  1091. columnHidden: false,
  1092. columnImage: false,
  1093. columnSortable: false,
  1094. sortLv: 0,
  1095. status: true,
  1096. fixed: '',
  1097. columnWidth: 80
  1098. },
  1099. {
  1100. userId: this.$store.state.user.name,
  1101. functionId: 801001,
  1102. serialNumber: '801001Table2TtlAmount',
  1103. tableId: "801001Table2",
  1104. tableName: "关务系统发货通知单明细",
  1105. columnProp: "ttlAmount",
  1106. headerAlign: "center",
  1107. align: "right",
  1108. columnLabel: "TTL Amount",
  1109. columnHidden: false,
  1110. columnImage: false,
  1111. columnSortable: false,
  1112. sortLv: 0,
  1113. status: true,
  1114. fixed: '',
  1115. columnWidth: 80
  1116. },
  1117. {
  1118. userId: this.$store.state.user.name,
  1119. functionId: 801001,
  1120. serialNumber: '801001Table2SumPrice',
  1121. tableId: "801001Table2",
  1122. tableName: "关务系统发货通知单明细",
  1123. columnProp: "sumPrice",
  1124. headerAlign: "center",
  1125. align: "right",
  1126. columnLabel: "价税合计",
  1127. columnHidden: false,
  1128. columnImage: false,
  1129. columnSortable: false,
  1130. sortLv: 0,
  1131. status: true,
  1132. fixed: '',
  1133. columnWidth: 80
  1134. },
  1135. {
  1136. userId: this.$store.state.user.name,
  1137. functionId: 801001,
  1138. serialNumber: '801001Table2So',
  1139. tableId: "801001Table2",
  1140. tableName: "关务系统发货通知单明细",
  1141. columnProp: "so",
  1142. headerAlign: "center",
  1143. align: "left",
  1144. columnLabel: "SO",
  1145. columnHidden: false,
  1146. columnImage: false,
  1147. columnSortable: false,
  1148. sortLv: 0,
  1149. status: true,
  1150. fixed: '',
  1151. columnWidth: 100
  1152. },
  1153. {
  1154. userId: this.$store.state.user.name,
  1155. functionId: 801001,
  1156. serialNumber: '801001Table2Upc',
  1157. tableId: "801001Table2",
  1158. tableName: "关务系统发货通知单明细",
  1159. columnProp: "upc",
  1160. headerAlign: "center",
  1161. align: "left",
  1162. columnLabel: "UPC",
  1163. columnHidden: false,
  1164. columnImage: false,
  1165. columnSortable: false,
  1166. sortLv: 0,
  1167. status: true,
  1168. fixed: '',
  1169. columnWidth: 100
  1170. },
  1171. // {
  1172. // userId: this.$store.state.user.name,
  1173. // functionId: 801001,
  1174. // serialNumber: '801001Table2ErpDelItemNo',
  1175. // tableId: "801001Table2",
  1176. // tableName: "关务系统发货通知单明细",
  1177. // columnProp: "erpDelItemNo",
  1178. // headerAlign: "center",
  1179. // align: "right",
  1180. // columnLabel: "ERP发货单行号",
  1181. // columnHidden: false,
  1182. // columnImage: false,
  1183. // columnSortable: false,
  1184. // sortLv: 0,
  1185. // status: true,
  1186. // fixed: '',
  1187. // columnWidth: 60
  1188. // },
  1189. {
  1190. userId: this.$store.state.user.name,
  1191. functionId: 801001,
  1192. serialNumber: '801001Table2Remark',
  1193. tableId: "801001Table2",
  1194. tableName: "关务系统发货通知单明细",
  1195. columnProp: "remark",
  1196. headerAlign: "center",
  1197. align: "left",
  1198. columnLabel: "Remark",
  1199. columnHidden: false,
  1200. columnImage: false,
  1201. columnSortable: false,
  1202. sortLv: 0,
  1203. status: true,
  1204. fixed: '',
  1205. columnWidth: 300
  1206. },
  1207. ],
  1208. columnList3:[
  1209. {
  1210. userId: this.$store.state.user.name,
  1211. functionId: 801001,
  1212. serialNumber: '801001Table3ItemNo',
  1213. tableId: "801001Table3",
  1214. tableName: "装箱明细",
  1215. columnProp: "itemNo",
  1216. headerAlign: "center",
  1217. align: "right",
  1218. columnLabel: "序号",
  1219. columnHidden: false,
  1220. columnImage: false,
  1221. columnSortable: false,
  1222. sortLv: 0,
  1223. status: true,
  1224. fixed: '',
  1225. columnWidth: 40
  1226. },
  1227. {
  1228. userId: this.$store.state.user.name,
  1229. functionId: 801001,
  1230. serialNumber: '801001Table3PalletRemark',
  1231. tableId: "801001Table3",
  1232. tableName: "装箱明细",
  1233. columnProp: "palletRemark",
  1234. headerAlign: "center",
  1235. align: "left",
  1236. columnLabel: "栈板码",
  1237. columnHidden: false,
  1238. columnImage: false,
  1239. columnSortable: false,
  1240. sortLv: 0,
  1241. status: true,
  1242. fixed: '',
  1243. columnWidth: 100
  1244. },
  1245. {
  1246. userId: this.$store.state.user.name,
  1247. functionId: 801001,
  1248. serialNumber: '801001Table3PalletQty',
  1249. tableId: "801001Table3",
  1250. tableName: "装箱明细",
  1251. columnProp: "palletQty",
  1252. headerAlign: "center",
  1253. align: "right",
  1254. columnLabel: "托数",
  1255. columnHidden: false,
  1256. columnImage: false,
  1257. columnSortable: false,
  1258. sortLv: 0,
  1259. status: true,
  1260. fixed: '',
  1261. columnWidth: 40
  1262. },
  1263. {
  1264. userId: this.$store.state.user.name,
  1265. functionId: 801001,
  1266. serialNumber: '801001Table3PoNo',
  1267. tableId: "801001Table3",
  1268. tableName: "装箱明细",
  1269. columnProp: "poNo",
  1270. headerAlign: "center",
  1271. align: "left",
  1272. columnLabel: "PO",
  1273. columnHidden: false,
  1274. columnImage: false,
  1275. columnSortable: false,
  1276. sortLv: 0,
  1277. status: true,
  1278. fixed: '',
  1279. columnWidth: 100
  1280. },
  1281. {
  1282. userId: this.$store.state.user.name,
  1283. functionId: 801001,
  1284. serialNumber: '801001Table3PN',
  1285. tableId: "801001Table3",
  1286. tableName: "装箱明细",
  1287. columnProp: "pn",
  1288. headerAlign: "center",
  1289. align: "left",
  1290. columnLabel: "PN",
  1291. columnHidden: false,
  1292. columnImage: false,
  1293. columnSortable: false,
  1294. sortLv: 0,
  1295. status: true,
  1296. fixed: '',
  1297. columnWidth: 100
  1298. },
  1299. {
  1300. userId: this.$store.state.user.name,
  1301. functionId: 801001,
  1302. serialNumber: '801001Table3Qty',
  1303. tableId: "801001Table3",
  1304. tableName: "装箱明细",
  1305. columnProp: "qty",
  1306. headerAlign: "center",
  1307. align: "right",
  1308. columnLabel: "数量",
  1309. columnHidden: false,
  1310. columnImage: false,
  1311. columnSortable: false,
  1312. sortLv: 0,
  1313. status: true,
  1314. fixed: '',
  1315. columnWidth: 50
  1316. },
  1317. {
  1318. userId: this.$store.state.user.name,
  1319. functionId: 801001,
  1320. serialNumber: '801001Table3BoxQty',
  1321. tableId: "801001Table3",
  1322. tableName: "装箱明细",
  1323. columnProp: "boxQty",
  1324. headerAlign: "center",
  1325. align: "right",
  1326. columnLabel: "箱数",
  1327. columnHidden: false,
  1328. columnImage: false,
  1329. columnSortable: false,
  1330. sortLv: 0,
  1331. status: true,
  1332. fixed: '',
  1333. columnWidth: 60
  1334. },
  1335. {
  1336. userId: this.$store.state.user.name,
  1337. functionId: 801001,
  1338. serialNumber: '801001Table3Rolls',
  1339. tableId: "801001Table3",
  1340. tableName: "装箱明细",
  1341. columnProp: "rolls",
  1342. headerAlign: "center",
  1343. align: "right",
  1344. columnLabel: "Rolls",
  1345. columnHidden: false,
  1346. columnImage: false,
  1347. columnSortable: false,
  1348. sortLv: 0,
  1349. status: true,
  1350. fixed: '',
  1351. columnWidth: 50
  1352. },
  1353. {
  1354. userId: this.$store.state.user.name,
  1355. functionId: 801001,
  1356. serialNumber: '801001Table3Length',
  1357. tableId: "801001Table3",
  1358. tableName: "装箱明细",
  1359. columnProp: "length",
  1360. headerAlign: "center",
  1361. align: "right",
  1362. columnLabel: "长(M)",
  1363. columnHidden: false,
  1364. columnImage: false,
  1365. columnSortable: false,
  1366. sortLv: 0,
  1367. status: true,
  1368. fixed: '',
  1369. columnWidth: 50
  1370. },
  1371. {
  1372. userId: this.$store.state.user.name,
  1373. functionId: 801001,
  1374. serialNumber: '801001Table3Width',
  1375. tableId: "801001Table3",
  1376. tableName: "装箱明细",
  1377. columnProp: "width",
  1378. headerAlign: "center",
  1379. align: "right",
  1380. columnLabel: "宽(M)",
  1381. columnHidden: false,
  1382. columnImage: false,
  1383. columnSortable: false,
  1384. sortLv: 0,
  1385. status: true,
  1386. fixed: '',
  1387. columnWidth: 50
  1388. },
  1389. {
  1390. userId: this.$store.state.user.name,
  1391. functionId: 801001,
  1392. serialNumber: '801001Table3Height',
  1393. tableId: "801001Table3",
  1394. tableName: "装箱明细",
  1395. columnProp: "height",
  1396. headerAlign: "center",
  1397. align: "right",
  1398. columnLabel: "高(M)",
  1399. columnHidden: false,
  1400. columnImage: false,
  1401. columnSortable: false,
  1402. sortLv: 0,
  1403. status: true,
  1404. fixed: '',
  1405. columnWidth: 50
  1406. },
  1407. {
  1408. userId: this.$store.state.user.name,
  1409. functionId: 801001,
  1410. serialNumber: '801001Table3Volume',
  1411. tableId: "801001Table3",
  1412. tableName: "装箱明细",
  1413. columnProp: "volume",
  1414. headerAlign: "center",
  1415. align: "right",
  1416. columnLabel: "体积",
  1417. columnHidden: false,
  1418. columnImage: false,
  1419. columnSortable: false,
  1420. sortLv: 0,
  1421. status: true,
  1422. fixed: '',
  1423. columnWidth: 50
  1424. },
  1425. {
  1426. userId: this.$store.state.user.name,
  1427. functionId: 801001,
  1428. serialNumber: '801001TableGrossWeight',
  1429. tableId: "801001Table3",
  1430. tableName: "装箱明细",
  1431. columnProp: "grossWeight",
  1432. headerAlign: "center",
  1433. align: "right",
  1434. columnLabel: "毛重",
  1435. columnHidden: false,
  1436. columnImage: false,
  1437. columnSortable: false,
  1438. sortLv: 0,
  1439. status: true,
  1440. fixed: '',
  1441. columnWidth: 50
  1442. },
  1443. {
  1444. userId: this.$store.state.user.name,
  1445. functionId: 801001,
  1446. serialNumber: '801001TableNetWeight',
  1447. tableId: "801001Table3",
  1448. tableName: "装箱明细",
  1449. columnProp: "netWeight",
  1450. headerAlign: "center",
  1451. align: "right",
  1452. columnLabel: "净重",
  1453. columnHidden: false,
  1454. columnImage: false,
  1455. columnSortable: false,
  1456. sortLv: 0,
  1457. status: true,
  1458. fixed: '',
  1459. columnWidth: 50
  1460. },
  1461. ],
  1462. currentRow:{},
  1463. // 导出 start
  1464. exportData: [],
  1465. exportName: '发货通知单'+this.dayjs().format('YYYYMMDDHHmmss'),
  1466. exportHeader: ["发货通知单"],
  1467. exportFooter: [],
  1468. // 导出 end
  1469. declarationFlag:false,
  1470. customerData:{},
  1471. customerMap:new Map,
  1472. customerAddData:{},
  1473. declarationData:{
  1474. site:'',
  1475. customsOfficeCode:'',
  1476. inputCode:'',
  1477. localShipper:'',
  1478. localShipAddress:'',
  1479. shipType:'',
  1480. shipDate:'',
  1481. submitDate:'',
  1482. filingNo:'',
  1483. overseasShipper:'',
  1484. overseasAddress :'',
  1485. shippingMode:'',
  1486. shippingData:'',
  1487. deliverNo:'',
  1488. salesPartner:'',
  1489. regulatoryMethod:'',
  1490. dutyStatus:'',
  1491. permitNumber:'',
  1492. cmcInvoice:'',
  1493. salesArea:'',
  1494. receiveArea:'',
  1495. shippingPort:'',
  1496. exitPort:'',
  1497. documents:'',
  1498. remark:'',
  1499. packageType:'',
  1500. packageQty:'',
  1501. grossWeight:'',
  1502. netWeight:'',
  1503. paymentType:'',
  1504. shipPrice:'',
  1505. premium:'',
  1506. otherPrice:'',
  1507. specialRelationshipComfirm:'',
  1508. priceInfluenceConfirm:'',
  1509. royaltyPaymentsConfirm:'',
  1510. delNo:'',
  1511. },
  1512. }
  1513. },
  1514. mounted() {
  1515. this.$nextTick(() => {
  1516. this.height = (window.innerHeight - 240)/2;
  1517. })
  1518. },
  1519. methods: {
  1520. // 每页数
  1521. sizeChangeHandle (val) {
  1522. this.pageSize = val
  1523. this.pageIndex = 1
  1524. this.searchTable()
  1525. },
  1526. // 当前页
  1527. currentChangeHandle (val) {
  1528. this.pageIndex = val
  1529. this.searchTable()
  1530. },
  1531. searchTable(){
  1532. this.searchData.limit = this.pageSize
  1533. this.searchData.page = this.pageIndex
  1534. searchEcssCoDelNotifyHeaderForDanZheng(this.searchData).then(({data}) => {
  1535. //区分请求成功和失败的状况
  1536. if (data && data.code == 0) {
  1537. this.dataList = data.page.list
  1538. this.pageIndex = data.page.currPage
  1539. this.pageSize = data.page.pageSize
  1540. this.totalPage = data.page.totalCount
  1541. if(this.dataList.length>0){
  1542. this.$refs.mainTable.setCurrentRow(this.dataList[0]);
  1543. this.changeData(this.dataList[0])
  1544. this.dataList.forEach(o => {
  1545. if (o.notifyStatus==='仓库已确认'&&!o.notifyDate) {
  1546. o.notifyDate='发货日期不确定'
  1547. }
  1548. });
  1549. }else {
  1550. this.changeData(null)
  1551. }
  1552. } else {
  1553. this.dataList = [];
  1554. }
  1555. });
  1556. },
  1557. cellStyle({row, column }) {
  1558. if (column.property === 'notifyDate' && row.notifyDate==='发货日期不确定') { // 根据列属性判断
  1559. return { color: '#ff5d03' };
  1560. }
  1561. return {};
  1562. },
  1563. changeData(row){
  1564. this.currentRow = JSON.parse(JSON.stringify(row));
  1565. if (this.currentRow.notifyDate==='发货日期不确定') {
  1566. this.currentRow.notifyDate=''
  1567. }
  1568. this.headerData=row;
  1569. this.refreshCurrentTabTable ();
  1570. },
  1571. refreshCurrentTabTable(){
  1572. if(this.currentRow===''||this.currentRow===null){
  1573. this.currentRow={site:'',delNo:''}
  1574. }
  1575. if(this.activeName==='detail'){
  1576. searchEcssCoDelNotifyDetail(this.currentRow).then(({data}) => {
  1577. //区分请求成功和失败的状况
  1578. if (data && data.code == 0) {
  1579. this.dataList2 = data.rows
  1580. } else {
  1581. this.dataList2 = [];
  1582. }
  1583. });
  1584. }
  1585. if(this.activeName==='pallet'){
  1586. searchCoDelPalletData(this.currentRow).then(({data}) => {
  1587. //区分请求成功和失败的状况
  1588. if (data && data.code == 0) {
  1589. this.dataList3 = data.rows
  1590. } else {
  1591. this.dataList3 = [];
  1592. }
  1593. });
  1594. }
  1595. },
  1596. tabClick (tab, event) {
  1597. // 刷新列表数据
  1598. this.refreshCurrentTabTable()
  1599. },
  1600. getBu () {
  1601. let tempData = {
  1602. username: this.$store.state.user.name,
  1603. }
  1604. getBuList(tempData).then(({data}) => {
  1605. if (data.code === 0) {
  1606. this.buList = data.row2
  1607. if (this.buList.length===1) {
  1608. this.searchData.buNo = this.buList[0].buNo;
  1609. }
  1610. }
  1611. })
  1612. },
  1613. changeToalPrice(row){
  1614. row.totalPrice=row.unitPrice*row.qty
  1615. },
  1616. declarationModel(row){
  1617. let indata=JSON.parse(JSON.stringify(row));
  1618. if (row.notifyDate==='发货日期不确定') {
  1619. indata.notifyDate=''
  1620. }
  1621. getDeclarationDefaultData(indata).then(({data}) => {
  1622. //区分请求成功和失败的状况
  1623. if (data && data.code === 0) {
  1624. this.declarationData=data.row
  1625. this.detailList=data.rows
  1626. /* this.customerData=data.customers
  1627. this.customerAddData = data.customerAdd
  1628. if (data.customerAdd && data.customerAdd.length > 0 && data.customers && data.customers.length > 0) {
  1629. this.declarationData.overseasAddress = this.declarationData.overseasAddress?this.declarationData.overseasAddress:data.customerAdd[0].cDeliverAdd
  1630. this.declarationData.overseasShipper = this.declarationData.overseasShipper?this.declarationData.overseasShipper:data.customers[0].ccontactname
  1631. } */
  1632. this.declarationFlag=true
  1633. /* this.customerData.forEach(o => {
  1634. if (!this.customerMap.has(o.ccontactname)) {
  1635. this.customerMap.set(o.ccontactname, o.cnative);
  1636. }
  1637. }); */
  1638. } else {
  1639. this.$alert(data.msg, '错误', {
  1640. confirmButtonText: '确定'
  1641. })
  1642. }
  1643. });
  1644. },
  1645. /* setDestination(){
  1646. this.detailList.forEach(o => o.destination=this.customerMap.get(this.declarationData.overseasShipper))
  1647. this.declarationData.receiveArea=this.customerMap.get(this.declarationData.overseasShipper)
  1648. this.declarationData.salesArea=this.customerMap.get(this.declarationData.overseasShipper)
  1649. }, */
  1650. saveDeclaration(){
  1651. if(this.detailList==null|| this.detailList.length<1){
  1652. this.$alert('不存在明细记录!', '错误', {
  1653. confirmButtonText: '确定'
  1654. })
  1655. return false
  1656. }
  1657. for (let i = 0; i <this.detailList.length ; i++) {
  1658. if(this.detailList[i].unitPrice==null||this.detailList[i].unitPrice==""||this.detailList[i].unitPrice<=0){
  1659. this.$alert('请输入正确的单价!', '错误', {
  1660. confirmButtonText: '确定'
  1661. })
  1662. return false
  1663. }
  1664. }
  1665. this.declarationData.detailList=this.detailList
  1666. saveDeclaration(this.declarationData).then(({data}) => {
  1667. //区分请求成功和失败的状况
  1668. if (data && data.code === 0) {
  1669. this.declarationFlag=false
  1670. this.searchTable()
  1671. } else {
  1672. this.$alert(data.msg, '错误', {
  1673. confirmButtonText: '确定'
  1674. })
  1675. }
  1676. });
  1677. },
  1678. //导出excel
  1679. async createExportData() {
  1680. this.searchData.limit = -1
  1681. this.searchData.page = 1
  1682. await searchEcssCoDelNotifyHeaderForDanZheng(this.searchData).then(({data}) => {
  1683. this.exportList= data.page.list;
  1684. })
  1685. return this.exportList;
  1686. },
  1687. startDownload() {
  1688. // this.exportData = this.dataList
  1689. },
  1690. finishDownload() {
  1691. },
  1692. fields() {
  1693. let json = "{"
  1694. this.columnList1.forEach((item, index) => {
  1695. if (index == this.columnList1.length - 1) {
  1696. json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
  1697. } else {
  1698. json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
  1699. }
  1700. })
  1701. json += "}"
  1702. let s = eval("(" + json + ")")
  1703. return s
  1704. },
  1705. },
  1706. activated() {
  1707. this.searchTable()
  1708. },
  1709. created() {
  1710. this.getBu ()
  1711. }
  1712. }
  1713. </script>
  1714. <style scoped>
  1715. </style>