receivable_list-detail.vue 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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="incomeDept"
  154. min-width="160"
  155. show-overflow-tooltip
  156. ></el-table-column>
  157. <el-table-column
  158. align="center"
  159. label="现金钱包"
  160. prop="customerWalletName"
  161. min-width="160"
  162. show-overflow-tooltip
  163. ></el-table-column>
  164. <el-table-column
  165. align="center"
  166. label="*发票类型"
  167. prop="invoiceType"
  168. min-width="160"
  169. show-overflow-tooltip
  170. >
  171. <template slot-scope="scope">
  172. <el-select
  173. disabled
  174. filterable
  175. v-model="scope.row.invoiceType"
  176. placeholder="请选择"
  177. >
  178. <el-option label="普通发票" value=""> </el-option>
  179. <el-option label="增值税发票" value="1"> </el-option>
  180. <el-option label="机票" value="P"> </el-option>
  181. <el-option label="火车票" value="R"> </el-option>
  182. <el-option label="其他运输票" value="O"> </el-option>
  183. <el-option label="其他" value="E"> </el-option>
  184. </el-select>
  185. </template>
  186. </el-table-column>
  187. <!-- <el-table-column
  188. align="center"
  189. label="不含税金额"
  190. prop="afterTaxAmount"
  191. min-width="160"
  192. show-overflow-tooltip
  193. ></el-table-column>
  194. <el-table-column
  195. align="center"
  196. label="税额"
  197. prop="tax"
  198. min-width="160"
  199. show-overflow-tooltip
  200. ></el-table-column> -->
  201. <el-table-column
  202. align="center"
  203. label="总金额"
  204. prop="totalAmount"
  205. min-width="160"
  206. show-overflow-tooltip
  207. ></el-table-column>
  208. <el-table-column
  209. align="center"
  210. label="备注"
  211. prop="remark"
  212. min-width="160"
  213. show-overflow-tooltip
  214. ></el-table-column>
  215. </el-table>
  216. </div>
  217. </div>
  218. <div v-if="searchForm.examineStatus != '待审核'">
  219. <span>审批记录</span>
  220. <el-divider></el-divider>
  221. <div class="diy-table-1">
  222. <el-row :gutter="0">
  223. <el-col :span="8" class="item">
  224. <div class="label">审批人</div>
  225. <div class="value">{{ this.examineBy }}</div>
  226. </el-col>
  227. <el-col :span="8" class="item">
  228. <div class="label">审批结果</div>
  229. <div class="value">
  230. <el-radio-group v-model="examineStatus">
  231. <el-radio disabled label="OK">通过</el-radio>
  232. <el-radio disabled label="FAIL">驳回</el-radio>
  233. </el-radio-group>
  234. </div>
  235. </el-col>
  236. <el-col :span="8" class="item">
  237. <div class="label">审批时间</div>
  238. <div class="value">{{ this.examineTime }}</div>
  239. </el-col>
  240. <el-col :span="24" class="item">
  241. <div class="label">审批说明</div>
  242. <div class="value">
  243. {{ this.examineRemark }}
  244. </div>
  245. </el-col>
  246. </el-row>
  247. </div>
  248. </div>
  249. <br />
  250. </div>
  251. </template>
  252. <script>
  253. import { getFinanceOtherReceDetail } from "@/api/finance/receivable_list";
  254. export default {
  255. props: {
  256. approvalId: {
  257. type: String,
  258. required: true,
  259. },
  260. },
  261. data() {
  262. return {
  263. dataList: [],
  264. listLoading: false, // 列表加载loading
  265. examineBy: "", //审核人
  266. examineTime: "", //审核时间
  267. examineStatus: null, //审核状态
  268. examineRemark: "", //审核备注
  269. searchForm: {
  270. billType: "",
  271. code: "",
  272. source: "",
  273. theTime: "",
  274. endTime: "",
  275. totalAmount: "",
  276. examineStatus: "",
  277. remark: "",
  278. },
  279. };
  280. },
  281. created() {
  282. this.getDataList();
  283. },
  284. methods: {
  285. async getDataList() {
  286. const res = await getFinanceOtherReceDetail({ id: this.approvalId });
  287. console.log(res);
  288. this.examineBy = res.data.examineBy;
  289. this.examineTime = res.data.examineTime;
  290. this.examineStatus = res.data.examineStatus;
  291. this.examineRemark = res.data.examineRemark;
  292. this.searchForm = {
  293. billType: res.data.billType,
  294. code: res.data.code,
  295. source: res.data.source,
  296. theTime: res.data.theTime,
  297. endTime: res.data.endTime,
  298. totalAmount: res.data.totalAmount,
  299. examineStatus:
  300. res.data.examineStatus == "OK"
  301. ? "已通过"
  302. : res.data.examineStatus == "FAIL"
  303. ? "不通过"
  304. : "待审核",
  305. remark: res.data.remark,
  306. };
  307. this.dataList = res.data.items;
  308. },
  309. goBack() {
  310. this.$parent.showPage = 1;
  311. },
  312. },
  313. };
  314. </script>
  315. <style></style>