This commit is contained in:
Vergil
2020-02-12 08:40:57 +08:00
parent 21010d5403
commit d1e4a8b647
2 changed files with 36 additions and 26 deletions

View File

@@ -18,7 +18,7 @@ export const uploadPerson = `http://123.56.95.229:8010/submit/uploadPerson.ashx`
export const uploadOP = `http://123.56.95.229:8010/submit/uploadOP.ashx`
export const url = `http://123.56.95.229:8010/submit/MESCommonBase.ashx` // 采购件入库、离线件入库
export const ExcelDownLoad = 'http://123.56.95.229:8010/submit/MESDownloadExcel.ashx' // 导出excel
export const ExcelWaiGou = 'http://192.168.0.106:8045/submit/excel.ashx' // 导出excel
export const ExcelWaiGou = 'http://123.56.95.229:8010/submit/excel.ashx' // 导出excel
// 技术中心程序发布时要更改下面所有的IP到0段
export const ServerIP = `http://123.56.95.229:8010/webpage/file/`
export const uploadFileMachine = `http://123.56.95.229:8010/submit/uploadFileMachine.ashx` // 机床总图 发布时改成0.231

View File

@@ -13,24 +13,24 @@
{{ scope.row.外协厂家名称 }}
</template>
</el-table-column>
<el-table-column label="外协金额(元)" prop="总价" align="center" width="200px">
<el-table-column label="外协金额(元)" prop="总价" align="center" width="110px">
<template slot-scope="scope">
{{ scope.row.总价 }}
</template>
</el-table-column>
<el-table-column label="到票金额(元)" align="center" width="130px" prop="开票金额">
<el-table-column label="到票金额(元)" align="center" width="110px" prop="开票金额">
<template slot-scope="scope">
{{ scope.row.开票金额 }}
</template>
</el-table-column>
<el-table-column label="付款金额(元)" align="center" width="130px">
<el-table-column label="付款金额(元)" align="center" width="110px">
<template slot-scope="scope">
{{ scope.row.备注 }}
{{ scope.row.付款金额 }}
</template>
</el-table-column>
<el-table-column label="未付金额(元)" align="center" width="130px">
<el-table-column label="未付金额(元)" align="center" width="110px">
<template slot-scope="scope">
{{ scope.row.备注 }}
{{ scope.row.应付金额 }}
</template>
</el-table-column>
</el-table>
@@ -49,20 +49,20 @@
<el-col :span="8">
<el-row>
<span style="margin-top: 10px">开票明细:</span>
<el-button class="button111" size="small" icon="el-icon-circle-plus-outline" style="margin-left:10px" @click="handleAdd1()">新增</el-button>
<el-button class="button111" size="small" icon="el-icon-circle-plus-outline" style="margin-left:10px" @click="handleAdd1('form1')">新增</el-button>
</el-row>
<el-table v-loading="loading2" :data="tableData2" size="mini" stripe height="500" style="width: 100%" border element-loading-text="拼命加载中">
<el-table-column label="发票号" prop="发票号" align="center" width="230px">
<el-table-column label="发票号" prop="发票号" align="center" width="180px">
<template slot-scope="scope">
{{ scope.row.发票号 }}
</template>
</el-table-column>
<el-table-column label="开票金额" prop="开票金额" align="center" width="200px">
<el-table-column label="开票金额(元)" prop="开票金额" align="center" width="110px">
<template slot-scope="scope">
{{ scope.row.开票金额 }}
</template>
</el-table-column>
<el-table-column label="开票时间" align="center" width="130px" prop="开票日期">
<el-table-column label="开票日期" align="center" width="100px" prop="开票日期">
<template slot-scope="scope">
{{ scope.row.开票时间 }}
</template>
@@ -83,15 +83,15 @@
<el-col :span="8">
<el-row>
<span style="margin-top: 10px">付款明细:</span>
<el-button class="button111" size="small" icon="el-icon-circle-plus-outline" style="margin-left:10px" @click="handleAdd2()">新增</el-button>
<el-button class="button111" size="small" icon="el-icon-circle-plus-outline" style="margin-left:10px" @click="handleAdd2('form2')">新增</el-button>
</el-row>
<el-table v-loading="loading3" :data="tableData3" size="mini" stripe height="500" style="width: 100%" border element-loading-text="拼命加载中">
<el-table-column label="付款金额" prop="付款金额" align="center" width="230px">
<el-table-column label="付款金额(元)" prop="付款金额" align="center" width="110px">
<template slot-scope="scope">
{{ scope.row.付款金额 }}
</template>
</el-table-column>
<el-table-column label="付款日期" prop="总价" align="center" width="200px">
<el-table-column label="付款日期" prop="总价" align="center" width="100px">
<template slot-scope="scope">
{{ scope.row.付款日期 }}
</template>
@@ -111,15 +111,15 @@
</el-col>
</el-card>
<el-dialog v-el-drag-dialog :visible.sync="dialogFormVisible1" title="新增发票" center style="min-height: 300px" width="400px">
<el-form ref="form1" :model="form1" :rules="rules" label-position="left" label-width="100px" class="demo-ruleForm">
<el-dialog v-el-drag-dialog :visible.sync="dialogFormVisible1" :title="title1" center style="min-height: 300px" width="400px">
<el-form ref="form1" :model="form1" :rules="rules" label-position="left" label-width="120px" class="demo-ruleForm">
<el-row>
<el-form-item label="发票号" prop="发票号" >
<el-input v-model="form1.发票号" placeholder="发票号" style="width:200px" clearable size="small"/>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="开票金额" prop="开票金额">
<el-form-item label="开票金额(元)" prop="开票金额">
<el-input v-model="form1.开票金额" placeholder="开票金额" style="width:200px" clearable size="small"/>
</el-form-item>
</el-row>
@@ -143,10 +143,10 @@
</div>
</el-dialog>
<el-dialog v-el-drag-dialog :visible.sync="dialogFormVisible2" title="新增付款" center style="min-height: 300px" width="400px">
<el-form ref="form2" :model="form2" :rules="rules" label-position="left" label-width="100px" class="demo-ruleForm">
<el-dialog v-el-drag-dialog :visible.sync="dialogFormVisible2" :title="title2" center style="min-height: 300px" width="400px">
<el-form ref="form2" :model="form2" :rules="rules" label-position="left" label-width="120px" class="demo-ruleForm">
<el-row>
<el-form-item label="付款金额" prop="付款金额">
<el-form-item label="付款金额(元)" prop="付款金额">
<el-input v-model="form2.付款金额" placeholder="开票金额" style="width:200px" clearable size="small"/>
</el-form-item>
</el-row>
@@ -196,6 +196,7 @@ export default {
pageSize3: 50, // 每页显示条数
pageCurrent3: 1, // 后台获取页
param1: 0,
title1: '',
dialogFormVisible1: false,
form1: {
发票号: '',
@@ -203,6 +204,7 @@ export default {
开票金额: ''
},
param2: 0,
title2: '',
dialogFormVisible2: false,
form2: {
付款金额: '',
@@ -285,8 +287,12 @@ export default {
},
// 点击增加
handleAdd1(formName) {
if (this.$refs[formName] !== undefined) {
this.$refs[formName].resetFields()
}
if (this.外协厂家流水号) {
this.param1 = 1
this.title1 = '新增发票'
this.form1.发票号 = ''
this.form1.开票时间 = ''
this.form1.开票金额 = ''
@@ -311,16 +317,16 @@ export default {
this.dialogFormVisible1 = false
},
// 编辑打开
ChangeOpen1(index, row, formName) {
ChangeOpen1(row, formName) {
if (this.$refs[formName] !== undefined) {
this.$refs[formName].resetFields()
}
this.param1 = 0
this.form1.外协厂家 = row.外协厂家流水号
this.title1 = '编辑发票'
this.form1.发票号 = row.发票号
this.form1.开户行 = row.开户行
this.form1.开票时间 = row.开票时间
this.form1.开票金额 = row.开票金额
this.form1.接收人 = row.接收人
this.form1.接收时间 = row.接收时间
this.form1.备注 = row.备注
this.form1.外协厂家 = row.外协厂家
this.dialogFormVisible1 = true
},
// 编辑确定
@@ -389,7 +395,11 @@ export default {
},
handleAdd2(formName) {
if (this.外协厂家流水号) {
if (this.$refs[formName] !== undefined) {
this.$refs[formName].resetFields()
}
this.param2 = 1
this.title2 = '新增付款'
this.form2.付款时间 = ''
this.form2.付款金额 = ''
this.dialogFormVisible2 = true