receivable_list-detail.vue 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. <template>
  2. <div>
  3. <div class="sty">
  4. <el-page-header @back="goBack"> </el-page-header>
  5. </div>
  6. <br />
  7. <span>基本信息</span>
  8. <el-divider></el-divider>
  9. <!-- 表头 -->
  10. <div>
  11. <el-form
  12. ref="searchForm"
  13. :model="searchForm"
  14. label-width="100px"
  15. size="small"
  16. label-position="left"
  17. >
  18. <el-row :gutter="20">
  19. <el-col :xs="24" :sm="12" :lg="6">
  20. <el-form-item label="单据类型" prop="">
  21. <el-input
  22. disabled
  23. v-model="searchForm.billType"
  24. placeholder="请输入"
  25. ></el-input>
  26. </el-form-item>
  27. </el-col>
  28. <el-col :xs="24" :sm="12" :lg="6">
  29. <el-form-item label="单据编号" prop="">
  30. <el-input
  31. disabled
  32. v-model="searchForm.code"
  33. placeholder="请输入"
  34. ></el-input>
  35. </el-form-item>
  36. </el-col>
  37. <el-col :xs="24" :sm="12" :lg="6">
  38. <el-form-item label="单据来源" prop="">
  39. <el-input
  40. disabled
  41. v-model="searchForm.source"
  42. placeholder="请输入"
  43. ></el-input>
  44. </el-form-item>
  45. </el-col>
  46. <el-col :xs="24" :sm="12" :lg="6">
  47. <el-form-item label="单据状态" prop="">
  48. <el-input
  49. disabled
  50. v-model="searchForm.examineStatus"
  51. placeholder="请输入"
  52. ></el-input>
  53. </el-form-item>
  54. </el-col>
  55. <el-col :xs="24" :sm="12" :lg="6">
  56. <el-form-item label="业务日期" prop="">
  57. <el-input
  58. disabled
  59. v-model="searchForm.theTime"
  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. disabled
  68. v-model="searchForm.endTime"
  69. placeholder="请输入"
  70. ></el-input>
  71. </el-form-item>
  72. </el-col>
  73. <el-col :xs="24" :sm="12" :lg="6">
  74. <el-form-item label="总金额" prop="">
  75. <el-input
  76. disabled
  77. v-model="searchForm.totalAmount"
  78. placeholder="请输入"
  79. ></el-input>
  80. </el-form-item>
  81. </el-col>
  82. <el-col :xs="24" :sm="12" :lg="6">
  83. <el-form-item label="备注" prop="">
  84. <el-input
  85. disabled
  86. v-model="searchForm.remark"
  87. placeholder="请输入"
  88. ></el-input>
  89. </el-form-item>
  90. </el-col>
  91. </el-row>
  92. </el-form>
  93. </div>
  94. <span>明细</span>
  95. <el-divider></el-divider>
  96. <!-- 列表 -->
  97. <div class="mymain-container">
  98. <div class="table">
  99. <el-table
  100. v-loading="listLoading"
  101. :data="dataList"
  102. element-loading-text="Loading"
  103. border
  104. fit
  105. highlight-current-row
  106. stripe
  107. >
  108. <el-table-column
  109. label="序号"
  110. align="center"
  111. type="index"
  112. width="100"
  113. show-overflow-tooltip
  114. ></el-table-column>
  115. <el-table-column
  116. align="center"
  117. label="经销商编号"
  118. prop="customerNumber"
  119. min-width="160"
  120. show-overflow-tooltip
  121. ></el-table-column>
  122. <el-table-column
  123. align="center"
  124. label="经销商名称"
  125. prop="customerName"
  126. min-width="160"
  127. show-overflow-tooltip
  128. ></el-table-column>
  129. <el-table-column
  130. align="center"
  131. label="*费用项目编码"
  132. prop="projectCode"
  133. min-width="160"
  134. show-overflow-tooltip
  135. ></el-table-column>
  136. <el-table-column
  137. align="center"
  138. label="项目费用名称"
  139. prop="projectName"
  140. min-width="160"
  141. show-overflow-tooltip
  142. ></el-table-column>
  143. <el-table-column
  144. align="center"
  145. label="*费用承担部门"
  146. prop="departmentId"
  147. min-width="160"
  148. show-overflow-tooltip
  149. ></el-table-column>
  150. <el-table-column
  151. align="center"
  152. label="现金钱包"
  153. prop=""
  154. min-width="160"
  155. show-overflow-tooltip
  156. ></el-table-column>
  157. <el-table-column
  158. align="center"
  159. label="*发票类型"
  160. prop="invoiceType"
  161. min-width="160"
  162. show-overflow-tooltip
  163. ></el-table-column>
  164. <el-table-column
  165. align="center"
  166. label="不含税金额"
  167. prop="afterTaxAmount"
  168. min-width="160"
  169. show-overflow-tooltip
  170. ></el-table-column>
  171. <el-table-column
  172. align="center"
  173. label="税额"
  174. prop="tax"
  175. min-width="160"
  176. show-overflow-tooltip
  177. ></el-table-column>
  178. <el-table-column
  179. align="center"
  180. label="总金额"
  181. prop="totalAmount"
  182. min-width="160"
  183. show-overflow-tooltip
  184. ></el-table-column>
  185. <el-table-column
  186. align="center"
  187. label="备注"
  188. prop="remark"
  189. min-width="160"
  190. show-overflow-tooltip
  191. ></el-table-column>
  192. </el-table>
  193. </div>
  194. </div>
  195. <span>审批记录</span>
  196. <el-divider></el-divider>
  197. <div class="diy-table-1">
  198. <el-row :gutter="0">
  199. <el-col :span="8" class="item">
  200. <div class="label">审批人</div>
  201. <div class="value">{{ this.examineBy }}</div>
  202. </el-col>
  203. <el-col :span="8" class="item">
  204. <div class="label">审批结果</div>
  205. <div class="value">
  206. <el-radio-group v-model="examineStatus">
  207. <el-radio disabled label="OK">通过</el-radio>
  208. <el-radio disabled label="FAIL">驳回</el-radio>
  209. </el-radio-group>
  210. </div>
  211. </el-col>
  212. <el-col :span="8" class="item">
  213. <div class="label">审批时间</div>
  214. <div class="value">{{ this.examineTime }}</div>
  215. </el-col>
  216. <el-col :span="24" class="item">
  217. <div class="label">审批说明</div>
  218. <div class="value">
  219. {{ this.examineRemark }}
  220. </div>
  221. </el-col>
  222. </el-row>
  223. </div>
  224. <br />
  225. </div>
  226. </template>
  227. <script>
  228. import { getFinanceOtherReceDetail } from "@/api/finance/receivable_list";
  229. export default {
  230. props: {
  231. approvalId: {
  232. type: String,
  233. required: true,
  234. },
  235. },
  236. data() {
  237. return {
  238. dataList: [],
  239. listLoading: false, // 列表加载loading
  240. examineBy: "", //审核人
  241. examineTime: "", //审核时间
  242. examineStatus: null, //审核状态
  243. examineRemark: "", //审核备注
  244. searchForm: {
  245. billType: "",
  246. code: "",
  247. source: "",
  248. theTime: "",
  249. endTime: "",
  250. totalAmount: "",
  251. examineStatus: "",
  252. remark: "",
  253. },
  254. };
  255. },
  256. created() {
  257. this.getDataList();
  258. },
  259. methods: {
  260. async getDataList() {
  261. const res = await getFinanceOtherReceDetail({ id: this.approvalId });
  262. console.log(res);
  263. this.examineBy = res.data.examineBy;
  264. this.examineTime = res.data.examineTime;
  265. this.examineStatus = res.data.examineStatus;
  266. this.examineRemark = res.data.examineRemark;
  267. this.searchForm = {
  268. billType: res.data.billType,
  269. code: res.data.code,
  270. source: res.data.source,
  271. theTime: res.data.theTime,
  272. endTime: res.data.endTime,
  273. totalAmount: res.data.totalAmount,
  274. examineStatus: res.data.examineStatus == "OK" ? "已通过" : "驳回",
  275. remark: res.data.remark,
  276. };
  277. this.dataList = res.data.items;
  278. },
  279. goBack() {
  280. this.$parent.showPage = 1;
  281. },
  282. },
  283. };
  284. </script>
  285. <style>
  286. </style>