'更新'
This commit is contained in:
@@ -67,13 +67,6 @@
|
||||
<el-input v-model="name" size="small" readonly/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="运费">
|
||||
<el-input v-model="freight" size="small"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="税率">
|
||||
<el-input v-model="taxRate" size="small"/>
|
||||
|
||||
@@ -49,9 +49,14 @@
|
||||
{{ scope.row.到票总金额 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="扣款总金额" min-width="100px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.扣款总金额 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="到票情况" min-width="200px">
|
||||
<template slot-scope="scope">
|
||||
<el-progress :text-inside="true" :stroke-width="18" :percentage="100*(scope.row.到票总金额/scope.row.合同总金额).toFixed(2)" status="success"/>
|
||||
<el-progress :text-inside="true" :stroke-width="18" :percentage="100*(scope.row.到票总金额/scope.row.剩余总金额).toFixed(2)" status="success"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -82,6 +87,11 @@
|
||||
{{ scope.row.开票金额 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="扣除金额" min-width="100px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.扣除金额 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="传送人" min-width="80px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.传送人姓名 }}
|
||||
@@ -171,6 +181,7 @@ export default {
|
||||
this.contractNum ? this.check1 = 1 : this.check1 = 0
|
||||
this.supplierName ? this.check2 = 1 : this.check2 = 0
|
||||
searchContractInvoice(this.pageCurrent1, this.pageSize1, this.check1, this.contractNum, this.check2, this.supplierName).then(response => {
|
||||
console.log(response.data.rows)
|
||||
this.tableData1 = response.data.rows
|
||||
this.total1 = response.data.total
|
||||
})
|
||||
|
||||
1262
src/views/WorkshopProcurement/OutsourcingProcessPlanning/index.vue
Normal file
1262
src/views/WorkshopProcurement/OutsourcingProcessPlanning/index.vue
Normal file
File diff suppressed because it is too large
Load Diff
@@ -74,7 +74,7 @@
|
||||
<el-progress
|
||||
:text-inside="true"
|
||||
:stroke-width="18"
|
||||
:percentage="100*((scope.row.总金额 - scope.row.欠款金额)/scope.row.总金额).toFixed(4)"
|
||||
:percentage="(parseInt(10000*(scope.row.总金额 - scope.row.欠款金额)/scope.row.总金额)) / 100"
|
||||
status="success"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
@@ -34,17 +34,17 @@
|
||||
height="300px"
|
||||
highlight-current-row
|
||||
@row-click="searchTable2">
|
||||
<el-table-column label="采购合同号" align="center" width="250">
|
||||
<el-table-column label="采购合同号" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.采购合同编号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="采购合同名称" align="center" width="100">
|
||||
<el-table-column label="采购合同名称" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.采购合同名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="规定到货时间" align="center" width="100">
|
||||
<el-table-column label="规定到货时间" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.规定到货时间 }}
|
||||
</template>
|
||||
@@ -54,22 +54,22 @@
|
||||
{{ scope.row.供应商名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="采购员" align="center" width="70">
|
||||
<el-table-column label="采购员" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.姓名 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="总金额" align="center" width="80">
|
||||
<el-table-column label="总金额" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.总金额 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="预付款" align="center" width="200">
|
||||
<el-table-column label="预付款" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.预付款 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="100">
|
||||
<el-table-column label="操作" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="primary" size="mini" icon="el-icon-edit-outline" @click="Open(scope.row)">审批</el-button>
|
||||
</template>
|
||||
|
||||
@@ -43,17 +43,17 @@
|
||||
height="300px"
|
||||
highlight-current-row
|
||||
@row-click="searchTable2">
|
||||
<el-table-column label="采购合同号" align="center" width="250">
|
||||
<el-table-column label="采购合同号" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.采购合同编号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="采购合同名称" align="center" width="100">
|
||||
<el-table-column label="采购合同名称" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.采购合同名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="规定到货时间" align="center" width="100">
|
||||
<el-table-column label="规定到货时间" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.规定到货时间 }}
|
||||
</template>
|
||||
@@ -63,33 +63,34 @@
|
||||
{{ scope.row.供应商名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="采购员" align="center" width="70">
|
||||
<el-table-column label="采购员" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.姓名 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="总金额" align="center" width="80">
|
||||
<el-table-column label="总金额" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.总金额 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="预付款" align="center" width="200">
|
||||
<el-table-column label="预付款" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.预付款 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="审批情况" align="center" width="100">
|
||||
<el-table-column label="审批情况" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.审批情况内容 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="未通过原因" align="center" width="100">
|
||||
<el-table-column label="未通过原因" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.未通过原因 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="100">
|
||||
<el-table-column label="操作" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="warning" size="mini" @click="exportTable('100')">导出</el-button>
|
||||
<el-button type="danger" size="mini" @click="Disable(scope.row)">禁用</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -110,131 +111,133 @@
|
||||
<el-card>
|
||||
<div style="width:900px;margin-left: 350px">
|
||||
<el-card>
|
||||
<table id="1" cellspacing="0px" align="center" border width="100%" style="">
|
||||
<tr style="height: 40px">
|
||||
<td colspan="1" align="center" style="font-weight: bold">GAOJING</td>
|
||||
<td colspan="3" align="center" style="font-weight: bold">产品销售合同</td>
|
||||
</tr>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="1" align="center">需方</td>
|
||||
<td colspan="1" align="center">江苏高精机电装备有限公司</td>
|
||||
<td colspan="1" align="center">合同编号</td>
|
||||
<td colspan="1" align="center">{{ contract }}</td>
|
||||
</tr>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="1" align="center">供方</td>
|
||||
<td colspan="1" align="center">{{ supplier }}</td>
|
||||
<td colspan="1" align="center">签订地点</td>
|
||||
<td colspan="1" align="center">江苏盐城</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div style="margin-top: 20px;line-height: 25px">根据《中华人民共和国合同法》的有关规定,经供需双方友好协商,在平等自愿的基础上定立本合同,以便供需双方共同遵守。</div>
|
||||
<div style="line-height: 25px">一、 产品名称、规格型号、材质、数量、单价和交货期:</div>
|
||||
<table id="50" cellspacing="0px" align="center" border width="100%" style="">
|
||||
<tbody id="51">
|
||||
<tr id="tableHead1" style="height: 40px">
|
||||
<td colspan="2" align="center">零件名称</td>
|
||||
<td colspan="1" align="center">零件图号</td>
|
||||
<td colspan="1" align="center">材料</td>
|
||||
<td colspan="1" align="center">交货期</td>
|
||||
<td colspan="1" align="center">备注</td>
|
||||
<td colspan="1" align="center">数量</td>
|
||||
<td colspan="1" align="center">单价</td>
|
||||
<td colspan="1" align="center">总价</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<hr>
|
||||
<table id="2" cellspacing="0px" align="center" border width="100%" style="">
|
||||
<tbody id="4">
|
||||
<tr id="tableHead" style="height: 40px">
|
||||
<td colspan="2" align="center">物料名称</td>
|
||||
<td colspan="1" align="center">物料规格</td>
|
||||
<td colspan="1" align="center">物料型号</td>
|
||||
<td colspan="1" align="center">交货期</td>
|
||||
<td colspan="1" align="center">备注</td>
|
||||
<td colspan="1" align="center">数量</td>
|
||||
<td colspan="1" align="center">单价</td>
|
||||
<td colspan="1" align="center">总价</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<div id="100">
|
||||
<table id="1" cellspacing="0px" align="center" border width="100%" style="">
|
||||
<tr style="height: 40px">
|
||||
<td colspan="8">总价: (人民币){{ RMB }}(未税) </td>
|
||||
<td colspan="1" align="center">{{ TotalAmount }}</td>
|
||||
<td colspan="3" align="center" style="font-weight: bold">GAOJING</td>
|
||||
<td colspan="5" align="center" style="font-weight: bold">产品销售合同</td>
|
||||
</tr>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="8">总价: (人民币){{ RMB1 }}(含{{ taxRate }}增值税) </td>
|
||||
<td colspan="1" align="center">{{ TotalAmount1 }}</td>
|
||||
<td colspan="2" align="center">需方</td>
|
||||
<td colspan="2" align="center">江苏高精机电装备有限公司</td>
|
||||
<td colspan="2" align="center">合同编号</td>
|
||||
<td colspan="2" align="center">{{ contract }}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<div style="line-height: 25px">以上价格为含税增值税价格,供方开具真实有效的16%增值税发票</div>
|
||||
<div id="23" style="line-height: 25px"/>
|
||||
<table id="66" cellspacing="0px" align="center" border width="100%" style="margin-top: 30px">
|
||||
<tbody id="67">
|
||||
<tr style="height: 35px">
|
||||
<td colspan="4" align="center">供 方</td>
|
||||
<td colspan="4" align="center">需 方</td>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="2" align="center">供方</td>
|
||||
<td colspan="2" align="center">{{ supplier }}</td>
|
||||
<td colspan="2" align="center">签订地点</td>
|
||||
<td colspan="2" align="center">江苏盐城</td>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">单位名称(章)</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">单位名称(章)</th>
|
||||
<td style="width: 35%" colspan="3" align="center">江苏高精</td>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">法定代表人</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">法定代表人</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">委托代理人</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">委托代理人</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">电话</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">电话</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">传真</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">传真</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">开户银行</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">开户银行</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">账号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">账号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">税号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">税号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">邮政编码</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">邮政编码</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="line-height: 25px;margin-top: 10px">签订时间:____年__月__日</div>
|
||||
<div style="line-height: 25px">有效期限:____年__月__日至____年__月__日</div>
|
||||
</table>
|
||||
<div style="margin-top: 20px;line-height: 25px">根据《中华人民共和国合同法》的有关规定,经供需双方友好协商,在平等自愿的基础上定立本合同,以便供需双方共同遵守。</div>
|
||||
<div style="line-height: 25px">一、 产品名称、规格型号、材质、数量、单价和交货期:</div>
|
||||
<table id="50" cellspacing="0px" align="center" border width="100%" style="">
|
||||
<tbody id="51">
|
||||
<tr id="tableHead1" style="height: 40px">
|
||||
<td colspan="1" align="center">零件名称</td>
|
||||
<td colspan="1" align="center">零件图号</td>
|
||||
<td colspan="1" align="center">材料</td>
|
||||
<td colspan="1" align="center">交货期</td>
|
||||
<td colspan="1" align="center">备注</td>
|
||||
<td colspan="1" align="center">数量</td>
|
||||
<td colspan="1" align="center">单价</td>
|
||||
<td colspan="1" align="center">总价</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<hr>
|
||||
<table id="2" cellspacing="0px" align="center" border width="100%" style="">
|
||||
<tbody id="4">
|
||||
<tr id="tableHead" style="height: 40px">
|
||||
<td colspan="1" align="center">物料名称</td>
|
||||
<td colspan="1" align="center">物料规格</td>
|
||||
<td colspan="1" align="center">物料型号</td>
|
||||
<td colspan="1" align="center">交货期</td>
|
||||
<td colspan="1" align="center">备注</td>
|
||||
<td colspan="1" align="center">数量</td>
|
||||
<td colspan="1" align="center">单价</td>
|
||||
<td colspan="1" align="center">总价</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="7">总价: (人民币){{ RMB }}(未税) </td>
|
||||
<td colspan="1" align="center">{{ TotalAmount }}</td>
|
||||
</tr>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="7">总价: (人民币){{ RMB1 }}(含{{ taxRate }}增值税) </td>
|
||||
<td colspan="1" align="center">{{ TotalAmount1 }}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<div style="line-height: 25px">以上价格为含税增值税价格,供方开具真实有效的16%增值税发票</div>
|
||||
<div id="23"/>
|
||||
<table id="66" cellspacing="0px" align="center" border width="100%" style="margin-top: 30px">
|
||||
<tbody id="67">
|
||||
<tr style="height: 35px">
|
||||
<td colspan="4" align="center">供 方</td>
|
||||
<td colspan="4" align="center">需 方</td>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">单位名称(章)</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">单位名称(章)</th>
|
||||
<td style="width: 35%" colspan="3" align="center">江苏高精</td>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">法定代表人</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">法定代表人</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">委托代理人</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">委托代理人</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">电话</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">电话</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">传真</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">传真</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">开户银行</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">开户银行</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">账号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">账号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">税号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">税号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">邮政编码</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">邮政编码</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="line-height: 25px;margin-top: 10px">签订时间:____年__月__日</div>
|
||||
<div style="line-height: 25px">有效期限:____年__月__日至____年__月__日</div>
|
||||
</div>
|
||||
</el-card>
|
||||
</div>
|
||||
</el-card>
|
||||
@@ -279,6 +282,7 @@
|
||||
|
||||
<script>
|
||||
import { initContract, initBuyer, searchTable1, searchTable2, searchTable3, Disable } from '@/api/WorkshopProcurement/ProcurementContractEnquiry'
|
||||
import { getExplorer, method5, Cleanup } from '@/vendor/exportExcel'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -418,6 +422,11 @@ export default {
|
||||
})
|
||||
})
|
||||
},
|
||||
exportTable(tableid) {
|
||||
getExplorer()
|
||||
method5(tableid)
|
||||
Cleanup()
|
||||
},
|
||||
handleSizeChange1(val) {
|
||||
this.pageCurrent1 = 1
|
||||
this.pageSize1 = val
|
||||
@@ -452,7 +461,7 @@ export default {
|
||||
for (let i = 0; i < this.returns.length; i++) {
|
||||
tr[i] = document.createElement('tr')
|
||||
tr[i].setAttribute('class', 'tableData')
|
||||
tr[i].innerHTML = '<td colspan="2" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' +
|
||||
tr[i].innerHTML = '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' +
|
||||
'<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>'
|
||||
document.getElementById('tableHead').after(tr[i])
|
||||
}
|
||||
@@ -480,7 +489,7 @@ export default {
|
||||
for (let i = 0; i < this.returns1.length; i++) {
|
||||
tr[i] = document.createElement('tr')
|
||||
tr[i].setAttribute('class', 'tableData1')
|
||||
tr[i].innerHTML = '<td colspan="2" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' +
|
||||
tr[i].innerHTML = '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' +
|
||||
'<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>'
|
||||
document.getElementById('tableHead1').after(tr[i])
|
||||
}
|
||||
|
||||
@@ -88,6 +88,11 @@
|
||||
{{ scope.row.总金额 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="扣除金额" min-width="100px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.扣除金额 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="传送人" min-width="80px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.传送人姓名 }}
|
||||
@@ -154,6 +159,9 @@
|
||||
<el-form-item label="开票金额" prop="money">
|
||||
<el-input v-model="form1.money" size="small" placeholder="开票金额"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="扣除金额" prop="money">
|
||||
<el-input v-model="form1.money1" size="small" placeholder="扣除金额"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="传送人" prop="sendPerson">
|
||||
<el-select v-model="form1.sendPersonValue" placeholder="传送人" size="small" disabled filterable clearable style="width:100px">
|
||||
<el-option
|
||||
@@ -218,6 +226,7 @@ export default {
|
||||
invoiceNumValue: '',
|
||||
invoiceTime: '',
|
||||
money: '',
|
||||
money1: '',
|
||||
sendPersonValue: '',
|
||||
receivePersonValue: '',
|
||||
remark: ''
|
||||
@@ -301,6 +310,7 @@ export default {
|
||||
this.form1.invoiceNum = ''
|
||||
this.form1.invoiceTime = ''
|
||||
this.form1.money = ''
|
||||
this.form1.money1 = ''
|
||||
this.form1.sendPersonValue = parseInt(this.id)
|
||||
this.form1.receivePersonValue = ''
|
||||
this.form1.remark = ''
|
||||
@@ -313,7 +323,7 @@ export default {
|
||||
const month = myDate.getMonth() + 1
|
||||
const date = myDate.getDate()
|
||||
const nowDate = year + '-' + month + '-' + date
|
||||
addInvoice(this.form1.contractNum, this.form1.invoiceNum, this.form1.invoiceTime, this.form1.money, this.form1.sendPersonValue, this.form1.receivePersonValue, this.form1.remark, nowDate).then(response => {
|
||||
addInvoice(this.form1.contractNum, this.form1.invoiceNum, this.form1.invoiceTime, this.form1.money, this.form1.sendPersonValue, this.form1.receivePersonValue, this.form1.remark, nowDate, this.form1.money1).then(response => {
|
||||
console.log(response.data)
|
||||
if (response.data.result[0].result === '1') {
|
||||
this.$message.success('增加成功')
|
||||
@@ -338,6 +348,7 @@ export default {
|
||||
this.form1.invoiceNumValue = row.发票流水号
|
||||
this.form1.invoiceTime = row.开票时间
|
||||
this.form1.money = row.开票金额
|
||||
this.form1.money1 = row.扣除金额
|
||||
this.form1.sendPersonValue = parseInt(row.传送人)
|
||||
this.form1.receivePersonValue = parseInt(row.接收人)
|
||||
this.form1.remark = row.备注
|
||||
@@ -355,7 +366,7 @@ export default {
|
||||
submitEdit1(formName) {
|
||||
this.$refs[formName].validate((valid) => {
|
||||
if (valid) {
|
||||
editInvoice(this.form1.invoiceNumValue, this.form1.contractNum, this.form1.invoiceNum, this.form1.invoiceTime, this.form1.money, this.form1.sendPersonValue, this.form1.receivePersonValue, this.form1.remark).then(response => {
|
||||
editInvoice(this.form1.invoiceNumValue, this.form1.contractNum, this.form1.invoiceNum, this.form1.invoiceTime, this.form1.money, this.form1.sendPersonValue, this.form1.receivePersonValue, this.form1.remark, this.form1.money1).then(response => {
|
||||
console.log(this.form1.invoiceNumValue, this.form1.contractNum, this.form1.invoiceNum, this.form1.invoiceTime, this.form1.money, this.form1.sendPersonValue, this.form1.receivePersonValue, this.form1.remark)
|
||||
console.log(response.data)
|
||||
if (response.data[0].result === '1') {
|
||||
@@ -377,7 +388,7 @@ export default {
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
deleteInvoice(row.发票流水号).then(response => {
|
||||
deleteInvoice(row.发票流水号, row.采购合同流水号).then(response => {
|
||||
console.log(response.data)
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('删除成功')
|
||||
|
||||
Reference in New Issue
Block a user