|
@@ -27,9 +27,10 @@
|
|
<div class="hui-detail-item">
|
|
<div class="hui-detail-item">
|
|
<div class="hui-detail-label">状态</div>
|
|
<div class="hui-detail-label">状态</div>
|
|
<div class="hui-detail-value">
|
|
<div class="hui-detail-value">
|
|
- <div class="hui-tag hui-tag-info" v-if="!detail.status">待付款</div>
|
|
|
|
<div class="hui-tag hui-tag-warning" v-if="detail.status === 1">付款中</div>
|
|
<div class="hui-tag hui-tag-warning" v-if="detail.status === 1">付款中</div>
|
|
- <div class="hui-tag hui-tag-success" v-if="detail.status === 2">已付款</div>
|
|
|
|
|
|
+ <div class="hui-tag hui-tag-success" v-else-if="detail.status === 2">已付款</div>
|
|
|
|
+ <div class="hui-tag hui-tag-info" v-else-if="detail.status === 3">待付款</div>
|
|
|
|
+ <div class="hui-tag hui-tag-info" v-else>待发送</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -39,7 +40,7 @@
|
|
<div class="hui-detail-label">付款名称</div>
|
|
<div class="hui-detail-label">付款名称</div>
|
|
<div class="hui-detail-value">{{item.name}}</div>
|
|
<div class="hui-detail-value">{{item.name}}</div>
|
|
</div>
|
|
</div>
|
|
- <div class="hui-detail-item">
|
|
|
|
|
|
+ <div class="hui-detail-item hui-detail-item-top">
|
|
<div class="hui-detail-label">回执单</div>
|
|
<div class="hui-detail-label">回执单</div>
|
|
<div class="hui-detail-value">
|
|
<div class="hui-detail-value">
|
|
<upload ref="upload" :list="item.attachment ? JSON.parse(item.attachment) : []"
|
|
<upload ref="upload" :list="item.attachment ? JSON.parse(item.attachment) : []"
|
|
@@ -51,11 +52,27 @@
|
|
<div class="hui-detail-title" v-if="detail.paymentInvoiceList.length > 0">发票记录</div>
|
|
<div class="hui-detail-title" v-if="detail.paymentInvoiceList.length > 0">发票记录</div>
|
|
<div class="hui-detail-content" v-for="(item,index) in detail.paymentInvoiceList">
|
|
<div class="hui-detail-content" v-for="(item,index) in detail.paymentInvoiceList">
|
|
<div class="hui-detail-item">
|
|
<div class="hui-detail-item">
|
|
- <div class="hui-detail-label">付款名称</div>
|
|
|
|
|
|
+ <div class="hui-detail-label">发票名称</div>
|
|
<div class="hui-detail-value">{{item.name}}</div>
|
|
<div class="hui-detail-value">{{item.name}}</div>
|
|
</div>
|
|
</div>
|
|
<div class="hui-detail-item">
|
|
<div class="hui-detail-item">
|
|
- <div class="hui-detail-label">回执单</div>
|
|
|
|
|
|
+ <div class="hui-detail-label">发票类型</div>
|
|
|
|
+ <div class="hui-detail-value">{{$field.findTypeName('invoiceType',item.type)}}</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="hui-detail-item">
|
|
|
|
+ <div class="hui-detail-label">发票代码</div>
|
|
|
|
+ <div class="hui-detail-value">{{item.code}}</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="hui-detail-item">
|
|
|
|
+ <div class="hui-detail-label">发票号码</div>
|
|
|
|
+ <div class="hui-detail-value">{{item.number}}</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="hui-detail-item">
|
|
|
|
+ <div class="hui-detail-label">货物名称</div>
|
|
|
|
+ <div class="hui-detail-value">{{item.cargoName}}</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="hui-detail-item hui-detail-item-top">
|
|
|
|
+ <div class="hui-detail-label">发票附件</div>
|
|
<div class="hui-detail-value">
|
|
<div class="hui-detail-value">
|
|
<upload ref="upload" :list="item.attachment ? JSON.parse(item.attachment) : []"
|
|
<upload ref="upload" :list="item.attachment ? JSON.parse(item.attachment) : []"
|
|
type="preview">
|
|
type="preview">
|
|
@@ -65,6 +82,22 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="hui-drawer-submit" v-if="detail.status === 3 || detail.status === 1">
|
|
|
|
+ <el-button size="medium" type="primary" @click="paymentOperation('record')" v-if="detail.status === 3">
|
|
|
|
+ 账单付款
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button size="medium" type="primary" @click="paymentOperation('invoice')" v-if="detail.status === 1">
|
|
|
|
+ 账单发票
|
|
|
|
+ </el-button>
|
|
|
|
+ </div>
|
|
|
|
+ <el-dialog title="新增" :visible.sync="visible" width="900px" :append-to-body="true">
|
|
|
|
+ <recode-form v-if="visible && type === 'record'" @callback="callback" :itemId="detailId"
|
|
|
|
+ type="paymentOrdinary">
|
|
|
|
+ </recode-form>
|
|
|
|
+ <invoice-form v-if="visible && type === 'invoice'" @callback="callback" :itemId="detailId"
|
|
|
|
+ type="paymentOrdinary">
|
|
|
|
+ </invoice-form>
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -73,6 +106,8 @@
|
|
getPaymentDetailById
|
|
getPaymentDetailById
|
|
} from '@/httpApi/bill'
|
|
} from '@/httpApi/bill'
|
|
import upload from '@/components/common/upload'
|
|
import upload from '@/components/common/upload'
|
|
|
|
+ import recodeForm from '@/components/work/bill/common/recodeForm';
|
|
|
|
+ import invoiceForm from '@/components/work/bill/common/invoiceForm';
|
|
export default {
|
|
export default {
|
|
props: ['detailId'],
|
|
props: ['detailId'],
|
|
data() {
|
|
data() {
|
|
@@ -113,6 +148,8 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|
|
|
|
+ recodeForm,
|
|
|
|
+ invoiceForm,
|
|
upload
|
|
upload
|
|
},
|
|
},
|
|
}
|
|
}
|