productWarehousModel.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  1. <template>
  2. <a-modal
  3. title="产品入库"
  4. width="95%"
  5. :visible="visible"
  6. :maskClosable="false"
  7. switchFullscreen
  8. @cancel="handleCancel"
  9. @ok='handleOk'
  10. >
  11. <a-card :bordered="false" class="top" style="margin-bottom:1%;margin-top:1%" :loading = 'loading'>
  12. <div >
  13. <a-form-model ref="formRef" :model="form">
  14. <a-table
  15. ref="table"
  16. size="middle"
  17. bordered
  18. id='sonList'
  19. :columns="columns"
  20. rowKey="rowNo"
  21. :dataSource="form.dataSource"
  22. :pagination="false"
  23. :scroll="{ x: 5500, y: 300 }"
  24. :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
  25. >
  26. <span slot="productInQuantityTitle" class="form-table-heard">
  27. 成品入库数量
  28. </span>
  29. <template slot="productInQuantity" slot-scope="text, record, index">
  30. <a-form-model-item :prop="'dataSource.'+index+'.productInQuantity'" class='sonItem' :rules="rules.productInQuantity">
  31. <a-input placeholder="请输入" v-model="record.productInQuantity" ></a-input>
  32. </a-form-model-item>
  33. </template>
  34. </a-table>
  35. </a-form-model>
  36. </div>
  37. </a-card>
  38. </a-modal>
  39. </template>
  40. <script>
  41. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  42. import JEllipsis from '@/components/jeecg/JEllipsis'
  43. import { httpAction ,getAction,postAction,putAction} from '@/api/manage'
  44. import moment from 'moment'
  45. export default {
  46. name: 'productWarehousModel', // Tabs 详情
  47. mixins: [JeecgListMixin],
  48. components: {
  49. JEllipsis,
  50. moment,
  51. },
  52. data() {
  53. return {
  54. form:{
  55. dataSource:[],
  56. },
  57. loading:false,
  58. columns: [
  59. {
  60. title: '#',
  61. dataIndex: '',
  62. key: 'rowIndex',
  63. width: 60,
  64. align: "center",
  65. customRender:function (t, r, index) {
  66. return parseInt(index)+1;
  67. }
  68. },
  69. {
  70. title: '开票类型',
  71. align:"center",
  72. dataIndex: 'billingType',
  73. ellipsis: true,
  74. },
  75. {
  76. title: '项目编码',
  77. align:"center",
  78. dataIndex: 'projectCode',
  79. ellipsis: true,
  80. },
  81. {
  82. title: '项目名称',
  83. align:"center",
  84. dataIndex: 'projectName',
  85. ellipsis: true,
  86. },
  87. {
  88. title: '批次',
  89. align:"center",
  90. dataIndex: 'batch',
  91. ellipsis: true,
  92. },
  93. {
  94. title: '料品编码',
  95. align:"center",
  96. dataIndex: 'inventoryCode',
  97. ellipsis: true,
  98. },
  99. {
  100. title: '料品名称',
  101. align:"center",
  102. dataIndex: 'inventoryName',
  103. ellipsis: true,
  104. },
  105. {
  106. // title: '成品入库数量',
  107. align:"center",
  108. dataIndex: 'productInQuantity',
  109. ellipsis: true,
  110. scopedSlots: { customRender: 'productInQuantity' } ,
  111. slots:{title:'productInQuantityTitle'},
  112. },
  113. {
  114. title: '成品计量单位',
  115. align:"center",
  116. dataIndex: 'unit',
  117. ellipsis: true,
  118. },
  119. {
  120. title: '成品辅计量单位',
  121. align:"center",
  122. dataIndex: 'auxiliaryUnit',
  123. ellipsis: true,
  124. },
  125. {
  126. title: '成品主数量',
  127. align:"center",
  128. dataIndex: 'quantity',
  129. ellipsis: true,
  130. },
  131. {
  132. title: '成品辅数量',
  133. align:"center",
  134. dataIndex: 'unQuantity',
  135. ellipsis: true,
  136. },
  137. {
  138. title: '已入库成品数量',
  139. align:"center",
  140. dataIndex: 'quantityExecuteIn',
  141. ellipsis: true,
  142. },
  143. {
  144. title: '框数量',
  145. align:"center",
  146. dataIndex: 'framesCount',
  147. ellipsis: true,
  148. },
  149. {
  150. title: '扇数量',
  151. align:"center",
  152. dataIndex: 'leafCount',
  153. ellipsis: true,
  154. },
  155. {
  156. title: '已入库扇数量',
  157. align:"center",
  158. dataIndex: 'executeInLeaf',
  159. ellipsis: true,
  160. },
  161. {
  162. title: '已入库框数量',
  163. align:"center",
  164. dataIndex: 'executeInFrames',
  165. ellipsis: true,
  166. },
  167. {
  168. title: '已出库扇数量',
  169. align:"center",
  170. dataIndex: 'executeOutLeaf',
  171. ellipsis: true,
  172. },
  173. {
  174. title: '已出库框数量',
  175. align:"center",
  176. dataIndex: 'executeOutFrames',
  177. ellipsis: true,
  178. },
  179. {
  180. title: '规格',
  181. align:"center",
  182. dataIndex: 'specs',
  183. ellipsis: true,
  184. },
  185. {
  186. title: '型号',
  187. align:"center",
  188. dataIndex: 'model',
  189. ellipsis: true,
  190. },
  191. {
  192. title: '颜色',
  193. align:"center",
  194. dataIndex: 'color',
  195. ellipsis: true,
  196. },
  197. {
  198. title: '支数',
  199. align:"center",
  200. dataIndex: 'fixedNum',
  201. ellipsis: true,
  202. },
  203. {
  204. title: '定尺',
  205. align:"center",
  206. dataIndex: 'fixedLength',
  207. ellipsis: true,
  208. },
  209. {
  210. title: '宽/高',
  211. align:"center",
  212. dataIndex: 'widthHeight',
  213. ellipsis: true,
  214. },
  215. {
  216. title: '片数',
  217. align:"center",
  218. dataIndex: 'pieces',
  219. ellipsis: true,
  220. },
  221. {
  222. title: '备注',
  223. align:"center",
  224. dataIndex: 'remarks',
  225. ellipsis: true,
  226. },
  227. {
  228. title: '米重',
  229. align:"center",
  230. dataIndex: 'meterWeight',
  231. ellipsis: true,
  232. },
  233. {
  234. title: '装饰面周长',
  235. align:"center",
  236. dataIndex: 'decorationLength',
  237. ellipsis: true,
  238. },
  239. {
  240. title: '窗号',
  241. align:"center",
  242. dataIndex: 'windowNo',
  243. ellipsis: true,
  244. },
  245. {
  246. title: '专用区',
  247. align:"center",
  248. dataIndex: 'exclusiveZone',
  249. ellipsis: true,
  250. },
  251. {
  252. title: '宽度/长度',
  253. align:"center",
  254. dataIndex: 'widthLength',
  255. ellipsis: true,
  256. },
  257. {
  258. title: '高度',
  259. align:"center",
  260. dataIndex: 'height',
  261. ellipsis: true,
  262. },
  263. {
  264. title: '楼层楼号',
  265. align:"center",
  266. dataIndex: 'buildingNumber',
  267. ellipsis: true,
  268. },
  269. {
  270. title: '樘数(数量)',
  271. align:"center",
  272. dataIndex: 'framesTang',
  273. ellipsis: true,
  274. },
  275. {
  276. title: '半成品分类',
  277. align:"center",
  278. dataIndex: 'semiClass',
  279. ellipsis: true,
  280. },
  281. {
  282. title: '面积',
  283. align:"center",
  284. dataIndex: 'area',
  285. ellipsis: true,
  286. },
  287. {
  288. title: '切割长度',
  289. align:"center",
  290. dataIndex: 'cuttingLength',
  291. ellipsis: true,
  292. },
  293. {
  294. title: '切割角度左下',
  295. align:"center",
  296. dataIndex: 'cuttingLeftDown',
  297. ellipsis: true,
  298. },
  299. {
  300. title: '切割角度右上',
  301. align:"center",
  302. dataIndex: 'cuttingRightTop',
  303. ellipsis: true,
  304. },
  305. {
  306. title: '系列',
  307. align:"center",
  308. dataIndex: 'series',
  309. ellipsis: true,
  310. },
  311. {
  312. title: '玻璃编号',
  313. align:"center",
  314. dataIndex: 'glassNumber',
  315. ellipsis: true,
  316. },
  317. ],
  318. visible:false,
  319. // rules:{
  320. // productInQuantity:{required:true,message:"不可为空"},
  321. // },
  322. }
  323. },
  324. props: {
  325. },
  326. created() {},
  327. methods: {
  328. onSelectChange(selectedRowKeys, selectionRows) {
  329. this.selectedRowKeys = selectedRowKeys;
  330. this.selectedRows = selectionRows;
  331. },
  332. handleOk(){
  333. // this.$refs.formRef.validate(success => {
  334. // if (success) {
  335. // }
  336. // })
  337. if(this.selectedRows.length==0){
  338. this.$message.warning('请勾选数据')
  339. }else{
  340. postAction('/productionOrder/madeProductionOrders/syNcIn', {madeProductionOrdersFinishedList:this.selectedRows}).then((res) => {
  341. if (res.success) {
  342. this.visible = false
  343. this.$emit('ok')
  344. } else {
  345. this.$message.error(res.message);
  346. }
  347. }).finally(() => {
  348. this.loading = false
  349. })
  350. }
  351. },
  352. handleCancel(){
  353. this.visible = false
  354. }
  355. },
  356. computed: {
  357. // 合计数据
  358. // sumInfoSource() {}
  359. }
  360. }
  361. </script>
  362. <style lang="less" scoped>
  363. /* @import '~@assets/less/common.less' */
  364. /deep/.ant-input{
  365. height:29px;
  366. }
  367. /deep/.ant-select-selection--single {
  368. height: 29px;
  369. }
  370. /deep/.ant-select{
  371. font-size: 12px;
  372. }
  373. /deep/.ant-form label{
  374. font-size: 12px;
  375. }
  376. /deep/.table-page-search-wrapper .ant-form-inline .ant-form-item{
  377. margin-bottom:9px
  378. }
  379. /deep/.moddle>.ant-card-body{
  380. padding-bottom:0px;
  381. padding-top: 12px;
  382. }
  383. /deep/.top>.ant-card-body{
  384. padding-bottom:0px;
  385. padding-top: 12px;
  386. }
  387. /deep/.ant-btn{
  388. height:28px
  389. }
  390. /deep/.ant-modal-body{
  391. padding-bottom: 0px;
  392. padding-top: 0px;
  393. }
  394. // /deep/.ant-modal-body{
  395. // background: #f0f2f5;
  396. // }
  397. /deep/.ant-modal-content{
  398. background: #f0f2f5;
  399. }
  400. /deep/.ant-card-body .table-operator {
  401. margin-bottom: 0px;
  402. }
  403. /deep/.three>.ant-card-body{
  404. padding-bottom:12px;
  405. padding-top: 12px;
  406. }
  407. /deep/.bottom>.ant-card-body{
  408. padding-bottom:0px;
  409. padding-top: 12px;
  410. }
  411. /deep/.ant-calendar-picker{
  412. min-width: 0px !important;
  413. }
  414. /deep/.sonItem {
  415. margin-bottom:0px !important
  416. }
  417. /deep/#sonList>.ant-spin-nested-loading>.ant-spin-container>.ant-table>.ant-table-content>.ant-table-scroll>.ant-table-body>.ant-table-fixed>.ant-table-tbody > tr > td {
  418. padding: 0px 8px !important;
  419. }
  420. .form-table-heard:before {
  421. content:'*';
  422. color:red
  423. }
  424. /deep/.ant-form-explain, .ant-form-split {
  425. display: none;
  426. }
  427. </style>