modify_list-detail.vue 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <template>
  2. <div>
  3. <div>
  4. <el-page-header @back="goBack" content="详情"> </el-page-header>
  5. </div>
  6. <div style="margin-top: 20px">
  7. <el-form ref="screenForm" :model="detail" label-width="120px" size="small" label-position="left">
  8. <el-row :gutter="20">
  9. <el-col :xs="24" :sm="12" :lg="6">
  10. <el-form-item label="单据编号" prop="billId">
  11. <el-input placeholder="系统生成" disabled v-model="detail.updPriceBillId"></el-input>
  12. </el-form-item>
  13. </el-col>
  14. <el-col :xs="24" :sm="12" :lg="6">
  15. <el-form-item label="调价部门" prop="account">
  16. <el-input placeholder="系统生成" v-model="detail.adminWebsitName" disabled></el-input>
  17. </el-form-item>
  18. </el-col>
  19. <el-col :xs="24" :sm="12" :lg="6">
  20. <el-form-item label="调价业务员" prop="operatorName">
  21. <el-input disabled placeholder="系统生成" v-model="detail.serviceName"></el-input>
  22. </el-form-item>
  23. </el-col>
  24. <el-col :xs="24" :sm="12" :lg="6">
  25. <el-form-item label="备注" prop="operatorName">
  26. <el-input disabled placeholder="系统生成" v-model="detail.remark"></el-input>
  27. </el-form-item>
  28. </el-col>
  29. </el-row>
  30. <div class="mymain-container">
  31. <!-- 列表 -->
  32. <div class="table">
  33. <el-table :data="detail.items" element-loading-text="Loading" border fit highlight-current-row stripe>
  34. <el-table-column
  35. align="center"
  36. label="销售类型"
  37. prop="saleTypeId"
  38. :formatter="formatterType"
  39. min-width="160"
  40. show-overflow-tooltip
  41. ></el-table-column>
  42. <el-table-column
  43. align="center"
  44. label="物料编码"
  45. prop="materialId"
  46. min-width="160"
  47. show-overflow-tooltip
  48. ></el-table-column>
  49. <el-table-column
  50. align="center"
  51. label="产品名称"
  52. prop="materialName"
  53. min-width="160"
  54. show-overflow-tooltip
  55. ></el-table-column>
  56. <el-table-column
  57. align="center"
  58. label="规格型号"
  59. prop="specification"
  60. min-width="160"
  61. show-overflow-tooltip
  62. ></el-table-column>
  63. <el-table-column
  64. align="center"
  65. label="计量单位"
  66. prop="unit"
  67. min-width="160"
  68. show-overflow-tooltip
  69. ></el-table-column>
  70. <el-table-column
  71. align="center"
  72. label="批发价"
  73. prop="batchPrice"
  74. min-width="160"
  75. show-overflow-tooltip
  76. ></el-table-column>
  77. <el-table-column align="center" label="格力折扣" prop="discAmount" min-width="160" show-overflow-tooltip>
  78. </el-table-column>
  79. <el-table-column
  80. align="center"
  81. label="返利类型(钱包)"
  82. prop="wallets2"
  83. min-width="200"
  84. show-overflow-tooltip
  85. >
  86. <template slot-scope="scope">
  87. <template v-for="(item, index) in scope.row.wallets2">
  88. <template v-if="item.type === 'REBATE'">
  89. <el-tag type="success" style="margin: 0 10px" size="mini" :key="index">
  90. {{ item.walletName }}
  91. </el-tag>
  92. </template>
  93. </template>
  94. </template>
  95. </el-table-column>
  96. <el-table-column align="center" label="现金钱包" prop="wallets2" min-width="200" show-overflow-tooltip>
  97. <template slot-scope="scope">
  98. <template v-for="(item, index) in scope.row.wallets2">
  99. <template v-if="item.type === 'COMMONLY'">
  100. <el-tag type="success" style="margin: 0 10px" size="mini" :key="index">
  101. {{ item.walletName }}
  102. </el-tag>
  103. </template>
  104. </template>
  105. </template>
  106. </el-table-column>
  107. <el-table-column align="center" label="生效日期" prop="startDate" min-width="160" show-overflow-tooltip>
  108. </el-table-column>
  109. <el-table-column align="center" label="失效日期" prop="endDate" min-width="160" show-overflow-tooltip>
  110. </el-table-column>
  111. <!-- <el-table-column
  112. align="center"
  113. label="是否促销价"
  114. prop="isPromote"
  115. min-width="160"
  116. show-overflow-tooltip
  117. >
  118. <template slot-scope="scope">
  119. <el-tag type="success" v-if="scope.row.isPromote">是</el-tag>
  120. <el-tag type="danger" v-else>否</el-tag>
  121. </template>
  122. </el-table-column> -->
  123. <el-table-column align="center" label="数量" prop="qty" min-width="160" show-overflow-tooltip>
  124. </el-table-column>
  125. <el-table-column align="center" label="发布" prop="isPublish" min-width="160" show-overflow-tooltip>
  126. <template slot-scope="scope">
  127. <el-tag type="success" size="mini" v-if="scope.row.isPublish">是</el-tag>
  128. <el-tag type="danger" size="mini" v-else>否</el-tag>
  129. </template>
  130. </el-table-column>
  131. </el-table>
  132. </div>
  133. </div>
  134. <div class="diy-table-1">
  135. <el-row :gutter="0">
  136. <el-col :xs="12" :sm="8" :lg="8" class="item">
  137. <div class="label">审批人</div>
  138. <div class="value">
  139. <!-- {{ this.$store.getters.name }} -->
  140. {{ detail.confirmName }}
  141. </div>
  142. </el-col>
  143. <el-col :xs="12" :sm="8" :lg="8" class="item">
  144. <div class="label">审批结果</div>
  145. <div class="value">
  146. {{ detail.examineStatus == 'OK' ? '通过' : '驳回' }}
  147. </div>
  148. </el-col>
  149. <el-col :xs="12" :sm="8" :lg="8" class="item">
  150. <div class="label">审批时间</div>
  151. <div class="value">{{ detail.confirmTime }}</div>
  152. </el-col>
  153. <el-col :xs="24" :sm="24" :lg="24" class="item">
  154. <div class="label">审批说明</div>
  155. <div class="value">{{ detail.examineNote }}</div>
  156. </el-col>
  157. </el-row>
  158. </div>
  159. </el-form>
  160. </div>
  161. </div>
  162. </template>
  163. <script>
  164. import { getTypeList, getUserList } from '@/api/basic_data/material'
  165. export default {
  166. props: {
  167. detail: {
  168. type: Object,
  169. default: {}
  170. }
  171. },
  172. data() {
  173. return {
  174. dataList: [
  175. {
  176. SalesType: '*一票机*',
  177. code: '23022051775',
  178. name: '夏之凉变频1',
  179. model: 'KFR-26GW',
  180. company: '套',
  181. wholesale: '2999',
  182. retail: '2899',
  183. rebate: '0.8',
  184. effectiveDate: '2021-11-02',
  185. expiryDate: '2021-11-02',
  186. promotion: '否',
  187. number: '51',
  188. release: '是'
  189. }
  190. ],
  191. typeList: [],
  192. userList: [],
  193. men: '',
  194. ren: ''
  195. }
  196. },
  197. created() {
  198. let params = {
  199. pageNum: 1,
  200. pageSize: -1,
  201. saleCode: '',
  202. saleName: '',
  203. status: ''
  204. }
  205. console.log(this.detail)
  206. getTypeList(params).then(res => {
  207. this.typeList = res.data.records
  208. })
  209. getUserList({
  210. pageNum: 1,
  211. pageSize: -1,
  212. adminWebsitId: '',
  213. isCustomer: 0,
  214. roleId: '',
  215. status: '',
  216. userName: ''
  217. }).then(res => {
  218. this.userList = res.data.records
  219. var a = this.userList.filter(k => {
  220. return k.roleId == this.detail.serviceId
  221. })[0]
  222. // this.men = a.adminCompanyName;
  223. // this.ren = a.nickName;
  224. })
  225. },
  226. methods: {
  227. formatterType(row) {
  228. return this.typeList.filter(k => {
  229. return k.id == row.saleTypeId
  230. })[0]?.saleName
  231. },
  232. goBack() {
  233. // console.log(this.$parent)
  234. // this.$parent.show = 1
  235. this.$emit('back')
  236. }
  237. }
  238. }
  239. </script>
  240. <style lang="scss" scoped>
  241. ::v-deep .el-date-editor--date {
  242. width: 100%;
  243. }
  244. ::v-deep .el-select {
  245. width: 100%;
  246. }
  247. </style>