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.

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