TemporaryOrder.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <template>
  2. <!--布局容器-->
  3. <div class="InvoicedAndSettled" style="width: 99%; margin-top: 0px">
  4. <templateTable
  5. :formList="formList"
  6. :searchData.sync="searchData"
  7. :tableConfig="tableConfig"
  8. :data="tableData"
  9. @findPage="findPage"
  10. @handleSearchList="handleSearchList"
  11. :pagination="pageData"
  12. >
  13. </templateTable>
  14. <el-dialog
  15. title="编辑"
  16. :visible.sync="dialogVisible"
  17. width="70%"
  18. :before-close="handleClose"
  19. >
  20. <!-- <templateTable ref="templateTable" :tableConfig="tableConfigDetail" :data="formTableData"
  21. @findPage="findPageDetail">
  22. <template slot="settlementAmount" slot-scope="scope">
  23. <el-input v-model="scope.row.invoicCommissionFeevalue" style="width:120px" size="mini"></el-input>
  24. </template>
  25. </templateTable>
  26. <span slot="footer" class="dialog-footer">
  27. <el-button size="small" @click="submitBalance" type="primary">结算</el-button>
  28. <el-button size="small" @click="dialogVisible = false">取消</el-button>
  29. </span> -->
  30. </el-dialog>
  31. </div>
  32. </template>
  33. <script>
  34. import templateTable from "@/components/TemplateTable/index.vue";
  35. import { mapState } from "vuex";
  36. export default {
  37. name: "baosi",
  38. components: { templateTable },
  39. created() {},
  40. computed: {
  41. ...mapState({
  42. perms: (state) => state.user.perms,
  43. }),
  44. },
  45. data() {
  46. return {
  47. fileList: [],
  48. searchData: {},
  49. formList: [
  50. {
  51. label: "订单号",
  52. prop: "id",
  53. type: "input",
  54. },
  55. // {
  56. // label: "审核人",
  57. // prop: "auditname",
  58. // type: "input",
  59. // },
  60. {
  61. label: "车牌号",
  62. prop: "licenseno",
  63. type: "input",
  64. },
  65. ],
  66. tableConfig: {
  67. columns: [
  68. {
  69. prop: "id",
  70. label: "订单号",
  71. type: "text",
  72. },
  73. // {
  74. // prop: "auditname",
  75. // label: "审核人",
  76. // type: "text",
  77. // },
  78. {
  79. prop: "licenseno",
  80. label: "车牌号",
  81. type: "text",
  82. },
  83. // {
  84. // prop: "rejectinfo",
  85. // label: "驳回原因",
  86. // type: "text",
  87. // },
  88. {
  89. prop: "jqpremium",
  90. label: "交强保费",
  91. type: "text",
  92. },
  93. {
  94. prop: "sypremium",
  95. label: "商业保费",
  96. type: "text",
  97. },
  98. {
  99. prop: "taxamount",
  100. label: "车船税",
  101. type: "text",
  102. },
  103. {
  104. prop: "sumpremium",
  105. label: "保费合计",
  106. type: "text",
  107. },
  108. ],
  109. loading: true,
  110. isPaginationShow: true,
  111. optBtns: [
  112. {
  113. type: "primary",
  114. label: "编辑",
  115. click: (row, index) => {
  116. return this.haldNewDetail(row);
  117. },
  118. },
  119. ],
  120. },
  121. tableData: [],
  122. pageData: {
  123. pageNum: 1,
  124. pageSize: 20,
  125. },
  126. dialogVisible: false,
  127. };
  128. },
  129. created() {
  130. this.findPage();
  131. },
  132. methods: {
  133. // 查询
  134. handleSearchList(data) {
  135. this.findPage(data);
  136. },
  137. //列表数据
  138. findPage(data) {
  139. this.tableConfig.loading = true;
  140. this.$api.task.stagePage({ ...this.pageData, ...data }).then((res) => {
  141. if (res.code == 200) {
  142. this.tableData = res.data.records;
  143. this.pageData.pageNum = res.data.pageNum;
  144. this.pageData.pageSize = res.data.pageSize;
  145. this.pageData.totalSize = res.data.totalSize;
  146. this.tableConfig.loading = false;
  147. } else {
  148. this.$message.error(res.msg);
  149. }
  150. });
  151. },
  152. haldNewDetail(row) {
  153. this.$api.letter.getByOrderNo({ orderNo: row.orderno }).then((res) => {
  154. if (res.code == 200) {
  155. this.$router.push({
  156. path: "/task/external/externalOrders",
  157. query: {
  158. data: {
  159. ...res.data,
  160. orderExternalStatus: row.orderExternalStatus,
  161. },
  162. },
  163. });
  164. } else {
  165. this.$message.error(res.msg);
  166. }
  167. });
  168. // this.dialogVisible = true
  169. },
  170. handleClose() {
  171. this.findPage();
  172. this.dialogVisible = false;
  173. },
  174. tablePageChange(val) {
  175. this.pageData.pageSize = val;
  176. this.findPage();
  177. },
  178. tableCurrentChange(val) {
  179. this.pageData.pageNum = val;
  180. this.findPage();
  181. },
  182. },
  183. };
  184. </script>
  185. <style scoped lang="scss">
  186. </style>