WzOutboundOrderBList.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  1. <template>
  2. <a-card :bordered="false">
  3. <!-- 查询区域 -->
  4. <div class="table-page-search-wrapper">
  5. <a-form layout="inline" @keyup.enter.native="searchQuery">
  6. <a-row :gutter="24">
  7. </a-row>
  8. </a-form>
  9. </div>
  10. <!-- 查询区域-END -->
  11. <!-- 操作按钮区域 -->
  12. <div class="table-operator">
  13. <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
  14. <a-button type="primary" icon="download" @click="handleExportXls('物资出库明细')">导出</a-button>
  15. <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
  16. <a-button type="primary" icon="import">导入</a-button>
  17. </a-upload>
  18. <!-- 高级查询区域 -->
  19. <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
  20. <a-dropdown v-if="selectedRowKeys.length > 0">
  21. <a-menu slot="overlay">
  22. <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
  23. </a-menu>
  24. <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
  25. </a-dropdown>
  26. </div>
  27. <!-- table区域-begin -->
  28. <div>
  29. <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
  30. <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
  31. <a style="margin-left: 24px" @click="onClearSelected">清空</a>
  32. </div>
  33. <a-table
  34. ref="table"
  35. size="middle"
  36. :scroll="{x:true}"
  37. bordered
  38. rowKey="id"
  39. :columns="columns"
  40. :dataSource="dataSource"
  41. :pagination="ipagination"
  42. :loading="loading"
  43. :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
  44. class="j-table-force-nowrap"
  45. @change="handleTableChange">
  46. <template slot="htmlSlot" slot-scope="text">
  47. <div v-html="text"></div>
  48. </template>
  49. <template slot="imgSlot" slot-scope="text,record">
  50. <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
  51. <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
  52. </template>
  53. <template slot="fileSlot" slot-scope="text">
  54. <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
  55. <a-button
  56. v-else
  57. :ghost="true"
  58. type="primary"
  59. icon="download"
  60. size="small"
  61. @click="downloadFile(text)">
  62. 下载
  63. </a-button>
  64. </template>
  65. <span slot="action" slot-scope="text, record">
  66. <a @click="handleEdit(record)">编辑</a>
  67. <a-divider type="vertical" />
  68. <a-dropdown>
  69. <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
  70. <a-menu slot="overlay">
  71. <a-menu-item>
  72. <a @click="handleDetail(record)">详情</a>
  73. </a-menu-item>
  74. <a-menu-item>
  75. <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
  76. <a>删除</a>
  77. </a-popconfirm>
  78. </a-menu-item>
  79. </a-menu>
  80. </a-dropdown>
  81. </span>
  82. </a-table>
  83. </div>
  84. <wz-outbound-order-b-modal ref="modalForm" @ok="modalFormOk"></wz-outbound-order-b-modal>
  85. </a-card>
  86. </template>
  87. <script>
  88. import '@/assets/less/TableExpand.less'
  89. import { mixinDevice } from '@/utils/mixin'
  90. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  91. import WzOutboundOrderBModal from './modules/WzOutboundOrderBModal'
  92. export default {
  93. name: 'WzOutboundOrderBList',
  94. mixins:[JeecgListMixin, mixinDevice],
  95. components: {
  96. WzOutboundOrderBModal
  97. },
  98. data () {
  99. return {
  100. description: '物资出库明细管理页面',
  101. // 表头
  102. columns: [
  103. {
  104. title: '#',
  105. dataIndex: '',
  106. key:'rowIndex',
  107. width:60,
  108. align:"center",
  109. customRender:function (t,r,index) {
  110. return parseInt(index)+1;
  111. }
  112. },
  113. {
  114. title:'物料编码',
  115. align:"center",
  116. dataIndex: 'wlbm'
  117. },
  118. {
  119. title:'物料名称',
  120. align:"center",
  121. dataIndex: 'wlmc'
  122. },
  123. {
  124. title:'规格型号',
  125. align:"center",
  126. dataIndex: 'ggxh'
  127. },
  128. {
  129. title:'牌号',
  130. align:"center",
  131. dataIndex: 'ph'
  132. },
  133. {
  134. title:'详细技术规范',
  135. align:"center",
  136. dataIndex: 'xxjsgf'
  137. },
  138. {
  139. title:'技术标准',
  140. align:"center",
  141. dataIndex: 'jsbz'
  142. },
  143. {
  144. title:'质量等级',
  145. align:"center",
  146. dataIndex: 'zldj'
  147. },
  148. {
  149. title:'封装形式',
  150. align:"center",
  151. dataIndex: 'fzxs'
  152. },
  153. {
  154. title:'生产厂家',
  155. align:"center",
  156. dataIndex: 'sccj'
  157. },
  158. {
  159. title:'国产进口',
  160. align:"center",
  161. dataIndex: 'gcjk'
  162. },
  163. {
  164. title:'采购单价',
  165. align:"center",
  166. dataIndex: 'cgdj'
  167. },
  168. {
  169. title:'内部单价',
  170. align:"center",
  171. dataIndex: 'nbdj'
  172. },
  173. {
  174. title:'备料计划单据号',
  175. align:"center",
  176. dataIndex: 'bljhdjh'
  177. },
  178. {
  179. title:'行号',
  180. align:"center",
  181. dataIndex: 'hh'
  182. },
  183. {
  184. title:'出库日期',
  185. align:"center",
  186. dataIndex: 'ckrq'
  187. },
  188. {
  189. title:'实发主数量',
  190. align:"center",
  191. dataIndex: 'sfzsl'
  192. },
  193. {
  194. title:'应发主数量',
  195. align:"center",
  196. dataIndex: 'yfzsl'
  197. },
  198. {
  199. title:'入库批次号',
  200. align:"center",
  201. dataIndex: 'rkpch'
  202. },
  203. {
  204. title:'型号规格技术指标',
  205. align:"center",
  206. dataIndex: 'xhgljszb'
  207. },
  208. {
  209. title:'工序单号',
  210. align:"center",
  211. dataIndex: 'gxdh'
  212. },
  213. {
  214. title:'DPA号',
  215. align:"center",
  216. dataIndex: 'dpah'
  217. },
  218. {
  219. title:'合格证上传情况',
  220. align:"center",
  221. dataIndex: 'hgzscqk'
  222. },
  223. {
  224. title:'质保有效期',
  225. align:"center",
  226. dataIndex: 'zbyxq'
  227. },
  228. {
  229. title:'外观标识',
  230. align:"center",
  231. dataIndex: 'wgbs'
  232. },
  233. {
  234. title:'供应商批次号',
  235. align:"center",
  236. dataIndex: 'gyspch'
  237. },
  238. {
  239. title:'库位号',
  240. align:"center",
  241. dataIndex: 'kwh'
  242. },
  243. {
  244. title:'质保单位',
  245. align:"center",
  246. dataIndex: 'zbdw'
  247. },
  248. {
  249. title:'质保依据',
  250. align:"center",
  251. dataIndex: 'zbyj'
  252. },
  253. {
  254. title:'任务号',
  255. align:"center",
  256. dataIndex: 'rwh'
  257. },
  258. {
  259. title:'元器件分类',
  260. align:"center",
  261. dataIndex: 'yqjfl'
  262. },
  263. {
  264. title:'出库备注',
  265. align:"center",
  266. dataIndex: 'ckbz'
  267. },
  268. {
  269. title:'出库单表头主键',
  270. align:"center",
  271. dataIndex: 'ckdbtzj'
  272. },
  273. {
  274. title:'出库单表体主键',
  275. align:"center",
  276. dataIndex: 'ckdbtizj'
  277. },
  278. {
  279. title:'来源单据号',
  280. align:"center",
  281. dataIndex: 'lydjh'
  282. },
  283. {
  284. title:'来源单类型编码',
  285. align:"center",
  286. dataIndex: 'lydlxbm'
  287. },
  288. {
  289. title:'来源交易类型主键',
  290. align:"center",
  291. dataIndex: 'lyjylxzj'
  292. },
  293. {
  294. title:'件数',
  295. align:"center",
  296. dataIndex: 'js'
  297. },
  298. {
  299. title:'条码',
  300. align:"center",
  301. dataIndex: 'tm'
  302. },
  303. {
  304. title:'出库单号',
  305. align:"center",
  306. dataIndex: 'ckdh'
  307. },
  308. {
  309. title:'复验单位',
  310. align:"center",
  311. dataIndex: 'fydw'
  312. },
  313. {
  314. title:'最新时间戳',
  315. align:"center",
  316. dataIndex: 'zxsjc'
  317. },
  318. {
  319. title: '操作',
  320. dataIndex: 'action',
  321. align:"center",
  322. fixed:"right",
  323. width:147,
  324. scopedSlots: { customRender: 'action' }
  325. }
  326. ],
  327. url: {
  328. list: "/wzOutboundOrder/wzOutboundOrderB/list",
  329. delete: "/wzOutboundOrder/wzOutboundOrderB/delete",
  330. deleteBatch: "/wzOutboundOrder/wzOutboundOrderB/deleteBatch",
  331. exportXlsUrl: "/wzOutboundOrder/wzOutboundOrderB/exportXls",
  332. importExcelUrl: "wzOutboundOrder/wzOutboundOrderB/importExcel",
  333. },
  334. dictOptions:{},
  335. superFieldList:[],
  336. }
  337. },
  338. created() {
  339. this.getSuperFieldList();
  340. },
  341. computed: {
  342. importExcelUrl: function(){
  343. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  344. },
  345. },
  346. methods: {
  347. initDictConfig(){
  348. },
  349. getSuperFieldList(){
  350. let fieldList=[];
  351. fieldList.push({type:'string',value:'wlbm',text:'物料编码'})
  352. fieldList.push({type:'string',value:'wlmc',text:'物料名称'})
  353. fieldList.push({type:'string',value:'ggxh',text:'规格型号'})
  354. fieldList.push({type:'string',value:'ph',text:'牌号'})
  355. fieldList.push({type:'string',value:'xxjsgf',text:'详细技术规范'})
  356. fieldList.push({type:'string',value:'jsbz',text:'技术标准'})
  357. fieldList.push({type:'string',value:'zldj',text:'质量等级'})
  358. fieldList.push({type:'string',value:'fzxs',text:'封装形式'})
  359. fieldList.push({type:'string',value:'sccj',text:'生产厂家'})
  360. fieldList.push({type:'string',value:'gcjk',text:'国产进口'})
  361. fieldList.push({type:'number',value:'cgdj',text:'采购单价'})
  362. fieldList.push({type:'number',value:'nbdj',text:'内部单价'})
  363. fieldList.push({type:'string',value:'bljhdjh',text:'备料计划单据号'})
  364. fieldList.push({type:'string',value:'hh',text:'行号'})
  365. fieldList.push({type:'string',value:'ckrq',text:'出库日期'})
  366. fieldList.push({type:'number',value:'sfzsl',text:'实发主数量'})
  367. fieldList.push({type:'number',value:'yfzsl',text:'应发主数量'})
  368. fieldList.push({type:'string',value:'rkpch',text:'入库批次号'})
  369. fieldList.push({type:'string',value:'xhgljszb',text:'型号规格技术指标'})
  370. fieldList.push({type:'string',value:'gxdh',text:'工序单号'})
  371. fieldList.push({type:'string',value:'dpah',text:'DPA号'})
  372. fieldList.push({type:'string',value:'hgzscqk',text:'合格证上传情况'})
  373. fieldList.push({type:'string',value:'zbyxq',text:'质保有效期'})
  374. fieldList.push({type:'string',value:'wgbs',text:'外观标识'})
  375. fieldList.push({type:'string',value:'gyspch',text:'供应商批次号'})
  376. fieldList.push({type:'string',value:'kwh',text:'库位号'})
  377. fieldList.push({type:'string',value:'zbdw',text:'质保单位'})
  378. fieldList.push({type:'string',value:'zbyj',text:'质保依据'})
  379. fieldList.push({type:'string',value:'rwh',text:'任务号'})
  380. fieldList.push({type:'string',value:'yqjfl',text:'元器件分类'})
  381. fieldList.push({type:'string',value:'ckbz',text:'出库备注'})
  382. fieldList.push({type:'string',value:'ckdbtzj',text:'出库单表头主键'})
  383. fieldList.push({type:'string',value:'ckdbtizj',text:'出库单表体主键'})
  384. fieldList.push({type:'string',value:'lydjh',text:'来源单据号'})
  385. fieldList.push({type:'string',value:'lydlxbm',text:'来源单类型编码'})
  386. fieldList.push({type:'string',value:'lyjylxzj',text:'来源交易类型主键'})
  387. fieldList.push({type:'string',value:'js',text:'件数'})
  388. fieldList.push({type:'string',value:'tm',text:'条码'})
  389. fieldList.push({type:'string',value:'ckdh',text:'出库单号'})
  390. fieldList.push({type:'string',value:'fydw',text:'复验单位'})
  391. fieldList.push({type:'string',value:'zxsjc',text:'最新时间戳'})
  392. this.superFieldList = fieldList
  393. }
  394. }
  395. }
  396. </script>
  397. <style scoped>
  398. @import '~@assets/less/common.less';
  399. </style>