|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="website-parts-shop-sales">
|
|
|
- <div class="website-parts-shop-sales-sl">
|
|
|
+ <div class="website-parts-shop-sales-sl" v-if="formData">
|
|
|
<el-page-header
|
|
|
@back="
|
|
|
() => {
|
|
@@ -23,25 +23,25 @@
|
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 网点 </template>
|
|
|
<div>
|
|
|
- {{ item.websitName }}
|
|
|
+ {{ formData.websitName }}
|
|
|
</div>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 申请类别 </template>
|
|
|
<div>
|
|
|
- {{ { TRADE: '商用空调', ELEC: '生活电器(小家电)', HOME: '家用空调' }[item.applyCategory] }}
|
|
|
+ {{ { TRADE: '商用空调', ELEC: '生活电器(小家电)', HOME: '家用空调' }[formData.applyCategory] }}
|
|
|
</div>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 申请类型 </template>
|
|
|
<div>
|
|
|
- {{ { '0': '普通申请', '1': '急件申请', '2': '备件申请' }[item.applyType] }}
|
|
|
+ {{ { '0': '普通申请', '1': '急件申请', '2': '备件申请' }[formData.applyType] }}
|
|
|
</div>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 发货方式 </template>
|
|
|
<div>
|
|
|
- {{ { '0': '快递', '1': '自提' }[item.deliveryType] }}
|
|
|
+ {{ { '0': '快递', '1': '自提' }[formData.deliveryType] }}
|
|
|
</div>
|
|
|
</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
@@ -57,25 +57,25 @@
|
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 销售类型 </template>
|
|
|
<div>
|
|
|
- {{ { CUSTOMER: '客户', WORKER: '内部师傅' }[item.buyPeople] }}
|
|
|
+ {{ { CUSTOMER: '客户', WORKER: '内部师傅' }[formData.buyPeople] }}
|
|
|
</div>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 申请人 </template>
|
|
|
<div>
|
|
|
- {{ item.workerName }}
|
|
|
+ {{ formData.workerName }}
|
|
|
</div>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 联系电话 </template>
|
|
|
<div>
|
|
|
- {{ item.mobile }}
|
|
|
+ {{ formData.mobile }}
|
|
|
</div>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 接收单位 </template>
|
|
|
<div>
|
|
|
- {{ item.receiveUnit }}
|
|
|
+ {{ formData.receiveUnit }}
|
|
|
</div>
|
|
|
</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
@@ -93,7 +93,7 @@
|
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 发货单位 </template>
|
|
|
<div>
|
|
|
- {{ item.websitName }}
|
|
|
+ {{ formData.websitName }}
|
|
|
</div>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item>
|
|
@@ -105,13 +105,13 @@
|
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 收件地址 </template>
|
|
|
<div>
|
|
|
- {{ item.receiveAddr }}
|
|
|
+ {{ formData.receiveAddr }}
|
|
|
</div>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 详细地址 </template>
|
|
|
<div>
|
|
|
- {{ item.addr }}
|
|
|
+ {{ formData.addr }}
|
|
|
</div>
|
|
|
</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
@@ -129,25 +129,25 @@
|
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 支付方式 </template>
|
|
|
<div>
|
|
|
- {{ { CASH: '现金', ALLINPAY: '通联', CREDIT: '记账' }[item.payType] }}
|
|
|
+ {{ { CASH: '现金', ALLINPAY: '通联', CREDIT: '记账' }[formData.payType] }}
|
|
|
</div>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 销售金额 </template>
|
|
|
<div>
|
|
|
- {{ item.totalAmount }}
|
|
|
+ {{ formData.totalAmount }}
|
|
|
</div>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 应收金额 </template>
|
|
|
<div>
|
|
|
- {{ item.itemTotalAmount }}
|
|
|
+ {{ formData.itemTotalAmount }}
|
|
|
</div>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 收款状态 </template>
|
|
|
<div>
|
|
|
- {{ item.creditStatus ? '已收款' : '未收款' }}
|
|
|
+ {{ formData.creditStatus ? '已收款' : '未收款' }}
|
|
|
</div>
|
|
|
</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
@@ -163,7 +163,7 @@
|
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 下单时间 </template>
|
|
|
<div>
|
|
|
- {{ item.createTime }}
|
|
|
+ {{ formData.createTime }}
|
|
|
</div>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item>
|
|
@@ -175,13 +175,13 @@
|
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 收款人 </template>
|
|
|
<div>
|
|
|
- {{ item.updateBy }}
|
|
|
+ {{ formData.updateBy }}
|
|
|
</div>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 收款时间 </template>
|
|
|
<div>
|
|
|
- {{ item.updateTime }}
|
|
|
+ {{ formData.updateTime }}
|
|
|
</div>
|
|
|
</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
@@ -232,7 +232,7 @@
|
|
|
<el-table-column prop="transactionId" label="微信流水号" show-overflow-tooltip />
|
|
|
</el-table>
|
|
|
</div>
|
|
|
- <div style="text-align: right">
|
|
|
+ <div style="text-align: right" v-if="formData && !formData.creditStatus">
|
|
|
<el-button size="small" type="primary" @click="shoukuan">收款</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -249,6 +249,7 @@
|
|
|
bool => {
|
|
|
visible = bool
|
|
|
rowData = null
|
|
|
+ getxiangqing()
|
|
|
}
|
|
|
"
|
|
|
/>
|
|
@@ -257,6 +258,7 @@
|
|
|
|
|
|
<script>
|
|
|
import PayPopupWindow from './pay-popup-window.vue'
|
|
|
+import { ppartsCreditDetail } from '@/api/masterAccountingManagement'
|
|
|
export default {
|
|
|
components: { PayPopupWindow },
|
|
|
props: {
|
|
@@ -268,20 +270,29 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
visible: false,
|
|
|
- rowData: null
|
|
|
+ rowData: null,
|
|
|
+ formData: null
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
items() {
|
|
|
- return this?.item?.item ? [this?.item?.item] : []
|
|
|
+ return this?.formData?.item ? [this?.formData?.item] : []
|
|
|
},
|
|
|
payOrder() {
|
|
|
- return this?.item?.payOrder ? [this?.item?.payOrder] : []
|
|
|
+ return this?.formData?.payOrder ? [this?.formData?.payOrder] : []
|
|
|
}
|
|
|
},
|
|
|
+ mounted() {
|
|
|
+ this.getxiangqing()
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ getxiangqing() {
|
|
|
+ ppartsCreditDetail({ id: this.item.id }).then(res => {
|
|
|
+ this.formData = res.data
|
|
|
+ })
|
|
|
+ },
|
|
|
shoukuan() {
|
|
|
- this.rowData = this.item
|
|
|
+ this.rowData = this.formData
|
|
|
this.visible = true
|
|
|
}
|
|
|
}
|