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.

2065 lines
69 KiB

11 months ago
11 months ago
11 months ago
11 months ago
10 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
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
8 months ago
11 months ago
8 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
9 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
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
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
11 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
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
10 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
10 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
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
10 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
10 months ago
11 months ago
10 months ago
11 months ago
11 months ago
8 months ago
8 months ago
8 months ago
8 months ago
11 months ago
8 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-option label="已报关" value="已报关"></el-option>
  28. <el-option label="订单取消" value="订单取消"></el-option>
  29. </el-select>
  30. </el-form-item>
  31. <el-form-item :label="'ReadyDate'" >
  32. <el-date-picker
  33. style="width: 120px"
  34. v-model="searchData.startDate"
  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="'To'" >
  42. <el-date-picker
  43. style="width: 120px"
  44. v-model="searchData.endDate"
  45. type="date"
  46. format="yyyy-MM-dd"
  47. value-format="yyyy-MM-dd"
  48. placeholder="选择日期">
  49. </el-date-picker>
  50. </el-form-item>
  51. <el-form-item label="改单">
  52. <el-checkbox v-model="searchData.modifyData" true-label="true" false-label="false" @change="searchTable()"></el-checkbox>
  53. </el-form-item>
  54. <el-form-item :label="' '" >
  55. <el-button @click="searchTable()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'查询'}}</el-button>
  56. </el-form-item>
  57. <el-form-item :label="' '" >
  58. <el-button @click="importModel()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'导入'}}</el-button>
  59. <download-excel
  60. :fields="fields()"
  61. :data="exportData"
  62. type="xls"
  63. :name="exportName"
  64. :header="exportHeader"
  65. :footer="exportFooter"
  66. :fetch="createExportData"
  67. :before-generate="startDownload"
  68. :before-finish="finishDownload"
  69. worksheet="导出信息"
  70. class="el-button el-button--primary el-button--medium">
  71. {{ '导出' }}
  72. </download-excel>
  73. </el-form-item>
  74. </el-form>
  75. <el-table
  76. @row-click="changeData"
  77. highlight-current-row
  78. :height="height"
  79. :data="dataList"
  80. ref="mainTable" :cell-style="cellStyle"
  81. border :row-class-name="tableRowClassName"
  82. v-loading="dataListLoading"
  83. style="width: 100%;">
  84. <el-table-column
  85. header-align="center"
  86. align="center"
  87. width="140"
  88. fixed="left"
  89. label="操作">
  90. <template slot-scope="scope">
  91. <a type="text" size="small" v-if="scope.row.notifyStatus!=='订单取消'" @click="updateHeaderModelDo(scope.row)">修改</a>
  92. <a type="text" style="color: green" size="small" v-if="scope.row.notifyStatus==='已计划' && scope.row.notifyStatus!=='订单取消'" @click="xiadaChoose()">下达</a>
  93. <a type="text" style="color: orange" size="small" v-if="scope.row.notifyStatus==='已下达'&& scope.row.notifyStatus!=='订单取消'" @click="jihuaEcssDel(scope.row)">取消下达</a>
  94. <a type="text" style="color: red" size="small" v-if="scope.row.notifyStatus!=='订单取消'" @click="cancelDelHeader(scope.row)">废弃</a>
  95. <a type="text" style="color: red" size="small" v-if="scope.row.notifyStatus==='已计划'&& scope.row.notifyStatus!=='订单取消'" @click="deleteDelHeader(scope.row)">删除</a>
  96. </template>
  97. </el-table-column>
  98. <el-table-column
  99. v-for="(item,index) in columnList1" :key="index"
  100. :sortable="item.columnSortable"
  101. :prop="item.columnProp"
  102. :header-align="item.headerAlign"
  103. :show-overflow-tooltip="item.showOverflowTooltip"
  104. :align="item.align"
  105. :fixed="item.fixed==''?false:item.fixed"
  106. :min-width="item.columnWidth"
  107. :label="item.columnLabel">
  108. <template slot-scope="scope">
  109. <span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
  110. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  111. style="width: 100px; height: 80px"/></span>
  112. </template>
  113. </el-table-column>
  114. </el-table>
  115. <el-pagination
  116. @size-change="sizeChangeHandle"
  117. @current-change="currentChangeHandle"
  118. :current-page="pageIndex"
  119. :page-sizes="[20, 50, 100, 1000]"
  120. :page-size="pageSize"
  121. :total="totalPage"
  122. layout="total, sizes, prev, pager, next, jumper">
  123. </el-pagination>
  124. <el-tabs style="font-size: 12px;min-height: 200px" class="customer-tab" v-model="activeName" type="border-card" @tab-click="tabClick" >
  125. <el-tab-pane label="明细" name="detail">
  126. <el-button v-show="currentRow.notifyStatus!=='订单取消'" @click="openCreateDetailModel()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'新增'}}</el-button>
  127. <el-table ref="detailTable"
  128. :height="height"
  129. :data="dataList2" :cell-style="cellStyleDetail"
  130. border show-summary :summary-method="getSummaries"
  131. style="width: 100%;">
  132. <el-table-column
  133. v-for="(item,index) in columnList2" :key="index"
  134. :sortable="item.columnSortable"
  135. :prop="item.columnProp"
  136. :header-align="item.headerAlign"
  137. :show-overflow-tooltip="item.showOverflowTooltip"
  138. :align="item.align"
  139. :fixed="item.fixed==''?false:item.fixed"
  140. :min-width="item.columnWidth"
  141. :label="item.columnLabel">
  142. <template slot-scope="scope">
  143. <template v-if="item.columnProp === 'ttlAmount' || item.columnProp === 'sumPrice'">
  144. <span>{{!!scope.row[item.columnProp]?scope.row[item.columnProp].toFixed(2):''}}</span>
  145. </template>
  146. <template v-else>
  147. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  148. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  149. </template>
  150. </template>
  151. </el-table-column>
  152. <el-table-column
  153. fixed="left"
  154. header-align="center"
  155. align="center"
  156. width="100" v-if="currentRow.notifyStatus!=='订单取消'"
  157. label="操作">
  158. <template slot-scope="scope">
  159. <a v-if="currentRow.notifyStatus!=='订单取消'&& scope.row.qty!==0" type="text" size="small" @click="openUpdateDetailModel(scope.row)">修改</a>
  160. <a v-if="currentRow.notifyStatus!=='订单取消' && scope.row.qty!==0" style="color: red" type="text" size="small" @click="deleteDelDetail(scope.row)">取消</a>
  161. </template>
  162. </el-table-column>
  163. </el-table>
  164. </el-tab-pane>
  165. <el-tab-pane label="装箱明细" name="pallet">
  166. <el-table
  167. :data="dataList3"
  168. :height="height"
  169. border
  170. v-loading="dataListLoading"
  171. style="width: 100%; ">
  172. <!-- <el-table-column-->
  173. <!-- header-align="center"-->
  174. <!-- align="center"-->
  175. <!-- width="80"-->
  176. <!-- label="操作">-->
  177. <!-- <template slot-scope="scope">-->
  178. <!-- <a type="text" size="small" @click="deleteNotifySOSPlus(scope.row)">编辑</a>-->
  179. <!-- </template>-->
  180. <!-- </el-table-column>-->
  181. <el-table-column
  182. v-for="(item,index) in columnList3" :key="index"
  183. :sortable="item.columnSortable"
  184. :prop="item.columnProp"
  185. :header-align="item.headerAlign"
  186. :show-overflow-tooltip="item.showOverflowTooltip"
  187. :align="item.align"
  188. :fixed="item.fixed==''?false:item.fixed"
  189. :min-width="item.columnWidth"
  190. :label="item.columnLabel">
  191. <template slot-scope="scope">
  192. <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
  193. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  194. style="width: 100px; height: 80px"/></span>
  195. </template>
  196. </el-table-column>
  197. </el-table>
  198. </el-tab-pane>
  199. </el-tabs>
  200. <el-dialog title="编辑发货通知单" :close-on-click-modal="false" v-drag :visible.sync="updateHeaderModelFlag" width="672px">
  201. <el-form label-position="top" style="margin-left: 5px;margin-top: -5px;">
  202. <el-row :gutter="20">
  203. <el-col :span="6">
  204. <el-form-item :label="'BU'" >
  205. <el-input v-model="updateHeaderModel.buDesc" disabled ></el-input>
  206. </el-form-item>
  207. </el-col>
  208. <el-col :span="6">
  209. <el-form-item :label="'CMC Invoice'" >
  210. <el-input v-model="updateHeaderModel.cmcInvoice" disabled ></el-input>
  211. </el-form-item>
  212. </el-col>
  213. <el-col :span="6">
  214. <el-form-item :label="'发货通知单号'" >
  215. <el-input v-model="updateHeaderModel.delNo" disabled ></el-input>
  216. </el-form-item>
  217. </el-col>
  218. <el-col :span="6">
  219. <el-form-item :label="'ReadyDate'" >
  220. <el-date-picker
  221. style="width: 145px" :disabled="currentRow.notifyStatus!=='已计划'"
  222. v-model="updateHeaderModel.readyDate"
  223. type="date"
  224. format="yyyy-MM-dd"
  225. value-format="yyyy-MM-dd"
  226. placeholder="选择日期">
  227. </el-date-picker>
  228. </el-form-item>
  229. </el-col>
  230. </el-row>
  231. <el-row :gutter="20">
  232. <el-col :span="6">
  233. <el-form-item :label="'ShippingMode'" >
  234. <el-input v-model="updateHeaderModel.shippingMode" ></el-input>
  235. </el-form-item>
  236. </el-col>
  237. <el-col :span="12">
  238. <el-form-item :label="'Destination'" >
  239. <el-input v-model="updateHeaderModel.destination" ></el-input>
  240. </el-form-item>
  241. </el-col>
  242. <el-col :span="6">
  243. <el-form-item :label="'发货日期'" >
  244. <el-date-picker
  245. style="width: 145px"
  246. v-model="updateHeaderModel.notifyDate"
  247. disabled
  248. type="date"
  249. format="yyyy-MM-dd"
  250. value-format="yyyy-MM-dd"
  251. placeholder="选择日期">
  252. </el-date-picker>
  253. </el-form-item>
  254. </el-col>
  255. </el-row>
  256. <el-row :gutter="20">
  257. <el-col :span="24">
  258. <el-form-item :label="'Remark'" >
  259. <el-input v-model="updateHeaderModel.remark" ></el-input>
  260. </el-form-item>
  261. </el-col>
  262. </el-row>
  263. </el-form>
  264. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  265. <el-button type="primary" @click="doUpdateHeader()">保存</el-button>
  266. <el-button type="primary" @click="updateHeaderModelFlag=false">关闭</el-button>
  267. </el-footer>
  268. </el-dialog>
  269. <el-dialog title="编辑发货通知单明细" :close-on-click-modal="false" v-drag :visible.sync="updateDetailModelFlag" width="750px">
  270. <el-form label-position="top" style="margin-left: 7px;margin-top: -5px;">
  271. <el-row :gutter="20">
  272. <el-col :span="6">
  273. <el-form-item :label="'行号'" >
  274. <el-input v-model="updateDetailModel.itemNo" style="text-align: right" disabled ></el-input>
  275. </el-form-item>
  276. </el-col>
  277. <el-col :span="6">
  278. <el-form-item :label="'PN'">
  279. <span slot="label" @click="queryComponentPartModal"><a herf="#">PN</a></span>
  280. <el-input v-model="updateDetailModel.pn" ></el-input>
  281. </el-form-item>
  282. </el-col>
  283. <el-col :span="12">
  284. <el-form-item :label="'Description'" >
  285. <el-input v-model="updateDetailModel.partDescription" ></el-input>
  286. </el-form-item>
  287. </el-col>
  288. <el-col :span="6">
  289. <el-form-item :label="'Qty (pcs)'" >
  290. <el-input v-model="updateDetailModel.qty" type="number" ></el-input>
  291. </el-form-item>
  292. </el-col>
  293. <el-col :span="6">
  294. <el-form-item :label="'销售订单号'" >
  295. <el-input v-model="updateDetailModel.salesOrder" ></el-input>
  296. </el-form-item>
  297. </el-col>
  298. <el-col :span="6">
  299. <el-form-item :label="'客户采购单号'" >
  300. <el-input v-model="updateDetailModel.customerPO" ></el-input>
  301. </el-form-item>
  302. </el-col>
  303. <el-col :span="6">
  304. <el-form-item :label="'Version'" >
  305. <el-input v-model="updateDetailModel.version" ></el-input>
  306. </el-form-item>
  307. </el-col>
  308. <el-col :span="6">
  309. <el-form-item :label="'Status'" >
  310. <el-input v-model="updateDetailModel.status" ></el-input>
  311. </el-form-item>
  312. </el-col>
  313. <el-col :span="6">
  314. <el-form-item :label="'Family'" >
  315. <el-input v-model="updateDetailModel.family" ></el-input>
  316. </el-form-item>
  317. </el-col>
  318. <el-col :span="6">
  319. <el-form-item :label="'LT (wks)'" >
  320. <el-input v-model="updateDetailModel.lt" type="number" ></el-input>
  321. </el-form-item>
  322. </el-col>
  323. <el-col :span="6">
  324. <el-form-item :label="'CMC Comment'" >
  325. <el-input v-model="updateDetailModel.cmcComment" ></el-input>
  326. </el-form-item>
  327. </el-col>
  328. <el-col :span="6">
  329. <el-form-item :label="'内外销方式'" >
  330. <el-input v-model="updateDetailModel.saleType" ></el-input>
  331. </el-form-item>
  332. </el-col>
  333. <el-col :span="6">
  334. <el-form-item :label="'AWB/ BL#'" >
  335. <el-input v-model="updateDetailModel.awbBl" ></el-input>
  336. </el-form-item>
  337. </el-col>
  338. <el-col :span="6">
  339. <el-form-item :label="'ShippingNumber'" >
  340. <el-input v-model="updateDetailModel.shippingNumber" ></el-input>
  341. </el-form-item>
  342. </el-col>
  343. <el-col :span="6">
  344. <el-form-item :label="'Forwarder Info'" >
  345. <el-input v-model="updateDetailModel.forwarderInfo" ></el-input>
  346. </el-form-item>
  347. </el-col>
  348. <el-col :span="6">
  349. <el-form-item :label="'Currency'" >
  350. <el-input v-model="updateDetailModel.currency" ></el-input>
  351. </el-form-item>
  352. </el-col>
  353. <el-col :span="6">
  354. <el-form-item :label="'TP'" >
  355. <el-input v-model="updateDetailModel.tp" type="number" ></el-input>
  356. </el-form-item>
  357. </el-col>
  358. <el-col :span="6">
  359. <el-form-item :label="'TTL Amount'" >
  360. <el-input v-model="updateDetailModel.ttlAmount" type="number" ></el-input>
  361. </el-form-item>
  362. </el-col>
  363. <el-col :span="6">
  364. <el-form-item :label="'价税合计'" >
  365. <el-input v-model="updateDetailModel.sumPrice" type="number" ></el-input>
  366. </el-form-item>
  367. </el-col>
  368. <el-col :span="6">
  369. <el-form-item :label="'SO'" >
  370. <el-input v-model="updateDetailModel.so" ></el-input>
  371. </el-form-item>
  372. </el-col>
  373. <el-col :span="6">
  374. <el-form-item :label="'UPC'" >
  375. <el-input v-model="updateDetailModel.upc" ></el-input>
  376. </el-form-item>
  377. </el-col>
  378. <el-col :span="12">
  379. <el-form-item :label="'Remark'" >
  380. <el-input v-model="updateDetailModel.remark" ></el-input>
  381. </el-form-item>
  382. </el-col>
  383. </el-row>
  384. </el-form>
  385. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  386. <el-button type="primary" @click="doUpdateDetail()">保存</el-button>
  387. <el-button type="primary" @click="updateDetailModelFlag=false">关闭</el-button>
  388. </el-footer>
  389. </el-dialog>
  390. <el-dialog title="沃尔玛订单" :close-on-click-modal="false" v-drag :visible.sync="walMartOrderDialog" width="200px">
  391. <el-form label-position="top" style="margin-left: 36px;margin-top: 10px;">
  392. <el-row :gutter="20">
  393. <el-col :span="24">
  394. <el-form-item :label="''" >
  395. <el-radio v-model="walMartOrderFlag" label="Y"></el-radio>
  396. <el-radio v-model="walMartOrderFlag" label="N"></el-radio>
  397. </el-form-item>
  398. </el-col>
  399. </el-row>
  400. </el-form>
  401. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  402. <el-button type="primary" @click="xiadaEcssDel">确定</el-button>
  403. <el-button type="primary" @click="walMartOrderDialog=false">关闭</el-button>
  404. </el-footer>
  405. </el-dialog>
  406. <!-- 导入 -->
  407. <del-upload-excel ref="delUploadExcel" @refreshTable="searchTable" v-drag></del-upload-excel>
  408. <!--列表的组件-->
  409. <Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
  410. <el-dialog title="物料清单" top="17vh" :close-on-click-modal="false" v-drag :visible.sync="componentPartModelFlag" width="700px">
  411. <el-form :inline="true" label-position="top" :model="componentPartData">
  412. <el-form-item :label="'PN'">
  413. <el-input v-model="componentPartData.sku" clearable style="width: 120px"></el-input>
  414. </el-form-item>
  415. <el-form-item :label="'物料编码'">
  416. <el-input v-model="componentPartData.partNo" clearable style="width: 120px"></el-input>
  417. </el-form-item>
  418. <el-form-item :label="'物料描述'">
  419. <el-input v-model="componentPartData.partDesc" clearable style="width: 120px"></el-input>
  420. </el-form-item>
  421. <el-form-item :label="' '">
  422. <el-button type="primary" @click="queryComponentPartList">查询</el-button>
  423. </el-form-item>
  424. </el-form>
  425. <el-table
  426. :height="250"
  427. :data="componentPartList"
  428. @row-dblclick="getComponentRowData"
  429. border
  430. style="width: 100%;">
  431. <el-table-column
  432. v-for="(item,index) in componentPartColumnList" :key="index"
  433. :sortable="item.columnSortable"
  434. :prop="item.columnProp"
  435. :header-align="item.headerAlign"
  436. :show-overflow-tooltip="item.showOverflowTooltip"
  437. :align="item.align"
  438. :fixed="item.fixed==''?false:item.fixed"
  439. :min-width="item.columnWidth"
  440. :label="item.columnLabel">
  441. <template slot-scope="scope">
  442. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  443. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  444. </template>
  445. </el-table-column>
  446. </el-table>
  447. <!-- 分页插件 -->
  448. <el-pagination
  449. @size-change="sizeChangeHandle3"
  450. @current-change="currentChangeHandle3"
  451. :current-page="pageIndex3"
  452. :page-sizes="[20, 50, 100, 200, 500]"
  453. :page-size="pageSize3"
  454. :total="totalPage3"
  455. layout="total, sizes, prev, pager, next, jumper">
  456. </el-pagination>
  457. <el-footer style="height:35px;margin-top:10px;text-align:center">
  458. <el-button type="primary" @click="componentPartModelFlag = false">关闭</el-button>
  459. </el-footer>
  460. </el-dialog>
  461. </div>
  462. </template>
  463. <script>
  464. import Chooselist from '@/views/modules/common/Chooselist_eam'
  465. import delUploadExcel from "./del_upload_excel.vue";
  466. import {} from "@/api/sysLanguage.js"
  467. import {
  468. searchEcssCoDelNotifyHeader,
  469. searchEcssCoDelNotifyDetail,
  470. updateEcssDelHeader,
  471. deleteEcssDelHeader,
  472. cancelEcssDelHeader,
  473. changeEcssDelStatus,
  474. updateEcssDelDetail,
  475. deleteEcssDelDetail,
  476. searchCoDelPalletData,
  477. queryPartListAll
  478. }from "@/api/ecss/ecss.js"
  479. import {getBuList}from '@/api/factory/site.js'
  480. export default {
  481. name: "null",
  482. components:{
  483. delUploadExcel,
  484. Chooselist,
  485. },
  486. data() {
  487. return {
  488. pageIndex: 1,
  489. pageSize: 100,
  490. totalPage: 0,
  491. height: 200,
  492. componentPartModelFlag: false,
  493. componentPartData: {
  494. site: '',
  495. buNo: '',
  496. sku: '',
  497. partNo: '',
  498. partDesc: '',
  499. page: 1,
  500. limit: 10
  501. },
  502. pageIndex3: 1,
  503. pageSize3: 20,
  504. totalPage3: 0,
  505. componentPartList: [],
  506. componentPartColumnList: [
  507. {
  508. columnProp: 'sku',
  509. headerAlign: "center",
  510. align: "center",
  511. columnLabel: 'PN',
  512. columnHidden: false,
  513. columnImage: false,
  514. status: true,
  515. fixed: '',
  516. columnWidth: 120
  517. },
  518. {
  519. columnProp: 'partNo',
  520. headerAlign: "center",
  521. align: "center",
  522. columnLabel: '物料编码',
  523. columnHidden: false,
  524. columnImage: false,
  525. status: true,
  526. fixed: '',
  527. columnWidth: 120
  528. },
  529. {
  530. columnProp: 'partDesc',
  531. headerAlign: "center",
  532. align: "center",
  533. columnLabel: '物料描述',
  534. columnHidden: false,
  535. columnImage: false,
  536. status: true,
  537. fixed: '',
  538. columnWidth: 300
  539. },
  540. ],
  541. walMartOrderFlag: 'N',
  542. walMartOrderDialog:false,
  543. buList:[],
  544. dataList:[],
  545. dataList2:[],
  546. dataList3:[],
  547. dataListLoading: false,
  548. searchData: {
  549. page: 1,
  550. limit: 100,
  551. buNo:'',
  552. delNo:'',
  553. cmcInvoice:'',
  554. notifyStatus:'',
  555. startDate:'',
  556. endDate:'',
  557. username:this.$store.state.user.name,
  558. },
  559. buttons:{
  560. search:'查询',
  561. },
  562. updateHeaderModelFlag:false,
  563. updateHeaderModel:{
  564. site:'',
  565. buDesc:'',
  566. cmcInvoice:'',
  567. delNo:'',
  568. readyDate:'',
  569. shippingMode:'',
  570. destination:'',
  571. notifyDate:'',
  572. remark:'',
  573. },
  574. updateDetailModelFlag:false,
  575. updateDetailModel:{
  576. site:'',
  577. buNo:'',
  578. delNo:'',
  579. itemNo:'',
  580. partNo:'',
  581. partDescription:'',
  582. qty:'',
  583. salesOrder:'',
  584. line:'',
  585. customerPO:'',
  586. version:'',
  587. status:'',
  588. family:'',
  589. lt:'',
  590. cmcComment:'',
  591. saleType:'',
  592. awbBl:'',
  593. shippingNumber:'',
  594. forwarderInfo:'',
  595. currency:'',
  596. tp:'',
  597. ttlAmount:'',
  598. sumPrice:'',
  599. so:'',
  600. upc:'',
  601. remark:'',
  602. pn:'',
  603. addFlag:''
  604. },
  605. activeName:'detail',
  606. columnList1: [
  607. {
  608. userId: this.$store.state.user.name,
  609. functionId: 801001,
  610. serialNumber: '801001Table1BuDesc',
  611. tableId: "801001Table1",
  612. tableName: "关务系统发货通知单",
  613. columnProp: "buDesc",
  614. headerAlign: "center",
  615. align: "left",
  616. columnLabel: "BU",
  617. columnHidden: false,
  618. columnImage: false,
  619. columnSortable: false,
  620. sortLv: 0,
  621. status: true,
  622. fixed: '',
  623. columnWidth: 60
  624. },
  625. {
  626. userId: this.$store.state.user.name,
  627. functionId: 801001,
  628. serialNumber: '801001Table1CmcInvoice',
  629. tableId: "801001Table1",
  630. tableName: "关务系统发货通知单",
  631. columnProp: "cmcInvoice",
  632. headerAlign: "center",
  633. align: "left",
  634. columnLabel: "CMC Invoice",
  635. columnHidden: false,
  636. columnImage: false,
  637. columnSortable: false,
  638. sortLv: 0,
  639. status: true,
  640. fixed: '',
  641. columnWidth: 100
  642. },
  643. {
  644. userId: this.$store.state.user.name,
  645. functionId: 801001,
  646. serialNumber: '801001Table1DelNo',
  647. tableId: "801001Table1",
  648. tableName: "关务系统发货通知单",
  649. columnProp: "delNo",
  650. headerAlign: "center",
  651. align: "center",
  652. columnLabel: "发货通知单号",
  653. columnHidden: false,
  654. columnImage: false,
  655. columnSortable: false,
  656. sortLv: 0,
  657. status: true,
  658. fixed: '',
  659. columnWidth: 110
  660. },
  661. {
  662. userId: this.$store.state.user.name,
  663. functionId: 801001,
  664. serialNumber: '801001Table1ReadyDate',
  665. tableId: "801001Table1",
  666. tableName: "关务系统发货通知单",
  667. columnProp: "readyDate",
  668. headerAlign: "center",
  669. align: "center",
  670. columnLabel: "ReadyDate",
  671. columnHidden: false,
  672. columnImage: false,
  673. columnSortable: false,
  674. sortLv: 0,
  675. status: true,
  676. fixed: '',
  677. columnWidth: 100
  678. },
  679. {
  680. userId: this.$store.state.user.name,
  681. functionId: 801001,
  682. serialNumber: '801001Table1CustomerName',
  683. tableId: "801001Table1",
  684. tableName: "关务系统发货通知单",
  685. columnProp: "customerName",
  686. headerAlign: "center",
  687. align: "left",
  688. columnLabel: "客户名称",
  689. columnHidden: false,
  690. columnImage: false,
  691. columnSortable: false,
  692. sortLv: 0,
  693. status: true,
  694. fixed: '',
  695. columnWidth: 220
  696. },
  697. {
  698. userId: this.$store.state.user.name,
  699. functionId: 801001,
  700. serialNumber: '801001Table1ShippingMode',
  701. tableId: "801001Table1",
  702. tableName: "关务系统发货通知单",
  703. columnProp: "shippingMode",
  704. headerAlign: "center",
  705. align: "left",
  706. columnLabel: "ShippingMode",
  707. columnHidden: false,
  708. columnImage: false,
  709. columnSortable: false,
  710. sortLv: 0,
  711. status: true,
  712. fixed: '',
  713. columnWidth: 100
  714. },
  715. {
  716. userId: this.$store.state.user.name,
  717. functionId: 801001,
  718. serialNumber: '801001Table1Destination',
  719. tableId: "801001Table1",
  720. tableName: "关务系统发货通知单",
  721. columnProp: "destination",
  722. headerAlign: "center",
  723. align: "left",
  724. columnLabel: "Destination",
  725. columnHidden: false,
  726. columnImage: false,
  727. columnSortable: false,
  728. sortLv: 0,
  729. status: true,
  730. fixed: '',
  731. columnWidth: 100
  732. },
  733. {
  734. userId: this.$store.state.user.name,
  735. functionId: 801001,
  736. serialNumber: '801001Table1NotifyStatus',
  737. tableId: "801001Table1",
  738. tableName: "关务系统发货通知单",
  739. columnProp: "notifyStatus",
  740. headerAlign: "center",
  741. align: "left",
  742. columnLabel: "通知单状态",
  743. columnHidden: false,
  744. columnImage: false,
  745. columnSortable: false,
  746. sortLv: 0,
  747. status: true,
  748. fixed: '',
  749. columnWidth: 100
  750. },
  751. {
  752. userId: this.$store.state.user.name,
  753. functionId: 801001,
  754. serialNumber: '801001Table1NotifyStatus',
  755. tableId: "801001Table1",
  756. tableName: "关务系统发货通知单",
  757. columnProp: "modifyLabel",
  758. headerAlign: "center",
  759. align: "left",
  760. columnLabel: "改单",
  761. columnHidden: false,
  762. columnImage: false,
  763. columnSortable: false,
  764. sortLv: 0,
  765. status: true,
  766. fixed: '',
  767. columnWidth: 50
  768. },
  769. {
  770. userId: this.$store.state.user.name,
  771. functionId: 801001,
  772. serialNumber: '801001Table1NotifyDate',
  773. tableId: "801001Table1",
  774. tableName: "关务系统发货通知单",
  775. columnProp: "notifyDate",
  776. headerAlign: "center",
  777. align: "center",
  778. columnLabel: "发货日期",
  779. columnHidden: false,
  780. columnImage: false,
  781. columnSortable: false,
  782. sortLv: 0,
  783. status: true,
  784. fixed: '',
  785. columnWidth: 120
  786. },
  787. {
  788. userId: this.$store.state.user.name,
  789. functionId: 801001,
  790. serialNumber: '801001Table1ErpDelNo',
  791. tableId: "801001Table1",
  792. tableName: "关务系统发货通知单",
  793. columnProp: "erpDelNo",
  794. headerAlign: "center",
  795. align: "left",
  796. columnLabel: "ERP发货单号",
  797. columnHidden: false,
  798. columnImage: false,
  799. columnSortable: false,
  800. sortLv: 0,
  801. status: true,
  802. fixed: '',
  803. columnWidth: 100
  804. },
  805. {
  806. userId: this.$store.state.user.name,
  807. functionId: 801001,
  808. serialNumber: '801001Table1CreateBy',
  809. tableId: "801001Table1",
  810. tableName: "关务系统发货通知单",
  811. columnProp: "createBy",
  812. headerAlign: "center",
  813. align: "left",
  814. columnLabel: "创建人",
  815. columnHidden: false,
  816. columnImage: false,
  817. columnSortable: false,
  818. sortLv: 0,
  819. status: true,
  820. fixed: '',
  821. columnWidth: 80
  822. },
  823. {
  824. userId: this.$store.state.user.name,
  825. functionId: 801001,
  826. serialNumber: '801001Table1CreateDate',
  827. tableId: "801001Table1",
  828. tableName: "关务系统发货通知单",
  829. columnProp: "createDate",
  830. headerAlign: "center",
  831. align: "center",
  832. columnLabel: "创建时间",
  833. columnHidden: false,
  834. columnImage: false,
  835. columnSortable: false,
  836. sortLv: 0,
  837. status: true,
  838. fixed: '',
  839. columnWidth: 130
  840. },
  841. {
  842. userId: this.$store.state.user.name,
  843. functionId: 801001,
  844. serialNumber: '801001Table1UpdateBy',
  845. tableId: "801001Table1",
  846. tableName: "关务系统发货通知单",
  847. columnProp: "updateBy",
  848. headerAlign: "center",
  849. align: "left",
  850. columnLabel: "修改人",
  851. columnHidden: false,
  852. columnImage: false,
  853. columnSortable: false,
  854. sortLv: 0,
  855. status: true,
  856. fixed: '',
  857. columnWidth: 80
  858. },
  859. {
  860. userId: this.$store.state.user.name,
  861. functionId: 801001,
  862. serialNumber: '801001Table1UpdateDate',
  863. tableId: "801001Table1",
  864. tableName: "关务系统发货通知单",
  865. columnProp: "updateDate",
  866. headerAlign: "center",
  867. align: "center",
  868. columnLabel: "修改时间",
  869. columnHidden: false,
  870. columnImage: false,
  871. columnSortable: false,
  872. sortLv: 0,
  873. status: true,
  874. fixed: '',
  875. columnWidth: 130
  876. },
  877. {
  878. userId: this.$store.state.user.name,
  879. functionId: 801001,
  880. serialNumber: '801001Table1Remark',
  881. tableId: "801001Table1",
  882. tableName: "关务系统发货通知单",
  883. columnProp: "remark",
  884. headerAlign: "center",
  885. align: "left",
  886. columnLabel: "Remark",
  887. columnHidden: false,
  888. columnImage: false,
  889. columnSortable: false,
  890. sortLv: 0,
  891. status: true,
  892. fixed: '',
  893. columnWidth: 300
  894. },
  895. ],
  896. columnList2: [
  897. {
  898. userId: this.$store.state.user.name,
  899. functionId: 801001,
  900. serialNumber: '801001Table2ItemNo',
  901. tableId: "801001Table2",
  902. tableName: "关务系统发货通知单明细",
  903. columnProp: "itemNo",
  904. headerAlign: "center",
  905. align: "left",
  906. columnLabel: "行号",
  907. columnHidden: false,
  908. columnImage: false,
  909. columnSortable: false,
  910. sortLv: 0,
  911. status: true,
  912. fixed: '',
  913. columnWidth: 80
  914. },
  915. {
  916. userId: this.$store.state.user.name,
  917. functionId: 801001,
  918. serialNumber: '801001Table2PartNo',
  919. tableId: "801001Table2",
  920. tableName: "关务系统发货通知单明细",
  921. columnProp: "pn",
  922. headerAlign: "center",
  923. align: "left",
  924. columnLabel: "PN",
  925. columnHidden: false,
  926. columnImage: false,
  927. columnSortable: false,
  928. sortLv: 0,
  929. status: true,
  930. fixed: '',
  931. columnWidth: 100
  932. },
  933. {
  934. userId: this.$store.state.user.name,
  935. functionId: 801001,
  936. serialNumber: '801001Table2PartDescription',
  937. tableId: "801001Table2",
  938. tableName: "关务系统发货通知单明细",
  939. columnProp: "partDescription",
  940. headerAlign: "center",
  941. align: "left",
  942. columnLabel: "Description",
  943. columnHidden: false,
  944. columnImage: false,
  945. columnSortable: false,
  946. sortLv: 0,
  947. status: true,
  948. fixed: '',
  949. columnWidth: 300
  950. },
  951. {
  952. userId: this.$store.state.user.name,
  953. functionId: 801001,
  954. serialNumber: '801001Table2Qty',
  955. tableId: "801001Table2",
  956. tableName: "关务系统发货通知单明细",
  957. columnProp: "qty",
  958. headerAlign: "center",
  959. align: "right",
  960. columnLabel: "Qty (pcs)",
  961. columnHidden: false,
  962. columnImage: false,
  963. columnSortable: false,
  964. sortLv: 0,
  965. status: true,
  966. fixed: '',
  967. columnWidth: 100
  968. },
  969. {
  970. userId: this.$store.state.user.name,
  971. functionId: 801001,
  972. serialNumber: '801001Table2SalesOrder',
  973. tableId: "801001Table2",
  974. tableName: "关务系统发货通知单明细",
  975. columnProp: "salesOrder",
  976. headerAlign: "center",
  977. align: "left",
  978. columnLabel: "销售订单号",
  979. columnHidden: false,
  980. columnImage: false,
  981. columnSortable: false,
  982. sortLv: 0,
  983. status: true,
  984. fixed: '',
  985. columnWidth: 100
  986. },
  987. {
  988. userId: this.$store.state.user.name,
  989. functionId: 801001,
  990. serialNumber: '801001Table2CustomerPO',
  991. tableId: "801001Table2",
  992. tableName: "关务系统发货通知单明细",
  993. columnProp: "customerPO",
  994. headerAlign: "center",
  995. align: "left",
  996. columnLabel: "客户采购单号",
  997. columnHidden: false,
  998. columnImage: false,
  999. columnSortable: false,
  1000. sortLv: 0,
  1001. status: true,
  1002. fixed: '',
  1003. columnWidth: 100
  1004. },
  1005. {
  1006. userId: this.$store.state.user.name,
  1007. functionId: 801001,
  1008. serialNumber: '801001Table2Version',
  1009. tableId: "801001Table2",
  1010. tableName: "关务系统发货通知单明细",
  1011. columnProp: "version",
  1012. headerAlign: "center",
  1013. align: "left",
  1014. columnLabel: "Version",
  1015. columnHidden: false,
  1016. columnImage: false,
  1017. columnSortable: false,
  1018. sortLv: 0,
  1019. status: true,
  1020. fixed: '',
  1021. columnWidth: 100
  1022. },
  1023. {
  1024. userId: this.$store.state.user.name,
  1025. functionId: 801001,
  1026. serialNumber: '801001Table2Status',
  1027. tableId: "801001Table2",
  1028. tableName: "关务系统发货通知单明细",
  1029. columnProp: "status",
  1030. headerAlign: "center",
  1031. align: "left",
  1032. columnLabel: "Status",
  1033. columnHidden: false,
  1034. columnImage: false,
  1035. columnSortable: false,
  1036. sortLv: 0,
  1037. status: true,
  1038. fixed: '',
  1039. columnWidth: 100
  1040. },
  1041. {
  1042. userId: this.$store.state.user.name,
  1043. functionId: 801001,
  1044. serialNumber: '801001Table2Family',
  1045. tableId: "801001Table2",
  1046. tableName: "关务系统发货通知单明细",
  1047. columnProp: "family",
  1048. headerAlign: "center",
  1049. align: "left",
  1050. columnLabel: "Family",
  1051. columnHidden: false,
  1052. columnImage: false,
  1053. columnSortable: false,
  1054. sortLv: 0,
  1055. status: true,
  1056. fixed: '',
  1057. columnWidth: 100
  1058. },
  1059. {
  1060. userId: this.$store.state.user.name,
  1061. functionId: 801001,
  1062. serialNumber: '801001Table2Lt',
  1063. tableId: "801001Table2",
  1064. tableName: "关务系统发货通知单明细",
  1065. columnProp: "lt",
  1066. headerAlign: "center",
  1067. align: "right",
  1068. columnLabel: "LT (wks)",
  1069. columnHidden: false,
  1070. columnImage: false,
  1071. columnSortable: false,
  1072. sortLv: 0,
  1073. status: true,
  1074. fixed: '',
  1075. columnWidth: 100
  1076. },
  1077. {
  1078. userId: this.$store.state.user.name,
  1079. functionId: 801001,
  1080. serialNumber: '801001Table2CmcComment',
  1081. tableId: "801001Table2",
  1082. tableName: "关务系统发货通知单明细",
  1083. columnProp: "cmcComment",
  1084. headerAlign: "center",
  1085. align: "left",
  1086. columnLabel: "CMC Comment",
  1087. columnHidden: false,
  1088. columnImage: false,
  1089. columnSortable: false,
  1090. sortLv: 0,
  1091. status: true,
  1092. fixed: '',
  1093. columnWidth: 100
  1094. },
  1095. {
  1096. userId: this.$store.state.user.name,
  1097. functionId: 801001,
  1098. serialNumber: '801001Table2SaleType',
  1099. tableId: "801001Table2",
  1100. tableName: "关务系统发货通知单明细",
  1101. columnProp: "saleType",
  1102. headerAlign: "center",
  1103. align: "left",
  1104. columnLabel: "内外销方式",
  1105. columnHidden: false,
  1106. columnImage: false,
  1107. columnSortable: false,
  1108. sortLv: 0,
  1109. status: true,
  1110. fixed: '',
  1111. columnWidth: 100
  1112. },
  1113. {
  1114. userId: this.$store.state.user.name,
  1115. functionId: 801001,
  1116. serialNumber: '801001Table2AwbBl',
  1117. tableId: "801001Table2",
  1118. tableName: "关务系统发货通知单明细",
  1119. columnProp: "awbBl",
  1120. headerAlign: "center",
  1121. align: "left",
  1122. columnLabel: "AWB/ BL#",
  1123. columnHidden: false,
  1124. columnImage: false,
  1125. columnSortable: false,
  1126. sortLv: 0,
  1127. status: true,
  1128. fixed: '',
  1129. columnWidth: 100
  1130. },
  1131. {
  1132. userId: this.$store.state.user.name,
  1133. functionId: 801001,
  1134. serialNumber: '801001Table2ShippingNumber',
  1135. tableId: "801001Table2",
  1136. tableName: "关务系统发货通知单明细",
  1137. columnProp: "shippingNumber",
  1138. headerAlign: "center",
  1139. align: "left",
  1140. columnLabel: "ShippingNumber",
  1141. columnHidden: false,
  1142. columnImage: false,
  1143. columnSortable: false,
  1144. sortLv: 0,
  1145. status: true,
  1146. fixed: '',
  1147. columnWidth: 100
  1148. },
  1149. {
  1150. userId: this.$store.state.user.name,
  1151. functionId: 801001,
  1152. serialNumber: '801001Table2ForwarderInfo',
  1153. tableId: "801001Table2",
  1154. tableName: "关务系统发货通知单明细",
  1155. columnProp: "forwarderInfo",
  1156. headerAlign: "center",
  1157. align: "left",
  1158. columnLabel: "Forwarder Info",
  1159. columnHidden: false,
  1160. columnImage: false,
  1161. columnSortable: false,
  1162. sortLv: 0,
  1163. status: true,
  1164. fixed: '',
  1165. columnWidth: 100
  1166. },
  1167. {
  1168. userId: this.$store.state.user.name,
  1169. functionId: 801001,
  1170. serialNumber: '801001Table2Currency',
  1171. tableId: "801001Table2",
  1172. tableName: "关务系统发货通知单明细",
  1173. columnProp: "currency",
  1174. headerAlign: "center",
  1175. align: "left",
  1176. columnLabel: "Currency",
  1177. columnHidden: false,
  1178. columnImage: false,
  1179. columnSortable: false,
  1180. sortLv: 0,
  1181. status: true,
  1182. fixed: '',
  1183. columnWidth: 100
  1184. },
  1185. {
  1186. userId: this.$store.state.user.name,
  1187. functionId: 801001,
  1188. serialNumber: '801001Table2Tp',
  1189. tableId: "801001Table2",
  1190. tableName: "关务系统发货通知单明细",
  1191. columnProp: "tp",
  1192. headerAlign: "center",
  1193. align: "right",
  1194. columnLabel: "TP",
  1195. columnHidden: false,
  1196. columnImage: false,
  1197. columnSortable: false,
  1198. sortLv: 0,
  1199. status: true,
  1200. fixed: '',
  1201. columnWidth: 80
  1202. },
  1203. {
  1204. userId: this.$store.state.user.name,
  1205. functionId: 801001,
  1206. serialNumber: '801001Table2TtlAmount',
  1207. tableId: "801001Table2",
  1208. tableName: "关务系统发货通知单明细",
  1209. columnProp: "ttlAmount",
  1210. headerAlign: "center",
  1211. align: "right",
  1212. columnLabel: "TTL Amount",
  1213. columnHidden: false,
  1214. columnImage: false,
  1215. columnSortable: false,
  1216. sortLv: 0,
  1217. status: true,
  1218. fixed: '',
  1219. columnWidth: 80
  1220. },
  1221. {
  1222. userId: this.$store.state.user.name,
  1223. functionId: 801001,
  1224. serialNumber: '801001Table2SumPrice',
  1225. tableId: "801001Table2",
  1226. tableName: "关务系统发货通知单明细",
  1227. columnProp: "sumPrice",
  1228. headerAlign: "center",
  1229. align: "right",
  1230. columnLabel: "价税合计",
  1231. columnHidden: false,
  1232. columnImage: false,
  1233. columnSortable: false,
  1234. sortLv: 0,
  1235. status: true,
  1236. fixed: '',
  1237. columnWidth: 80
  1238. },
  1239. {
  1240. userId: this.$store.state.user.name,
  1241. functionId: 801001,
  1242. serialNumber: '801001Table2So',
  1243. tableId: "801001Table2",
  1244. tableName: "关务系统发货通知单明细",
  1245. columnProp: "so",
  1246. headerAlign: "center",
  1247. align: "left",
  1248. columnLabel: "SO",
  1249. columnHidden: false,
  1250. columnImage: false,
  1251. columnSortable: false,
  1252. sortLv: 0,
  1253. status: true,
  1254. fixed: '',
  1255. columnWidth: 100
  1256. },
  1257. {
  1258. userId: this.$store.state.user.name,
  1259. functionId: 801001,
  1260. serialNumber: '801001Table2Upc',
  1261. tableId: "801001Table2",
  1262. tableName: "关务系统发货通知单明细",
  1263. columnProp: "upc",
  1264. headerAlign: "center",
  1265. align: "left",
  1266. columnLabel: "UPC",
  1267. columnHidden: false,
  1268. columnImage: false,
  1269. columnSortable: false,
  1270. sortLv: 0,
  1271. status: true,
  1272. fixed: '',
  1273. columnWidth: 100
  1274. },
  1275. // {
  1276. // userId: this.$store.state.user.name,
  1277. // functionId: 801001,
  1278. // serialNumber: '801001Table2ErpDelItemNo',
  1279. // tableId: "801001Table2",
  1280. // tableName: "关务系统发货通知单明细",
  1281. // columnProp: "erpDelItemNo",
  1282. // headerAlign: "center",
  1283. // align: "right",
  1284. // columnLabel: "ERP发货单行号",
  1285. // columnHidden: false,
  1286. // columnImage: false,
  1287. // columnSortable: false,
  1288. // sortLv: 0,
  1289. // status: true,
  1290. // fixed: '',
  1291. // columnWidth: 60
  1292. // },
  1293. {
  1294. userId: this.$store.state.user.name,
  1295. functionId: 801001,
  1296. serialNumber: '801001Table2Remark',
  1297. tableId: "801001Table2",
  1298. tableName: "关务系统发货通知单明细",
  1299. columnProp: "remark",
  1300. headerAlign: "center",
  1301. align: "left",
  1302. columnLabel: "Remark",
  1303. columnHidden: false,
  1304. columnImage: false,
  1305. columnSortable: false,
  1306. sortLv: 0,
  1307. status: true,
  1308. fixed: '',
  1309. columnWidth: 300
  1310. },
  1311. ],
  1312. columnList3:[
  1313. {
  1314. userId: this.$store.state.user.name,
  1315. functionId: 801001,
  1316. serialNumber: '801001Table3ItemNo',
  1317. tableId: "801001Table3",
  1318. tableName: "装箱明细",
  1319. columnProp: "itemNo",
  1320. headerAlign: "center",
  1321. align: "right",
  1322. columnLabel: "序号",
  1323. columnHidden: false,
  1324. columnImage: false,
  1325. columnSortable: false,
  1326. sortLv: 0,
  1327. status: true,
  1328. fixed: '',
  1329. columnWidth: 40
  1330. },
  1331. {
  1332. userId: this.$store.state.user.name,
  1333. functionId: 801001,
  1334. serialNumber: '801001Table3PalletRemark',
  1335. tableId: "801001Table3",
  1336. tableName: "装箱明细",
  1337. columnProp: "palletRemark",
  1338. headerAlign: "center",
  1339. align: "left",
  1340. columnLabel: "栈板码",
  1341. columnHidden: false,
  1342. columnImage: false,
  1343. columnSortable: false,
  1344. sortLv: 0,
  1345. status: true,
  1346. fixed: '',
  1347. columnWidth: 60
  1348. },
  1349. {
  1350. userId: this.$store.state.user.name,
  1351. functionId: 801001,
  1352. serialNumber: '801001Table3PalletQty',
  1353. tableId: "801001Table3",
  1354. tableName: "装箱明细",
  1355. columnProp: "palletQty",
  1356. headerAlign: "center",
  1357. align: "right",
  1358. columnLabel: "托数",
  1359. columnHidden: false,
  1360. columnImage: false,
  1361. columnSortable: false,
  1362. sortLv: 0,
  1363. status: true,
  1364. fixed: '',
  1365. columnWidth: 40
  1366. },
  1367. {
  1368. userId: this.$store.state.user.name,
  1369. functionId: 801001,
  1370. serialNumber: '801001Table3PoNo',
  1371. tableId: "801001Table3",
  1372. tableName: "装箱明细",
  1373. columnProp: "poNo",
  1374. headerAlign: "center",
  1375. align: "left",
  1376. columnLabel: "PO",
  1377. columnHidden: false,
  1378. columnImage: false,
  1379. columnSortable: false,
  1380. sortLv: 0,
  1381. status: true,
  1382. fixed: '',
  1383. columnWidth: 100
  1384. },
  1385. {
  1386. userId: this.$store.state.user.name,
  1387. functionId: 801001,
  1388. serialNumber: '801001Table3PN',
  1389. tableId: "801001Table3",
  1390. tableName: "装箱明细",
  1391. columnProp: "partNo",
  1392. headerAlign: "center",
  1393. align: "left",
  1394. columnLabel: "PN",
  1395. columnHidden: false,
  1396. columnImage: false,
  1397. columnSortable: false,
  1398. sortLv: 0,
  1399. status: true,
  1400. fixed: '',
  1401. columnWidth: 100
  1402. },
  1403. {
  1404. userId: this.$store.state.user.name,
  1405. functionId: 801001,
  1406. serialNumber: '801001Table3Qty',
  1407. tableId: "801001Table3",
  1408. tableName: "装箱明细",
  1409. columnProp: "qty",
  1410. headerAlign: "center",
  1411. align: "right",
  1412. columnLabel: "数量",
  1413. columnHidden: false,
  1414. columnImage: false,
  1415. columnSortable: false,
  1416. sortLv: 0,
  1417. status: true,
  1418. fixed: '',
  1419. columnWidth: 50
  1420. },
  1421. {
  1422. userId: this.$store.state.user.name,
  1423. functionId: 801001,
  1424. serialNumber: '801001Table3BoxQty',
  1425. tableId: "801001Table3",
  1426. tableName: "装箱明细",
  1427. columnProp: "boxQty",
  1428. headerAlign: "center",
  1429. align: "right",
  1430. columnLabel: "箱数",
  1431. columnHidden: false,
  1432. columnImage: false,
  1433. columnSortable: false,
  1434. sortLv: 0,
  1435. status: true,
  1436. fixed: '',
  1437. columnWidth: 50
  1438. },
  1439. {
  1440. userId: this.$store.state.user.name,
  1441. functionId: 801001,
  1442. serialNumber: '801001Table3Rolls',
  1443. tableId: "801001Table3",
  1444. tableName: "装箱明细",
  1445. columnProp: "rolls",
  1446. headerAlign: "center",
  1447. align: "right",
  1448. columnLabel: "Rolls",
  1449. columnHidden: false,
  1450. columnImage: false,
  1451. columnSortable: false,
  1452. sortLv: 0,
  1453. status: true,
  1454. fixed: '',
  1455. columnWidth: 50
  1456. },
  1457. {
  1458. userId: this.$store.state.user.name,
  1459. functionId: 801001,
  1460. serialNumber: '801001Table3Length',
  1461. tableId: "801001Table3",
  1462. tableName: "装箱明细",
  1463. columnProp: "length",
  1464. headerAlign: "center",
  1465. align: "right",
  1466. columnLabel: "长(M)",
  1467. columnHidden: false,
  1468. columnImage: false,
  1469. columnSortable: false,
  1470. sortLv: 0,
  1471. status: true,
  1472. fixed: '',
  1473. columnWidth: 50
  1474. },
  1475. {
  1476. userId: this.$store.state.user.name,
  1477. functionId: 801001,
  1478. serialNumber: '801001Table3Width',
  1479. tableId: "801001Table3",
  1480. tableName: "装箱明细",
  1481. columnProp: "width",
  1482. headerAlign: "center",
  1483. align: "right",
  1484. columnLabel: "宽(M)",
  1485. columnHidden: false,
  1486. columnImage: false,
  1487. columnSortable: false,
  1488. sortLv: 0,
  1489. status: true,
  1490. fixed: '',
  1491. columnWidth: 50
  1492. },
  1493. {
  1494. userId: this.$store.state.user.name,
  1495. functionId: 801001,
  1496. serialNumber: '801001Table3Height',
  1497. tableId: "801001Table3",
  1498. tableName: "装箱明细",
  1499. columnProp: "height",
  1500. headerAlign: "center",
  1501. align: "right",
  1502. columnLabel: "高(M)",
  1503. columnHidden: false,
  1504. columnImage: false,
  1505. columnSortable: false,
  1506. sortLv: 0,
  1507. status: true,
  1508. fixed: '',
  1509. columnWidth: 50
  1510. },
  1511. {
  1512. userId: this.$store.state.user.name,
  1513. functionId: 801001,
  1514. serialNumber: '801001Table3Volume',
  1515. tableId: "801001Table3",
  1516. tableName: "装箱明细",
  1517. columnProp: "volume",
  1518. headerAlign: "center",
  1519. align: "right",
  1520. columnLabel: "体积",
  1521. columnHidden: false,
  1522. columnImage: false,
  1523. columnSortable: false,
  1524. sortLv: 0,
  1525. status: true,
  1526. fixed: '',
  1527. columnWidth: 50
  1528. },
  1529. {
  1530. userId: this.$store.state.user.name,
  1531. functionId: 801001,
  1532. serialNumber: '801001TableGrossWeight',
  1533. tableId: "801001Table3",
  1534. tableName: "装箱明细",
  1535. columnProp: "grossWeight",
  1536. headerAlign: "center",
  1537. align: "right",
  1538. columnLabel: "毛重",
  1539. columnHidden: false,
  1540. columnImage: false,
  1541. columnSortable: false,
  1542. sortLv: 0,
  1543. status: true,
  1544. fixed: '',
  1545. columnWidth: 50
  1546. },
  1547. {
  1548. userId: this.$store.state.user.name,
  1549. functionId: 801001,
  1550. serialNumber: '801001TableNetWeight',
  1551. tableId: "801001Table3",
  1552. tableName: "装箱明细",
  1553. columnProp: "netWeight",
  1554. headerAlign: "center",
  1555. align: "right",
  1556. columnLabel: "净重",
  1557. columnHidden: false,
  1558. columnImage: false,
  1559. columnSortable: false,
  1560. sortLv: 0,
  1561. status: true,
  1562. fixed: '',
  1563. columnWidth: 50
  1564. },
  1565. ],
  1566. currentRow:{},
  1567. // 导出 start
  1568. exportData: [],
  1569. exportName: '发货通知单'+this.dayjs().format('YYYYMMDDHHmmss'),
  1570. exportHeader: ["发货通知单"],
  1571. exportFooter: [],
  1572. // 导出 end
  1573. }
  1574. },
  1575. mounted() {
  1576. this.$nextTick(() => {
  1577. this.height = (window.innerHeight - 240)/2;
  1578. })
  1579. },
  1580. methods: {
  1581. // 获取基础数据列表S
  1582. getBaseList(val, type) {
  1583. this.tagNo = val
  1584. this.$nextTick(() => {
  1585. let strVal = ''
  1586. if (val === 507) {
  1587. strVal = this.updateDetailModel.partNo
  1588. }
  1589. this.$refs.baseList.init(val, strVal)
  1590. })
  1591. },
  1592. /* 列表方法的回调 */
  1593. getBaseData(val) {
  1594. if (this.tagNo === 507) {
  1595. this.updateDetailModel.partNo = val.part_no
  1596. }
  1597. },
  1598. // 每页数
  1599. sizeChangeHandle (val) {
  1600. this.pageSize = val
  1601. this.pageIndex = 1
  1602. this.searchTable()
  1603. },
  1604. // 当前页
  1605. currentChangeHandle (val) {
  1606. this.pageIndex = val
  1607. this.searchTable()
  1608. },
  1609. searchTable(){
  1610. this.searchData.limit = this.pageSize
  1611. this.searchData.page = this.pageIndex
  1612. searchEcssCoDelNotifyHeader(this.searchData).then(({data}) => {
  1613. //区分请求成功和失败的状况
  1614. if (data && data.code == 0) {
  1615. this.dataList = data.page.list
  1616. this.pageIndex = data.page.currPage
  1617. this.pageSize = data.page.pageSize
  1618. this.totalPage = data.page.totalCount
  1619. if(this.dataList.length>0){
  1620. this.$refs.mainTable.setCurrentRow(this.dataList[0]);
  1621. this.changeData(this.dataList[0])
  1622. this.dataList.forEach(o => {
  1623. o.modifyLabel = !!o.modifyFlag?'是':'';
  1624. });
  1625. }else {
  1626. this.changeData(null)
  1627. }
  1628. } else {
  1629. this.dataList = [];
  1630. }
  1631. });
  1632. },
  1633. changeData(row){
  1634. this.currentRow = JSON.parse(JSON.stringify(row));
  1635. this.headerData=row;
  1636. this.refreshCurrentTabTable ();
  1637. },
  1638. importModel(){
  1639. this.$nextTick(() => {
  1640. this.$refs.delUploadExcel.init()
  1641. })
  1642. },
  1643. refreshCurrentTabTable(){
  1644. if(this.currentRow===''||this.currentRow===null){
  1645. this.currentRow={site:'',delNo:''}
  1646. }
  1647. if(this.activeName==='detail'){
  1648. searchEcssCoDelNotifyDetail(this.currentRow).then(({data}) => {
  1649. //区分请求成功和失败的状况
  1650. if (data && data.code == 0) {
  1651. this.dataList2 = data.rows
  1652. } else {
  1653. this.dataList2 = [];
  1654. }
  1655. });
  1656. }
  1657. if(this.activeName==='pallet'){
  1658. searchCoDelPalletData(this.currentRow).then(({data}) => {
  1659. //区分请求成功和失败的状况
  1660. if (data && data.code == 0) {
  1661. this.dataList3 = data.rows
  1662. } else {
  1663. this.dataList3 = [];
  1664. }
  1665. });
  1666. }
  1667. },
  1668. tabClick (tab, event) {
  1669. // 刷新列表数据
  1670. this.refreshCurrentTabTable()
  1671. },
  1672. updateHeaderModelDo(row){
  1673. this.updateHeaderModel=JSON.parse(JSON.stringify(row));
  1674. this.updateHeaderModelFlag=true
  1675. },
  1676. doUpdateHeader(){
  1677. if(this.updateHeaderModel.readyDate==null||this.updateHeaderModel.readyDate==''){
  1678. this.$alert('请选择ReadyDate!', '错误', {
  1679. confirmButtonText: '确定'
  1680. })
  1681. return false
  1682. }
  1683. updateEcssDelHeader(this.updateHeaderModel).then(({data}) => {
  1684. if (data && data.code === 0) {
  1685. this.searchTable()
  1686. this.updateHeaderModelFlag = false
  1687. this.$message({
  1688. message: '操作成功',
  1689. type: 'success',
  1690. duration: 1500,
  1691. onClose: () => {}
  1692. })
  1693. } else {
  1694. this.$alert(data.msg, '错误', {
  1695. confirmButtonText: '确定'
  1696. })
  1697. }
  1698. })
  1699. },
  1700. deleteDelHeader(row){
  1701. this.$confirm('确认删除吗?', '提示').then(() => {
  1702. deleteEcssDelHeader(row).then(({data}) => {
  1703. if (data && data.code === 0) {
  1704. this.searchTable()
  1705. this.$message({
  1706. message: '操作成功',
  1707. type: 'success',
  1708. duration: 1500,
  1709. onClose: () => {}
  1710. })
  1711. } else {
  1712. this.$alert(data.msg, '错误', {
  1713. confirmButtonText: '确定'
  1714. })
  1715. }
  1716. })
  1717. })
  1718. },
  1719. xiadaChoose(){
  1720. if (this.dataList2.length===0) {
  1721. this.$alert('该发货通知单下没有明细无法下达!', '错误', {
  1722. confirmButtonText: '确定'
  1723. })
  1724. return false
  1725. }
  1726. if (this.currentRow.buNo=='03-RFID') {
  1727. this.walMartOrderDialog=true;
  1728. this.walMartOrderFlag='N';
  1729. } else {
  1730. this.xiadaEcssDel()
  1731. }
  1732. },
  1733. cancelDelHeader(row){
  1734. this.$confirm('确认废弃吗?', '提示').then(() => {
  1735. cancelEcssDelHeader(row).then(({data}) => {
  1736. if (data && data.code === 0) {
  1737. this.searchTable()
  1738. this.$message({
  1739. message: '操作成功',
  1740. type: 'success',
  1741. duration: 1500,
  1742. onClose: () => {}
  1743. })
  1744. } else {
  1745. this.$alert(data.msg, '错误', {
  1746. confirmButtonText: '确定'
  1747. })
  1748. }
  1749. })
  1750. })
  1751. },
  1752. tableRowClassName({row}) {
  1753. if (row.notifyStatus==='订单取消') {
  1754. return 'warning-row';
  1755. }
  1756. },
  1757. cellStyle({row, column }) {
  1758. if (column.property === 'modifyLabel' && row.modifyLabel==='是') { // 根据列属性判断
  1759. return { color: '#ff5d03' };
  1760. }
  1761. return {};
  1762. },
  1763. cellStyleDetail({row, column }) {
  1764. if ((column.property === 'pn' || column.property === 'qty') && row.modifyFlag===true) { // 根据列属性判断
  1765. return { color: '#ff5d03' };
  1766. }
  1767. return {};
  1768. },
  1769. xiadaEcssDel(){
  1770. let inData={
  1771. site:this.currentRow.site,
  1772. buNo:this.currentRow.buNo,
  1773. createBy:this.currentRow.createBy,
  1774. delNo:this.currentRow.delNo,
  1775. cmcInvoice:this.currentRow.cmcInvoice,
  1776. notifyStatus:'已下达',
  1777. walMartOrderFlag:this.walMartOrderFlag
  1778. }
  1779. this.$confirm('确认下达吗?', '提示').then(() => {
  1780. changeEcssDelStatus(inData).then(({data}) => {
  1781. if (data && data.code === 0) {
  1782. this.searchTable()
  1783. this.$message({
  1784. message: '操作成功',
  1785. type: 'success',
  1786. duration: 1500,
  1787. onClose: () => {}
  1788. })
  1789. } else {
  1790. this.$alert(data.msg, '错误', {
  1791. confirmButtonText: '确定'
  1792. })
  1793. }
  1794. })
  1795. })
  1796. this.walMartOrderDialog=false;
  1797. },
  1798. jihuaEcssDel(row){
  1799. let inData={
  1800. site:row.site,
  1801. delNo:row.delNo,
  1802. notifyStatus:'已计划'
  1803. }
  1804. this.$confirm('确认取消下达吗?', '提示').then(() => {
  1805. changeEcssDelStatus(inData).then(({data}) => {
  1806. if (data && data.code === 0) {
  1807. this.searchTable()
  1808. this.$message({
  1809. message: '操作成功',
  1810. type: 'success',
  1811. duration: 1500,
  1812. onClose: () => {}
  1813. })
  1814. } else {
  1815. this.$alert(data.msg, '错误', {
  1816. confirmButtonText: '确定'
  1817. })
  1818. }
  1819. })
  1820. })
  1821. },
  1822. // 每页数
  1823. sizeChangeHandle3 (val) {
  1824. this.pageSize3 = val
  1825. this.pageIndex3 = 1
  1826. this.queryComponentPartModal()
  1827. },
  1828. // 当前页
  1829. currentChangeHandle3 (val) {
  1830. this.pageIndex3 = val
  1831. this.queryComponentPartModal()
  1832. },
  1833. // 子物料列表
  1834. queryComponentPartModal () {
  1835. this.componentPartData.limit = this.pageSize3
  1836. this.componentPartData.page = this.pageIndex3
  1837. this.componentPartData.site = this.currentRow.site
  1838. this.componentPartData.buNo = this.currentRow.buNo
  1839. // 查询所有物料
  1840. queryPartListAll(this.componentPartData).then(({data}) => {
  1841. if (data && data.code === 0) {
  1842. this.componentPartList = data.page.list
  1843. this.pageIndex3 = data.page.currPage
  1844. this.pageSize3 = data.page.pageSize
  1845. this.totalPage3 = data.page.totalCount
  1846. this.componentPartModelFlag = true
  1847. } else {
  1848. this.componentPartList = []
  1849. }
  1850. })
  1851. },
  1852. // 物料查询列表
  1853. queryComponentPartList () {
  1854. this.componentPartData.limit = this.pageSize3
  1855. this.componentPartData.page = this.pageIndex3
  1856. // 查询所有物料
  1857. queryPartListAll(this.componentPartData).then(({data}) => {
  1858. if (data && data.code === 0) {
  1859. this.componentPartList = data.page.list
  1860. this.pageIndex3 = data.page.currPage
  1861. this.pageSize3 = data.page.pageSize
  1862. this.totalPage3 = data.page.totalCount
  1863. } else {
  1864. this.componentPartList = []
  1865. }
  1866. })
  1867. },
  1868. // 双击选中子物料
  1869. getComponentRowData (row) {
  1870. this.updateDetailModel.partDescription = row.partDesc
  1871. this.updateDetailModel.pn = row.sku
  1872. this.updateDetailModel.partNo = row.partNo
  1873. this.componentPartModelFlag = false
  1874. },
  1875. doUpdateDetail(){
  1876. if(this.updateDetailModel.partNo==null||this.updateDetailModel.partNo==''){
  1877. this.$alert('请输入PN!', '错误', {
  1878. confirmButtonText: '确定'
  1879. })
  1880. return false
  1881. }
  1882. if(this.updateDetailModel.qty==null||this.updateDetailModel.qty==''){
  1883. this.$alert('请输入QTY!', '错误', {
  1884. confirmButtonText: '确定'
  1885. })
  1886. return false
  1887. }
  1888. if(this.updateDetailModel.qty<=0){
  1889. this.$alert('QTY必须大于0!', '错误', {
  1890. confirmButtonText: '确定'
  1891. })
  1892. return false
  1893. }
  1894. updateEcssDelDetail(this.updateDetailModel).then(({data}) => {
  1895. if (data && data.code === 0) {
  1896. this.refreshCurrentTabTable()
  1897. this.updateDetailModelFlag=false
  1898. this.$message({
  1899. message: '操作成功',
  1900. type: 'success',
  1901. duration: 1500,
  1902. onClose: () => {}
  1903. })
  1904. } else {
  1905. this.$alert(data.msg, '错误', {
  1906. confirmButtonText: '确定'
  1907. })
  1908. }
  1909. })
  1910. },
  1911. openCreateDetailModel(){
  1912. this.updateDetailModel.site=this.currentRow.site;
  1913. this.updateDetailModel.buNo=this.currentRow.buNo;
  1914. this.updateDetailModel.delNo=this.currentRow.delNo;
  1915. this.updateDetailModel.partNo=''
  1916. this.updateDetailModel.qty=''
  1917. this.updateDetailModel.partDescription=''
  1918. this.updateDetailModel.itemNo=''
  1919. this.updateDetailModel.salesOrder=''
  1920. this.updateDetailModel.line=''
  1921. this.updateDetailModel.customerPO=''
  1922. this.updateDetailModel.version=''
  1923. this.updateDetailModel.status=''
  1924. this.updateDetailModel.family=''
  1925. this.updateDetailModel.lt=''
  1926. this.updateDetailModel.cmcComment=''
  1927. this.updateDetailModel.saleType=''
  1928. this.updateDetailModel.awbBl=''
  1929. this.updateDetailModel.shippingNumber=''
  1930. this.updateDetailModel.forwarderInfo=''
  1931. this.updateDetailModel.currency=''
  1932. this.updateDetailModel.tp=''
  1933. this.updateDetailModel.ttlAmount=''
  1934. this.updateDetailModel.sumPrice=''
  1935. this.updateDetailModel.so=''
  1936. this.updateDetailModel.upc=''
  1937. this.updateDetailModel.remark=''
  1938. this.updateDetailModel.pn=''
  1939. this.updateDetailModel.addFlag=0
  1940. this.updateDetailModelFlag=true
  1941. },
  1942. openUpdateDetailModel(row){
  1943. this.updateDetailModel=JSON.parse(JSON.stringify(row));
  1944. this.updateDetailModel.addFlag=1
  1945. this.updateDetailModelFlag=true
  1946. },
  1947. deleteDelDetail(row){
  1948. this.$confirm('确认取消此明细?', '提示').then(() => {
  1949. deleteEcssDelDetail(row).then(({data}) => {
  1950. if (data && data.code === 0) {
  1951. this.refreshCurrentTabTable()
  1952. this.$message({
  1953. message: '操作成功',
  1954. type: 'success',
  1955. duration: 1500,
  1956. onClose: () => {}
  1957. })
  1958. } else {
  1959. this.$alert(data.msg, '错误', {
  1960. confirmButtonText: '确定'
  1961. })
  1962. }
  1963. })
  1964. })
  1965. },
  1966. getBu () {
  1967. let tempData = {
  1968. username: this.$store.state.user.name,
  1969. }
  1970. getBuList(tempData).then(({data}) => {
  1971. if (data.code === 0) {
  1972. this.buList = data.row2
  1973. if (this.buList.length===1) {
  1974. this.searchData.buNo = this.buList[0].buNo;
  1975. }
  1976. }
  1977. })
  1978. },
  1979. //导出excel
  1980. async createExportData() {
  1981. this.searchData.limit = -1
  1982. this.searchData.page = 1
  1983. await searchEcssCoDelNotifyHeader(this.searchData).then(({data}) => {
  1984. this.exportList= data.page.list;
  1985. })
  1986. return this.exportList;
  1987. },
  1988. startDownload() {
  1989. // this.exportData = this.dataList
  1990. },
  1991. finishDownload() {
  1992. },
  1993. fields() {
  1994. let json = "{"
  1995. this.columnList1.forEach((item, index) => {
  1996. if (index == this.columnList1.length - 1) {
  1997. json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
  1998. } else {
  1999. json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
  2000. }
  2001. })
  2002. json += "}"
  2003. let s = eval("(" + json + ")")
  2004. return s
  2005. },
  2006. getSummaries(param) {
  2007. const { columns } = param;
  2008. const sums = [];
  2009. columns.forEach((column, index) => {
  2010. if (index === 0) {
  2011. sums[index] = '合计';
  2012. return;
  2013. }
  2014. let sumDataList = this.dataList2.filter(item => item.qty>0);
  2015. const values = sumDataList.map(item => Number(item[column.property]));
  2016. if (!values.every(value => isNaN(value))) {
  2017. switch(column.property) {
  2018. case 'qty':
  2019. sums[index] = `${values.reduce((a, b) => a + b, 0)}`;
  2020. break;
  2021. case 'ttlAmount':
  2022. sums[index] = `${values.reduce((a, b) => a + b, 0).toFixed(2)}`;
  2023. break;
  2024. case 'sumPrice':
  2025. sums[index] = `${values.reduce((a, b) => a + b, 0).toFixed(2)}`;
  2026. break;
  2027. default:
  2028. sums[index] = '';
  2029. }
  2030. } else {
  2031. sums[index] = '';
  2032. }
  2033. });
  2034. this.$nextTick(() => this.$refs.detailTable.doLayout());// 强制刷新布局, 否则会被表格覆盖
  2035. return sums;
  2036. }
  2037. },
  2038. activated() {
  2039. this.searchTable()
  2040. },
  2041. created() {
  2042. this.getBu ()
  2043. }
  2044. }
  2045. </script>
  2046. <style lang="scss" >
  2047. .warning-row td{
  2048. color: darkred !important;
  2049. }
  2050. </style>