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

771 lines
28 KiB

3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months 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. for (var i in this.clientInfo) {
  208. if (typeof this.clientInfo[i] == "object") {
  209. for (var j in this.clientInfo[i]) {
  210. for (var k in this.clientInfo[i][j]) {
  211. common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:530", k);
  212. if (!this.isEmpty(this.clientInfo[i][j][k]) && k != "carNo" && k != "lender" && k != "lenderMoney" && k != "lenderYear") {
  213. common_vendor.index.showToast({
  214. title: "提交失败,请检查字段是否未填!",
  215. icon: "error",
  216. duration: 500,
  217. success: (res) => {
  218. },
  219. fail: (res) => {
  220. }
  221. });
  222. return false;
  223. }
  224. }
  225. }
  226. } else {
  227. if (!this.isEmpty(this.clientInfo[i])) {
  228. common_vendor.index.showToast({
  229. title: "提交失败,请检查字段是否未填!",
  230. icon: "error",
  231. duration: 500,
  232. success: (res) => {
  233. },
  234. fail: (res) => {
  235. }
  236. });
  237. return false;
  238. }
  239. }
  240. }
  241. api.add(this.clientInfo).then((res = null) => {
  242. if (res.success) {
  243. common_vendor.index.showToast({
  244. title: "提交成功",
  245. icon: "success",
  246. duration: 500,
  247. success: (res2) => {
  248. },
  249. fail: (res2) => {
  250. }
  251. });
  252. common_vendor.index.switchTab({ url: "/pages/index/dingdan" });
  253. } else {
  254. common_vendor.index.showToast({
  255. title: "提交失败,请检查格式!",
  256. icon: "error",
  257. duration: 500,
  258. success: (res2) => {
  259. },
  260. fail: (res2) => {
  261. }
  262. });
  263. }
  264. }).catch((err = null) => {
  265. common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:587", "err", err);
  266. });
  267. },
  268. getCar() {
  269. getApp().flag = 0;
  270. common_vendor.index.navigateTo({
  271. url: "/pages/views/carOne?clientInfo=" + encodeURIComponent(UTS.JSON.stringify(this.clientInfo))
  272. });
  273. getApp().certFront = this.certFront;
  274. getApp().carPic = this.carPic;
  275. getApp().certBack = this.certBack;
  276. },
  277. toBack() {
  278. common_vendor.index.redirectTo({
  279. url: "/pages/views/dingDanCreate"
  280. });
  281. },
  282. handleDepartmentChange(e = null) {
  283. this.clientInfo.salePort = e;
  284. },
  285. // 修改车辆类型
  286. bindCarBrandChanges(e = null) {
  287. this.clientInfo.appOrderCarList[0].carType = this.carType[e.detail.value];
  288. },
  289. // serviceYearChanges(e){
  290. // this.clientInfo.appOrderVoucherList[0].serviceYear = this.serviceAges[e.detail.value]
  291. // this.serviceYear = this.serviceAges[e.detail.value]
  292. // uni.__f__('log','at pages/index/PayPal.uvue:619',e.detail.value )
  293. // },
  294. // 修改车辆类型
  295. binduseTypeChanges(e = null) {
  296. this.clientInfo.appOrderCarList[0].useType = this.useType[e.detail.value];
  297. },
  298. // // 取服务年限
  299. // bindServiceAgeChange(e) {
  300. // this.serviceAgeIndex = e.detail.value
  301. // if(this.serviceAges[e.detail.value] == '1年'){
  302. // this.clientInfo.productServiceYear = 1;
  303. // }else if(this.serviceAges[e.detail.value] == '2年' ){
  304. // this.clientInfo.productServiceYear = 2;
  305. // }else{
  306. // this.clientInfo.productServiceYear = 3;
  307. // };
  308. // },
  309. // 选择收款方
  310. bindPayeeChange(e = null) {
  311. this.payeeIndex = e.detail.value;
  312. this.clientInfo.payee = this.payees[e.detail.value];
  313. },
  314. msToDate(msec = null) {
  315. let datetime = new Date(msec);
  316. let year = datetime.getFullYear();
  317. let month = datetime.getMonth();
  318. let date = datetime.getDate();
  319. let hour = datetime.getHours();
  320. let minute = datetime.getMinutes();
  321. let second = datetime.getSeconds();
  322. 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);
  323. let result2 = year + "-" + (month + 1 >= 10 ? month + 1 : "0" + (month + 1)) + "-" + (date + 1 < 10 ? "0" + date : date);
  324. let result = new UTSJSONObject({
  325. hasTime: result1,
  326. withoutTime: result2
  327. });
  328. return result;
  329. },
  330. // 修改生效时间
  331. changeEffectiveTime(e = null) {
  332. var dateTime = new Date(e);
  333. dateTime.setDate(dateTime.getDate() + 2);
  334. dateTime = new Date(dateTime);
  335. this.clientInfo.appOrderVoucherList[0].effectiveTime = this.msToDate(dateTime).withoutTime;
  336. },
  337. changeTime(e = null) {
  338. common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:687", e.detail.value);
  339. if (this.clientInfo.appOrderVoucherList[0].effectiveTime) {
  340. this.clientInfo.appOrderVoucherList[0].serviceYear = Number(e.detail.value) + 1;
  341. this.serviceYear = this.serviceAges[e.detail.value];
  342. var dateTime = new Date(this.clientInfo.appOrderVoucherList[0].effectiveTime);
  343. let year = Number(dateTime.getFullYear()) + Number(e.detail.value) + 1;
  344. dateTime.setFullYear(year);
  345. dateTime = new Date(dateTime);
  346. this.clientInfo.appOrderVoucherList[0].endTime = this.msToDate(dateTime).withoutTime;
  347. } else {
  348. common_vendor.index.showToast({
  349. title: "请先选择生效时间!",
  350. icon: "error",
  351. duration: 500,
  352. success: (res) => {
  353. },
  354. fail: (res) => {
  355. }
  356. });
  357. }
  358. },
  359. changebuyTax() {
  360. this.clientInfo.appOrderCarList[0].buyTax = (this.clientInfo.appOrderCarList[0].buyMoney / 11.3).toFixed(2);
  361. },
  362. // 身份证正面上传
  363. uploadPositive() {
  364. common_vendor.index.chooseImage({
  365. count: 1,
  366. sizeType: ["original", "compressed"],
  367. sourceType: ["album", "camera"],
  368. success: (res) => {
  369. let filePath = res.tempFilePaths[0];
  370. let token = common_vendor.index.getStorageSync("token");
  371. this.uploadIdentify(token, "front", filePath, "sfz");
  372. }
  373. });
  374. },
  375. // 身份证反面上传
  376. uploadReverse() {
  377. common_vendor.index.chooseImage({
  378. count: 1,
  379. sizeType: ["original", "compressed"],
  380. sourceType: ["album", "camera"],
  381. success: (res) => {
  382. let filePath = res.tempFilePaths[0];
  383. let token = common_vendor.index.getStorageSync("token");
  384. this.uploadIdentify(token, "back", filePath, "sfz");
  385. }
  386. });
  387. },
  388. uploadCarCert() {
  389. common_vendor.index.chooseImage({
  390. count: 1,
  391. sizeType: ["original", "compressed"],
  392. sourceType: ["album", "camera"],
  393. success: (res) => {
  394. let filePath = res.tempFilePaths[0];
  395. let token = common_vendor.index.getStorageSync("token");
  396. this.uploadIdentify(token, "", filePath, "carCert");
  397. }
  398. });
  399. },
  400. // 上传识别
  401. uploadIdentify(token = null, side = null, filePath = null, type = null) {
  402. common_vendor.index.uploadFile({
  403. url: "https://www.shengchuangyunkong.com/contract/miniapp/file/upload",
  404. filePath,
  405. name: "file",
  406. formData: new UTSJSONObject({
  407. "biz": "cert"
  408. }),
  409. header: new UTSJSONObject({
  410. "X-Access-Token": token
  411. }),
  412. success: (res) => {
  413. let image = UTS.JSON.parse(res.data).message;
  414. if (type == "sfz") {
  415. api.idCardInfo(new UTSJSONObject({ "side": side, "url": UTS.JSON.parse(res.data).message })).then((res2 = null) => {
  416. if (res2.success) {
  417. if (side == "front") {
  418. this.clientInfo.custName = res2.result.name;
  419. this.clientInfo.appOrderVoucherList[0].firstBeneficiary = res2.result.name;
  420. this.clientInfo.custAddress = res2.result.address;
  421. this.clientInfo.custCardNo = res2.result.idCard;
  422. this.clientInfo.certFront = image;
  423. this.certFront = filePath;
  424. } else {
  425. this.clientInfo.certBack = image;
  426. this.certBack = filePath;
  427. }
  428. } else {
  429. common_vendor.index.showToast({
  430. title: "身份证识别错误,请重新上传!",
  431. icon: "error",
  432. duration: 500,
  433. success: (res3) => {
  434. },
  435. fail: (res3) => {
  436. }
  437. });
  438. }
  439. }).catch((err = null) => {
  440. common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:793", "catch: ", err);
  441. });
  442. } else if (type == "carCert") {
  443. api.carCert(new UTSJSONObject({ "url": UTS.JSON.parse(res.data).message })).then((res2 = null) => {
  444. if (res2.success) {
  445. this.clientInfo.appOrderCarList[0].vin = res2.result.VinNo;
  446. this.clientInfo.carPic = image;
  447. this.carPic = filePath;
  448. this.clientInfo.appOrderCarList[0].engineNo = res2.result.EngineNo;
  449. this.clientInfo.appOrderCarList[0].carModel = res2.result.CarModel;
  450. } else {
  451. common_vendor.index.showToast({
  452. title: "识别错误,请重新上传!",
  453. icon: "error",
  454. duration: 500,
  455. success: (res3) => {
  456. },
  457. fail: (res3) => {
  458. }
  459. });
  460. }
  461. }).catch((err = null) => {
  462. common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:820", "catch: ", err);
  463. });
  464. }
  465. },
  466. fail: (err) => {
  467. common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:827", err);
  468. }
  469. });
  470. },
  471. onChange(e = null) {
  472. if (e == "个人") {
  473. this.clientInfo.custType = 0;
  474. } else {
  475. this.clientInfo.custType = 1;
  476. }
  477. },
  478. onChanges(e = null) {
  479. if (e == "是") {
  480. this.clientInfo.appOrderCarList[0].newCar = 1;
  481. } else {
  482. this.clientInfo.appOrderCarList[0].newCar = 0;
  483. }
  484. }
  485. }
  486. });
  487. if (!Array) {
  488. const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
  489. const _easycom_l_radio2 = common_vendor.resolveComponent("l-radio");
  490. const _easycom_l_radio_group2 = common_vendor.resolveComponent("l-radio-group");
  491. const _easycom_uni_datetime_picker2 = common_vendor.resolveComponent("uni-datetime-picker");
  492. const _easycom_uv_upload2 = common_vendor.resolveComponent("uv-upload");
  493. (_easycom_uni_icons2 + _easycom_l_radio2 + _easycom_l_radio_group2 + _easycom_uni_datetime_picker2 + _easycom_uv_upload2)();
  494. }
  495. const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
  496. const _easycom_l_radio = () => "../../uni_modules/lime-radio/components/l-radio/l-radio.js";
  497. const _easycom_l_radio_group = () => "../../uni_modules/lime-radio/components/l-radio-group/l-radio-group.js";
  498. const _easycom_uni_datetime_picker = () => "../../uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.js";
  499. const _easycom_uv_upload = () => "../../uni_modules/uv-upload/components/uv-upload/uv-upload.js";
  500. if (!Math) {
  501. (_easycom_uni_icons + _easycom_l_radio + _easycom_l_radio_group + _easycom_uni_datetime_picker + _easycom_uv_upload)();
  502. }
  503. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  504. return common_vendor.e({
  505. a: common_vendor.p({
  506. type: "left",
  507. size: "30",
  508. color: "#c2d4de"
  509. }),
  510. b: common_vendor.o((...args) => $options.toBack && $options.toBack(...args)),
  511. c: common_vendor.w(({
  512. checked
  513. }, s0, i0) => {
  514. return {
  515. a: checked,
  516. b: !checked,
  517. c: i0,
  518. d: s0
  519. };
  520. }, {
  521. name: "icon",
  522. path: "c",
  523. vueId: "643091e0-1"
  524. }),
  525. d: common_assets._imports_0$4,
  526. e: common_assets._imports_1$3,
  527. f: common_vendor.p({
  528. checked: $data.clientInfo.payType === "全款",
  529. label: "全款",
  530. fontSize: "1rem"
  531. }),
  532. g: common_vendor.w(({
  533. checked
  534. }, s0, i0) => {
  535. return {
  536. a: checked,
  537. b: !checked,
  538. c: i0,
  539. d: s0
  540. };
  541. }, {
  542. name: "icon",
  543. path: "g",
  544. vueId: "643091e0-3,643091e0-2"
  545. }),
  546. h: common_assets._imports_0$4,
  547. i: common_assets._imports_1$3,
  548. j: common_vendor.p({
  549. checked: $data.clientInfo.custType == 0 ? true : false,
  550. value: "个人",
  551. label: "个人",
  552. fontSize: "1rem"
  553. }),
  554. k: common_vendor.w(({
  555. checked
  556. }, s0, i0) => {
  557. return {
  558. a: checked,
  559. b: !checked,
  560. c: i0,
  561. d: s0
  562. };
  563. }, {
  564. name: "icon",
  565. path: "k",
  566. vueId: "643091e0-4,643091e0-2"
  567. }),
  568. l: common_assets._imports_0$4,
  569. m: common_assets._imports_1$3,
  570. n: common_vendor.p({
  571. checked: $data.clientInfo.custType == 1 ? true : false,
  572. value: "公司",
  573. label: "公司",
  574. fontSize: "1rem"
  575. }),
  576. o: common_vendor.o($options.onChange),
  577. p: $data.clientInfo.certFront == "" ? $data.positiveImg : $data.certFront,
  578. q: $data.certFront == "" ? true : false
  579. }, ($data.certFront == "" ? true : false) ? {} : {}, {
  580. r: common_vendor.o((...args) => $options.uploadPositive && $options.uploadPositive(...args)),
  581. s: $data.clientInfo.certBack == "" ? $data.reverseImg : $data.certBack,
  582. t: $data.certBack == "" ? true : false
  583. }, ($data.certBack == "" ? true : false) ? {} : {}, {
  584. v: common_vendor.o((...args) => $options.uploadReverse && $options.uploadReverse(...args)),
  585. w: $data.clientInfo.carPic == "" ? $data.carImg : $data.carPic,
  586. x: $data.carPic == "" ? true : false
  587. }, ($data.carPic == "" ? true : false) ? {} : {}, {
  588. y: common_vendor.o((...args) => $options.uploadCarCert && $options.uploadCarCert(...args)),
  589. z: common_assets._imports_3,
  590. A: common_vendor.t($data.clientInfo.productName),
  591. B: common_vendor.t($data.clientInfo.storeName),
  592. C: $data.isTrue,
  593. D: $data.clientInfo.custName,
  594. E: common_vendor.o(($event) => $data.clientInfo.custName = $event.detail.value),
  595. F: $data.clientInfo.custAddress,
  596. G: common_vendor.o(($event) => $data.clientInfo.custAddress = $event.detail.value),
  597. H: common_vendor.o((...args) => $options.handleFocus && $options.handleFocus(...args)),
  598. I: $data.clientInfo.custCardNo,
  599. J: common_vendor.o(($event) => $data.clientInfo.custCardNo = $event.detail.value),
  600. K: $data.keyboardHeight + "px",
  601. L: $data.clientInfo.custPhone,
  602. M: common_vendor.o(($event) => $data.clientInfo.custPhone = $event.detail.value),
  603. N: common_vendor.f($data.departments, (item, k0, i0) => {
  604. return {
  605. a: common_vendor.w(({
  606. checked
  607. }, s1, i1) => {
  608. return {
  609. a: checked,
  610. b: !checked,
  611. c: i1,
  612. d: s1
  613. };
  614. }, {
  615. name: "icon",
  616. path: "N[" + i0 + "].a",
  617. vueId: "643091e0-6-" + i0 + ",643091e0-5"
  618. }),
  619. b: "643091e0-6-" + i0 + ",643091e0-5",
  620. c: common_vendor.p({
  621. value: item,
  622. checked: $data.clientInfo.salePort === item
  623. }),
  624. d: common_vendor.t(item),
  625. e: item
  626. };
  627. }),
  628. O: common_assets._imports_0$4,
  629. P: common_assets._imports_1$3,
  630. Q: common_vendor.o($options.handleDepartmentChange),
  631. R: $data.clientInfo.saleName,
  632. S: common_vendor.o(($event) => $data.clientInfo.saleName = $event.detail.value),
  633. T: common_assets._imports_3,
  634. U: common_vendor.t($data.clientInfo.appOrderCarList[0].carSeries || "请选择车辆品牌 >"),
  635. V: common_vendor.o((...args) => $options.getCar && $options.getCar(...args)),
  636. W: $data.clientInfo.appOrderCarList[0].carModel,
  637. X: common_vendor.o(($event) => $data.clientInfo.appOrderCarList[0].carModel = $event.detail.value),
  638. Y: $data.clientInfo.appOrderCarList[0].vin,
  639. Z: common_vendor.o(($event) => $data.clientInfo.appOrderCarList[0].vin = $event.detail.value),
  640. aa: common_vendor.t($data.clientInfo.appOrderCarList[0].carType || "请选择车辆类型 >"),
  641. ab: common_vendor.o((...args) => $options.bindCarBrandChanges && $options.bindCarBrandChanges(...args)),
  642. ac: $data.carBrandIndex,
  643. ad: $data.carType,
  644. ae: common_vendor.t($data.clientInfo.appOrderCarList[0].useType || "请选择使用性质 >"),
  645. af: common_vendor.o((...args) => $options.binduseTypeChanges && $options.binduseTypeChanges(...args)),
  646. ag: $data.useTypeIndex,
  647. ah: $data.useType,
  648. ai: common_vendor.w(({
  649. checked
  650. }, s0, i0) => {
  651. return {
  652. a: checked,
  653. b: !checked,
  654. c: i0,
  655. d: s0
  656. };
  657. }, {
  658. name: "icon",
  659. path: "ai",
  660. vueId: "643091e0-8,643091e0-7"
  661. }),
  662. aj: common_assets._imports_0$4,
  663. ak: common_assets._imports_1$3,
  664. al: common_vendor.p({
  665. checked: $data.clientInfo.appOrderCarList[0].newCar == 1 ? true : false,
  666. value: "是",
  667. label: "是",
  668. fontSize: "1rem"
  669. }),
  670. am: common_vendor.w(({
  671. checked
  672. }, s0, i0) => {
  673. return {
  674. a: checked,
  675. b: !checked,
  676. c: i0,
  677. d: s0
  678. };
  679. }, {
  680. name: "icon",
  681. path: "am",
  682. vueId: "643091e0-9,643091e0-7"
  683. }),
  684. an: common_assets._imports_0$4,
  685. ao: common_assets._imports_1$3,
  686. ap: common_vendor.p({
  687. checked: $data.clientInfo.appOrderCarList[0].newCar == 0 ? true : false,
  688. value: "否",
  689. label: "否",
  690. fontSize: "1rem"
  691. }),
  692. aq: common_vendor.o($options.onChanges),
  693. ar: $data.clientInfo.appOrderCarList[0].carNo,
  694. as: common_vendor.o(($event) => $data.clientInfo.appOrderCarList[0].carNo = $event.detail.value),
  695. at: $data.clientInfo.appOrderCarList[0].engineNo,
  696. av: common_vendor.o(($event) => $data.clientInfo.appOrderCarList[0].engineNo = $event.detail.value),
  697. aw: $data.clientInfo.appOrderCarList[0].mileage,
  698. ax: common_vendor.o(($event) => $data.clientInfo.appOrderCarList[0].mileage = $event.detail.value),
  699. ay: common_vendor.o($options.changeEffectiveTime),
  700. az: common_vendor.o(($event) => $data.clientInfo.appOrderCarList[0].buyTime = $event),
  701. aA: common_vendor.p({
  702. clearIcon: false,
  703. border: false,
  704. modelValue: $data.clientInfo.appOrderCarList[0].buyTime
  705. }),
  706. aB: common_vendor.o([($event) => $data.clientInfo.appOrderCarList[0].buyMoney = $event.detail.value, (...args) => $options.changebuyTax && $options.changebuyTax(...args)]),
  707. aC: $data.clientInfo.appOrderCarList[0].buyMoney,
  708. aD: $data.clientInfo.appOrderCarList[0].buyTax,
  709. aE: common_vendor.o(($event) => $data.clientInfo.appOrderCarList[0].buyTax = $event.detail.value),
  710. aF: common_assets._imports_3,
  711. aG: $data.clientInfo.appOrderVoucherList[0].firstBeneficiary,
  712. aH: common_vendor.o(($event) => $data.clientInfo.appOrderVoucherList[0].firstBeneficiary = $event.detail.value),
  713. aI: $data.clientInfo.appOrderVoucherList[0].serviceMoney,
  714. aJ: common_vendor.o(($event) => $data.clientInfo.appOrderVoucherList[0].serviceMoney = $event.detail.value),
  715. aK: common_vendor.o(($event) => $data.clientInfo.appOrderVoucherList[0].effectiveTime = $event),
  716. aL: common_vendor.p({
  717. type: "date",
  718. clearIcon: false,
  719. border: false,
  720. modelValue: $data.clientInfo.appOrderVoucherList[0].effectiveTime
  721. }),
  722. aM: common_vendor.o(($event) => $data.clientInfo.appOrderVoucherList[0].endTime = $event),
  723. aN: common_vendor.p({
  724. type: "date",
  725. clearIcon: false,
  726. border: false,
  727. modelValue: $data.clientInfo.appOrderVoucherList[0].endTime
  728. }),
  729. aO: common_vendor.t($data.serviceYear || "请选择服务年限类型 >"),
  730. aP: common_vendor.o((...args) => $options.changeTime && $options.changeTime(...args)),
  731. aQ: $data.serviceAgeIndex,
  732. aR: $data.serviceAges,
  733. aS: common_vendor.o(($event) => $data.clientInfo.appOrderVoucherList[0].payTime = $event),
  734. aT: common_vendor.p({
  735. type: "datetime",
  736. clearIcon: false,
  737. border: false,
  738. modelValue: $data.clientInfo.appOrderVoucherList[0].payTime
  739. }),
  740. aU: common_assets._imports_6,
  741. aV: common_vendor.o($options.afterRead),
  742. aW: common_vendor.o($options.deletePic),
  743. aX: common_vendor.p({
  744. fileList: $data.fileList1,
  745. name: "1",
  746. multiple: true,
  747. maxCount: 1
  748. }),
  749. aY: common_assets._imports_6,
  750. aZ: common_vendor.o($options.afterRead),
  751. ba: common_vendor.o($options.deletePic),
  752. bb: common_vendor.p({
  753. fileList: $data.fileList2,
  754. name: "2",
  755. multiple: true,
  756. maxCount: 1
  757. }),
  758. bc: common_assets._imports_3,
  759. bd: $data.clientInfo.appOrderFinanceList[0].lender,
  760. be: common_vendor.o(($event) => $data.clientInfo.appOrderFinanceList[0].lender = $event.detail.value),
  761. bf: $data.clientInfo.appOrderFinanceList[0].lenderMoney,
  762. bg: common_vendor.o(($event) => $data.clientInfo.appOrderFinanceList[0].lenderMoney = $event.detail.value),
  763. bh: $data.clientInfo.appOrderFinanceList[0].lenderYear,
  764. bi: common_vendor.o(($event) => $data.clientInfo.appOrderFinanceList[0].lenderYear = $event.detail.value),
  765. bj: common_vendor.o((...args) => $options.get_to && $options.get_to(...args)),
  766. bk: common_vendor.sei(_ctx.virtualHostId, "view")
  767. });
  768. }
  769. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-643091e0"]]);
  770. wx.createPage(MiniProgramPage);
  771. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/PayPal.js.map