Commit 55bb19c9 by 张立顺

打印屏蔽逻辑修复

1 parent 4cf70ef3
......@@ -15,7 +15,7 @@
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text"
v-if="[1, 2, 3, -1, 5].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)"
@click="handlePrint(scope.scope)">打印</el-button>
:disabled="scope.scope.mode != 1" @click="handlePrint(scope.scope)">打印</el-button>
<el-button type="text"
v-if="[2].includes(scope.scope.equityOrderStatus) && [3, 5].includes(scope.scope.orderStatus)"
@click="handlePrintContract(scope.scope)">打印合同</el-button>
......@@ -210,7 +210,7 @@ export default {
}
},
created() { },
created() {},
mounted() {
this.getOptionsList()
......@@ -295,7 +295,7 @@ export default {
this.$apis.order.quotationPrintApi({ id: row.id }).then(res => {
console.log(res)
const oWin = window.open(res)
oWin.document.fn = function () {
oWin.document.fn = function() {
if (oWin) {
oWin.print()
oWin.close()
......
......@@ -37,7 +37,9 @@
{{ detail.upgradeFlag == 'N' ? '战败' : payStatusOpts[detail.payStatus || $$(detail.payOrder, 'payStatus')] }}
</el-form-item>
<el-form-item label="收款凭证:" class="photoItem">
<img v-if="detail.payVoucher || $$(detail.payOrder, 'payVoucher')" class="order-img" :src="detail.payVoucher || $$(detail.payOrder, 'payVoucher')" @click="handleEnlargeImg(detail.payVoucher || $$(detail.payOrder, 'payVoucher'))" />
<img v-if="detail.payVoucher || $$(detail.payOrder, 'payVoucher')" class="order-img"
:src="detail.payVoucher || $$(detail.payOrder, 'payVoucher')"
@click="handleEnlargeImg(detail.payVoucher || $$(detail.payOrder, 'payVoucher'))" />
<span v-else>无</span>
</el-form-item>
<el-form-item label="退款订单:" v-if="detail.status == 12">
......@@ -67,10 +69,12 @@
</el-form-item>
<el-form-item label="客户签名:" class="photoItem" v-if="detail.electronicSignature">
<img class="order-img" :src="detail.electronicSignature" @click="handleEnlargeImg(detail.electronicSignature)" />
<img class="order-img" :src="detail.electronicSignature"
@click="handleEnlargeImg(detail.electronicSignature)" />
</el-form-item>
<el-form-item label="客户车辆施工图片:" class="photoItem photoItemList" v-if="detail.customerPhotos">
<img v-for="(item, index) in detail.customerPhotos" :key="index" class="img" :src="item.customerPhoto" @click="handleEnlargeImg(item.customerPhoto)" />
<img v-for="(item, index) in detail.customerPhotos" :key="index" class="img" :src="item.customerPhoto"
@click="handleEnlargeImg(item.customerPhoto)" />
</el-form-item>
</el-form>
</div>
......@@ -112,7 +116,9 @@
<p class="edit-sub-title">
订单商品
</p>
<el-table :data="detail.subOrderList" border :header-cell-style="{ 'text-align': 'center', 'background-color': '#fafafa' }" show-summary :summary-method="getSummaries" style="width: 100%">
<el-table :data="detail.subOrderList" border
:header-cell-style="{ 'text-align': 'center', 'background-color': '#fafafa' }" show-summary
:summary-method="getSummaries" style="width: 100%">
<!-- <el-table-column :prop="detail.upgradeFlag === 'Y' ? 'upgradeGoodsCommodityCode' : 'baseGoodsCommodityCode'" -->
<el-table-column :prop="'upgradeGoodsCommodityCode'" align="center" label="商品ID" width="180px" />
<el-table-column :prop="'upgradeGoodsName'" align="center" label="商品名称" />
......@@ -130,7 +136,8 @@
</template>
</el-table-column> -->
<el-table-column prop="upgradeWarrantyPeriod" align="center" label="质保年限">
<span slot-scope="scope">{{ scope.row.upgradeWarrantyPeriod ? scope.row.upgradeWarrantyPeriod + '年' : '无' }}</span>
<span slot-scope="scope">{{ scope.row.upgradeWarrantyPeriod ? scope.row.upgradeWarrantyPeriod + '年' : '无'
}}</span>
</el-table-column>
<el-table-column prop="cardCode" align="center" label="质保条形码">
<span slot-scope="scope">{{ scope.row.cardCode ? scope.row.cardCode : '无' }}</span>
......@@ -153,12 +160,13 @@
订单进度
</p>
<!-- header-cell-style="text-align:center; background-color:#fafafa" -->
<el-table :data="detail.accessLogs" border :header-cell-style="{ 'text-align': 'center', 'background-color': '#fafafa' }" style="width: 100%">
<el-table :data="detail.accessLogs" border
:header-cell-style="{ 'text-align': 'center', 'background-color': '#fafafa' }" style="width: 100%">
<el-table-column prop="createdDateStr" align="center" label="时间" />
<el-table-column prop="logContent" align="center" label="当前进度" />
<el-table-column prop="userName" align="center" label="关联操作员">
<template slot-scope="scope">
<span v-if="detail.payType == 1 && scope.row.logType == 3">用户 微信支付</span>
<span v-if="detail.payOrder.payType == 1 && scope.row.logType == 3">用户 微信支付</span>
<span v-else>{{ logType[scope.row.logType] }} {{ scope.row.userName }}</span>
</template>
</el-table-column>
......@@ -291,8 +299,8 @@ export default {
sums[index] =
(numberList.length
? numberList.reduce((preVal, curVal) => {
return preVal + curVal
})
return preVal + curVal
})
: '0') + '件'
return
}
......@@ -421,5 +429,4 @@ export default {
height: 80px;
margin-left: 10px;
}
}
</style>
}</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!