更新
This commit is contained in:
@@ -68,12 +68,17 @@
|
||||
{{ scope.row.离线合同编号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="创建日期" align="center" prop="创建日期" min-width="110" sortable="custom">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.创建日期 ? scope.row.创建日期.split(' ')[0] : '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="采购员" align="center" min-width="60">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- {{ scope.row.采购员 }}-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column label="总金额(元)" align="center" min-width="110">
|
||||
<el-table-column label="合同金额(元)" align="center" min-width="110">
|
||||
<template slot-scope="scope">
|
||||
{{ Number(scope.row.合同总额).toFixed(2) }}
|
||||
</template>
|
||||
@@ -98,9 +103,9 @@
|
||||
{{ scope.row.采购员 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="创建日期" align="center" prop="创建日期" min-width="110" sortable="custom">
|
||||
<el-table-column label="提交日期" align="center" prop="提交日期" min-width="110" sortable="custom">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.创建日期.split(' ')[0] }}
|
||||
{{ scope.row.提交日期 ? scope.row.提交日期.split(' ')[0] : '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -168,6 +173,7 @@ export default {
|
||||
name: 'OfflineContractSearch',
|
||||
data() {
|
||||
return {
|
||||
row1: '',
|
||||
dateRange: '',
|
||||
contractNumber: '',
|
||||
supplierName: '',
|
||||
@@ -272,26 +278,31 @@ export default {
|
||||
this.searchTable1()
|
||||
},
|
||||
back() {
|
||||
this.$confirm('确定打回合同?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
if (this.number) {
|
||||
back(this.number).then(response => {
|
||||
if (response.data[0].result !== '0') {
|
||||
this.$message.success('打回成功')
|
||||
this.searchTable1()
|
||||
} else {
|
||||
this.$message.success('打回失败')
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('请选择要打回的合同')
|
||||
}
|
||||
})
|
||||
if (this.row1.到货金额 !== '0') {
|
||||
this.$message.error('已有到货信息,无法打回!!!')
|
||||
} else {
|
||||
this.$confirm('确定打回合同?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
if (this.number) {
|
||||
back(this.number).then(response => {
|
||||
if (response.data[0].result !== '0') {
|
||||
this.$message.success('打回成功')
|
||||
this.searchTable1()
|
||||
} else {
|
||||
this.$message.success('打回失败')
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('请选择要打回的合同')
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
searchTable2(row) {
|
||||
this.row1 = row
|
||||
this.number = row.离线合同流水号
|
||||
searchOfflineContractContent(row.离线合同流水号).then(response => {
|
||||
this.contractDetail = response.data
|
||||
|
||||
Reference in New Issue
Block a user