修改BUG

This commit is contained in:
caoxinyu
2018-12-15 20:15:23 +08:00
parent 1f29da1768
commit 8e87fc4a9c
3 changed files with 26 additions and 9 deletions

View File

@@ -104,14 +104,13 @@
:file-list="fileList" :file-list="fileList"
:before-upload="beforeUpload" :before-upload="beforeUpload"
:on-success="onSuccess" :on-success="onSuccess"
:action="'http://192.168.1.122:8410/submit/upload2.ashx?InvoiceNum='+ invoiceNum" :action="'http://localhost:8411/submit/upload2.ashx?InvoiceNum='+ invoiceNum"
list-type="picture-card"> list-type="picture-card">
<i class="el-icon-plus"/> <i class="el-icon-plus"/>
</el-upload> </el-upload>
<el-dialog :visible.sync="dialogVisible"> <el-dialog :visible.sync="dialogVisible">
<img :src="dialogImageUrl" width="100%" alt=""> <img :src="dialogImageUrl" width="100%" alt="">
</el-dialog> </el-dialog>
</div> </div>
</div></el-col> </div></el-col>
</el-row> </el-row>
@@ -1093,7 +1092,7 @@ export default {
return { return {
_id: item.附件号, _id: item.附件号,
name: item.文件标识, name: item.文件标识,
url: 'http://192.168.1.122:8410/webpage/img/' + item.文件标识 url: 'http://localhost:8411/webpage/img/' + item.文件标识
} }
}) })
}, },

View File

@@ -94,7 +94,7 @@
size="mini" size="mini"
type="primary" type="primary"
icon="el-icon-circle-plus-outline" icon="el-icon-circle-plus-outline"
@click.stop="openAddInvoiceRecordingDialog(); flag = 1">增加记录</el-button> @click.stop="openAddInvoiceRecordingDialog(scope.row); flag = 1">增加记录</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -391,6 +391,7 @@ export default {
}, },
created() { created() {
this.init() this.init()
this.fetchTableData1()
}, },
methods: { methods: {
// 初始化条件 // 初始化条件
@@ -466,7 +467,7 @@ export default {
sums[index] = this.taxRate * 100 + '% (税率)' sums[index] = this.taxRate * 100 + '% (税率)'
return return
} else if (index === 9) { } else if (index === 9) {
sums[index] = parseFloat(sums[7]) * this.taxRate + ' 元(税额)' sums[index] = (parseInt(sums[7]) * 100 * this.taxRate) / 100 + ' 元(税额)'
return return
} else if (index === 10) { } else if (index === 10) {
sums[index] = parseFloat(sums[7]) - parseFloat(sums[9]) + ' 元(未税)' sums[index] = parseFloat(sums[7]) - parseFloat(sums[9]) + ' 元(未税)'
@@ -522,7 +523,8 @@ export default {
this.peopleid = '' this.peopleid = ''
}, },
// 打开增加开票记录对话框 // 打开增加开票记录对话框
openAddInvoiceRecordingDialog() { openAddInvoiceRecordingDialog(row) {
this.projectid = row.项目流水号
this.addForm('form') this.addForm('form')
this.title = '增加' this.title = '增加'
this.dialogFormVisible1 = true this.dialogFormVisible1 = true

View File

@@ -90,7 +90,7 @@
size="mini" size="mini"
type="primary" type="primary"
icon="el-icon-circle-plus-outline" icon="el-icon-circle-plus-outline"
@click.stop="openPerformanceBondDialog(); flag = 1">履约保证金</el-button> @click.stop="openPerformanceBondDialog(scope.row); flag = 1">履约保证金</el-button>
<el-button <el-button
:disabled="scope.row.是否禁用增加履约保函" :disabled="scope.row.是否禁用增加履约保函"
size="mini" size="mini"
@@ -198,7 +198,21 @@
</el-table> </el-table>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="履约保函" name="second"> <el-tab-pane label="履约保函" name="second">
履约保函 <div>
<!--<el-upload-->
<!--:on-preview="handlePictureCardPreview"-->
<!--:on-remove="handleRemove"-->
<!--:file-list="fileList"-->
<!--:before-upload="beforeUpload"-->
<!--:on-success="onSuccess"-->
<!--:action="'http://localhost:8411/submit/upload3.ashx?ProjectId='+ ProjectId"-->
<!--list-type="picture-card">-->
<!--<i class="el-icon-plus"/>-->
<!--</el-upload>-->
<!--<el-dialog :visible.sync="dialogVisible">-->
<!--<img :src="dialogImageUrl" width="100%" alt="">-->
<!--</el-dialog>-->
</div>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</template> </template>
@@ -329,6 +343,7 @@ export default {
}, },
created() { created() {
this.init() this.init()
this.fetchTableData1()
}, },
methods: { methods: {
// 初始化条件 // 初始化条件
@@ -444,10 +459,11 @@ export default {
} }
}) })
}, },
openPerformanceBondDialog() { openPerformanceBondDialog(row) {
this.addForm('form2') this.addForm('form2')
this.title1 = '增加履约保证金' this.title1 = '增加履约保证金'
this.dialogFormVisible1 = true this.dialogFormVisible1 = true
this.projectId = row.项目流水号
this.tableData2 = [] this.tableData2 = []
}, },
callOffPerformanceBondDialog() { callOffPerformanceBondDialog() {