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.

1410 lines
46 KiB

11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 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="'通知单状态:'">
  22. <el-select filterable v-model="searchData.notifyStatus" style="width: 120px">
  23. <el-option label="全部" value=""></el-option>
  24. <el-option label="已计划" value="已计划"></el-option>
  25. <el-option label="已下达" value="已下达"></el-option>
  26. <el-option label="仓库已确认" value="仓库已确认"></el-option>
  27. </el-select>
  28. </el-form-item>
  29. <el-form-item :label="'ReadyDate'" >
  30. <el-date-picker
  31. style="width: 120px"
  32. v-model="searchData.startDate"
  33. type="date"
  34. format="yyyy-MM-dd"
  35. value-format="yyyy-MM-dd"
  36. placeholder="选择日期">
  37. </el-date-picker>
  38. </el-form-item>
  39. <el-form-item :label="'to'" >
  40. <el-date-picker
  41. style="width: 120px"
  42. v-model="searchData.endDate"
  43. type="date"
  44. format="yyyy-MM-dd"
  45. value-format="yyyy-MM-dd"
  46. placeholder="选择日期">
  47. </el-date-picker>
  48. </el-form-item>
  49. <el-form-item :label="' '" >
  50. <el-button @click="searchTable()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'查询'}}</el-button>
  51. <el-button @click="importModel()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'导入'}}</el-button>
  52. <download-excel
  53. :fields="fields()"
  54. :data="exportData"
  55. type="xls"
  56. :name="exportName"
  57. :header="exportHeader"
  58. :footer="exportFooter"
  59. :fetch="createExportData"
  60. :before-generate="startDownload"
  61. :before-finish="finishDownload"
  62. worksheet="导出信息"
  63. class="el-button el-button--primary el-button--medium">
  64. {{ '导出' }}
  65. </download-excel>
  66. </el-form-item>
  67. </el-form>
  68. <el-table
  69. @row-click="changeData"
  70. highlight-current-row
  71. :height="height"
  72. :data="dataList"
  73. ref="mainTable"
  74. border
  75. v-loading="dataListLoading"
  76. style="width: 100%;">
  77. <el-table-column
  78. header-align="center"
  79. align="center"
  80. width="150"
  81. fixed="left"
  82. label="操作">
  83. <template slot-scope="scope">
  84. <a type="text" size="small" v-if="scope.row.notifyStatus==='已计划'" @click="updateHeaderModelDo(scope.row)">修改</a>
  85. <a type="text" size="small" v-if="scope.row.notifyStatus==='已计划'" @click="xiadaEcssDel(scope.row)">下达</a>
  86. <a type="text" size="small" v-if="scope.row.notifyStatus==='已下达'" @click="jihuaEcssDel(scope.row)">取消下达</a>
  87. <a type="text" size="small" v-if="scope.row.notifyStatus==='已计划'" @click="deleteDelHeader(scope.row)">删除</a>
  88. </template>
  89. </el-table-column>
  90. <el-table-column
  91. v-for="(item,index) in columnList1" :key="index"
  92. :sortable="item.columnSortable"
  93. :prop="item.columnProp"
  94. :header-align="item.headerAlign"
  95. :show-overflow-tooltip="item.showOverflowTooltip"
  96. :align="item.align"
  97. :fixed="item.fixed==''?false:item.fixed"
  98. :min-width="item.columnWidth"
  99. :label="item.columnLabel">
  100. <template slot-scope="scope">
  101. <span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
  102. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  103. style="width: 100px; height: 80px"/></span>
  104. </template>
  105. </el-table-column>
  106. </el-table>
  107. <el-pagination
  108. @size-change="sizeChangeHandle"
  109. @current-change="currentChangeHandle"
  110. :current-page="pageIndex"
  111. :page-sizes="[20, 50, 100, 1000]"
  112. :page-size="pageSize"
  113. :total="totalPage"
  114. layout="total, sizes, prev, pager, next, jumper">
  115. </el-pagination>
  116. <el-tabs style="font-size: 12px;min-height: 200px" class="customer-tab" v-model="activeName" type="border-card" @tab-click="tabClick" >
  117. <el-tab-pane label="明细" name="detail">
  118. <el-table
  119. :height="height"
  120. :data="dataList2"
  121. border
  122. style="width: 100%;">
  123. <el-table-column
  124. v-for="(item,index) in columnList2" :key="index"
  125. :sortable="item.columnSortable"
  126. :prop="item.columnProp"
  127. :header-align="item.headerAlign"
  128. :show-overflow-tooltip="item.showOverflowTooltip"
  129. :align="item.align"
  130. :fixed="item.fixed==''?false:item.fixed"
  131. :min-width="item.columnWidth"
  132. :label="item.columnLabel">
  133. <template slot-scope="scope">
  134. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  135. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  136. </template>
  137. </el-table-column>
  138. <el-table-column
  139. fixed="left"
  140. header-align="center"
  141. align="center"
  142. width="100"
  143. label="操作">
  144. <template slot-scope="scope">
  145. <a v-if="currentRow.notifyStatus==='已计划'" type="text" size="small" @click="openUpdateDetailModel(scope.row)">修改</a>
  146. <a v-if="currentRow.notifyStatus==='已计划'" type="text" size="small" @click="deleteDelDetail(scope.row)">删除</a>
  147. </template>
  148. </el-table-column>
  149. </el-table>
  150. </el-tab-pane>
  151. </el-tabs>
  152. <el-dialog title="编辑发货通知单" :close-on-click-modal="false" v-drag :visible.sync="updateHeaderModelFlag" width="750px">
  153. <el-form label-position="top" style="margin-left: 7px;margin-top: -5px;">
  154. <el-row :gutter="20">
  155. <el-col :span="6">
  156. <el-form-item :label="'BU'" >
  157. <el-input v-model="updateHeaderModel.buDesc" disabled ></el-input>
  158. </el-form-item>
  159. </el-col>
  160. <el-col :span="6">
  161. <el-form-item :label="'CMC Invoice'" >
  162. <el-input v-model="updateHeaderModel.cmcInvoice" disabled ></el-input>
  163. </el-form-item>
  164. </el-col>
  165. <el-col :span="6">
  166. <el-form-item :label="'发货通知单号'" >
  167. <el-input v-model="updateHeaderModel.delNo" disabled ></el-input>
  168. </el-form-item>
  169. </el-col>
  170. <el-col :span="6">
  171. <el-form-item :label="'ReadyDate'" >
  172. <el-date-picker
  173. style="width: 145px"
  174. v-model="updateHeaderModel.readyDate"
  175. type="date"
  176. format="yyyy-MM-dd"
  177. value-format="yyyy-MM-dd"
  178. placeholder="选择日期">
  179. </el-date-picker>
  180. </el-form-item>
  181. </el-col>
  182. </el-row>
  183. <el-row :gutter="20">
  184. <el-col :span="6">
  185. <el-form-item :label="'ShippingMode'" >
  186. <el-input v-model="updateHeaderModel.shippingMode" ></el-input>
  187. </el-form-item>
  188. </el-col>
  189. <el-col :span="6">
  190. <el-form-item :label="'Destination'" >
  191. <el-input v-model="updateHeaderModel.destination" ></el-input>
  192. </el-form-item>
  193. </el-col>
  194. <el-col :span="6">
  195. <el-form-item :label="'发货日期'" >
  196. <el-date-picker
  197. style="width: 145px"
  198. v-model="updateHeaderModel.notifyDate"
  199. disabled
  200. type="date"
  201. format="yyyy-MM-dd"
  202. value-format="yyyy-MM-dd"
  203. placeholder="选择日期">
  204. </el-date-picker>
  205. </el-form-item>
  206. </el-col>
  207. </el-row>
  208. <el-row :gutter="20">
  209. <el-col :span="24">
  210. <el-form-item :label="'Remark'" >
  211. <el-input v-model="updateHeaderModel.remark" ></el-input>
  212. </el-form-item>
  213. </el-col>
  214. </el-row>
  215. </el-form>
  216. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  217. <el-button type="primary" @click="doUpdateHeader()">保存</el-button>
  218. <el-button type="primary" @click="updateHeaderModelFlag=false">关闭</el-button>
  219. </el-footer>
  220. </el-dialog>
  221. <el-dialog title="编辑发货通知单明细" :close-on-click-modal="false" v-drag :visible.sync="updateDetailModelFlag" width="750px">
  222. <el-form label-position="top" style="margin-left: 7px;margin-top: -5px;">
  223. <el-row :gutter="20">
  224. <el-col :span="6">
  225. <el-form-item :label="'行号'" >
  226. <el-input v-model="updateDetailModel.itemNo" style="text-align: right" disabled ></el-input>
  227. </el-form-item>
  228. </el-col>
  229. <el-col :span="6">
  230. <el-form-item :label="'PN'" >
  231. <el-input v-model="updateDetailModel.partNo" ></el-input>
  232. </el-form-item>
  233. </el-col>
  234. <el-col :span="6">
  235. <el-form-item :label="'Description'" >
  236. <el-input v-model="updateDetailModel.partDescription" ></el-input>
  237. </el-form-item>
  238. </el-col>
  239. <el-col :span="6">
  240. <el-form-item :label="'Qty (pcs)'" >
  241. <el-input v-model="updateDetailModel.qty" type="number" ></el-input>
  242. </el-form-item>
  243. </el-col>
  244. </el-row>
  245. <el-row :gutter="20">
  246. <el-col :span="6">
  247. <el-form-item :label="'销售订单号'" >
  248. <el-input v-model="updateDetailModel.salesOrder" ></el-input>
  249. </el-form-item>
  250. </el-col>
  251. <el-col :span="6">
  252. <el-form-item :label="'客户采购单号'" >
  253. <el-input v-model="updateDetailModel.customerPO" ></el-input>
  254. </el-form-item>
  255. </el-col>
  256. <el-col :span="6">
  257. <el-form-item :label="'Version'" >
  258. <el-input v-model="updateDetailModel.version" ></el-input>
  259. </el-form-item>
  260. </el-col>
  261. <el-col :span="6">
  262. <el-form-item :label="'Status'" >
  263. <el-input v-model="updateDetailModel.status" ></el-input>
  264. </el-form-item>
  265. </el-col>
  266. </el-row>
  267. <el-row :gutter="20">
  268. <el-col :span="6">
  269. <el-form-item :label="'Family'" >
  270. <el-input v-model="updateDetailModel.family" ></el-input>
  271. </el-form-item>
  272. </el-col>
  273. <el-col :span="6">
  274. <el-form-item :label="'LT (wks)'" >
  275. <el-input v-model="updateDetailModel.lt" type="number" ></el-input>
  276. </el-form-item>
  277. </el-col>
  278. <el-col :span="6">
  279. <el-form-item :label="'CMC Comment'" >
  280. <el-input v-model="updateDetailModel.cmcComment" ></el-input>
  281. </el-form-item>
  282. </el-col>
  283. <el-col :span="6">
  284. <el-form-item :label="'内外销方式'" >
  285. <el-input v-model="updateDetailModel.saleType" ></el-input>
  286. </el-form-item>
  287. </el-col>
  288. </el-row>
  289. <el-row :gutter="20">
  290. <el-col :span="6">
  291. <el-form-item :label="'AWB/ BL#'" >
  292. <el-input v-model="updateDetailModel.awbBl" ></el-input>
  293. </el-form-item>
  294. </el-col>
  295. <el-col :span="6">
  296. <el-form-item :label="'ShippingNumber'" >
  297. <el-input v-model="updateDetailModel.shippingNumber" ></el-input>
  298. </el-form-item>
  299. </el-col>
  300. <el-col :span="6">
  301. <el-form-item :label="'Forwarder Info'" >
  302. <el-input v-model="updateDetailModel.forwarderInfo" ></el-input>
  303. </el-form-item>
  304. </el-col>
  305. <el-col :span="6">
  306. <el-form-item :label="'Currency'" >
  307. <el-input v-model="updateDetailModel.currency" ></el-input>
  308. </el-form-item>
  309. </el-col>
  310. </el-row>
  311. <el-row :gutter="20">
  312. <el-col :span="6">
  313. <el-form-item :label="'TP'" >
  314. <el-input v-model="updateDetailModel.tp" type="number" ></el-input>
  315. </el-form-item>
  316. </el-col>
  317. <el-col :span="6">
  318. <el-form-item :label="'TTL Amount'" >
  319. <el-input v-model="updateDetailModel.ttlAmount" type="number" ></el-input>
  320. </el-form-item>
  321. </el-col>
  322. <el-col :span="6">
  323. <el-form-item :label="'价税合计'" >
  324. <el-input v-model="updateDetailModel.sumPrice" type="number" ></el-input>
  325. </el-form-item>
  326. </el-col>
  327. <el-col :span="6">
  328. <el-form-item :label="'SO'" >
  329. <el-input v-model="updateDetailModel.so" ></el-input>
  330. </el-form-item>
  331. </el-col>
  332. </el-row>
  333. <el-row :gutter="20">
  334. <el-col :span="6">
  335. <el-form-item :label="'UPC'" >
  336. <el-input v-model="updateDetailModel.upc" ></el-input>
  337. </el-form-item>
  338. </el-col>
  339. <el-col :span="18">
  340. <el-form-item :label="'Remark'" >
  341. <el-input v-model="updateDetailModel.remark" ></el-input>
  342. </el-form-item>
  343. </el-col>
  344. </el-row>
  345. </el-form>
  346. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  347. <el-button type="primary" @click="doUpdateDetail()">保存</el-button>
  348. <el-button type="primary" @click="updateDetailModelFlag=false">关闭</el-button>
  349. </el-footer>
  350. </el-dialog>
  351. <!-- 导入 -->
  352. <del-upload-excel ref="delUploadExcel" @refreshTable="searchTable" v-drag></del-upload-excel>
  353. </div>
  354. </template>
  355. <script>
  356. import delUploadExcel from "./del_upload_excel.vue";
  357. import {} from "@/api/sysLanguage.js"
  358. import {
  359. searchEcssCoDelNotifyHeader,
  360. searchEcssCoDelNotifyDetail,
  361. updateEcssDelHeader,
  362. deleteEcssDelHeader,
  363. changeEcssDelStatus,
  364. updateEcssDelDetail,
  365. deleteEcssDelDetail,
  366. }from "@/api/ecss/ecss.js"
  367. import {getAllBuList}from '@/api/factory/site.js'
  368. export default {
  369. name: "null",
  370. components:{
  371. delUploadExcel
  372. },
  373. data() {
  374. return {
  375. pageIndex: 1,
  376. pageSize: 100,
  377. totalPage: 0,
  378. height: 200,
  379. buList:[],
  380. dataList:[],
  381. dataList2:[],
  382. dataListLoading: false,
  383. searchData: {
  384. page: 1,
  385. limit: 100,
  386. buNo:'',
  387. delNo:'',
  388. cmcInvoice:'',
  389. notifyStatus:'',
  390. startDate:'',
  391. endDate:'',
  392. username:this.$store.state.user.name,
  393. },
  394. buttons:{
  395. search:'查询',
  396. },
  397. updateHeaderModelFlag:false,
  398. updateHeaderModel:{
  399. site:'',
  400. buDesc:'',
  401. cmcInvoice:'',
  402. delNo:'',
  403. readyDate:'',
  404. shippingMode:'',
  405. destination:'',
  406. notifyDate:'',
  407. remark:'',
  408. },
  409. updateDetailModelFlag:false,
  410. updateDetailModel:{
  411. site:'',
  412. delNo:'',
  413. itemNo:'',
  414. partNo:'',
  415. partDescription:'',
  416. qty:'',
  417. salesOrder:'',
  418. line:'',
  419. customerPO:'',
  420. version:'',
  421. status:'',
  422. family:'',
  423. lt:'',
  424. cmcComment:'',
  425. saleType:'',
  426. awbBl:'',
  427. shippingNumber:'',
  428. forwarderInfo:'',
  429. currency:'',
  430. tp:'',
  431. ttlAmount:'',
  432. sumPrice:'',
  433. so:'',
  434. upc:'',
  435. remark:'',
  436. },
  437. activeName:'detail',
  438. columnList1: [
  439. {
  440. userId: this.$store.state.user.name,
  441. functionId: 801001,
  442. serialNumber: '801001Table1BuDesc',
  443. tableId: "801001Table1",
  444. tableName: "关务系统发货通知单",
  445. columnProp: "buDesc",
  446. headerAlign: "center",
  447. align: "left",
  448. columnLabel: "BU",
  449. columnHidden: false,
  450. columnImage: false,
  451. columnSortable: false,
  452. sortLv: 0,
  453. status: true,
  454. fixed: '',
  455. columnWidth: 80
  456. },
  457. {
  458. userId: this.$store.state.user.name,
  459. functionId: 801001,
  460. serialNumber: '801001Table1CmcInvoice',
  461. tableId: "801001Table1",
  462. tableName: "关务系统发货通知单",
  463. columnProp: "cmcInvoice",
  464. headerAlign: "center",
  465. align: "left",
  466. columnLabel: "CMC Invoice",
  467. columnHidden: false,
  468. columnImage: false,
  469. columnSortable: false,
  470. sortLv: 0,
  471. status: true,
  472. fixed: '',
  473. columnWidth: 100
  474. },
  475. {
  476. userId: this.$store.state.user.name,
  477. functionId: 801001,
  478. serialNumber: '801001Table1DelNo',
  479. tableId: "801001Table1",
  480. tableName: "关务系统发货通知单",
  481. columnProp: "delNo",
  482. headerAlign: "center",
  483. align: "center",
  484. columnLabel: "发货通知单号",
  485. columnHidden: false,
  486. columnImage: false,
  487. columnSortable: false,
  488. sortLv: 0,
  489. status: true,
  490. fixed: '',
  491. columnWidth: 110
  492. },
  493. {
  494. userId: this.$store.state.user.name,
  495. functionId: 801001,
  496. serialNumber: '801001Table1ReadyDate',
  497. tableId: "801001Table1",
  498. tableName: "关务系统发货通知单",
  499. columnProp: "readyDate",
  500. headerAlign: "center",
  501. align: "center",
  502. columnLabel: "ReadyDate",
  503. columnHidden: false,
  504. columnImage: false,
  505. columnSortable: false,
  506. sortLv: 0,
  507. status: true,
  508. fixed: '',
  509. columnWidth: 100
  510. },
  511. {
  512. userId: this.$store.state.user.name,
  513. functionId: 801001,
  514. serialNumber: '801001Table1CustomerName',
  515. tableId: "801001Table1",
  516. tableName: "关务系统发货通知单",
  517. columnProp: "customerName",
  518. headerAlign: "center",
  519. align: "left",
  520. columnLabel: "客户名称",
  521. columnHidden: false,
  522. columnImage: false,
  523. columnSortable: false,
  524. sortLv: 0,
  525. status: true,
  526. fixed: '',
  527. columnWidth: 120
  528. },
  529. {
  530. userId: this.$store.state.user.name,
  531. functionId: 801001,
  532. serialNumber: '801001Table1ShippingMode',
  533. tableId: "801001Table1",
  534. tableName: "关务系统发货通知单",
  535. columnProp: "shippingMode",
  536. headerAlign: "center",
  537. align: "left",
  538. columnLabel: "ShippingMode",
  539. columnHidden: false,
  540. columnImage: false,
  541. columnSortable: false,
  542. sortLv: 0,
  543. status: true,
  544. fixed: '',
  545. columnWidth: 100
  546. },
  547. {
  548. userId: this.$store.state.user.name,
  549. functionId: 801001,
  550. serialNumber: '801001Table1Destination',
  551. tableId: "801001Table1",
  552. tableName: "关务系统发货通知单",
  553. columnProp: "destination",
  554. headerAlign: "center",
  555. align: "left",
  556. columnLabel: "Destination",
  557. columnHidden: false,
  558. columnImage: false,
  559. columnSortable: false,
  560. sortLv: 0,
  561. status: true,
  562. fixed: '',
  563. columnWidth: 100
  564. },
  565. {
  566. userId: this.$store.state.user.name,
  567. functionId: 801001,
  568. serialNumber: '801001Table1NotifyStatus',
  569. tableId: "801001Table1",
  570. tableName: "关务系统发货通知单",
  571. columnProp: "notifyStatus",
  572. headerAlign: "center",
  573. align: "left",
  574. columnLabel: "通知单状态",
  575. columnHidden: false,
  576. columnImage: false,
  577. columnSortable: false,
  578. sortLv: 0,
  579. status: true,
  580. fixed: '',
  581. columnWidth: 100
  582. },
  583. {
  584. userId: this.$store.state.user.name,
  585. functionId: 801001,
  586. serialNumber: '801001Table1NotifyDate',
  587. tableId: "801001Table1",
  588. tableName: "关务系统发货通知单",
  589. columnProp: "notifyDate",
  590. headerAlign: "center",
  591. align: "center",
  592. columnLabel: "发货日期",
  593. columnHidden: false,
  594. columnImage: false,
  595. columnSortable: false,
  596. sortLv: 0,
  597. status: true,
  598. fixed: '',
  599. columnWidth: 120
  600. },
  601. {
  602. userId: this.$store.state.user.name,
  603. functionId: 801001,
  604. serialNumber: '801001Table1ErpDelNo',
  605. tableId: "801001Table1",
  606. tableName: "关务系统发货通知单",
  607. columnProp: "erpDelNo",
  608. headerAlign: "center",
  609. align: "left",
  610. columnLabel: "ERP发货单号",
  611. columnHidden: false,
  612. columnImage: false,
  613. columnSortable: false,
  614. sortLv: 0,
  615. status: true,
  616. fixed: '',
  617. columnWidth: 100
  618. },
  619. {
  620. userId: this.$store.state.user.name,
  621. functionId: 801001,
  622. serialNumber: '801001Table1CreateBy',
  623. tableId: "801001Table1",
  624. tableName: "关务系统发货通知单",
  625. columnProp: "createBy",
  626. headerAlign: "center",
  627. align: "left",
  628. columnLabel: "创建人",
  629. columnHidden: false,
  630. columnImage: false,
  631. columnSortable: false,
  632. sortLv: 0,
  633. status: true,
  634. fixed: '',
  635. columnWidth: 80
  636. },
  637. {
  638. userId: this.$store.state.user.name,
  639. functionId: 801001,
  640. serialNumber: '801001Table1CreateDate',
  641. tableId: "801001Table1",
  642. tableName: "关务系统发货通知单",
  643. columnProp: "createDate",
  644. headerAlign: "center",
  645. align: "center",
  646. columnLabel: "创建时间",
  647. columnHidden: false,
  648. columnImage: false,
  649. columnSortable: false,
  650. sortLv: 0,
  651. status: true,
  652. fixed: '',
  653. columnWidth: 130
  654. },
  655. {
  656. userId: this.$store.state.user.name,
  657. functionId: 801001,
  658. serialNumber: '801001Table1UpdateBy',
  659. tableId: "801001Table1",
  660. tableName: "关务系统发货通知单",
  661. columnProp: "updateBy",
  662. headerAlign: "center",
  663. align: "left",
  664. columnLabel: "修改人",
  665. columnHidden: false,
  666. columnImage: false,
  667. columnSortable: false,
  668. sortLv: 0,
  669. status: true,
  670. fixed: '',
  671. columnWidth: 80
  672. },
  673. {
  674. userId: this.$store.state.user.name,
  675. functionId: 801001,
  676. serialNumber: '801001Table1UpdateDate',
  677. tableId: "801001Table1",
  678. tableName: "关务系统发货通知单",
  679. columnProp: "updateDate",
  680. headerAlign: "center",
  681. align: "center",
  682. columnLabel: "修改时间",
  683. columnHidden: false,
  684. columnImage: false,
  685. columnSortable: false,
  686. sortLv: 0,
  687. status: true,
  688. fixed: '',
  689. columnWidth: 130
  690. },
  691. {
  692. userId: this.$store.state.user.name,
  693. functionId: 801001,
  694. serialNumber: '801001Table1Remark',
  695. tableId: "801001Table1",
  696. tableName: "关务系统发货通知单",
  697. columnProp: "remark",
  698. headerAlign: "center",
  699. align: "left",
  700. columnLabel: "Remark",
  701. columnHidden: false,
  702. columnImage: false,
  703. columnSortable: false,
  704. sortLv: 0,
  705. status: true,
  706. fixed: '',
  707. columnWidth: 300
  708. },
  709. ],
  710. columnList2: [
  711. {
  712. userId: this.$store.state.user.name,
  713. functionId: 801001,
  714. serialNumber: '801001Table2ItemNo',
  715. tableId: "801001Table2",
  716. tableName: "关务系统发货通知单明细",
  717. columnProp: "itemNo",
  718. headerAlign: "center",
  719. align: "left",
  720. columnLabel: "行号",
  721. columnHidden: false,
  722. columnImage: false,
  723. columnSortable: false,
  724. sortLv: 0,
  725. status: true,
  726. fixed: '',
  727. columnWidth: 80
  728. },
  729. {
  730. userId: this.$store.state.user.name,
  731. functionId: 801001,
  732. serialNumber: '801001Table2PartNo',
  733. tableId: "801001Table2",
  734. tableName: "关务系统发货通知单明细",
  735. columnProp: "partNo",
  736. headerAlign: "center",
  737. align: "left",
  738. columnLabel: "PN",
  739. columnHidden: false,
  740. columnImage: false,
  741. columnSortable: false,
  742. sortLv: 0,
  743. status: true,
  744. fixed: '',
  745. columnWidth: 100
  746. },
  747. {
  748. userId: this.$store.state.user.name,
  749. functionId: 801001,
  750. serialNumber: '801001Table2PartDescription',
  751. tableId: "801001Table2",
  752. tableName: "关务系统发货通知单明细",
  753. columnProp: "partDescription",
  754. headerAlign: "center",
  755. align: "left",
  756. columnLabel: "Description",
  757. columnHidden: false,
  758. columnImage: false,
  759. columnSortable: false,
  760. sortLv: 0,
  761. status: true,
  762. fixed: '',
  763. columnWidth: 100
  764. },
  765. {
  766. userId: this.$store.state.user.name,
  767. functionId: 801001,
  768. serialNumber: '801001Table2Qty',
  769. tableId: "801001Table2",
  770. tableName: "关务系统发货通知单明细",
  771. columnProp: "qty",
  772. headerAlign: "center",
  773. align: "right",
  774. columnLabel: "Qty (pcs)",
  775. columnHidden: false,
  776. columnImage: false,
  777. columnSortable: false,
  778. sortLv: 0,
  779. status: true,
  780. fixed: '',
  781. columnWidth: 100
  782. },
  783. {
  784. userId: this.$store.state.user.name,
  785. functionId: 801001,
  786. serialNumber: '801001Table2SalesOrder',
  787. tableId: "801001Table2",
  788. tableName: "关务系统发货通知单明细",
  789. columnProp: "salesOrder",
  790. headerAlign: "center",
  791. align: "left",
  792. columnLabel: "销售订单号",
  793. columnHidden: false,
  794. columnImage: false,
  795. columnSortable: false,
  796. sortLv: 0,
  797. status: true,
  798. fixed: '',
  799. columnWidth: 100
  800. },
  801. {
  802. userId: this.$store.state.user.name,
  803. functionId: 801001,
  804. serialNumber: '801001Table2CustomerPO',
  805. tableId: "801001Table2",
  806. tableName: "关务系统发货通知单明细",
  807. columnProp: "customerPO",
  808. headerAlign: "center",
  809. align: "left",
  810. columnLabel: "客户采购单号",
  811. columnHidden: false,
  812. columnImage: false,
  813. columnSortable: false,
  814. sortLv: 0,
  815. status: true,
  816. fixed: '',
  817. columnWidth: 100
  818. },
  819. {
  820. userId: this.$store.state.user.name,
  821. functionId: 801001,
  822. serialNumber: '801001Table2Version',
  823. tableId: "801001Table2",
  824. tableName: "关务系统发货通知单明细",
  825. columnProp: "version",
  826. headerAlign: "center",
  827. align: "left",
  828. columnLabel: "Version",
  829. columnHidden: false,
  830. columnImage: false,
  831. columnSortable: false,
  832. sortLv: 0,
  833. status: true,
  834. fixed: '',
  835. columnWidth: 100
  836. },
  837. {
  838. userId: this.$store.state.user.name,
  839. functionId: 801001,
  840. serialNumber: '801001Table2Status',
  841. tableId: "801001Table2",
  842. tableName: "关务系统发货通知单明细",
  843. columnProp: "status",
  844. headerAlign: "center",
  845. align: "left",
  846. columnLabel: "Status",
  847. columnHidden: false,
  848. columnImage: false,
  849. columnSortable: false,
  850. sortLv: 0,
  851. status: true,
  852. fixed: '',
  853. columnWidth: 100
  854. },
  855. {
  856. userId: this.$store.state.user.name,
  857. functionId: 801001,
  858. serialNumber: '801001Table2Family',
  859. tableId: "801001Table2",
  860. tableName: "关务系统发货通知单明细",
  861. columnProp: "family",
  862. headerAlign: "center",
  863. align: "left",
  864. columnLabel: "Family",
  865. columnHidden: false,
  866. columnImage: false,
  867. columnSortable: false,
  868. sortLv: 0,
  869. status: true,
  870. fixed: '',
  871. columnWidth: 100
  872. },
  873. {
  874. userId: this.$store.state.user.name,
  875. functionId: 801001,
  876. serialNumber: '801001Table2Lt',
  877. tableId: "801001Table2",
  878. tableName: "关务系统发货通知单明细",
  879. columnProp: "lt",
  880. headerAlign: "center",
  881. align: "right",
  882. columnLabel: "LT (wks)",
  883. columnHidden: false,
  884. columnImage: false,
  885. columnSortable: false,
  886. sortLv: 0,
  887. status: true,
  888. fixed: '',
  889. columnWidth: 100
  890. },
  891. {
  892. userId: this.$store.state.user.name,
  893. functionId: 801001,
  894. serialNumber: '801001Table2CmcComment',
  895. tableId: "801001Table2",
  896. tableName: "关务系统发货通知单明细",
  897. columnProp: "cmcComment",
  898. headerAlign: "center",
  899. align: "left",
  900. columnLabel: "CMC Comment",
  901. columnHidden: false,
  902. columnImage: false,
  903. columnSortable: false,
  904. sortLv: 0,
  905. status: true,
  906. fixed: '',
  907. columnWidth: 100
  908. },
  909. {
  910. userId: this.$store.state.user.name,
  911. functionId: 801001,
  912. serialNumber: '801001Table2SaleType',
  913. tableId: "801001Table2",
  914. tableName: "关务系统发货通知单明细",
  915. columnProp: "saleType",
  916. headerAlign: "center",
  917. align: "left",
  918. columnLabel: "内外销方式",
  919. columnHidden: false,
  920. columnImage: false,
  921. columnSortable: false,
  922. sortLv: 0,
  923. status: true,
  924. fixed: '',
  925. columnWidth: 100
  926. },
  927. {
  928. userId: this.$store.state.user.name,
  929. functionId: 801001,
  930. serialNumber: '801001Table2AwbBl',
  931. tableId: "801001Table2",
  932. tableName: "关务系统发货通知单明细",
  933. columnProp: "awbBl",
  934. headerAlign: "center",
  935. align: "left",
  936. columnLabel: "AWB/ BL#",
  937. columnHidden: false,
  938. columnImage: false,
  939. columnSortable: false,
  940. sortLv: 0,
  941. status: true,
  942. fixed: '',
  943. columnWidth: 100
  944. },
  945. {
  946. userId: this.$store.state.user.name,
  947. functionId: 801001,
  948. serialNumber: '801001Table2ShippingNumber',
  949. tableId: "801001Table2",
  950. tableName: "关务系统发货通知单明细",
  951. columnProp: "shippingNumber",
  952. headerAlign: "center",
  953. align: "left",
  954. columnLabel: "ShippingNumber",
  955. columnHidden: false,
  956. columnImage: false,
  957. columnSortable: false,
  958. sortLv: 0,
  959. status: true,
  960. fixed: '',
  961. columnWidth: 100
  962. },
  963. {
  964. userId: this.$store.state.user.name,
  965. functionId: 801001,
  966. serialNumber: '801001Table2ForwarderInfo',
  967. tableId: "801001Table2",
  968. tableName: "关务系统发货通知单明细",
  969. columnProp: "forwarderInfo",
  970. headerAlign: "center",
  971. align: "left",
  972. columnLabel: "Forwarder Info",
  973. columnHidden: false,
  974. columnImage: false,
  975. columnSortable: false,
  976. sortLv: 0,
  977. status: true,
  978. fixed: '',
  979. columnWidth: 100
  980. },
  981. {
  982. userId: this.$store.state.user.name,
  983. functionId: 801001,
  984. serialNumber: '801001Table2Currency',
  985. tableId: "801001Table2",
  986. tableName: "关务系统发货通知单明细",
  987. columnProp: "currency",
  988. headerAlign: "center",
  989. align: "left",
  990. columnLabel: "Currency",
  991. columnHidden: false,
  992. columnImage: false,
  993. columnSortable: false,
  994. sortLv: 0,
  995. status: true,
  996. fixed: '',
  997. columnWidth: 100
  998. },
  999. {
  1000. userId: this.$store.state.user.name,
  1001. functionId: 801001,
  1002. serialNumber: '801001Table2Tp',
  1003. tableId: "801001Table2",
  1004. tableName: "关务系统发货通知单明细",
  1005. columnProp: "tp",
  1006. headerAlign: "center",
  1007. align: "right",
  1008. columnLabel: "TP",
  1009. columnHidden: false,
  1010. columnImage: false,
  1011. columnSortable: false,
  1012. sortLv: 0,
  1013. status: true,
  1014. fixed: '',
  1015. columnWidth: 80
  1016. },
  1017. {
  1018. userId: this.$store.state.user.name,
  1019. functionId: 801001,
  1020. serialNumber: '801001Table2TtlAmount',
  1021. tableId: "801001Table2",
  1022. tableName: "关务系统发货通知单明细",
  1023. columnProp: "ttlAmount",
  1024. headerAlign: "center",
  1025. align: "right",
  1026. columnLabel: "TTL Amount",
  1027. columnHidden: false,
  1028. columnImage: false,
  1029. columnSortable: false,
  1030. sortLv: 0,
  1031. status: true,
  1032. fixed: '',
  1033. columnWidth: 80
  1034. },
  1035. {
  1036. userId: this.$store.state.user.name,
  1037. functionId: 801001,
  1038. serialNumber: '801001Table2SumPrice',
  1039. tableId: "801001Table2",
  1040. tableName: "关务系统发货通知单明细",
  1041. columnProp: "sumPrice",
  1042. headerAlign: "center",
  1043. align: "right",
  1044. columnLabel: "价税合计",
  1045. columnHidden: false,
  1046. columnImage: false,
  1047. columnSortable: false,
  1048. sortLv: 0,
  1049. status: true,
  1050. fixed: '',
  1051. columnWidth: 80
  1052. },
  1053. {
  1054. userId: this.$store.state.user.name,
  1055. functionId: 801001,
  1056. serialNumber: '801001Table2So',
  1057. tableId: "801001Table2",
  1058. tableName: "关务系统发货通知单明细",
  1059. columnProp: "so",
  1060. headerAlign: "center",
  1061. align: "left",
  1062. columnLabel: "SO",
  1063. columnHidden: false,
  1064. columnImage: false,
  1065. columnSortable: false,
  1066. sortLv: 0,
  1067. status: true,
  1068. fixed: '',
  1069. columnWidth: 100
  1070. },
  1071. {
  1072. userId: this.$store.state.user.name,
  1073. functionId: 801001,
  1074. serialNumber: '801001Table2Upc',
  1075. tableId: "801001Table2",
  1076. tableName: "关务系统发货通知单明细",
  1077. columnProp: "upc",
  1078. headerAlign: "center",
  1079. align: "left",
  1080. columnLabel: "UPC",
  1081. columnHidden: false,
  1082. columnImage: false,
  1083. columnSortable: false,
  1084. sortLv: 0,
  1085. status: true,
  1086. fixed: '',
  1087. columnWidth: 100
  1088. },
  1089. // {
  1090. // userId: this.$store.state.user.name,
  1091. // functionId: 801001,
  1092. // serialNumber: '801001Table2ErpDelItemNo',
  1093. // tableId: "801001Table2",
  1094. // tableName: "关务系统发货通知单明细",
  1095. // columnProp: "erpDelItemNo",
  1096. // headerAlign: "center",
  1097. // align: "right",
  1098. // columnLabel: "ERP发货单行号",
  1099. // columnHidden: false,
  1100. // columnImage: false,
  1101. // columnSortable: false,
  1102. // sortLv: 0,
  1103. // status: true,
  1104. // fixed: '',
  1105. // columnWidth: 60
  1106. // },
  1107. {
  1108. userId: this.$store.state.user.name,
  1109. functionId: 801001,
  1110. serialNumber: '801001Table2Remark',
  1111. tableId: "801001Table2",
  1112. tableName: "关务系统发货通知单明细",
  1113. columnProp: "remark",
  1114. headerAlign: "center",
  1115. align: "left",
  1116. columnLabel: "Remark",
  1117. columnHidden: false,
  1118. columnImage: false,
  1119. columnSortable: false,
  1120. sortLv: 0,
  1121. status: true,
  1122. fixed: '',
  1123. columnWidth: 300
  1124. },
  1125. ],
  1126. currentRow:{},
  1127. // 导出 start
  1128. exportData: [],
  1129. exportName: '发货通知单'+this.dayjs().format('YYYYMMDDHHmmss'),
  1130. exportHeader: ["发货通知单"],
  1131. exportFooter: [],
  1132. // 导出 end
  1133. }
  1134. },
  1135. mounted() {
  1136. this.$nextTick(() => {
  1137. this.height = (window.innerHeight - 240)/2;
  1138. })
  1139. },
  1140. methods: {
  1141. // 每页数
  1142. sizeChangeHandle (val) {
  1143. this.pageSize = val
  1144. this.pageIndex = 1
  1145. this.searchTable()
  1146. },
  1147. // 当前页
  1148. currentChangeHandle (val) {
  1149. this.pageIndex = val
  1150. this.searchTable()
  1151. },
  1152. searchTable(){
  1153. this.searchData.limit = this.pageSize
  1154. this.searchData.page = this.pageIndex
  1155. searchEcssCoDelNotifyHeader(this.searchData).then(({data}) => {
  1156. //区分请求成功和失败的状况
  1157. if (data && data.code == 0) {
  1158. this.dataList = data.page.list
  1159. this.pageIndex = data.page.currPage
  1160. this.pageSize = data.page.pageSize
  1161. this.totalPage = data.page.totalCount
  1162. if(this.dataList.length>0){
  1163. this.$refs.mainTable.setCurrentRow(this.dataList[0]);
  1164. this.changeData(this.dataList[0])
  1165. }else {
  1166. this.changeData(null)
  1167. }
  1168. } else {
  1169. this.dataList = [];
  1170. }
  1171. });
  1172. },
  1173. changeData(row){
  1174. this.currentRow = JSON.parse(JSON.stringify(row));
  1175. this.headerData=row;
  1176. this.refreshCurrentTabTable ();
  1177. },
  1178. importModel(){
  1179. this.$nextTick(() => {
  1180. this.$refs.delUploadExcel.init()
  1181. })
  1182. },
  1183. refreshCurrentTabTable(){
  1184. if(this.currentRow===''||this.currentRow===null){
  1185. this.currentRow={site:'',delNo:''}
  1186. }
  1187. if(this.activeName==='detail'){
  1188. searchEcssCoDelNotifyDetail(this.currentRow).then(({data}) => {
  1189. //区分请求成功和失败的状况
  1190. if (data && data.code == 0) {
  1191. this.dataList2 = data.rows
  1192. } else {
  1193. this.dataList2 = [];
  1194. }
  1195. });
  1196. }
  1197. },
  1198. tabClick (tab, event) {
  1199. // 刷新列表数据
  1200. this.refreshCurrentTabTable()
  1201. },
  1202. updateHeaderModelDo(row){
  1203. this.updateHeaderModel=JSON.parse(JSON.stringify(row));
  1204. this.updateHeaderModelFlag=true
  1205. },
  1206. doUpdateHeader(){
  1207. if(this.updateHeaderModel.readyDate==null||this.updateHeaderModel.readyDate==''){
  1208. this.$alert('请选择ReadyDate!', '错误', {
  1209. confirmButtonText: '确定'
  1210. })
  1211. return false
  1212. }
  1213. updateEcssDelHeader(this.updateHeaderModel).then(({data}) => {
  1214. if (data && data.code === 0) {
  1215. this.searchTable()
  1216. this.updateHeaderModelFlag = false
  1217. this.$message({
  1218. message: '操作成功',
  1219. type: 'success',
  1220. duration: 1500,
  1221. onClose: () => {}
  1222. })
  1223. } else {
  1224. this.$alert(data.msg, '错误', {
  1225. confirmButtonText: '确定'
  1226. })
  1227. }
  1228. })
  1229. },
  1230. deleteDelHeader(row){
  1231. this.$confirm('确认删除吗?', '提示').then(() => {
  1232. deleteEcssDelHeader(row).then(({data}) => {
  1233. if (data && data.code === 0) {
  1234. this.searchTable()
  1235. this.$message({
  1236. message: '操作成功',
  1237. type: 'success',
  1238. duration: 1500,
  1239. onClose: () => {}
  1240. })
  1241. } else {
  1242. this.$alert(data.msg, '错误', {
  1243. confirmButtonText: '确定'
  1244. })
  1245. }
  1246. })
  1247. })
  1248. },
  1249. xiadaEcssDel(row){
  1250. let inData={
  1251. site:row.site,
  1252. delNo:row.delNo,
  1253. notifyStatus:'已下达'
  1254. }
  1255. this.$confirm('确认下达吗?', '提示').then(() => {
  1256. changeEcssDelStatus(inData).then(({data}) => {
  1257. if (data && data.code === 0) {
  1258. this.searchTable()
  1259. this.$message({
  1260. message: '操作成功',
  1261. type: 'success',
  1262. duration: 1500,
  1263. onClose: () => {}
  1264. })
  1265. } else {
  1266. this.$alert(data.msg, '错误', {
  1267. confirmButtonText: '确定'
  1268. })
  1269. }
  1270. })
  1271. })
  1272. },
  1273. jihuaEcssDel(row){
  1274. let inData={
  1275. site:row.site,
  1276. delNo:row.delNo,
  1277. notifyStatus:'已计划'
  1278. }
  1279. this.$confirm('确认取消下达吗?', '提示').then(() => {
  1280. changeEcssDelStatus(inData).then(({data}) => {
  1281. if (data && data.code === 0) {
  1282. this.searchTable()
  1283. this.$message({
  1284. message: '操作成功',
  1285. type: 'success',
  1286. duration: 1500,
  1287. onClose: () => {}
  1288. })
  1289. } else {
  1290. this.$alert(data.msg, '错误', {
  1291. confirmButtonText: '确定'
  1292. })
  1293. }
  1294. })
  1295. })
  1296. },
  1297. doUpdateDetail(){
  1298. if(this.updateDetailModel.partNo==null||this.updateDetailModel.partNo==''){
  1299. this.$alert('请输入PN!', '错误', {
  1300. confirmButtonText: '确定'
  1301. })
  1302. return false
  1303. }
  1304. if(this.updateDetailModel.qty==null||this.updateDetailModel.qty==''){
  1305. this.$alert('请输入QTY!', '错误', {
  1306. confirmButtonText: '确定'
  1307. })
  1308. return false
  1309. }
  1310. if(this.updateDetailModel.qty<=0){
  1311. this.$alert('QTY必须大于0!', '错误', {
  1312. confirmButtonText: '确定'
  1313. })
  1314. return false
  1315. }
  1316. updateEcssDelDetail(this.updateDetailModel).then(({data}) => {
  1317. if (data && data.code === 0) {
  1318. this.refreshCurrentTabTable()
  1319. this.updateDetailModelFlag=false
  1320. this.$message({
  1321. message: '操作成功',
  1322. type: 'success',
  1323. duration: 1500,
  1324. onClose: () => {}
  1325. })
  1326. } else {
  1327. this.$alert(data.msg, '错误', {
  1328. confirmButtonText: '确定'
  1329. })
  1330. }
  1331. })
  1332. },
  1333. openUpdateDetailModel(row){
  1334. this.updateDetailModel=JSON.parse(JSON.stringify(row));
  1335. this.updateDetailModelFlag=true
  1336. },
  1337. deleteDelDetail(row){
  1338. this.$confirm('确认删除此明细?', '提示').then(() => {
  1339. deleteEcssDelDetail(row).then(({data}) => {
  1340. if (data && data.code === 0) {
  1341. this.refreshCurrentTabTable()
  1342. this.$message({
  1343. message: '操作成功',
  1344. type: 'success',
  1345. duration: 1500,
  1346. onClose: () => {}
  1347. })
  1348. } else {
  1349. this.$alert(data.msg, '错误', {
  1350. confirmButtonText: '确定'
  1351. })
  1352. }
  1353. })
  1354. })
  1355. },
  1356. getBu () {
  1357. let tempData = {
  1358. username: this.$store.state.user.name,
  1359. }
  1360. getAllBuList(tempData).then(({data}) => {
  1361. if (data.code === 0) {
  1362. this.buList = data.rows
  1363. }
  1364. })
  1365. },
  1366. //导出excel
  1367. async createExportData() {
  1368. this.searchData.limit = -1
  1369. this.searchData.page = 1
  1370. await searchEcssCoDelNotifyHeader(this.searchData).then(({data}) => {
  1371. this.exportList= data.page.list;
  1372. })
  1373. return this.exportList;
  1374. },
  1375. startDownload() {
  1376. // this.exportData = this.dataList
  1377. },
  1378. finishDownload() {
  1379. },
  1380. fields() {
  1381. let json = "{"
  1382. this.columnList1.forEach((item, index) => {
  1383. if (index == this.columnList1.length - 1) {
  1384. json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
  1385. } else {
  1386. json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
  1387. }
  1388. })
  1389. json += "}"
  1390. let s = eval("(" + json + ")")
  1391. return s
  1392. },
  1393. },
  1394. created() {
  1395. this.getBu ()
  1396. }
  1397. }
  1398. </script>
  1399. <style scoped>
  1400. </style>