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

"use strict";
const common_vendor = require("../../common/vendor.js");
const api = require("../../api.js");
const common_assets = require("../../common/assets.js");
const _sfc_main = common_vendor.defineComponent({
data() {
return {
records: [
new UTSJSONObject({
id: "1897277583591075841",
orderNum: "CXSC20250305302395",
productName: "畅行无忧",
productServiceYear: "1",
productMoney: null,
productContractTemp: "https://img.augcl.com/temp/test_car_1741181182533.pdf",
productType: "普通产品",
storeName: "上海测试门店",
custName: "陈朋涛",
custAddress: "山东省滕州市龙阳镇",
custCardNo: "532101198906010015",
custPhone: "13456788765",
salePort: "售前",
createBy: "tanzs",
saleName: "lj",
payType: "全款",
custType: 0,
certFront: "https://img.augcl.com/cert/4uUVhHO3qByFbeb95285d2741f5437d370fea46a67b9_1740859563993.jpg",
certBack: "https://img.augcl.com/cert/J4X2ZFsgotLXdcc88281956f0b3fb63708bb497c1698_1740859570051.jpg",
carPic: "https://img.augcl.com/cert/w2Aoeo53vXfBb3f85e86690e90e240e1111c770e6f26_1740859575127.jpg",
busLicense: null,
createTime: "2025-03-05 21:26:39",
updateBy: null,
updateTime: null,
sysOrgCode: null,
status: 1,
contractUrl: "https://img.augcl.com/contract/CXSC20250305302395_1741181199845.pdf",
payee: "上海测试门店",
payeeTime: null,
payVoucherUrl: "https://img.augcl.com/test/F5n9sMOVIOBs363af867a4affb43fcf1cc64bb01916d_1740859625764.png",
salePort_dictText: "售前",
custType_dictText: "个人",
status_dictText: "已生效"
})
],
cars: [
new UTSJSONObject({
id: "1897277583754653697",
carSeries: "比亚迪海狮05 EV2025款 低配版",
vin: "LC0CE6DB8S4040471",
carType: "燃油车",
useType: "非营运",
newCar: 1,
carModel: "BYD7008BEVB1",
carNo: "fg6545",
engineNo: "2V4003609",
mileage: "10000",
buyTime: "2025-03-02 04:06:50",
buyMoney: 1e4,
buyTax: 885,
orderFkId: "1897277583591075841",
updateBy: null,
createTime: "2025-03-05 21:26:40",
updateTime: null,
sysOrgCode: null,
createBy: "tanzs"
})
],
vouchers: [],
Finances: [],
productTypeFlag: true
};
},
onLoad(options) {
api.isToken();
api.list(new UTSJSONObject({ id: getApp().id })).then((res = null) => {
this.records = res.result.records;
});
api.queryAppOrderCarByMainId(new UTSJSONObject({ id: getApp().id })).then((res = null) => {
this.cars = res.result;
});
api.queryAppOrderFinanceByMainId(new UTSJSONObject({ id: getApp().id })).then((res = null) => {
this.Finances = res.result;
});
api.queryAppOrderVoucherByMainId(new UTSJSONObject({ id: getApp().id })).then((res = null) => {
this.vouchers = res.result;
});
common_vendor.index.__f__("log", "at pages/index/PayPal_xq.uvue:323", "111", UTS.JSON.parse(this.cars));
this.productTypeFlag = getApp().productTypeFlag;
},
onUpload() {
common_vendor.index.offKeyboardHeightChange();
},
methods: {
keyboardheightchange(e = null) {
},
clickImg() {
common_vendor.index.previewImage({
urls: [this.records[0].payVoucherUrl],
current: "",
success: function(res) {
},
fail: function(res) {
},
complete: function(res = null) {
}
});
},
toBack() {
common_vendor.index.navigateBack({ delta: 1 });
}
}
});
if (!Array) {
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
_easycom_uni_icons2();
}
const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
if (!Math) {
_easycom_uni_icons();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_vendor.p({
type: "left",
size: "30",
color: "#c2d4de"
}),
b: common_vendor.o((...args) => $options.toBack && $options.toBack(...args)),
c: common_vendor.t($data.records[0].payType),
d: common_vendor.t($data.records[0].custType == 0 ? "个人" : "公司"),
e: common_vendor.o((...args) => _ctx.onChange && _ctx.onChange(...args)),
f: $data.records[0].certFront,
g: common_vendor.o((...args) => _ctx.uploadPositive && _ctx.uploadPositive(...args)),
h: $data.records[0].certBack,
i: common_vendor.o((...args) => _ctx.uploadReverse && _ctx.uploadReverse(...args)),
j: $data.records[0].carPic,
k: common_vendor.o((...args) => _ctx.uploadCarCert && _ctx.uploadCarCert(...args)),
l: common_assets._imports_3,
m: common_vendor.t($data.records[0].productName),
n: common_vendor.t($data.records[0].storeName),
o: common_vendor.t($data.records[0].custName),
p: common_vendor.t($data.records[0].custAddress),
q: common_vendor.t($data.records[0].custCardNo),
r: common_vendor.t($data.records[0].custPhone),
s: common_vendor.t($data.records[0].storeName),
t: common_vendor.t($data.records[0].saleName),
v: common_assets._imports_3,
w: common_vendor.t($data.cars[0].saleName),
x: common_vendor.t($data.cars[0].carModel),
y: common_vendor.t($data.cars[0].vin),
z: common_vendor.t($data.cars[0].carType),
A: common_vendor.t($data.cars[0].useType),
B: common_vendor.t($data.cars[0].newCar == 0 ? "否" : "是"),
C: common_vendor.t($data.cars[0].carNo),
D: common_vendor.t($data.cars[0].engineNo),
E: $data.productTypeFlag
}, $data.productTypeFlag ? {
F: common_vendor.t($data.cars[0].mileage)
} : {}, {
G: $data.productTypeFlag
}, $data.productTypeFlag ? {
H: common_vendor.t($data.cars[0].buyTime)
} : {}, {
I: $data.productTypeFlag
}, $data.productTypeFlag ? {
J: common_vendor.t($data.cars[0].buyMoney)
} : {}, {
K: $data.productTypeFlag
}, $data.productTypeFlag ? {
L: common_vendor.t($data.cars[0].buyTax)
} : {}, {
M: common_assets._imports_3,
N: $data.productTypeFlag
}, $data.productTypeFlag ? {
O: common_vendor.t($data.vouchers[0].firstBeneficiary)
} : {}, {
P: $data.productTypeFlag
}, $data.productTypeFlag ? {
Q: common_vendor.t($data.vouchers[0].serviceMoney)
} : {}, {
R: $data.productTypeFlag
}, $data.productTypeFlag ? {
S: common_vendor.t($data.vouchers[0].effectiveTime)
} : {}, {
T: $data.productTypeFlag
}, $data.productTypeFlag ? {
U: common_vendor.t($data.vouchers[0].endTime)
} : {}, {
V: $data.productTypeFlag
}, $data.productTypeFlag ? {
W: common_vendor.t($data.vouchers[0].serviceYear)
} : {}, {
X: $data.productTypeFlag
}, $data.productTypeFlag ? {
Y: common_vendor.t($data.vouchers[0].payTime)
} : {}, {
Z: $data.records[0].payVoucherUrl,
aa: common_vendor.o((...args) => $options.clickImg && $options.clickImg(...args)),
ab: $data.records[0].invoiceUrl,
ac: common_vendor.o((...args) => $options.clickImg && $options.clickImg(...args)),
ad: $data.productTypeFlag
}, $data.productTypeFlag ? {
ae: common_assets._imports_3,
af: common_vendor.t($data.Finances[0].lender || 0),
ag: common_vendor.t($data.Finances[0].lenderMoney || 0),
ah: common_vendor.t($data.Finances[0].lenderYear || 0)
} : {}, {
ai: common_vendor.sei(_ctx.virtualHostId, "view")
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-76649624"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/PayPal_xq.js.map