ProRequirements.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. <template>
  2. <div >
  3. <a-form-model ref="formRef">
  4. <a-table
  5. ref="table"
  6. size="middle"
  7. bordered
  8. id='sonList'
  9. :columns="columns"
  10. rowKey="rowNo"
  11. :dataSource="dataSource"
  12. :pagination="false"
  13. :scroll="{ x: 5500, y: 300 }"
  14. :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
  15. @change="handleTableChange"
  16. >
  17. <template slot="purchaseQuantity" slot-scope="text, record, index">
  18. <a-form-model-item prop="purchaseQuantity" class='sonItem'>
  19. <a-input placeholder="请输入" v-model="record.purchaseQuantity"></a-input>
  20. </a-form-model-item>
  21. </template>
  22. <template slot="purchaseUnQuantity" slot-scope="text, record, index">
  23. <a-form-model-item prop="purchaseUnQuantity" class='sonItem'>
  24. <a-input placeholder="请输入" v-model="record.purchaseUnQuantity"></a-input>
  25. </a-form-model-item>
  26. </template>
  27. </a-table>
  28. </a-form-model>
  29. </div>
  30. </template>
  31. <script>
  32. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  33. import JEllipsis from '@/components/jeecg/JEllipsis'
  34. import moment from 'moment'
  35. export default {
  36. name: 'ProRequirements', // Tabs 详情
  37. mixins: [JeecgListMixin],
  38. components: {
  39. JEllipsis,
  40. moment,
  41. },
  42. data() {
  43. return {
  44. selectedRowKeys:[],
  45. selectedRows:[],
  46. dataSource:[],
  47. columns: [
  48. {
  49. title: '#',
  50. dataIndex: '',
  51. key: 'rowIndex',
  52. width: 60,
  53. align: "center",
  54. customRender:function (t, r, index) {
  55. return parseInt(index)+1;
  56. }
  57. },
  58. {
  59. title: '项目编码',
  60. align:"center",
  61. dataIndex: 'projectCode',
  62. ellipsis: true,
  63. },
  64. {
  65. title: '项目名称',
  66. align:"center",
  67. dataIndex: 'projectName',
  68. ellipsis: true,
  69. },
  70. {
  71. title: '批次',
  72. align:"center",
  73. dataIndex: 'batch',
  74. ellipsis: true,
  75. },
  76. {
  77. title: '料品编码',
  78. align:"center",
  79. dataIndex: 'inventoryCode',
  80. ellipsis: true,
  81. },
  82. {
  83. title: '料品名称',
  84. align:"center",
  85. dataIndex: 'inventoryName',
  86. ellipsis: true,
  87. },
  88. {
  89. title: '料品属性',
  90. align:"center",
  91. dataIndex: 'attribute',
  92. ellipsis: true,
  93. },
  94. {
  95. title: '仓库',
  96. align:"center",
  97. dataIndex: 'warehouse',
  98. ellipsis: true,
  99. },
  100. {
  101. title: '建议执行数量',
  102. align:"center",
  103. dataIndex: 'adviseExecuteNum',
  104. ellipsis: true,
  105. },
  106. {
  107. title: '本次采购主数量',
  108. align:"center",
  109. dataIndex: 'purchaseQuantity',
  110. ellipsis: true,
  111. scopedSlots: { customRender: 'purchaseQuantity' }
  112. },
  113. {
  114. title: '本次采购辅数量',
  115. align:"center",
  116. dataIndex: 'purchaseUnQuantity',
  117. ellipsis: true,
  118. scopedSlots: { customRender: 'purchaseUnQuantity' }
  119. },
  120. {
  121. title: '材料请购单主数量',
  122. align:"center",
  123. dataIndex: 'requisitionQuantity',
  124. ellipsis: true,
  125. },
  126. {
  127. title: '材料请购单辅数量',
  128. align:"center",
  129. dataIndex: 'requisitionUnQuantity',
  130. ellipsis: true,
  131. },
  132. {
  133. title: '计量单位',
  134. align:"center",
  135. dataIndex: 'unit',
  136. ellipsis: true,
  137. },
  138. {
  139. title: '辅助计量单位',
  140. align:"center",
  141. dataIndex: 'auxiliaryUnit',
  142. ellipsis: true,
  143. },
  144. {
  145. title: '主数量',
  146. align:"center",
  147. dataIndex: 'quantity',
  148. ellipsis: true,
  149. },
  150. {
  151. title: '辅数量',
  152. align:"center",
  153. dataIndex: 'unQuantity',
  154. ellipsis: true,
  155. },
  156. {
  157. title: '换算率',
  158. align:"center",
  159. dataIndex: 'rate',
  160. ellipsis: true,
  161. },
  162. {
  163. title: '规格',
  164. align:"center",
  165. dataIndex: 'specs',
  166. ellipsis: true,
  167. },
  168. {
  169. title: '型号',
  170. align:"center",
  171. dataIndex: 'model',
  172. ellipsis: true,
  173. },
  174. {
  175. title: '颜色',
  176. align:"center",
  177. dataIndex: 'color',
  178. ellipsis: true,
  179. },
  180. {
  181. title: '支数',
  182. align:"center",
  183. dataIndex: 'fixedNum',
  184. ellipsis: true,
  185. },
  186. {
  187. title: '定尺',
  188. align:"center",
  189. dataIndex: 'fixedLength',
  190. ellipsis: true,
  191. },
  192. {
  193. title: '宽/高',
  194. align:"center",
  195. dataIndex: 'widthHeight',
  196. ellipsis: true,
  197. },
  198. {
  199. title: '片数',
  200. align:"center",
  201. dataIndex: 'pieces',
  202. ellipsis: true,
  203. },
  204. {
  205. title: '米重',
  206. align:"center",
  207. dataIndex: 'meterWeight',
  208. ellipsis: true,
  209. },
  210. {
  211. title: '装饰面周长',
  212. align:"center",
  213. dataIndex: 'decorationLength',
  214. ellipsis: true,
  215. },
  216. {
  217. title: '窗号',
  218. align:"center",
  219. dataIndex: 'windowNo',
  220. ellipsis: true,
  221. },
  222. {
  223. title: '专用区',
  224. align:"center",
  225. dataIndex: 'exclusiveZone',
  226. ellipsis: true,
  227. },
  228. {
  229. title: '樘数(数量)',
  230. align:"center",
  231. dataIndex: 'framesTang',
  232. ellipsis: true,
  233. },
  234. {
  235. title: '框数量',
  236. align:"center",
  237. dataIndex: 'framesCount',
  238. ellipsis: true,
  239. },
  240. {
  241. title: '扇数量',
  242. align:"center",
  243. dataIndex: 'leafCount',
  244. ellipsis: true,
  245. },
  246. {
  247. title: '半成品分类',
  248. align:"center",
  249. dataIndex: 'semiClass',
  250. ellipsis: true,
  251. },
  252. {
  253. title: '面积',
  254. align:"center",
  255. dataIndex: 'area',
  256. ellipsis: true,
  257. },
  258. {
  259. title: '切割长度',
  260. align:"center",
  261. dataIndex: 'cuttingLength',
  262. ellipsis: true,
  263. },
  264. {
  265. title: '切割角度左下',
  266. align:"center",
  267. dataIndex: 'cuttingLeftDown',
  268. ellipsis: true,
  269. },
  270. {
  271. title: '切割角度右上',
  272. align:"center",
  273. dataIndex: 'cuttingRightTop',
  274. ellipsis: true,
  275. },
  276. {
  277. title: '系列',
  278. align:"center",
  279. dataIndex: 'series',
  280. ellipsis: true,
  281. },
  282. {
  283. title: '玻璃编号',
  284. align:"center",
  285. dataIndex: 'glassNumber',
  286. ellipsis: true,
  287. },
  288. ]
  289. }
  290. },
  291. props: {
  292. },
  293. created() {},
  294. methods: {
  295. onSelectChange(selectedRowKeys, selectionRows) {
  296. this.selectedRowKeys = selectedRowKeys;
  297. this.selectedRows = selectionRows;
  298. },
  299. handleTableChange(){
  300. }
  301. },
  302. computed: {
  303. // 合计数据
  304. // sumInfoSource() {}
  305. }
  306. }
  307. </script>
  308. <style lang="less" scoped>
  309. /* @import '~@assets/less/common.less' */
  310. /deep/.ant-input{
  311. height:29px;
  312. }
  313. /deep/.ant-select-selection--single {
  314. height: 29px;
  315. }
  316. /deep/.ant-select{
  317. font-size: 12px;
  318. }
  319. /deep/.ant-form label{
  320. font-size: 12px;
  321. }
  322. /deep/.table-page-search-wrapper .ant-form-inline .ant-form-item{
  323. margin-bottom:9px
  324. }
  325. /deep/.moddle>.ant-card-body{
  326. padding-bottom:0px;
  327. padding-top: 12px;
  328. }
  329. /deep/.top>.ant-card-body{
  330. padding-bottom:0px;
  331. padding-top: 12px;
  332. }
  333. /deep/.ant-btn{
  334. height:28px
  335. }
  336. /deep/.ant-modal-body{
  337. padding-bottom: 0px;
  338. padding-top: 0px;
  339. }
  340. // /deep/.ant-modal-body{
  341. // background: #f0f2f5;
  342. // }
  343. /deep/.ant-modal-content{
  344. background: #f0f2f5;
  345. }
  346. /deep/.ant-card-body .table-operator {
  347. margin-bottom: 0px;
  348. }
  349. /deep/.three>.ant-card-body{
  350. padding-bottom:12px;
  351. padding-top: 12px;
  352. }
  353. /deep/.bottom>.ant-card-body{
  354. padding-bottom:0px;
  355. padding-top: 12px;
  356. }
  357. /deep/.ant-calendar-picker{
  358. min-width: 0px !important;
  359. }
  360. /deep/.sonItem {
  361. margin-bottom:0px !important
  362. }
  363. /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 {
  364. padding: 0px 8px !important;
  365. }
  366. </style>