|
@@ -337,16 +337,19 @@
|
|
// 表格删除行
|
|
// 表格删除行
|
|
const deleteRow=(type,index)=>{
|
|
const deleteRow=(type,index)=>{
|
|
let tempArr=[]
|
|
let tempArr=[]
|
|
|
|
+ let word='开票'
|
|
if(type=='invoice'){
|
|
if(type=='invoice'){
|
|
tempArr=invoiceForm.invoiceData
|
|
tempArr=invoiceForm.invoiceData
|
|
|
|
+ word='开票'
|
|
}else{
|
|
}else{
|
|
tempArr=placementForm.placementData
|
|
tempArr=placementForm.placementData
|
|
|
|
+ word='到款'
|
|
}
|
|
}
|
|
if(tempArr[index].amount=='' && tempArr[index].invoice_date==''){
|
|
if(tempArr[index].amount=='' && tempArr[index].invoice_date==''){
|
|
// 没有内容 直接删除
|
|
// 没有内容 直接删除
|
|
tempArr.splice(index,1)
|
|
tempArr.splice(index,1)
|
|
}else{
|
|
}else{
|
|
- ElMessageBox.confirm('删除后不可恢复,是否删除该条开票记录?',
|
|
|
|
|
|
+ ElMessageBox.confirm(`是否删除该条${word}记录?`,
|
|
'提示',
|
|
'提示',
|
|
{
|
|
{
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
@@ -830,6 +833,10 @@
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="contract-operation" v-if="contractInfo.operationtype=='invoice'">
|
|
|
|
+ <el-button class="operation-button" style="margin-right: 30px;" @click="registrationCancel">取消</el-button>
|
|
|
|
+ <el-button type="primary" @click="submit" class="operation-button">保存</el-button>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<!-- 到款登记 -->
|
|
<!-- 到款登记 -->
|
|
<div class="info-box" v-if="contractInfo.operationtype!='compliance'" style="margin-top:20px ;" id="info-invoice-box">
|
|
<div class="info-box" v-if="contractInfo.operationtype!='compliance'" style="margin-top:20px ;" id="info-invoice-box">
|
|
@@ -886,7 +893,7 @@
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="contract-operation" v-if="contractInfo.operationtype=='placement' || contractInfo.operationtype=='invoice'">
|
|
|
|
|
|
+ <div class="contract-operation" v-if="contractInfo.operationtype=='placement'">
|
|
<el-button class="operation-button" style="margin-right: 30px;" @click="registrationCancel">取消</el-button>
|
|
<el-button class="operation-button" style="margin-right: 30px;" @click="registrationCancel">取消</el-button>
|
|
<el-button type="primary" @click="submit" class="operation-button">保存</el-button>
|
|
<el-button type="primary" @click="submit" class="operation-button">保存</el-button>
|
|
</div>
|
|
</div>
|