应用场景:
@@ -256,7 +259,7 @@ export default {
BlockRadius,
ProcessCard,
TableUm,
- InfoList
+ InfoList,
},
data: () => ({
helper: helper,
@@ -275,21 +278,21 @@ export default {
{
title: "审批时间:",
type: "time",
- info: ""
+ info: "",
},
{
title: "审批单位:",
- info: ""
+ info: "",
},
{
title: "审批人:",
- info: ""
+ info: "",
},
{
title: "审批意见:",
- info: ""
- }
- ]
+ info: "",
+ },
+ ],
},
{
title: "二级审批",
@@ -298,21 +301,21 @@ export default {
{
title: "审批时间:",
type: "time",
- info: ""
+ info: "",
},
{
title: "审批单位:",
- info: ""
+ info: "",
},
{
title: "审批人:",
- info: ""
+ info: "",
},
{
title: "审批意见:",
- info: ""
- }
- ]
+ info: "",
+ },
+ ],
},
{
title: "三级审批",
@@ -321,76 +324,76 @@ export default {
{
title: "审批时间:",
type: "time",
- info: ""
+ info: "",
},
{
title: "审批单位:",
- info: ""
+ info: "",
},
{
title: "审批人:",
- info: ""
+ info: "",
},
{
title: "审批意见:",
- info: ""
- }
- ]
- }
+ info: "",
+ },
+ ],
+ },
],
header_arr: [
{
prop: "name",
label: "字段编码",
minWidth: "10%",
- align: "center"
+ align: "center",
},
{
prop: "show_type",
label: "字段类型",
width: "120px",
- align: "center"
+ align: "center",
},
{
prop: "label",
label: "字段名称",
minWidth: "20%",
- align: "center"
+ align: "center",
},
{
prop: "descript",
label: "字段说明",
minWidth: "40%",
- align: "center"
+ align: "center",
},
{
prop: "example",
label: "字段示例",
minWidth: "20%",
- align: "center"
- }
+ align: "center",
+ },
],
list_arr: [
{
title: "申请人:",
- info: ""
+ info: "",
},
{
title: "联系方式:",
- info: ""
+ info: "",
},
{
title: "申请单位:",
- info: ""
+ info: "",
},
{
title: "申请文件:",
info: "",
url: "",
- type: "down"
- }
+ type: "down",
+ },
],
- data: []
+ data: [],
}),
mounted() {
this.getOrderDetail();
@@ -404,7 +407,7 @@ export default {
getOrderDetail() {
this.$api.user
.getOrderDetail({ order_id: this.$route.params.id })
- .then(response => {
+ .then((response) => {
if (response.data.success == 1) {
this.orderDetail = response.data.data;
if (this.orderDetail.res_fields != "") {
@@ -421,12 +424,14 @@ export default {
getOrderUser() {
this.$api.user
.getOrderUser({ order_id: this.$route.params.id })
- .then(response => {
+ .then((response) => {
if (response.data.success == 1) {
this.list_arr[0].info = response.data.data.name;
this.list_arr[1].info = response.data.data.phone_number;
this.list_arr[2].info = response.data.data.organization;
- this.list_arr[3].info = response.data.data.apply_file;
+ this.list_arr[3].info = helper.downloadFileFormat(
+ response.data.data.apply_file
+ );
this.list_arr[3].url = response.data.data.apply_file;
} else {
console.log(response.data.errMsg);
@@ -437,9 +442,9 @@ export default {
this.$api.user
.getOrderApproval({
apply_id: this.orderDetail.apply_id,
- kind: this.orderDetail.order_type
+ kind: this.orderDetail.order_type,
})
- .then(response => {
+ .then((response) => {
if (response.data.success == 1) {
let data = response.data.data || [];
for (let i = 0; i < data.length; i++) {
@@ -462,36 +467,36 @@ export default {
service_id: parseFloat(this.orderDetail.service_id),
spec_id: this.orderDetail.svc_spec_id,
duration: this.orderDetail.duration,
- duration_unit: this.orderDetail.duration_unit
+ duration_unit: this.orderDetail.duration_unit,
};
} else if (this.orderDetail.order_type == 2) {
query = {
app_id: parseFloat(this.orderDetail.app_id),
spec_id: this.orderDetail.spec_app,
duration: this.orderDetail.duration,
- duration_unit: this.orderDetail.duration_unit
+ duration_unit: this.orderDetail.duration_unit,
};
}
window.sessionStorage.setItem("shoppingCart", JSON.stringify(query));
this.$router.push({
path: "/shop/shop_car_apply",
- query: query
+ query: query,
});
},
cancelDetail() {
this.$api.user
.cancelOrder({ order_id: this.orderDetail.order_id })
- .then(response => {
+ .then((response) => {
if (response.data.success == 1) {
this.$message({
message: "取消订单成功",
- type: "success"
+ type: "success",
});
this.$router.push({ name: "orderList" });
} else {
this.$message({
message: "取消订单失败",
- type: "error"
+ type: "error",
});
}
});
@@ -500,34 +505,34 @@ export default {
if (this.orderDetail.order_type == 1) {
this.$api.user
.getServiceEvaluation({ apply_id: this.orderDetail.apply_id })
- .then(response => {
+ .then((response) => {
if (response.data.success == 1) {
this.message = response.data.data;
this.showMsgBox = true;
} else {
this.$message({
message: "获取评价失败",
- type: "error"
+ type: "error",
});
}
});
} else if (this.orderDetail.order_type == 2) {
this.$api.user
.getAppEvaluation({ apply_id: this.orderDetail.apply_id })
- .then(response => {
+ .then((response) => {
if (response.data.success == 1) {
this.message = response.data.data;
this.showMsgBox = true;
} else {
this.$message({
message: "获取评价失败",
- type: "error"
+ type: "error",
});
}
});
}
- }
- }
+ },
+ },
};