|
@@ -6,18 +6,19 @@
|
|
|
<y-page-list-layout :page-list="pageData" :page-para="listQuery" :get-page-list="getList">
|
|
|
<template slot="left">
|
|
|
<MoreSearchBar business="MAJOR_BUSINESS" @fliterSearch="fliterSearch" @resetParams="resetParams"
|
|
|
- :listQuery="listQuery" :nodeCode="false" :financial="false" :clientManager="false" :businessObjectType="false"
|
|
|
+ :listQuery="listQuery" :nodeCode="false" :financial="false" :delivery="true" :hasRealAmount="true" :clientManager="false" :businessObjectType="false"
|
|
|
:department="false" :orderId="true" :productionNo="true" :productionType="true">
|
|
|
<template v-slot:otherButton>
|
|
|
<PermissionButton menu-code="_views_major_order" class-name="filter-item" type="danger"
|
|
|
- icon="el-icon-circle-plus-outline" :page-jump="true" round
|
|
|
+ icon="el-icon-circle-plus-outline" :page-jump="true" round
|
|
|
:page-query="{ 'couldEdit': true, 'couldBack': true }" />
|
|
|
- <el-button class="filter-item" round type="success" @click="exportMyOrder()" :disabled="!listQuery.startDate && !listQuery.endDate">导出
|
|
|
- </el-button>
|
|
|
+ <el-button class="filter-item" round type="success" @click="exportMyOrder()"
|
|
|
+ :disabled="!listQuery.startDate && !listQuery.endDate">导出
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
</MoreSearchBar>
|
|
|
</template>
|
|
|
- <parentTable :data="pageData.records" slot="table" style="width: 100%;" >
|
|
|
+ <parentTable :data="pageData.records" slot="table" style="width: 100%;">
|
|
|
<el-table-column label="订单名称" align="center" show-overflow-tooltip width='300'>
|
|
|
<template slot-scope="{row}">
|
|
|
<span>{{ row.orderName }}</span>
|
|
@@ -30,17 +31,20 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="产品号" align="center" width='200'>
|
|
|
<template slot-scope="{row}">
|
|
|
- <span>{{ row.productionNo?row.productionNo:'--' }}</span>
|
|
|
+ <span>{{ row.productionNo ? row.productionNo : '--' }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="产品类型" align="center" width='120'>
|
|
|
<template slot-scope="{row}">
|
|
|
- <span>{{ row.production?(row.production==='REPORT'?'报告':(row.production==='STATEMENT'?'意见书':'复评函' )):'订单'}}</span>
|
|
|
+ <span>{{ row.production ? (row.production === 'REPORT' ? '报告' : (row.production === 'STATEMENT' ? '意见书' :
|
|
|
+ '复评函'
|
|
|
+ )) : '订单' }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="当前节点" align="center" width='200'>
|
|
|
<template slot-scope="{row}">
|
|
|
- <span>{{ row.currentNodeName==null?(row.ifSaveFile===true?'已归档':'撰写节点'):row.currentNodeName}}</span>
|
|
|
+ <span>{{ row.currentNodeName == null ? (row.ifSaveFile === true ? '已归档' : '撰写节点') : row.currentNodeName
|
|
|
+ }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="负责人" align="center" width='120'>
|
|
@@ -55,17 +59,18 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="实收款(元)" align="center" width='120'>
|
|
|
<template slot-scope="{row}">
|
|
|
- <span style="color:red;font-weight:bold">{{ row.realAmount?row.realAmount:'--' }}</span>
|
|
|
+ <span style="color:red;font-weight:bold">{{ row.realAmount ? row.realAmount : '--' }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="应收款(元)" align="center" width='120'>
|
|
|
<template slot-scope="{row}">
|
|
|
- <span>{{ row.shouldAmount?row.shouldAmount:(row.orderShouldAmount?row.orderShouldAmount:'--') }}</span>
|
|
|
+ <span>{{ row.shouldAmount ? row.shouldAmount : (row.orderShouldAmount ? row.orderShouldAmount : '--')
|
|
|
+ }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="开票金额(元)" align="center" width='120'>
|
|
|
<template slot-scope="{row}">
|
|
|
- <span style="color:red;font-weight:bold">{{ row.invoiceAmount?row.invoiceAmount:'--' }}</span>
|
|
|
+ <span style="color:red;font-weight:bold">{{ row.invoiceAmount ? row.invoiceAmount : '--' }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="客户名称" align="center" width='120' show-overflow-tooltip>
|
|
@@ -95,7 +100,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="送达状态" align="center" width='120'>
|
|
|
<template slot-scope="{row}">
|
|
|
- <span>{{ row.delivery?'已送达':'--' }}</span>
|
|
|
+ <span>{{ row.delivery ? '已送达' : '--' }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="下单时间" align="center" width='200'>
|
|
@@ -105,13 +110,14 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column fixed="right" label="操作" width="250" align="center">
|
|
|
<template slot-scope="{row}">
|
|
|
- <PermissionButton menu-code="_views_myOrder_detail" class-name="filter-item" type="text" :page-jump="true"
|
|
|
- size="mini"
|
|
|
- :page-query="{ 'couldEdit': true, 'id': row.businessId, 'back': '/major/my/order', 'recall': true, 'couldBack': true ,'orderId':row.orderId}" />
|
|
|
- <el-button :disabled="!row.id" type="text" size="small" @click="openShouldAmountDialog(row)">应收款</el-button>
|
|
|
- <!-- <el-button type="text" size="small" @click="openAllotProductionDialog(row)">实收款分配</el-button> -->
|
|
|
- <el-button :disabled="!row.id" type="text" size="small" @click="openFinanceInvoiceDialog(row.orderFundId,row.realAmount,row.clienteleName,row.clienteleSubName,row.productionFundId)">申请开票</el-button>
|
|
|
- <el-button type="text" size="small" @click="productionList(row.businessId)">产品包</el-button>
|
|
|
+ <PermissionButton menu-code="_views_myOrder_detail" class-name="filter-item" type="text" :page-jump="true"
|
|
|
+ size="mini"
|
|
|
+ :page-query="{ 'couldEdit': true, 'id': row.businessId, 'back': '/major/my/order', 'recall': true, 'couldBack': true, 'orderId': row.orderId }" />
|
|
|
+ <el-button :disabled="!row.id" type="text" size="small" @click="openShouldAmountDialog(row)">应收款</el-button>
|
|
|
+ <!-- <el-button type="text" size="small" @click="openAllotProductionDialog(row)">实收款分配</el-button> -->
|
|
|
+ <el-button :disabled="!row.id" type="text" size="small"
|
|
|
+ @click="openFinanceInvoiceDialog(row.orderFundId, row.realAmount, row.clienteleName, row.clienteleSubName, row.productionFundId)">申请开票</el-button>
|
|
|
+ <el-button type="text" size="small" @click="productionList(row.businessId)">产品包</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</parentTable>
|
|
@@ -145,7 +151,7 @@
|
|
|
<el-button type="danger" round @click="openNewInvoiceDialog">新增开票</el-button>
|
|
|
<div style="margin-top:30px;">
|
|
|
<el-table :data="invoiceData" stripe :header-row-style="{ color: '#333333', 'font-size': '14px' }" border
|
|
|
- style="width: 100%; margin-top:20px;font-size: 14px;">
|
|
|
+ style="width: 100%; margin-top:20px;font-size: 14px;">
|
|
|
<el-table-column align="center" prop="title" label="发票抬头" width="180">
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" prop="taxNo" label="税号" width="180">
|
|
@@ -171,8 +177,10 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column fixed="right" label="操作" width="200" align="center">
|
|
|
<template slot-scope="{row}">
|
|
|
- <el-button :disabled="row.state != '审核中'" @click="invoiceDetail(row.id)" type="text" size="small">修改</el-button>
|
|
|
- <el-button :disabled="row.state != '已开票'" @click="cancellation(row.id)" type="text" size="small">申请作废</el-button>
|
|
|
+ <el-button :disabled="row.state != '审核中'" @click="invoiceDetail(row.id)" type="text"
|
|
|
+ size="small">修改</el-button>
|
|
|
+ <el-button :disabled="row.state != '已开票'" @click="cancellation(row.id)" type="text"
|
|
|
+ size="small">申请作废</el-button>
|
|
|
<el-button @click="copyInvoice(row)" type="text" size="small">复制</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -199,7 +207,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
-
|
|
|
+
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
@@ -212,7 +220,8 @@
|
|
|
<el-form-item label="计划开票日期:" prop="planMakeDate"
|
|
|
:rules="{ required: true, message: '计划开票日期不能为空', trigger: 'blur' }" label-width="140px"
|
|
|
class="postInfo-container-item">
|
|
|
- <el-date-picker v-model="invoice.planMakeDate" type="date" placeholder="选择日期" value-format="yyyy-MM-dd" style="width:100%">
|
|
|
+ <el-date-picker v-model="invoice.planMakeDate" type="date" placeholder="选择日期" value-format="yyyy-MM-dd"
|
|
|
+ style="width:100%">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -227,9 +236,8 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
- <el-form-item label="是否收款:" label-width="140px"
|
|
|
- class="postInfo-container-item">
|
|
|
- <el-radio-group :value="invoice.realPayAmount?'已收款':'未收款'">
|
|
|
+ <el-form-item label="是否收款:" label-width="140px" class="postInfo-container-item">
|
|
|
+ <el-radio-group :value="invoice.realPayAmount ? '已收款' : '未收款'">
|
|
|
<el-radio label="已收款"></el-radio>
|
|
|
<el-radio label="未收款"></el-radio>
|
|
|
</el-radio-group>
|
|
@@ -247,7 +255,7 @@
|
|
|
<el-input v-model.trim="invoice.itemQuantity" class="filter-item" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
-
|
|
|
+
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
@@ -259,7 +267,8 @@
|
|
|
<el-row>
|
|
|
<el-col :xs="24" :sm="12" :lg="24" :span="6">
|
|
|
<el-form-item label="备注:" prop="remark" label-width="140px" class="postInfo-container-item">
|
|
|
- <el-input v-model.trim="invoice.remark" type="textarea" :autosize="{ minRows: 5, maxRows: 8}" class="filter-item" />
|
|
|
+ <el-input v-model.trim="invoice.remark" type="textarea" :autosize="{ minRows: 5, maxRows: 8 }"
|
|
|
+ class="filter-item" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -372,8 +381,9 @@
|
|
|
<span style="margin-left:30px;font-size:16px;font-weight:bold; color:red">实收款金额:{{ r.realAmount != null ?
|
|
|
r.realAmount : 0 }}¥</span>
|
|
|
<span style="margin-left:30px;font-size:16px;">应收款金额:{{ r.shouldAmount != null ?
|
|
|
- r.shouldAmount : 0 }}¥</span>
|
|
|
- <el-button style="margin-left:30px;" type="text" size="small" @click="openShouldAmountDialog(r)">填写应收款</el-button>
|
|
|
+ r.shouldAmount : 0 }}¥</span>
|
|
|
+ <el-button style="margin-left:30px;" type="text" size="small"
|
|
|
+ @click="openShouldAmountDialog(r)">填写应收款</el-button>
|
|
|
<el-button
|
|
|
v-if="(r.productionNo === reportNo && r.production != 'STATEMENT' && r.repertoryState != null && !r.repertoryState)"
|
|
|
style="float: right; padding: 3px 0;margin-left:10px" type="text"
|
|
@@ -574,6 +584,8 @@ export default {
|
|
|
keyword: null,
|
|
|
startDate: null,
|
|
|
endDate: null,
|
|
|
+ delivery: false,
|
|
|
+ hasRealAmount: false
|
|
|
},
|
|
|
shouldAmountDialog: false,
|
|
|
makeInvoiceListDialog: false,
|
|
@@ -592,10 +604,10 @@ export default {
|
|
|
businessType: null,
|
|
|
businessId: null,
|
|
|
businessSubId: null,
|
|
|
- orderFundId:null,
|
|
|
+ orderFundId: null,
|
|
|
productionFundId: null,
|
|
|
evaluateAmount: null,
|
|
|
- orderShouldAmount:null,
|
|
|
+ orderShouldAmount: null,
|
|
|
},
|
|
|
invoiceData: [],
|
|
|
invoice: {
|
|
@@ -617,9 +629,9 @@ export default {
|
|
|
taxRate: null,
|
|
|
taxAmount: null,
|
|
|
remark: null,
|
|
|
- realPayAmount:null,
|
|
|
- realAmount:null,
|
|
|
- realMakeDate:null
|
|
|
+ realPayAmount: null,
|
|
|
+ realAmount: null,
|
|
|
+ realMakeDate: null
|
|
|
},
|
|
|
outWarehouse: {
|
|
|
id: null,
|
|
@@ -749,7 +761,7 @@ export default {
|
|
|
this.$refs.fund.validate(valid => {
|
|
|
if (valid) {
|
|
|
//设置订单应收款
|
|
|
- if (!this.fund.id){
|
|
|
+ if (!this.fund.id) {
|
|
|
this.fund.id = this.fund.orderFundId;
|
|
|
if (this.fund.id) {
|
|
|
this.$api.orderFund.edit(this.fund).then(res => {
|
|
@@ -791,34 +803,34 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
})
|
|
|
- }
|
|
|
- }else{
|
|
|
+ }
|
|
|
+ } else {
|
|
|
//设置产品应收款
|
|
|
this.fund.productionShouldAmount = this.fund.shouldAmount;
|
|
|
this.fund.id = this.fund.productionFundId;
|
|
|
- if (this.fund.id){
|
|
|
+ if (this.fund.id) {
|
|
|
this.$api.productionFund.edit(this.fund).then(res => {
|
|
|
- if (res.code === 200 && res.data) {
|
|
|
- this.$notify({
|
|
|
- title: '成功',
|
|
|
- message: '订单应收款已完善',
|
|
|
- type: 'success',
|
|
|
- duration: 1000
|
|
|
- });
|
|
|
- this.getList();
|
|
|
- this.shouldAmountDialog = false;
|
|
|
- this.shouldAmountDialog = false;
|
|
|
- this.productionList(this.todoBusinessId, this.reportNo == null ? this.statementNo : this.reportNo)
|
|
|
- } else {
|
|
|
- this.$notify({
|
|
|
- title: '失败',
|
|
|
- message: '订单应收款保存错误',
|
|
|
- type: 'error',
|
|
|
- duration: 1000
|
|
|
- });
|
|
|
- }
|
|
|
- })
|
|
|
- }else{
|
|
|
+ if (res.code === 200 && res.data) {
|
|
|
+ this.$notify({
|
|
|
+ title: '成功',
|
|
|
+ message: '订单应收款已完善',
|
|
|
+ type: 'success',
|
|
|
+ duration: 1000
|
|
|
+ });
|
|
|
+ this.getList();
|
|
|
+ this.shouldAmountDialog = false;
|
|
|
+ this.shouldAmountDialog = false;
|
|
|
+ this.productionList(this.todoBusinessId, this.reportNo == null ? this.statementNo : this.reportNo)
|
|
|
+ } else {
|
|
|
+ this.$notify({
|
|
|
+ title: '失败',
|
|
|
+ message: '订单应收款保存错误',
|
|
|
+ type: 'error',
|
|
|
+ duration: 1000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
this.$api.productionFund.add(this.fund).then(res => {
|
|
|
if (res.code === 200 && res.data) {
|
|
|
this.$notify({
|
|
@@ -858,13 +870,13 @@ export default {
|
|
|
this.fund.evaluateAmount = null
|
|
|
},
|
|
|
getFinanceInvoiceList() {
|
|
|
- this.$api.financeInvoice.getList(this.invoice.orderFundId,this.invoice.productionFundId).then(res => {
|
|
|
+ this.$api.financeInvoice.getList(this.invoice.orderFundId, this.invoice.productionFundId).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
this.invoiceData = res.data
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- openFinanceInvoiceDialog(orderFundId,realAmount,clientName,clientSubName,productionFundId) {
|
|
|
+ openFinanceInvoiceDialog(orderFundId, realAmount, clientName, clientSubName, productionFundId) {
|
|
|
if (!orderFundId) {
|
|
|
this.$notify({
|
|
|
title: '提示',
|
|
@@ -879,7 +891,7 @@ export default {
|
|
|
this.invoice.orderFundId = orderFundId;
|
|
|
this.invoice.realPayAmount = realAmount;
|
|
|
this.invoice.productionFundId = productionFundId;
|
|
|
- this.invoice.title = clientName+clientSubName;
|
|
|
+ this.invoice.title = clientName + clientSubName;
|
|
|
this.getFinanceInvoiceList();
|
|
|
}
|
|
|
},
|
|
@@ -976,41 +988,41 @@ export default {
|
|
|
this.newInvoiceDialog = true;
|
|
|
},
|
|
|
cancellation(id) {
|
|
|
- const h = this.$createElement
|
|
|
- this.$prompt(
|
|
|
- h('p', null, [h('span', { style: 'color: red' }, '请输入作废原因:')]),'开票作废',{
|
|
|
- confirmButtonText: '确认',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'error',
|
|
|
- inputValidator: (value) => {
|
|
|
- if (!value) {
|
|
|
- return '作废原因不能为空'
|
|
|
- }
|
|
|
- },
|
|
|
- }).then(({value}) => {
|
|
|
- this.invoice.reason = value;
|
|
|
- this.invoice.id = id;
|
|
|
- this.$api.financeInvoice.cancellation(this.invoice).then(res => {
|
|
|
- if (res.code === 200 && res.data) {
|
|
|
- this.$notify({
|
|
|
- title: '成功',
|
|
|
- message: '作废申请已提交',
|
|
|
- type: 'success',
|
|
|
- duration: 2000
|
|
|
- });
|
|
|
- this.getFinanceInvoiceList();
|
|
|
- } else {
|
|
|
- this.$notify({
|
|
|
- title: '失败',
|
|
|
- message: '作废提交失败',
|
|
|
- type: 'error',
|
|
|
- duration: 2000
|
|
|
- });
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
- })
|
|
|
+ const h = this.$createElement
|
|
|
+ this.$prompt(
|
|
|
+ h('p', null, [h('span', { style: 'color: red' }, '请输入作废原因:')]), '开票作废', {
|
|
|
+ confirmButtonText: '确认',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'error',
|
|
|
+ inputValidator: (value) => {
|
|
|
+ if (!value) {
|
|
|
+ return '作废原因不能为空'
|
|
|
+ }
|
|
|
},
|
|
|
+ }).then(({ value }) => {
|
|
|
+ this.invoice.reason = value;
|
|
|
+ this.invoice.id = id;
|
|
|
+ this.$api.financeInvoice.cancellation(this.invoice).then(res => {
|
|
|
+ if (res.code === 200 && res.data) {
|
|
|
+ this.$notify({
|
|
|
+ title: '成功',
|
|
|
+ message: '作废申请已提交',
|
|
|
+ type: 'success',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ this.getFinanceInvoiceList();
|
|
|
+ } else {
|
|
|
+ this.$notify({
|
|
|
+ title: '失败',
|
|
|
+ message: '作废提交失败',
|
|
|
+ type: 'error',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
openApplyOutWarehouseList(row) {
|
|
|
console.log(row)
|
|
|
if (row.shouldAmount) {
|
|
@@ -1245,7 +1257,7 @@ export default {
|
|
|
this.orderProduction.orderName = row.orderName;
|
|
|
this.orderProduction.realAmount = row.realAmount;
|
|
|
this.orderProduction.orderFundId = row.orderFundId;
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
getProductionList(orderFundId) {
|
|
|
if (orderFundId) {
|
|
@@ -1305,28 +1317,28 @@ export default {
|
|
|
}
|
|
|
this.getList();
|
|
|
},
|
|
|
- stateStyle(state){
|
|
|
- if (state==='已开票'){
|
|
|
- return 'color:green'
|
|
|
- }else{
|
|
|
- return 'color:red'
|
|
|
- }
|
|
|
+ stateStyle(state) {
|
|
|
+ if (state === '已开票') {
|
|
|
+ return 'color:green'
|
|
|
+ } else {
|
|
|
+ return 'color:red'
|
|
|
+ }
|
|
|
},
|
|
|
- copyInvoice(row){
|
|
|
- this.invoice = row;
|
|
|
- this.invoice.id = null;
|
|
|
- this.invoice.state = null;
|
|
|
- this.invoice.reason = null;
|
|
|
- this.invoice.created = null;
|
|
|
- this.invoice.modified = null;
|
|
|
- this.newInvoiceDialog = true;
|
|
|
+ copyInvoice(row) {
|
|
|
+ this.invoice = row;
|
|
|
+ this.invoice.id = null;
|
|
|
+ this.invoice.state = null;
|
|
|
+ this.invoice.reason = null;
|
|
|
+ this.invoice.created = null;
|
|
|
+ this.invoice.modified = null;
|
|
|
+ this.newInvoiceDialog = true;
|
|
|
},
|
|
|
// 大中型我的订单导出
|
|
|
exportMyOrder() {
|
|
|
- this.$utils.exportUtil(
|
|
|
- "/majorProduction/exportMyOrder", this.listQuery,
|
|
|
- "导出"
|
|
|
- );
|
|
|
+ this.$utils.exportUtil(
|
|
|
+ "/majorProduction/exportMyOrder", this.listQuery,
|
|
|
+ "导出"
|
|
|
+ );
|
|
|
}
|
|
|
}
|
|
|
|