imoneyCell.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <template>
  2. <a-modal
  3. title="成本金额"
  4. v-model="imoneyModVis"
  5. width="86%"
  6. :footer="null"
  7. @cancel="close"
  8. >
  9. <!-- tabel 加载 -->
  10. <!-- <a-spin> -->
  11. <!-- table -->
  12. <div>
  13. <a-table
  14. ref="tableRef"
  15. bordered
  16. :columns="surplusYarnColumns"
  17. :data-source="imoneyData"
  18. :pagination="false"
  19. :scroll="{ y: 500,x:1500 }"
  20. >
  21. <span slot="iprice" slot-scope="text,record">
  22. <a-input placeholder="请输入" v-model="record.iprice" v-if="record.bmanual == true"/>
  23. <span v-if="record.bmanual==false">{{record.iprice}}</span>
  24. </span>
  25. </a-table>
  26. <!-- 导出 打印 返回 -->
  27. <a-row style="marginTop:20px;">
  28. <a-col :md="24" :sm="12">
  29. <span style="float: right;" class="table-operator">
  30. <a-button type="primary" @click="close" icon="rollback">关闭</a-button>
  31. </span>
  32. </a-col>
  33. </a-row>
  34. </div>
  35. <!-- </a-spin> -->
  36. </a-modal>
  37. </template>
  38. <script>
  39. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  40. import JEllipsis from '@/components/jeecg/JEllipsis'
  41. import JsonExcel from 'vue-json-excel'
  42. export default {
  43. name: 'IquantityMoreLessModal', // 余纱 弹框
  44. mixins: [JeecgListMixin],
  45. components: { JEllipsis, JsonExcel },
  46. data() {
  47. return {
  48. exportTitle:"余纱",
  49. // 表头
  50. surplusYarnColumns: [
  51. {
  52. title: '来源订单号',
  53. width: 100,
  54. dataIndex: 'ccode',
  55. className: 'replacecolor'
  56. },
  57. {
  58. title: '日期',
  59. width: 100,
  60. dataIndex: 'cdate',
  61. className: 'replacecolor'
  62. },
  63. {
  64. title: '物料编号',
  65. width: 100,
  66. dataIndex: 'cinvCode',
  67. className: 'replacecolor'
  68. },
  69. {
  70. title: '物料名称',
  71. width: 100,
  72. dataIndex: 'cinvName',
  73. className: 'replacecolor'
  74. },
  75. {
  76. title: '批号',
  77. width: 80,
  78. dataIndex: 'cbatch',
  79. className: 'replacecolor'
  80. },
  81. {
  82. title: '单价',
  83. width: 80,
  84. dataIndex: 'iprice',
  85. className: 'replacecolor',
  86. scopedSlots: { customRender: 'iprice' }
  87. },
  88. {
  89. title: '数量',
  90. width: 80,
  91. dataIndex: 'iquantity',
  92. className: 'replacecolor'
  93. },
  94. {
  95. title: '金额',
  96. width: 80,
  97. dataIndex: 'imoney',
  98. className: 'replacecolor'
  99. },
  100. ],
  101. imoneyData:[],
  102. imoneyModVis:false
  103. }
  104. },
  105. // 接收父组件 方法
  106. props: {
  107. },
  108. computed: {
  109. },
  110. created() {},
  111. watch:{
  112. },
  113. methods: {
  114. close(){
  115. this.imoneyModVis = false
  116. }
  117. }
  118. }
  119. </script>
  120. <style lang="less" scoped>
  121. @import '~@assets/less/common.less';
  122. @import '~@assets/less/overwriter.less';
  123. /deep/ .ant-table-thead > tr > th {
  124. text-align: center;
  125. // font-weight: 700;
  126. }
  127. /deep/ .ant-table-tbody {
  128. text-align: center;
  129. }
  130. /deep/ .ant-table-footer .ant-table-body {
  131. overflow: hidden !important;
  132. }
  133. // /deep/ th.replacecolor {
  134. // background-color: #ccc;
  135. // }
  136. </style>