合同小程序前端代码仓库
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.

769 lines
28 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
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. uploadConfig: new UTSJSONObject({
  9. // 上传地址
  10. url: "https://gpt.aiym.run/contract/miniapp/file/upload",
  11. // 文件字段名
  12. name: "file",
  13. // 请求头
  14. header: new UTSJSONObject({}),
  15. // 附带的表单数据
  16. formData: new UTSJSONObject({
  17. "biz": "cert"
  18. }),
  19. // 是否开启实际上传
  20. enabled: true
  21. }),
  22. clientInfo: new UTSJSONObject({
  23. appOrderCarList: [
  24. new UTSJSONObject({
  25. buyMoney: 0,
  26. buyTax: 0,
  27. buyTime: null,
  28. carModel: "",
  29. carNo: "",
  30. carSeries: "",
  31. carType: "",
  32. engineNo: "",
  33. mileage: "",
  34. newCar: 0,
  35. useType: "",
  36. vin: ""
  37. })
  38. ],
  39. appOrderFinanceList: [
  40. new UTSJSONObject({
  41. lender: "",
  42. lenderMone: 0,
  43. lenderYear: "",
  44. lenderMoney: ""
  45. })
  46. ],
  47. appOrderVoucherList: [
  48. new UTSJSONObject({
  49. dealerAddress: "",
  50. effectiveTime: null,
  51. endTime: null,
  52. firstBeneficiary: "",
  53. packageMoney: 0,
  54. payTime: "",
  55. serviceMoney: 0,
  56. serviceYear: ""
  57. })
  58. ],
  59. carPic: "",
  60. certBack: "",
  61. certFront: "",
  62. custAddress: "",
  63. custCardNo: "",
  64. custName: "",
  65. custPhone: "",
  66. custType: 0,
  67. invoiceUrl: "",
  68. payType: "全款",
  69. payVoucherUrl: "",
  70. payee: "",
  71. productName: "自动填写所选商品服务分类",
  72. productServiceYear: 1,
  73. saleName: "",
  74. salePort: "售前",
  75. status: 0,
  76. storeName: "自动填写所选择的门店"
  77. }),
  78. keyboardHeight: 0,
  79. fileList1: [],
  80. fileList2: [],
  81. departments: ["售前", "售后", "二网车"],
  82. carType: ["燃油车", "新能源"],
  83. useType: ["非营运", "营运"],
  84. serviceYear: "",
  85. isTrue: false,
  86. carBrandIndex: -1,
  87. useTypeIndex: -1,
  88. serviceAges: [],
  89. serviceAgeIndex: -1,
  90. payees: [],
  91. payeeIndex: -1,
  92. screenHeight: 0,
  93. curHeight: 0,
  94. // 扫描
  95. positiveImg: "/static/image/组件 4 – 1.png",
  96. certFront: "",
  97. carPic: "",
  98. certBack: "",
  99. // 反面身份证
  100. reverseImg: "/static/image/组 71663.png",
  101. // 行车驾驶证
  102. carImg: "/static/image/组件 2 – 1.png"
  103. //自己图片路径
  104. };
  105. },
  106. onLoad(options) {
  107. api.isToken();
  108. this.clientInfo.storeName = getApp().storeName || "自动填写所选择的门店";
  109. this.clientInfo.productName = getApp().productName || "自动填写所选商品服务分类";
  110. this.clientInfo.appOrderVoucherList[0].dealerAddress = getApp().dealerAddress;
  111. this.clientInfo.productContractTemp = getApp().productUrl;
  112. for (var index = 0; index < getApp().allMsg.length; index++) {
  113. this.payees.push(getApp().allMsg[index].storeName);
  114. }
  115. this.clientInfo.payee = getApp().storeName;
  116. this.uploadConfig.header = new UTSJSONObject({
  117. "X-Access-Token": common_vendor.index.getStorageSync("token")
  118. });
  119. api.queryDictItemsByCode(new UTSJSONObject({ code: "service_year" })).then((res = null) => {
  120. common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:432", res);
  121. for (var i = 0; i < res.length; i++) {
  122. this.serviceAges.unshift(res[i].text);
  123. }
  124. });
  125. let clientInfo = UTS.JSON.parse(decodeURIComponent(options.clientInfo));
  126. if (clientInfo) {
  127. this.clientInfo = UTS.JSON.parse(decodeURIComponent(options.clientInfo));
  128. this.certFront = getApp().certFront;
  129. this.carPic = getApp().carPic;
  130. this.certBack = getApp().certBack;
  131. }
  132. },
  133. onUpload() {
  134. common_vendor.index.offKeyboardHeightChange();
  135. },
  136. methods: {
  137. isEmpty(value = null) {
  138. if (value === null || value === void 0)
  139. return false;
  140. if (typeof value === "string" && value.trim() === "")
  141. return false;
  142. if (Array.isArray(value) && value.length === 0)
  143. return false;
  144. if (typeof value === "object" && Object.keys(value).length === 0)
  145. return false;
  146. return true;
  147. },
  148. handleFocus() {
  149. common_vendor.index.onKeyboardHeightChange((res = null) => {
  150. this.keyboardHeight = res.height;
  151. });
  152. },
  153. // 凭证上传函数
  154. deletePic(event = null) {
  155. this[`fileList${event.name}`].splice(event.index, 1);
  156. },
  157. // 新增图片
  158. afterRead(event = null) {
  159. return common_vendor.__awaiter(this, void 0, void 0, function* () {
  160. let lists = [].concat(event.file);
  161. let fileListLen = this[`fileList${event.name}`].length;
  162. lists.map((item) => {
  163. this[`fileList${event.name}`].push(new UTSJSONObject(Object.assign(Object.assign({}, item), { status: "uploading", message: "上传中" })));
  164. });
  165. for (let i = 0; i < lists.length; i++) {
  166. const result = yield this.uploadFilePromise(lists[i].url, event.name);
  167. let item = this[`fileList${event.name}`][fileListLen];
  168. this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {
  169. status: "success",
  170. message: "",
  171. url: result
  172. }));
  173. fileListLen++;
  174. }
  175. });
  176. },
  177. uploadFilePromise(url = null, name = null) {
  178. let token = common_vendor.index.getStorageSync("token");
  179. return new Promise((resolve, reject) => {
  180. common_vendor.index.uploadFile({
  181. url: "https://www.shengchuangyunkong.com/contract/miniapp/file/upload",
  182. filePath: url,
  183. name: "file",
  184. formData: new UTSJSONObject({
  185. biz: "test"
  186. }),
  187. header: new UTSJSONObject({
  188. "X-Access-Token": token
  189. }),
  190. success: (res) => {
  191. if (name == "1") {
  192. this.clientInfo.payVoucherUrl = UTS.JSON.parse(res.data).message;
  193. setTimeout(() => {
  194. resolve(res.data.data);
  195. }, 1e3);
  196. } else {
  197. this.clientInfo.invoiceUrl = UTS.JSON.parse(res.data).message;
  198. setTimeout(() => {
  199. resolve(res.data.data);
  200. }, 1e3);
  201. }
  202. }
  203. });
  204. });
  205. },
  206. get_to() {
  207. common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:524", "suss", UTS.JSON.parse(UTS.JSON.stringify(this.clientInfo)));
  208. for (var i in this.clientInfo) {
  209. if (typeof this.clientInfo[i] == "object") {
  210. for (var j in this.clientInfo[i]) {
  211. if (!this.isEmpty(this.clientInfo[i][j]) && j != "carNo" && j != "lender" && j != "lenderMoney" && j != "lenderYear") {
  212. common_vendor.index.showToast({
  213. title: "提交失败,请检查字段是否未填!",
  214. icon: "error",
  215. duration: 500,
  216. success: (res) => {
  217. },
  218. fail: (res) => {
  219. }
  220. });
  221. return false;
  222. }
  223. }
  224. } else {
  225. if (!this.isEmpty(this.clientInfo[i])) {
  226. common_vendor.index.showToast({
  227. title: "提交失败,请检查字段是否未填!",
  228. icon: "error",
  229. duration: 500,
  230. success: (res) => {
  231. },
  232. fail: (res) => {
  233. }
  234. });
  235. return false;
  236. }
  237. }
  238. }
  239. api.add(this.clientInfo).then((res = null) => {
  240. if (res.success) {
  241. common_vendor.index.showToast({
  242. title: "提交成功",
  243. icon: "success",
  244. duration: 500,
  245. success: (res2) => {
  246. },
  247. fail: (res2) => {
  248. }
  249. });
  250. common_vendor.index.switchTab({ url: "/pages/index/dingdan" });
  251. } else {
  252. common_vendor.index.showToast({
  253. title: "提交失败,请检查格式!",
  254. icon: "error",
  255. duration: 500,
  256. success: (res2) => {
  257. },
  258. fail: (res2) => {
  259. }
  260. });
  261. }
  262. }).catch((err = null) => {
  263. common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:583", "err", err);
  264. });
  265. },
  266. getCar() {
  267. getApp().flag = 0;
  268. common_vendor.index.navigateTo({
  269. url: "/pages/views/carOne?clientInfo=" + encodeURIComponent(UTS.JSON.stringify(this.clientInfo))
  270. });
  271. getApp().certFront = this.certFront;
  272. getApp().carPic = this.carPic;
  273. getApp().certBack = this.certBack;
  274. },
  275. toBack() {
  276. common_vendor.index.redirectTo({
  277. url: "/pages/views/dingDanCreate"
  278. });
  279. },
  280. handleDepartmentChange(e = null) {
  281. this.clientInfo.salePort = e;
  282. },
  283. // 修改车辆类型
  284. bindCarBrandChanges(e = null) {
  285. this.clientInfo.appOrderCarList[0].carType = this.carType[e.detail.value];
  286. },
  287. // serviceYearChanges(e){
  288. // this.clientInfo.appOrderVoucherList[0].serviceYear = this.serviceAges[e.detail.value]
  289. // this.serviceYear = this.serviceAges[e.detail.value]
  290. // uni.__f__('log','at pages/index/PayPal.uvue:615',e.detail.value )
  291. // },
  292. // 修改车辆类型
  293. binduseTypeChanges(e = null) {
  294. this.clientInfo.appOrderCarList[0].useType = this.useType[e.detail.value];
  295. },
  296. // // 取服务年限
  297. // bindServiceAgeChange(e) {
  298. // this.serviceAgeIndex = e.detail.value
  299. // if(this.serviceAges[e.detail.value] == '1年'){
  300. // this.clientInfo.productServiceYear = 1;
  301. // }else if(this.serviceAges[e.detail.value] == '2年' ){
  302. // this.clientInfo.productServiceYear = 2;
  303. // }else{
  304. // this.clientInfo.productServiceYear = 3;
  305. // };
  306. // },
  307. // 选择收款方
  308. bindPayeeChange(e = null) {
  309. this.payeeIndex = e.detail.value;
  310. this.clientInfo.payee = this.payees[e.detail.value];
  311. },
  312. msToDate(msec = null) {
  313. let datetime = new Date(msec);
  314. let year = datetime.getFullYear();
  315. let month = datetime.getMonth();
  316. let date = datetime.getDate();
  317. let hour = datetime.getHours();
  318. let minute = datetime.getMinutes();
  319. let second = datetime.getSeconds();
  320. let result1 = year + "-" + (month + 1 >= 10 ? month + 1 : "0" + (month + 1)) + "-" + (date + 1 < 10 ? "0" + date : date) + " " + (hour + 1 < 10 ? "0" + hour : hour) + ":" + (minute + 1 < 10 ? "0" + minute : minute) + ":" + (second + 1 < 10 ? "0" + second : second);
  321. let result2 = year + "-" + (month + 1 >= 10 ? month + 1 : "0" + (month + 1)) + "-" + (date + 1 < 10 ? "0" + date : date);
  322. let result = new UTSJSONObject({
  323. hasTime: result1,
  324. withoutTime: result2
  325. });
  326. return result;
  327. },
  328. // 修改生效时间
  329. changeEffectiveTime(e = null) {
  330. var dateTime = new Date(e);
  331. dateTime.setDate(dateTime.getDate() + 2);
  332. dateTime = new Date(dateTime);
  333. this.clientInfo.appOrderVoucherList[0].effectiveTime = this.msToDate(dateTime).withoutTime;
  334. },
  335. changeTime(e = null) {
  336. common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:683", e.detail.value);
  337. if (this.clientInfo.appOrderVoucherList[0].effectiveTime) {
  338. this.clientInfo.appOrderVoucherList[0].serviceYear = this.serviceAges[e.detail.value];
  339. this.serviceYear = this.serviceAges[e.detail.value];
  340. var dateTime = new Date(this.clientInfo.appOrderVoucherList[0].effectiveTime);
  341. let year = Number(dateTime.getFullYear()) + Number(e.detail.value) + 1;
  342. dateTime.setFullYear(year);
  343. dateTime = new Date(dateTime);
  344. this.clientInfo.appOrderVoucherList[0].endTime = this.msToDate(dateTime).withoutTime;
  345. } else {
  346. common_vendor.index.showToast({
  347. title: "请先选择生效时间!",
  348. icon: "error",
  349. duration: 500,
  350. success: (res) => {
  351. },
  352. fail: (res) => {
  353. }
  354. });
  355. }
  356. },
  357. changebuyTax() {
  358. this.clientInfo.appOrderCarList[0].buyTax = (this.clientInfo.appOrderCarList[0].buyMoney / 11.3).toFixed(2);
  359. },
  360. // 身份证正面上传
  361. uploadPositive() {
  362. common_vendor.index.chooseImage({
  363. count: 1,
  364. sizeType: ["original", "compressed"],
  365. sourceType: ["album", "camera"],
  366. success: (res) => {
  367. let filePath = res.tempFilePaths[0];
  368. let token = common_vendor.index.getStorageSync("token");
  369. this.uploadIdentify(token, "front", filePath, "sfz");
  370. }
  371. });
  372. },
  373. // 身份证反面上传
  374. uploadReverse() {
  375. common_vendor.index.chooseImage({
  376. count: 1,
  377. sizeType: ["original", "compressed"],
  378. sourceType: ["album", "camera"],
  379. success: (res) => {
  380. let filePath = res.tempFilePaths[0];
  381. let token = common_vendor.index.getStorageSync("token");
  382. this.uploadIdentify(token, "back", filePath, "sfz");
  383. }
  384. });
  385. },
  386. uploadCarCert() {
  387. common_vendor.index.chooseImage({
  388. count: 1,
  389. sizeType: ["original", "compressed"],
  390. sourceType: ["album", "camera"],
  391. success: (res) => {
  392. let filePath = res.tempFilePaths[0];
  393. let token = common_vendor.index.getStorageSync("token");
  394. this.uploadIdentify(token, "", filePath, "carCert");
  395. }
  396. });
  397. },
  398. // 上传识别
  399. uploadIdentify(token = null, side = null, filePath = null, type = null) {
  400. common_vendor.index.uploadFile({
  401. url: "https://www.shengchuangyunkong.com/contract/miniapp/file/upload",
  402. filePath,
  403. name: "file",
  404. formData: new UTSJSONObject({
  405. "biz": "cert"
  406. }),
  407. header: new UTSJSONObject({
  408. "X-Access-Token": token
  409. }),
  410. success: (res) => {
  411. let image = UTS.JSON.parse(res.data).message;
  412. if (type == "sfz") {
  413. api.idCardInfo(new UTSJSONObject({ "side": side, "url": UTS.JSON.parse(res.data).message })).then((res2 = null) => {
  414. if (res2.success) {
  415. if (side == "front") {
  416. this.clientInfo.custName = res2.result.name;
  417. this.clientInfo.appOrderVoucherList[0].firstBeneficiary = res2.result.name;
  418. this.clientInfo.custAddress = res2.result.address;
  419. this.clientInfo.custCardNo = res2.result.idCard;
  420. this.clientInfo.certFront = image;
  421. this.certFront = filePath;
  422. } else {
  423. this.clientInfo.certBack = image;
  424. this.certBack = filePath;
  425. }
  426. } else {
  427. common_vendor.index.showToast({
  428. title: "身份证识别错误,请重新上传!",
  429. icon: "error",
  430. duration: 500,
  431. success: (res3) => {
  432. },
  433. fail: (res3) => {
  434. }
  435. });
  436. }
  437. }).catch((err = null) => {
  438. common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:789", "catch: ", err);
  439. });
  440. } else if (type == "carCert") {
  441. api.carCert(new UTSJSONObject({ "url": UTS.JSON.parse(res.data).message })).then((res2 = null) => {
  442. if (res2.success) {
  443. this.clientInfo.appOrderCarList[0].vin = res2.result.VinNo;
  444. this.clientInfo.carPic = image;
  445. this.carPic = filePath;
  446. this.clientInfo.appOrderCarList[0].engineNo = res2.result.EngineNo;
  447. this.clientInfo.appOrderCarList[0].carModel = res2.result.CarModel;
  448. } else {
  449. common_vendor.index.showToast({
  450. title: "识别错误,请重新上传!",
  451. icon: "error",
  452. duration: 500,
  453. success: (res3) => {
  454. },
  455. fail: (res3) => {
  456. }
  457. });
  458. }
  459. }).catch((err = null) => {
  460. common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:816", "catch: ", err);
  461. });
  462. }
  463. },
  464. fail: (err) => {
  465. common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:823", err);
  466. }
  467. });
  468. },
  469. onChange(e = null) {
  470. if (e == "个人") {
  471. this.clientInfo.custType = 0;
  472. } else {
  473. this.clientInfo.custType = 1;
  474. }
  475. },
  476. onChanges(e = null) {
  477. if (e == "是") {
  478. this.clientInfo.appOrderCarList[0].newCar = 1;
  479. } else {
  480. this.clientInfo.appOrderCarList[0].newCar = 0;
  481. }
  482. }
  483. }
  484. });
  485. if (!Array) {
  486. const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
  487. const _easycom_l_radio2 = common_vendor.resolveComponent("l-radio");
  488. const _easycom_l_radio_group2 = common_vendor.resolveComponent("l-radio-group");
  489. const _easycom_uni_datetime_picker2 = common_vendor.resolveComponent("uni-datetime-picker");
  490. const _easycom_uv_upload2 = common_vendor.resolveComponent("uv-upload");
  491. (_easycom_uni_icons2 + _easycom_l_radio2 + _easycom_l_radio_group2 + _easycom_uni_datetime_picker2 + _easycom_uv_upload2)();
  492. }
  493. const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
  494. const _easycom_l_radio = () => "../../uni_modules/lime-radio/components/l-radio/l-radio.js";
  495. const _easycom_l_radio_group = () => "../../uni_modules/lime-radio/components/l-radio-group/l-radio-group.js";
  496. const _easycom_uni_datetime_picker = () => "../../uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.js";
  497. const _easycom_uv_upload = () => "../../uni_modules/uv-upload/components/uv-upload/uv-upload.js";
  498. if (!Math) {
  499. (_easycom_uni_icons + _easycom_l_radio + _easycom_l_radio_group + _easycom_uni_datetime_picker + _easycom_uv_upload)();
  500. }
  501. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  502. return common_vendor.e({
  503. a: common_vendor.p({
  504. type: "left",
  505. size: "30",
  506. color: "#c2d4de"
  507. }),
  508. b: common_vendor.o((...args) => $options.toBack && $options.toBack(...args)),
  509. c: common_vendor.w(({
  510. checked
  511. }, s0, i0) => {
  512. return {
  513. a: checked,
  514. b: !checked,
  515. c: i0,
  516. d: s0
  517. };
  518. }, {
  519. name: "icon",
  520. path: "c",
  521. vueId: "643091e0-1"
  522. }),
  523. d: common_assets._imports_0$4,
  524. e: common_assets._imports_1$3,
  525. f: common_vendor.p({
  526. checked: $data.clientInfo.payType === "全款",
  527. label: "全款",
  528. fontSize: "1rem"
  529. }),
  530. g: common_vendor.w(({
  531. checked
  532. }, s0, i0) => {
  533. return {
  534. a: checked,
  535. b: !checked,
  536. c: i0,
  537. d: s0
  538. };
  539. }, {
  540. name: "icon",
  541. path: "g",
  542. vueId: "643091e0-3,643091e0-2"
  543. }),
  544. h: common_assets._imports_0$4,
  545. i: common_assets._imports_1$3,
  546. j: common_vendor.p({
  547. checked: $data.clientInfo.custType == 0 ? true : false,
  548. value: "个人",
  549. label: "个人",
  550. fontSize: "1rem"
  551. }),
  552. k: common_vendor.w(({
  553. checked
  554. }, s0, i0) => {
  555. return {
  556. a: checked,
  557. b: !checked,
  558. c: i0,
  559. d: s0
  560. };
  561. }, {
  562. name: "icon",
  563. path: "k",
  564. vueId: "643091e0-4,643091e0-2"
  565. }),
  566. l: common_assets._imports_0$4,
  567. m: common_assets._imports_1$3,
  568. n: common_vendor.p({
  569. checked: $data.clientInfo.custType == 1 ? true : false,
  570. value: "公司",
  571. label: "公司",
  572. fontSize: "1rem"
  573. }),
  574. o: common_vendor.o($options.onChange),
  575. p: $data.clientInfo.certFront == "" ? $data.positiveImg : $data.certFront,
  576. q: $data.certFront == "" ? true : false
  577. }, ($data.certFront == "" ? true : false) ? {} : {}, {
  578. r: common_vendor.o((...args) => $options.uploadPositive && $options.uploadPositive(...args)),
  579. s: $data.clientInfo.certBack == "" ? $data.reverseImg : $data.certBack,
  580. t: $data.certBack == "" ? true : false
  581. }, ($data.certBack == "" ? true : false) ? {} : {}, {
  582. v: common_vendor.o((...args) => $options.uploadReverse && $options.uploadReverse(...args)),
  583. w: $data.clientInfo.carPic == "" ? $data.carImg : $data.carPic,
  584. x: $data.carPic == "" ? true : false
  585. }, ($data.carPic == "" ? true : false) ? {} : {}, {
  586. y: common_vendor.o((...args) => $options.uploadCarCert && $options.uploadCarCert(...args)),
  587. z: common_assets._imports_3,
  588. A: common_vendor.t($data.clientInfo.productName),
  589. B: common_vendor.t($data.clientInfo.storeName),
  590. C: $data.isTrue,
  591. D: $data.clientInfo.custName,
  592. E: common_vendor.o(($event) => $data.clientInfo.custName = $event.detail.value),
  593. F: $data.clientInfo.custAddress,
  594. G: common_vendor.o(($event) => $data.clientInfo.custAddress = $event.detail.value),
  595. H: common_vendor.o((...args) => $options.handleFocus && $options.handleFocus(...args)),
  596. I: $data.clientInfo.custCardNo,
  597. J: common_vendor.o(($event) => $data.clientInfo.custCardNo = $event.detail.value),
  598. K: $data.keyboardHeight + "px",
  599. L: $data.clientInfo.custPhone,
  600. M: common_vendor.o(($event) => $data.clientInfo.custPhone = $event.detail.value),
  601. N: common_vendor.f($data.departments, (item, k0, i0) => {
  602. return {
  603. a: common_vendor.w(({
  604. checked
  605. }, s1, i1) => {
  606. return {
  607. a: checked,
  608. b: !checked,
  609. c: i1,
  610. d: s1
  611. };
  612. }, {
  613. name: "icon",
  614. path: "N[" + i0 + "].a",
  615. vueId: "643091e0-6-" + i0 + ",643091e0-5"
  616. }),
  617. b: "643091e0-6-" + i0 + ",643091e0-5",
  618. c: common_vendor.p({
  619. value: item,
  620. checked: $data.clientInfo.salePort === item
  621. }),
  622. d: common_vendor.t(item),
  623. e: item
  624. };
  625. }),
  626. O: common_assets._imports_0$4,
  627. P: common_assets._imports_1$3,
  628. Q: common_vendor.o($options.handleDepartmentChange),
  629. R: $data.clientInfo.saleName,
  630. S: common_vendor.o(($event) => $data.clientInfo.saleName = $event.detail.value),
  631. T: common_assets._imports_3,
  632. U: common_vendor.t($data.clientInfo.appOrderCarList[0].carSeries || "请选择车辆品牌 >"),
  633. V: common_vendor.o((...args) => $options.getCar && $options.getCar(...args)),
  634. W: $data.clientInfo.appOrderCarList[0].carModel,
  635. X: common_vendor.o(($event) => $data.clientInfo.appOrderCarList[0].carModel = $event.detail.value),
  636. Y: $data.clientInfo.appOrderCarList[0].vin,
  637. Z: common_vendor.o(($event) => $data.clientInfo.appOrderCarList[0].vin = $event.detail.value),
  638. aa: common_vendor.t($data.clientInfo.appOrderCarList[0].carType || "请选择车辆类型 >"),
  639. ab: common_vendor.o((...args) => $options.bindCarBrandChanges && $options.bindCarBrandChanges(...args)),
  640. ac: $data.carBrandIndex,
  641. ad: $data.carType,
  642. ae: common_vendor.t($data.clientInfo.appOrderCarList[0].useType || "请选择使用性质 >"),
  643. af: common_vendor.o((...args) => $options.binduseTypeChanges && $options.binduseTypeChanges(...args)),
  644. ag: $data.useTypeIndex,
  645. ah: $data.useType,
  646. ai: common_vendor.w(({
  647. checked
  648. }, s0, i0) => {
  649. return {
  650. a: checked,
  651. b: !checked,
  652. c: i0,
  653. d: s0
  654. };
  655. }, {
  656. name: "icon",
  657. path: "ai",
  658. vueId: "643091e0-8,643091e0-7"
  659. }),
  660. aj: common_assets._imports_0$4,
  661. ak: common_assets._imports_1$3,
  662. al: common_vendor.p({
  663. checked: $data.clientInfo.appOrderCarList[0].newCar == 1 ? true : false,
  664. value: "是",
  665. label: "是",
  666. fontSize: "1rem"
  667. }),
  668. am: common_vendor.w(({
  669. checked
  670. }, s0, i0) => {
  671. return {
  672. a: checked,
  673. b: !checked,
  674. c: i0,
  675. d: s0
  676. };
  677. }, {
  678. name: "icon",
  679. path: "am",
  680. vueId: "643091e0-9,643091e0-7"
  681. }),
  682. an: common_assets._imports_0$4,
  683. ao: common_assets._imports_1$3,
  684. ap: common_vendor.p({
  685. checked: $data.clientInfo.appOrderCarList[0].newCar == 0 ? true : false,
  686. value: "否",
  687. label: "否",
  688. fontSize: "1rem"
  689. }),
  690. aq: common_vendor.o($options.onChanges),
  691. ar: $data.clientInfo.appOrderCarList[0].carNo,
  692. as: common_vendor.o(($event) => $data.clientInfo.appOrderCarList[0].carNo = $event.detail.value),
  693. at: $data.clientInfo.appOrderCarList[0].engineNo,
  694. av: common_vendor.o(($event) => $data.clientInfo.appOrderCarList[0].engineNo = $event.detail.value),
  695. aw: $data.clientInfo.appOrderCarList[0].mileage,
  696. ax: common_vendor.o(($event) => $data.clientInfo.appOrderCarList[0].mileage = $event.detail.value),
  697. ay: common_vendor.o($options.changeEffectiveTime),
  698. az: common_vendor.o(($event) => $data.clientInfo.appOrderCarList[0].buyTime = $event),
  699. aA: common_vendor.p({
  700. clearIcon: false,
  701. border: false,
  702. modelValue: $data.clientInfo.appOrderCarList[0].buyTime
  703. }),
  704. aB: common_vendor.o([($event) => $data.clientInfo.appOrderCarList[0].buyMoney = $event.detail.value, (...args) => $options.changebuyTax && $options.changebuyTax(...args)]),
  705. aC: $data.clientInfo.appOrderCarList[0].buyMoney,
  706. aD: $data.clientInfo.appOrderCarList[0].buyTax,
  707. aE: common_vendor.o(($event) => $data.clientInfo.appOrderCarList[0].buyTax = $event.detail.value),
  708. aF: common_assets._imports_3,
  709. aG: $data.clientInfo.appOrderVoucherList[0].firstBeneficiary,
  710. aH: common_vendor.o(($event) => $data.clientInfo.appOrderVoucherList[0].firstBeneficiary = $event.detail.value),
  711. aI: $data.clientInfo.appOrderVoucherList[0].serviceMoney,
  712. aJ: common_vendor.o(($event) => $data.clientInfo.appOrderVoucherList[0].serviceMoney = $event.detail.value),
  713. aK: common_vendor.o(($event) => $data.clientInfo.appOrderVoucherList[0].effectiveTime = $event),
  714. aL: common_vendor.p({
  715. type: "date",
  716. clearIcon: false,
  717. border: false,
  718. modelValue: $data.clientInfo.appOrderVoucherList[0].effectiveTime
  719. }),
  720. aM: common_vendor.o(($event) => $data.clientInfo.appOrderVoucherList[0].endTime = $event),
  721. aN: common_vendor.p({
  722. type: "date",
  723. clearIcon: false,
  724. border: false,
  725. modelValue: $data.clientInfo.appOrderVoucherList[0].endTime
  726. }),
  727. aO: common_vendor.t($data.serviceYear || "请选择服务年限类型 >"),
  728. aP: common_vendor.o((...args) => $options.changeTime && $options.changeTime(...args)),
  729. aQ: $data.serviceAgeIndex,
  730. aR: $data.serviceAges,
  731. aS: common_vendor.o(($event) => $data.clientInfo.appOrderVoucherList[0].payTime = $event),
  732. aT: common_vendor.p({
  733. type: "datetime",
  734. clearIcon: false,
  735. border: false,
  736. modelValue: $data.clientInfo.appOrderVoucherList[0].payTime
  737. }),
  738. aU: common_assets._imports_6,
  739. aV: common_vendor.o($options.afterRead),
  740. aW: common_vendor.o($options.deletePic),
  741. aX: common_vendor.p({
  742. fileList: $data.fileList1,
  743. name: "1",
  744. multiple: true,
  745. maxCount: 1
  746. }),
  747. aY: common_assets._imports_6,
  748. aZ: common_vendor.o($options.afterRead),
  749. ba: common_vendor.o($options.deletePic),
  750. bb: common_vendor.p({
  751. fileList: $data.fileList2,
  752. name: "2",
  753. multiple: true,
  754. maxCount: 1
  755. }),
  756. bc: common_assets._imports_3,
  757. bd: $data.clientInfo.appOrderFinanceList[0].lender,
  758. be: common_vendor.o(($event) => $data.clientInfo.appOrderFinanceList[0].lender = $event.detail.value),
  759. bf: $data.clientInfo.appOrderFinanceList[0].lenderMoney,
  760. bg: common_vendor.o(($event) => $data.clientInfo.appOrderFinanceList[0].lenderMoney = $event.detail.value),
  761. bh: $data.clientInfo.appOrderFinanceList[0].lenderYear,
  762. bi: common_vendor.o(($event) => $data.clientInfo.appOrderFinanceList[0].lenderYear = $event.detail.value),
  763. bj: common_vendor.o((...args) => $options.get_to && $options.get_to(...args)),
  764. bk: common_vendor.sei(_ctx.virtualHostId, "view")
  765. });
  766. }
  767. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-643091e0"]]);
  768. wx.createPage(MiniProgramPage);
  769. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/PayPal.js.map