|
@@ -15,7 +15,7 @@
|
|
|
class="label-width"
|
|
|
@change="selectType($event)"
|
|
|
></el-checkbox>
|
|
|
- <el-checkbox label="打印发票" name="type" class="label-width" @change="selectType($event)"></el-checkbox>
|
|
|
+ <!-- <el-checkbox label="打印发票" name="type" class="label-width" @change="selectType($event)"></el-checkbox> -->
|
|
|
</el-checkbox-group>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -43,6 +43,7 @@
|
|
|
<ws-button :type="searchType == -1 ? 'primary' : ''" @click="screen(-1)">全部</ws-button>
|
|
|
<ws-button type="primary" @click="reject" v-if="isShowAdopt">驳回</ws-button>
|
|
|
<ws-button type="primary" @click="adopt" v-if="isShowAdopt">通过</ws-button>
|
|
|
+ <ws-button type="primary" @click="invoicingClick" v-if="isShowAdopt" v-hasPermission="`acquisitionManagement.acquisitionPay.finace`">开票</ws-button>
|
|
|
<!-- <ws-button type="primary" @click="handlepass" v-if="isShowAdopt">审核</ws-button> -->
|
|
|
<ws-button
|
|
|
type="primary"
|
|
@@ -103,7 +104,7 @@
|
|
|
<el-table-column class="table_td" prop="paymentNo" width="100" label="编号"></el-table-column>
|
|
|
<el-table-column class="table_td" prop="customerName" label="客户"></el-table-column>
|
|
|
<el-table-column class="table_td" prop="carNo" label="车牌号"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="goodsName" width="60" label="货名"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="goodsName" width="100" label="货名"></el-table-column>
|
|
|
<el-table-column class="table_td" prop="type" width="60" label="类型"></el-table-column>
|
|
|
<el-table-column class="table_td" prop="tidalGrainPrice" width="140" label="净重单价(元/公斤)"></el-table-column>
|
|
|
<el-table-column class="table_td" prop="unitDeduction" width="130" label="扣单价(元/公斤)"></el-table-column>
|
|
@@ -149,6 +150,14 @@
|
|
|
@click="print(scope.row)"
|
|
|
v-hasPermission="`acquisitionManagement.acquisitionPay.print`"
|
|
|
>打印</el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="
|
|
|
+ scope.row.approveStatus ||
|
|
|
+ (scope.row.status != '待结算' && !scope.row.approveStatus)
|
|
|
+ "
|
|
|
+ @click="print(scope.row)"
|
|
|
+ v-hasPermission="`acquisitionManagement.acquisitionPay.finace`"
|
|
|
+ >财务打印</el-button>
|
|
|
<el-button
|
|
|
type="danger"
|
|
|
v-if="
|
|
@@ -249,7 +258,8 @@ import {
|
|
|
getpaymentexamine,
|
|
|
getCustomerLook,
|
|
|
paymentCommit,
|
|
|
- getJurisdiction
|
|
|
+ getJurisdiction,
|
|
|
+ invoicing
|
|
|
} from '@/model/houseSelfCollect/index'
|
|
|
import { posthandle } from '@/model/purchasingManagement/index'
|
|
|
import paymentPrint from './component/paymentPrint.vue'
|
|
@@ -311,7 +321,8 @@ export default {
|
|
|
isShowAdopt: false,
|
|
|
//上传截图路径
|
|
|
imageUrl: '',
|
|
|
- payImg: []
|
|
|
+ payImg: [],
|
|
|
+ rowData:{}
|
|
|
}
|
|
|
},
|
|
|
activated() {
|
|
@@ -320,6 +331,17 @@ export default {
|
|
|
// this.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
+ invoicingClick(){
|
|
|
+ let data = JSON.stringify(this.modification)
|
|
|
+ console.log("开票",this.modification)
|
|
|
+ //开票
|
|
|
+ invoicing(data)
|
|
|
+ .toPromise()
|
|
|
+ .then(response => {
|
|
|
+ console.log(response)
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
selectType(val) {
|
|
|
console.log(val)
|
|
|
console.log(this.ruleForm.type)
|
|
@@ -345,7 +367,7 @@ export default {
|
|
|
typePrintClick() {
|
|
|
// this.isShowPrint = true
|
|
|
getCustomerLook({
|
|
|
- id: this.row.identityAuthenticationInfo.id,
|
|
|
+ id: this.rowData.identityAuthenticationInfo.id,
|
|
|
authenticationStatusKey: 7
|
|
|
})
|
|
|
.toPromise()
|
|
@@ -357,7 +379,7 @@ export default {
|
|
|
this.imageUrl2 = this.identity[1]
|
|
|
this.imageUrl3 = this.bank[0]
|
|
|
this.imageUrl4 = this.bank[1]
|
|
|
- getpaymentexamine({ id: this.row.id })
|
|
|
+ getpaymentexamine({ id: this.rowData.id })
|
|
|
.toPromise()
|
|
|
.then(response => {
|
|
|
this.printData = response
|
|
@@ -557,6 +579,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
payment() {
|
|
|
+ this.imageUrl = ''
|
|
|
if (this.modification.length == 0) {
|
|
|
this.$message.warning('请选择要付款的条目')
|
|
|
} else {
|
|
@@ -566,7 +589,7 @@ export default {
|
|
|
sum += this.modification[i].amountIngPayable
|
|
|
count += this.modification[i].amountEdPayable
|
|
|
}
|
|
|
- this.payments.amountNotPayable = sum - count
|
|
|
+ this.payments.amountNotPayable = (sum - count).toFixed(2)
|
|
|
this.paymentForm = true
|
|
|
}
|
|
|
},
|
|
@@ -707,11 +730,11 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- print(row) {
|
|
|
+ print(row) {debugger
|
|
|
console.log('打印数据', row)
|
|
|
if (sessionStorage.getItem('ws-pf_roleName') == '财务') {
|
|
|
this.isShowPrintType = true
|
|
|
- this.row = row
|
|
|
+ this.rowData = row
|
|
|
} else {
|
|
|
getpaymentexamine({ id: row.id })
|
|
|
.toPromise()
|
|
@@ -919,7 +942,7 @@ table {
|
|
|
right: 0;
|
|
|
margin: auto;
|
|
|
width: 200px;
|
|
|
- height: 215px;
|
|
|
+ height: 200px;
|
|
|
background: white;
|
|
|
border-radius: 10px;
|
|
|
z-index: 999;
|