合同小程序前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

213 lines
7.8 KiB

1 year ago
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const api = require("../../api.js");
  4. const common_assets = require("../../common/assets.js");
  5. const _sfc_main = common_vendor.defineComponent({
  6. data() {
  7. return {
  8. records: [
  9. new UTSJSONObject({
  10. id: "1897277583591075841",
  11. orderNum: "CXSC20250305302395",
  12. productName: "畅行无忧",
  13. productServiceYear: "1",
  14. productMoney: null,
  15. productContractTemp: "https://img.augcl.com/temp/test_car_1741181182533.pdf",
  16. productType: "普通产品",
  17. storeName: "上海测试门店",
  18. custName: "陈朋涛",
  19. custAddress: "山东省滕州市龙阳镇",
  20. custCardNo: "532101198906010015",
  21. custPhone: "13456788765",
  22. salePort: "售前",
  23. createBy: "tanzs",
  24. saleName: "lj",
  25. payType: "全款",
  26. custType: 0,
  27. certFront: "https://img.augcl.com/cert/4uUVhHO3qByFbeb95285d2741f5437d370fea46a67b9_1740859563993.jpg",
  28. certBack: "https://img.augcl.com/cert/J4X2ZFsgotLXdcc88281956f0b3fb63708bb497c1698_1740859570051.jpg",
  29. carPic: "https://img.augcl.com/cert/w2Aoeo53vXfBb3f85e86690e90e240e1111c770e6f26_1740859575127.jpg",
  30. busLicense: null,
  31. createTime: "2025-03-05 21:26:39",
  32. updateBy: null,
  33. updateTime: null,
  34. sysOrgCode: null,
  35. status: 1,
  36. contractUrl: "https://img.augcl.com/contract/CXSC20250305302395_1741181199845.pdf",
  37. payee: "上海测试门店",
  38. payeeTime: null,
  39. payVoucherUrl: "https://img.augcl.com/test/F5n9sMOVIOBs363af867a4affb43fcf1cc64bb01916d_1740859625764.png",
  40. salePort_dictText: "售前",
  41. custType_dictText: "个人",
  42. status_dictText: "已生效"
  43. })
  44. ],
  45. cars: [
  46. new UTSJSONObject({
  47. id: "1897277583754653697",
  48. carSeries: "比亚迪海狮05 EV2025款 低配版",
  49. vin: "LC0CE6DB8S4040471",
  50. carType: "燃油车",
  51. useType: "非营运",
  52. newCar: 1,
  53. carModel: "BYD7008BEVB1",
  54. carNo: "fg6545",
  55. engineNo: "2V4003609",
  56. mileage: "10000",
  57. buyTime: "2025-03-02 04:06:50",
  58. buyMoney: 1e4,
  59. buyTax: 885,
  60. orderFkId: "1897277583591075841",
  61. updateBy: null,
  62. createTime: "2025-03-05 21:26:40",
  63. updateTime: null,
  64. sysOrgCode: null,
  65. createBy: "tanzs"
  66. })
  67. ],
  68. vouchers: [],
  69. Finances: [],
  70. productTypeFlag: true
  71. };
  72. },
  73. onLoad(options) {
  74. api.isToken();
  75. api.list(new UTSJSONObject({ id: getApp().id })).then((res = null) => {
  76. this.records = res.result.records;
  77. });
  78. api.queryAppOrderCarByMainId(new UTSJSONObject({ id: getApp().id })).then((res = null) => {
  79. this.cars = res.result;
  80. });
  81. api.queryAppOrderFinanceByMainId(new UTSJSONObject({ id: getApp().id })).then((res = null) => {
  82. this.Finances = res.result;
  83. });
  84. api.queryAppOrderVoucherByMainId(new UTSJSONObject({ id: getApp().id })).then((res = null) => {
  85. this.vouchers = res.result;
  86. });
  87. common_vendor.index.__f__("log", "at pages/index/PayPal_xq.uvue:323", "111", UTS.JSON.parse(this.cars));
  88. this.productTypeFlag = getApp().productTypeFlag;
  89. },
  90. onUpload() {
  91. common_vendor.index.offKeyboardHeightChange();
  92. },
  93. methods: {
  94. keyboardheightchange(e = null) {
  95. },
  96. clickImg() {
  97. common_vendor.index.previewImage({
  98. urls: [this.records[0].payVoucherUrl],
  99. current: "",
  100. success: function(res) {
  101. },
  102. fail: function(res) {
  103. },
  104. complete: function(res = null) {
  105. }
  106. });
  107. },
  108. toBack() {
  109. common_vendor.index.navigateBack({ delta: 1 });
  110. }
  111. }
  112. });
  113. if (!Array) {
  114. const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
  115. _easycom_uni_icons2();
  116. }
  117. const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
  118. if (!Math) {
  119. _easycom_uni_icons();
  120. }
  121. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  122. return common_vendor.e({
  123. a: common_vendor.p({
  124. type: "left",
  125. size: "30",
  126. color: "#c2d4de"
  127. }),
  128. b: common_vendor.o((...args) => $options.toBack && $options.toBack(...args)),
  129. c: common_vendor.t($data.records[0].payType),
  130. d: common_vendor.t($data.records[0].custType == 0 ? "个人" : "公司"),
  131. e: common_vendor.o((...args) => _ctx.onChange && _ctx.onChange(...args)),
  132. f: $data.records[0].certFront,
  133. g: common_vendor.o((...args) => _ctx.uploadPositive && _ctx.uploadPositive(...args)),
  134. h: $data.records[0].certBack,
  135. i: common_vendor.o((...args) => _ctx.uploadReverse && _ctx.uploadReverse(...args)),
  136. j: $data.records[0].carPic,
  137. k: common_vendor.o((...args) => _ctx.uploadCarCert && _ctx.uploadCarCert(...args)),
  138. l: common_assets._imports_3,
  139. m: common_vendor.t($data.records[0].productName),
  140. n: common_vendor.t($data.records[0].storeName),
  141. o: common_vendor.t($data.records[0].custName),
  142. p: common_vendor.t($data.records[0].custAddress),
  143. q: common_vendor.t($data.records[0].custCardNo),
  144. r: common_vendor.t($data.records[0].custPhone),
  145. s: common_vendor.t($data.records[0].storeName),
  146. t: common_vendor.t($data.records[0].saleName),
  147. v: common_assets._imports_3,
  148. w: common_vendor.t($data.cars[0].saleName),
  149. x: common_vendor.t($data.cars[0].carModel),
  150. y: common_vendor.t($data.cars[0].vin),
  151. z: common_vendor.t($data.cars[0].carType),
  152. A: common_vendor.t($data.cars[0].useType),
  153. B: common_vendor.t($data.cars[0].newCar == 0 ? "否" : "是"),
  154. C: common_vendor.t($data.cars[0].carNo),
  155. D: common_vendor.t($data.cars[0].engineNo),
  156. E: $data.productTypeFlag
  157. }, $data.productTypeFlag ? {
  158. F: common_vendor.t($data.cars[0].mileage)
  159. } : {}, {
  160. G: $data.productTypeFlag
  161. }, $data.productTypeFlag ? {
  162. H: common_vendor.t($data.cars[0].buyTime)
  163. } : {}, {
  164. I: $data.productTypeFlag
  165. }, $data.productTypeFlag ? {
  166. J: common_vendor.t($data.cars[0].buyMoney)
  167. } : {}, {
  168. K: $data.productTypeFlag
  169. }, $data.productTypeFlag ? {
  170. L: common_vendor.t($data.cars[0].buyTax)
  171. } : {}, {
  172. M: common_assets._imports_3,
  173. N: $data.productTypeFlag
  174. }, $data.productTypeFlag ? {
  175. O: common_vendor.t($data.vouchers[0].firstBeneficiary)
  176. } : {}, {
  177. P: $data.productTypeFlag
  178. }, $data.productTypeFlag ? {
  179. Q: common_vendor.t($data.vouchers[0].serviceMoney)
  180. } : {}, {
  181. R: $data.productTypeFlag
  182. }, $data.productTypeFlag ? {
  183. S: common_vendor.t($data.vouchers[0].effectiveTime)
  184. } : {}, {
  185. T: $data.productTypeFlag
  186. }, $data.productTypeFlag ? {
  187. U: common_vendor.t($data.vouchers[0].endTime)
  188. } : {}, {
  189. V: $data.productTypeFlag
  190. }, $data.productTypeFlag ? {
  191. W: common_vendor.t($data.vouchers[0].serviceYear)
  192. } : {}, {
  193. X: $data.productTypeFlag
  194. }, $data.productTypeFlag ? {
  195. Y: common_vendor.t($data.vouchers[0].payTime)
  196. } : {}, {
  197. Z: $data.records[0].payVoucherUrl,
  198. aa: common_vendor.o((...args) => $options.clickImg && $options.clickImg(...args)),
  199. ab: $data.records[0].invoiceUrl,
  200. ac: common_vendor.o((...args) => $options.clickImg && $options.clickImg(...args)),
  201. ad: $data.productTypeFlag
  202. }, $data.productTypeFlag ? {
  203. ae: common_assets._imports_3,
  204. af: common_vendor.t($data.Finances[0].lender || 0),
  205. ag: common_vendor.t($data.Finances[0].lenderMoney || 0),
  206. ah: common_vendor.t($data.Finances[0].lenderYear || 0)
  207. } : {}, {
  208. ai: common_vendor.sei(_ctx.virtualHostId, "view")
  209. });
  210. }
  211. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-76649624"]]);
  212. wx.createPage(MiniProgramPage);
  213. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/PayPal_xq.js.map