|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <el-button v-if="tool.checkAuth($route.name,'editRedInvioce')" :disabled="status" size="small" type="text" @click="onShow">修 改</el-button>
|
|
|
+ <el-button v-if="tool.checkAuth($route.name,'editRedInvioce')" :disabled="status || isStatus == '2'" size="small" type="text" @click="onShow">修 改</el-button>
|
|
|
<el-dialog title="修改明细信息" :visible.sync="dialogFormVisible" append-to-body width="400px">
|
|
|
<el-form :model="form" size="small" :rules="rules" ref="form" label-position="right" label-width="90px">
|
|
|
<!-- <el-form-item label="含税金额">
|
|
|
@@ -26,7 +26,7 @@
|
|
|
|
|
|
<script>
|
|
|
export default {
|
|
|
- props:['data','sa_invoicebillid','status'],
|
|
|
+ props:['data','sa_invoicebillid','status','isStatus'],
|
|
|
data () {
|
|
|
return {
|
|
|
dialogFormVisible:false,
|
|
|
@@ -47,13 +47,13 @@ export default {
|
|
|
methods:{
|
|
|
onShow () {
|
|
|
this.form = {
|
|
|
- "sa_invoicebill_itemid": this.data.sa_invoicebill_itemid,
|
|
|
+ "sa_invoicebill_itemid": this.data.sa_invoicebill_itemid,
|
|
|
"sa_invoiceapply_orderid":this.data.sa_invoiceapply_orderid,
|
|
|
- "itemno": this.data.itemno,
|
|
|
- "itemname": this.data.itemname,
|
|
|
+ "itemno": this.data.itemno,
|
|
|
+ "itemname": this.data.itemname,
|
|
|
"spec": this.data.spec,
|
|
|
- "price": this.data.price,
|
|
|
- "invoiceaqty": this.data.num,
|
|
|
+ "price": this.data.price,
|
|
|
+ "invoiceaqty": this.data.num,
|
|
|
"invoiceamount": this.data.price * this.data.num,
|
|
|
"taxrate":this.data.taxrate
|
|
|
}
|
|
|
@@ -71,13 +71,13 @@ export default {
|
|
|
"sa_invoicebillid":this.sa_invoicebillid,
|
|
|
"sa_invoiceapplyid":this.$route.query.id,
|
|
|
"iteminfos":[{
|
|
|
- "sa_invoicebill_itemid": this.form.sa_invoicebill_itemid,
|
|
|
+ "sa_invoicebill_itemid": this.form.sa_invoicebill_itemid,
|
|
|
"sa_invoiceapply_orderid":this.form.sa_invoiceapply_orderid,
|
|
|
- "itemno": this.form.itemno,
|
|
|
- "itemname": this.form.itemname,
|
|
|
+ "itemno": this.form.itemno,
|
|
|
+ "itemname": this.form.itemname,
|
|
|
"spec": this.form.spec,
|
|
|
- "price": this.form.price,
|
|
|
- "invoiceaqty": this.form.invoiceaqty,
|
|
|
+ "price": this.form.price,
|
|
|
+ "invoiceaqty": this.form.invoiceaqty,
|
|
|
"invoiceamount": 0,
|
|
|
"taxrate":this.form.taxrate
|
|
|
}]
|
|
|
@@ -94,4 +94,4 @@ export default {
|
|
|
|
|
|
</script>
|
|
|
<style>
|
|
|
-</style>
|
|
|
+</style>
|