change_list-examine.vue 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <template>
  2. <div>
  3. <div class="sty">
  4. <el-page-header @back="goBack" content="审核"> </el-page-header>
  5. </div>
  6. <br />
  7. <br />
  8. <span>返利互转单</span>
  9. <el-divider></el-divider>
  10. <!-- 筛选条件 -->
  11. <div>
  12. <el-form label-width="100px" size="small" label-position="left">
  13. <el-row :gutter="20">
  14. <el-col :xs="24" :sm="12" :lg="6">
  15. <el-form-item label="返利互转单号" prop="">
  16. <el-input v-model="detailList.id" placeholder="请输入"></el-input>
  17. </el-form-item>
  18. </el-col>
  19. <el-col :xs="24" :sm="12" :lg="6">
  20. <el-form-item label="单据日期" prop="">
  21. <el-input
  22. v-model="detailList.theTime"
  23. placeholder="请输入"
  24. ></el-input>
  25. </el-form-item>
  26. </el-col>
  27. <el-col :xs="24" :sm="12" :lg="6">
  28. <el-form-item label="制单人" prop="">
  29. <el-input placeholder="请输入"></el-input>
  30. </el-form-item>
  31. </el-col>
  32. <el-col :xs="24" :sm="12" :lg="6">
  33. <el-form-item label="经销商编号" prop="">
  34. <el-input
  35. v-model="detailList.customerNumber"
  36. placeholder="请输入"
  37. ></el-input>
  38. </el-form-item>
  39. </el-col>
  40. <el-col :xs="24" :sm="12" :lg="6">
  41. <el-form-item label="经销商名称" prop="">
  42. <el-input
  43. v-model="detailList.customerName"
  44. placeholder="请输入"
  45. ></el-input>
  46. </el-form-item>
  47. </el-col>
  48. <el-col :xs="24" :sm="12" :lg="6">
  49. <el-form-item label="备注信息" prop="">
  50. <el-input
  51. v-model="detailList.remark"
  52. placeholder="请输入"
  53. ></el-input>
  54. </el-form-item>
  55. </el-col>
  56. <el-col :xs="24" :sm="12" :lg="6">
  57. <el-form-item label="审核人" prop="">
  58. <el-input
  59. v-model="detailList.examineBy"
  60. placeholder="请输入"
  61. ></el-input>
  62. </el-form-item>
  63. </el-col>
  64. <el-col :xs="24" :sm="12" :lg="6">
  65. <el-form-item label="审核日期" prop="">
  66. <el-input
  67. v-model="detailList.examineTime"
  68. placeholder="请输入"
  69. ></el-input>
  70. </el-form-item>
  71. </el-col>
  72. </el-row>
  73. </el-form>
  74. </div>
  75. <!-- 列表 -->
  76. <div class="mymain-container">
  77. <div class="table">
  78. <el-table
  79. v-loading="listLoading"
  80. :data="dataList"
  81. element-loading-text="Loading"
  82. border
  83. fit
  84. highlight-current-row
  85. stripe
  86. >
  87. <el-table-column
  88. label="序号"
  89. align="center"
  90. width="100"
  91. type="index"
  92. show-overflow-tooltip
  93. ></el-table-column>
  94. <el-table-column
  95. align="center"
  96. label="返利类型"
  97. prop="customerWalletName"
  98. min-width="160"
  99. show-overflow-tooltip
  100. ></el-table-column>
  101. <el-table-column
  102. align="center"
  103. label="返利金额"
  104. prop="amount"
  105. min-width="160"
  106. show-overflow-tooltip
  107. ></el-table-column>
  108. <el-table-column
  109. align="center"
  110. label="备注"
  111. prop="remark"
  112. min-width="160"
  113. show-overflow-tooltip
  114. ></el-table-column>
  115. </el-table>
  116. </div>
  117. </div>
  118. <div class="diy-table-1">
  119. <el-row :gutter="0">
  120. <el-col :span="12" class="item">
  121. <div class="label">审批人</div>
  122. <div class="value">{{ this.name }}</div>
  123. </el-col>
  124. <el-col :span="12" class="item">
  125. <div class="label">审批结果</div>
  126. <div class="value">
  127. <el-radio v-model="examineStatus" label="OK">通过</el-radio>
  128. <el-radio v-model="examineStatus" label="FALL">驳回</el-radio>
  129. </div>
  130. </el-col>
  131. <el-col :span="24" class="item">
  132. <div class="label">审批说明</div>
  133. <div class="value">
  134. <el-input v-model="remark" placeholder="请输入内容"></el-input>
  135. </div>
  136. </el-col>
  137. </el-row>
  138. </div>
  139. <br />
  140. <!-- 按钮 -->
  141. <div class="btn-group clearfix">
  142. <div class="fl">
  143. <el-button type="primary" size="small" @click="btnFn">确定</el-button>
  144. <el-button type="primary" size="small" @click="resetFn">重置</el-button>
  145. </div>
  146. </div>
  147. </div>
  148. </template>
  149. <script>
  150. import { getChangeListExamine } from "@/api/finance/change_list";
  151. import { mapGetters } from "vuex";
  152. export default {
  153. props: {
  154. detailList: {
  155. type: Object,
  156. required: true,
  157. },
  158. },
  159. data() {
  160. return {
  161. remark: "",
  162. examineStatus: "",
  163. dataList: [], // 列表数据
  164. // searchForm: {}, //搜索表单
  165. listLoading: false, // 列表加载loading
  166. };
  167. },
  168. computed: { ...mapGetters(["name"]) },
  169. created() {
  170. this.dataList = [
  171. {
  172. customerWalletName: this.detailList.initiatorCustomerWalletName,
  173. remark: this.detailList.initiatorRemark,
  174. amount: -this.detailList.amount,
  175. },
  176. {
  177. customerWalletName: this.detailList.receiverCustomerWalletName,
  178. remark: this.detailList.receiverRemark,
  179. amount: this.detailList.amount,
  180. },
  181. ];
  182. },
  183. methods: {
  184. //重置
  185. resetFn() {
  186. this.remark = "";
  187. this.examineStatus = "";
  188. },
  189. //确定
  190. async btnFn() {
  191. // console.log(this.detailList);
  192. await getChangeListExamine({
  193. id: this.detailList.id,
  194. remark: this.remark,
  195. examineStatus: this.examineStatus,
  196. });
  197. this.$message.success("已审核");
  198. },
  199. goBack() {
  200. this.$emit("refresh");
  201. this.$parent.showPage = 1;
  202. },
  203. },
  204. };
  205. </script>
  206. <style>
  207. </style>