|
@@ -29,8 +29,7 @@
|
|
><br />
|
|
><br />
|
|
<!-- 订购人数:<span>{{ orderInfo.userNum || 0 }} 位</span
|
|
<!-- 订购人数:<span>{{ orderInfo.userNum || 0 }} 位</span
|
|
>订购数量:<span>{{ orderInfo.goodsNum }} 个</span> -->
|
|
>订购数量:<span>{{ orderInfo.goodsNum }} 个</span> -->
|
|
- 下单金额:<span
|
|
|
|
- >¥{{ orderInfo.orderPrice | formatPrice }}</span
|
|
|
|
|
|
+ 下单金额:<span>¥{{ orderInfo.orderPrice | formatPrice }}</span
|
|
>退款金额:<span
|
|
>退款金额:<span
|
|
>¥<span v-if="orderInfo.refundPrice">{{
|
|
>¥<span v-if="orderInfo.refundPrice">{{
|
|
orderInfo.refundPrice | formatPrice
|
|
orderInfo.refundPrice | formatPrice
|
|
@@ -58,9 +57,11 @@
|
|
: invoiceInfo.subject == 2
|
|
: invoiceInfo.subject == 2
|
|
? "企业"
|
|
? "企业"
|
|
: ""
|
|
: ""
|
|
- }}</span
|
|
|
|
- > {{invoiceInfo.subject == 1 ? '姓名:':'企业全称:'}}<span>{{ invoiceInfo.invoiceTitle }}</span
|
|
|
|
- >{{invoiceInfo.subject == 1 ? '身份证号:':'纳税人号:'}}<span>{{ invoiceInfo.taxRegistryNumber }}</span
|
|
|
|
|
|
+ }}</span>
|
|
|
|
+ {{ invoiceInfo.subject == 1 ? "姓名:" : "企业全称:"
|
|
|
|
+ }}<span>{{ invoiceInfo.invoiceTitle }}</span
|
|
|
|
+ >{{ invoiceInfo.subject == 1 ? "身份证号:" : "纳税人号:"
|
|
|
|
+ }}<span>{{ invoiceInfo.taxRegistryNumber }}</span
|
|
><br />开票备注:<span>{{ invoiceInfo.openRemark }}</span
|
|
><br />开票备注:<span>{{ invoiceInfo.openRemark }}</span
|
|
><template v-if="checkList.includes('2')">
|
|
><template v-if="checkList.includes('2')">
|
|
收票邮箱:<span>{{ invoiceInfo.email }}</span></template
|
|
收票邮箱:<span>{{ invoiceInfo.email }}</span></template
|
|
@@ -93,32 +94,42 @@
|
|
<div slot="default">
|
|
<div slot="default">
|
|
<el-button type="text" style="line-height: 22px"
|
|
<el-button type="text" style="line-height: 22px"
|
|
>+上传发票<br /><span style="color: #999"
|
|
>+上传发票<br /><span style="color: #999"
|
|
- >支持PNG/JPG</span
|
|
|
|
|
|
+ >支持PNG/JPG/PDF</span
|
|
></el-button
|
|
></el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
<!-- <i slot="default" class="el-icon-plus"></i> -->
|
|
<!-- <i slot="default" class="el-icon-plus"></i> -->
|
|
<div slot="file" slot-scope="{ file }">
|
|
<div slot="file" slot-scope="{ file }">
|
|
- <img
|
|
|
|
- class="el-upload-list__item-thumbnail"
|
|
|
|
- :src="file.url"
|
|
|
|
- alt=""
|
|
|
|
- />
|
|
|
|
- <span class="el-upload-list__item-actions">
|
|
|
|
- <span
|
|
|
|
- class="el-upload-list__item-preview"
|
|
|
|
- @click="handlePictureCardPreview(file)"
|
|
|
|
- >
|
|
|
|
- <i class="el-icon-zoom-in"></i>
|
|
|
|
- </span>
|
|
|
|
- <span
|
|
|
|
- v-if="!disabled"
|
|
|
|
- class="el-upload-list__item-delete"
|
|
|
|
- @click="beforeRemove(file)"
|
|
|
|
- >
|
|
|
|
- <i class="el-icon-delete"></i>
|
|
|
|
|
|
+ <div>
|
|
|
|
+ <img
|
|
|
|
+ v-if="file.name.toLowerCase().split('.').splice(-1)[0] !== 'pdf' "
|
|
|
|
+ class="el-upload-list__item-thumbnail"
|
|
|
|
+ :src="file.url"
|
|
|
|
+ alt=""
|
|
|
|
+ />
|
|
|
|
+ <span class="el-upload-list__item-actions">
|
|
|
|
+ <span
|
|
|
|
+ v-if="file.name.toLowerCase().split('.').splice(-1)[0] !== 'pdf'"
|
|
|
|
+ class="el-upload-list__item-preview"
|
|
|
|
+ @click="handlePictureCardPreview(file)"
|
|
|
|
+ >
|
|
|
|
+ <i class="el-icon-zoom-in"></i>
|
|
|
|
+ </span>
|
|
|
|
+ <span
|
|
|
|
+ v-if="!disabled"
|
|
|
|
+ class="el-upload-list__item-delete"
|
|
|
|
+ @click="beforeRemove(file)"
|
|
|
|
+ >
|
|
|
|
+ <i class="el-icon-delete"></i>
|
|
|
|
+ </span>
|
|
</span>
|
|
</span>
|
|
- </span>
|
|
|
|
|
|
+ </div>
|
|
|
|
+ <div
|
|
|
|
+ v-if="file.name.toLowerCase().split('.').splice(-1)[0] == 'pdf'"
|
|
|
|
+ style="text-align: center; line-height: 145px"
|
|
|
|
+ >
|
|
|
|
+ {{ file.name }}
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</el-upload>
|
|
</el-upload>
|
|
</div>
|
|
</div>
|
|
@@ -206,17 +217,17 @@ export default {
|
|
uploadFile(fileObj) {
|
|
uploadFile(fileObj) {
|
|
let file = fileObj.file;
|
|
let file = fileObj.file;
|
|
var type = file.name.toLowerCase().split(".").splice(-1);
|
|
var type = file.name.toLowerCase().split(".").splice(-1);
|
|
- let typeList = ["jpg", "png"];
|
|
|
|
|
|
+ let typeList = ["jpg", "png", "pdf"];
|
|
if (!typeList.includes(type[0])) {
|
|
if (!typeList.includes(type[0])) {
|
|
- this.$message.error("上传格式需为:.jpg/.png");
|
|
|
|
|
|
+ this.$message.error("上传格式需为:.jpg/.png/.pdf");
|
|
const idx = this.$refs.uploadFile.uploadFiles.findIndex(
|
|
const idx = this.$refs.uploadFile.uploadFiles.findIndex(
|
|
(item) => item.uid === file.uid
|
|
(item) => item.uid === file.uid
|
|
);
|
|
);
|
|
this.$refs.uploadFile.uploadFiles.splice(idx, 1);
|
|
this.$refs.uploadFile.uploadFiles.splice(idx, 1);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (file.size > 0.3 * 1024 * 1024) {
|
|
|
|
- this.$message.error("图片不得大于300kb");
|
|
|
|
|
|
+ if (file.size > 1 * 1024 * 1024) {
|
|
|
|
+ this.$message.error("文件不得大于1MB");
|
|
const idx = this.$refs.uploadFile.uploadFiles.findIndex(
|
|
const idx = this.$refs.uploadFile.uploadFiles.findIndex(
|
|
(item) => item.uid === file.uid
|
|
(item) => item.uid === file.uid
|
|
);
|
|
);
|