This commit is contained in:
liushuai
2020-04-02 18:25:34 +08:00
12 changed files with 157 additions and 86 deletions

View File

@@ -224,7 +224,7 @@
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible3=false">取消</el-button> <el-button @click="dialogFormVisible3=false">取消</el-button>
<el-button type="primary" @click="pickConfirm1()"> </el-button> <el-button :disabled="dialogFormVisible3" type="primary" @click="pickConfirm1()"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
@@ -268,6 +268,7 @@ export default {
name: 'MaterialOut', name: 'MaterialOut',
data() { data() {
return { return {
buttonDisable: false,
dateRange: '', dateRange: '',
multipleSelection1: [], multipleSelection1: [],
multipleSelection: [], multipleSelection: [],
@@ -447,7 +448,6 @@ export default {
// 提交归还 // 提交归还
submitSendBack() { submitSendBack() {
sendBack(this.form4.货位流水号, this.物料流水号, this.form4.归还数量, this.id, this.基本件流水号, this.标准件和外购件流水号, this.请购单明细流水号, this.form4.仓库流水号, this.领料单流水号).then(res => { sendBack(this.form4.货位流水号, this.物料流水号, this.form4.归还数量, this.id, this.基本件流水号, this.标准件和外购件流水号, this.请购单明细流水号, this.form4.仓库流水号, this.领料单流水号).then(res => {
console.log(res)
if (res.data[0].result === '1') { if (res.data[0].result === '1') {
this.$message.success('操作成功') this.$message.success('操作成功')
this.dialogFormVisible4 = false this.dialogFormVisible4 = false
@@ -493,10 +493,10 @@ export default {
this.form3.password = '' this.form3.password = ''
this.selectDepartment() this.selectDepartment()
this.departments = [] this.departments = []
this.buttonDisable = false
this.dialogFormVisible3 = true this.dialogFormVisible3 = true
}, },
selectable(row, index) { // 控制某行是否可选 selectable(row, index) { // 控制某行是否可选
console.log(row)
return ((Number(row.总数量) <= Number(row.出库数量1))) === false return ((Number(row.总数量) <= Number(row.出库数量1))) === false
}, },
// 初始化数据 // 初始化数据
@@ -608,6 +608,7 @@ export default {
}, },
// 提交领料确认 // 提交领料确认
pickConfirm1() { pickConfirm1() {
this.buttonDisable = true
for (let i = 0; i < this.pickListTable2.length; i++) { for (let i = 0; i < this.pickListTable2.length; i++) {
if (this.pickListTable2[i].出库数量 !== 0) { if (this.pickListTable2[i].出库数量 !== 0) {
this.multipleSelection.push(this.pickListTable2[i].领料单明细流水号) this.multipleSelection.push(this.pickListTable2[i].领料单明细流水号)

View File

@@ -199,7 +199,7 @@
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="callOff('form')">取消</el-button> <el-button @click="callOff('form')">取消</el-button>
<el-button type="primary" @click="addDirectPartm()">确定</el-button> <el-button :disabled="buttonDisable" type="primary" @click="addDirectPartm()">确定</el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
@@ -218,6 +218,7 @@ export default {
} }
} }
return { return {
buttonDisable: false,
Project: [], Project: [],
Machine: [], Machine: [],
GroupNum: [], GroupNum: [],
@@ -405,6 +406,7 @@ export default {
this.DirectNotes = [] this.DirectNotes = []
this.selectLeaders() this.selectLeaders()
this.selectDepartment() this.selectDepartment()
this.buttonDisable = false
this.dialogFormVisible = true this.dialogFormVisible = true
}, },
// 重置表单 // 重置表单
@@ -425,12 +427,14 @@ export default {
}, },
// 离线外购件出库 // 离线外购件出库
addDirectPartm() { addDirectPartm() {
if (!this.buttonDisable) {
if (Number(this.partnumber) < Number(this.form.DirectNumber)) { if (Number(this.partnumber) < Number(this.form.DirectNumber)) {
this.$message.error('库存不够,重输领料数量') this.$message.error('库存不够,重输领料数量')
} else { } else {
this.$refs['form'].validate((valid) => { this.$refs['form'].validate((valid) => {
if (valid) { if (valid) {
if (Number(this.form.DirectNoteCode) === Number(this.form.DirectNote)) { if (Number(this.form.DirectNoteCode) === Number(this.form.DirectNote)) {
this.buttonDisable = true
for (let i = 0; i < this.departments.length; i++) { for (let i = 0; i < this.departments.length; i++) {
if (this.form.department === this.departments[i].value) { if (this.form.department === this.departments[i].value) {
this.department111 = this.departments[i].label this.department111 = this.departments[i].label
@@ -441,7 +445,6 @@ export default {
this.DirectNote111 = this.DirectNotes[i].label this.DirectNote111 = this.DirectNotes[i].label
} }
} }
console.log(this.form.PeopleValue, this.form.DirectNumber, this.locateNumber, this.DirectNote111, this.form.ProjectValue, this.form.MachineValue, this.form.GroupNumValue, this.materialNumber, this.PeopleNumber, this.离线合同明细流水号, this.组件零件基本件流水号, this.department111, 121221)
outlinePartOut(this.form.PeopleValue, this.form.DirectNumber, this.locateNumber, this.DirectNote111, this.form.ProjectValue, this.form.MachineValue, this.form.GroupNumValue, this.materialNumber, this.PeopleNumber, this.离线合同明细流水号, this.组件零件基本件流水号, this.department111).then(response => { outlinePartOut(this.form.PeopleValue, this.form.DirectNumber, this.locateNumber, this.DirectNote111, this.form.ProjectValue, this.form.MachineValue, this.form.GroupNumValue, this.materialNumber, this.PeopleNumber, this.离线合同明细流水号, this.组件零件基本件流水号, this.department111).then(response => {
if (response.data[0].result === '1') { if (response.data[0].result === '1') {
this.$message.success('零件出库成功') this.$message.success('零件出库成功')
@@ -469,6 +472,7 @@ export default {
} }
} }
} }
}
</script> </script>
<style scoped> <style scoped>

View File

@@ -36,7 +36,7 @@
<el-col style="width: 1325px;"> <el-col style="width: 1325px;">
<el-card> <el-card>
<!--<h2 style="display: inline-block;margin: 0 0 10px 0">总计划:</h2>--> <!--<h2 style="display: inline-block;margin: 0 0 10px 0">总计划:</h2>-->
<el-table v-loading="loading" :data="tableData" height="320" highlight-current-row style="margin-top: 5px;width: 100%;" border element-loading-text="拼命加载中" @row-click="rowClick"> <el-table v-loading="loading" :data="tableData" height="355" highlight-current-row style="margin-top: 5px;width: 100%;" border element-loading-text="拼命加载中" @row-click="rowClick">
<el-table-column label="项目编号" align="center" width="170px" fixed="left"> <el-table-column label="项目编号" align="center" width="170px" fixed="left">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.row.edit"> <template v-if="scope.row.edit">
@@ -122,6 +122,16 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row>
<el-col style="width: 20px">
<!--<el-radio v-model="radio" label="1">{{ empty }}</el-radio>-->
</el-col>
<el-col style="width: 180px;margin-left: 20px">
<el-form-item label="项目编号" prop="项目编号" >
<el-input v-model="项目编号" placeholder="项目编号" clearable size="small" style="width: 180px"/>
</el-form-item>
</el-col>
</el-row>
<el-row> <el-row>
<el-col style="width: 20px"> <el-col style="width: 20px">
<!--<el-radio v-model="radio" label="2">{{ empty }}</el-radio>--> <!--<el-radio v-model="radio" label="2">{{ empty }}</el-radio>-->
@@ -527,7 +537,11 @@ export default {
this.装配完成 ? this.装配完成 : this.装配完成 = null this.装配完成 ? this.装配完成 : this.装配完成 = null
editTable(this.项目流水号, this.机床流水号, this.项目编号, this.设计者, this.审图开始, this.审图结束, '', this.发图完成, this.采购完成, this.备料完成, this.制造完成, this.装配完成, '', this.更新时间).then(response => { editTable(this.项目流水号, this.机床流水号, this.项目编号, this.设计者, this.审图开始, this.审图结束, '', this.发图完成, this.采购完成, this.备料完成, this.制造完成, this.装配完成, '', this.更新时间).then(response => {
if (response.data[0].result === '1') { if (response.data[0].result === '1') {
console.log(response.data) this.tableData.map(v => {
if (v.项目流水号 === this.项目流水号) {
v.项目编号 = this.项目编号
}
})
this.$message.success('保存成功') this.$message.success('保存成功')
} else { } else {
this.$message.error('信息修改失败') this.$message.error('信息修改失败')

View File

@@ -204,7 +204,7 @@
</el-card> </el-card>
<el-dialog v-el-drag-dialog :title="title1" :visible.sync="dialogVisible1" center style="min-height: 300px" width="700px"> <el-dialog v-el-drag-dialog :title="title1" :visible.sync="dialogVisible1" center style="min-height: 300px" width="700px">
<el-form ref="form1" :model="form1" :rules="rules1" label-position="left" label-width="110px"> <el-form ref="form1" :model="form1" :rules="rules1" label-position="right" label-width="110px">
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="到票号" prop="invoiceNum"> <el-form-item label="到票号" prop="invoiceNum">

View File

@@ -196,18 +196,12 @@
</div> </div>
</el-card> </el-card>
<el-dialog v-el-drag-dialog :title="title" :visible.sync="dialogFormVisible1" center style="min-height: 300px" width="800px"> <el-dialog v-el-drag-dialog :title="title" :visible.sync="dialogFormVisible1" center style="min-height: 300px" width="650px">
<el-form ref="form" :model="form" :rules="rules" label-position="left" label-width="110px" class="demo-ruleForm"> <el-form ref="form" :model="form" :rules="rules" label-position="right" label-width="80px" class="demo-ruleForm">
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="物料类别" prop="物料类别流水号"> <el-form-item label="物料类别" prop="物料类别流水号">
<el-select <el-select v-model="form.物料类别流水号" style="width:200px" placeholder="请选择" size="small" clearable @change="searchMaterialVariety1">
v-model="form.物料类别流水号"
style="width:200px"
placeholder="请选择"
size="small"
clearable
@change="searchMaterialVariety1">
<el-option <el-option
v-for="item in MaterialCategory1" v-for="item in MaterialCategory1"
:key="item.value" :key="item.value"

View File

@@ -306,24 +306,24 @@
</el-card> </el-card>
</div> </div>
<el-dialog v-el-drag-dialog :title="title2" :visible.sync="dialogVisible2" center style="min-height: 300px" width="750px" @close="closedialog()"> <el-dialog v-el-drag-dialog :title="title2" :visible.sync="dialogVisible2" center style="min-height: 300px" width="600px" @close="closedialog()">
<el-form ref="form2" :model="form2" :rules="rules2" label-position="right" label-width="120px"> <el-form ref="form2" :model="form2" :rules="rules2" label-position="right" label-width="120px">
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="外购备料单名称" prop="采购计划单名称"> <el-form-item label="外购备料单名称" prop="采购计划单名称">
<el-input v-model="form2.采购单名称" size="small"/> <el-input v-model="form2.采购单名称" size="small" style="width: 150px;"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="采购员" prop="采购员"> <el-form-item label="采购员" prop="采购员">
<el-input v-model="name" readonly size="small"/> <el-input v-model="name" readonly size="small" style="width: 150px;"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="供应商" prop="supplierNameValue"> <el-form-item label="供应商" prop="supplierNameValue">
<el-select v-model="form2.supplierNameValue" placeholder="供应商" size="small" filterable> <el-select v-model="form2.supplierNameValue" placeholder="供应商" size="small" filterable style="width: 150px;">
<el-option <el-option
v-for="item in supplierNames" v-for="item in supplierNames"
:key="item.value" :key="item.value"
@@ -338,6 +338,7 @@
v-model="form2.计划完成日期" v-model="form2.计划完成日期"
size="small" size="small"
type="date" type="date"
style="width: 150px;"
format="yyyy-MM-dd" format="yyyy-MM-dd"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="选择日期"/> placeholder="选择日期"/>
@@ -822,12 +823,16 @@ export default {
} }
}, },
back() { back() {
if (this.materielGroup.length === 0) {
this.$message.warning('请勾选物料')
} else {
edit2(this.materielGroup).then(response => { edit2(this.materielGroup).then(response => {
if (response.data[0].result === '1') { if (response.data[0].result === '1') {
this.$message.success('打回成功') this.$message.success('打回成功')
this.searchTable1() this.searchTable1()
} else { this.$message.error('打回失败') } } else { this.$message.error('打回失败') }
}) })
}
}, },
saveMateriel() { // 保存数据 saveMateriel() { // 保存数据
this.partGroup = [] this.partGroup = []

View File

@@ -15,7 +15,7 @@
</el-table-column> </el-table-column>
<el-table-column label="请款金额" align="right" min-width="100" prop="请款金额"> <el-table-column label="请款金额" align="right" min-width="100" prop="请款金额">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.请款金额 }} {{ Number(scope.row.请款金额).toFixed(2) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="请款人" align="center" min-width="100"> <el-table-column label="请款人" align="center" min-width="100">
@@ -31,7 +31,7 @@
<el-table-column label="审核" align="center" width="320"> <el-table-column label="审核" align="center" width="320">
<template slot-scope="scope"> <template slot-scope="scope">
<el-popover placement="right" width="400" trigger="click"> <el-popover placement="right" width="400" trigger="click">
<el-table v-show="scope.row.类别==='采购'" :data="gridData2" stripe size="mini" show-summary> <el-table v-show="scope.row.类别==='采购'" :data="gridData2" :summary-method="getSummaries" stripe size="mini" show-summary>
<el-table-column width="50" align="center" type="index" label="序号"/> <el-table-column width="50" align="center" type="index" label="序号"/>
<el-table-column min-width="150" align="center" label="采购合同编号"> <el-table-column min-width="150" align="center" label="采购合同编号">
<template slot-scope="scope"> <template slot-scope="scope">
@@ -40,7 +40,7 @@
</el-table-column> </el-table-column>
<el-table-column min-width="100" align="center" label="合同总额" prop="请款金额"> <el-table-column min-width="100" align="center" label="合同总额" prop="请款金额">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.请款金额 }} {{ Number(scope.row.请款金额).toFixed(2) }}
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -242,6 +242,33 @@ export default {
this.fetchData() this.fetchData()
}, },
methods: { methods: {
// 合计
getSummaries(param) {
const { columns, data } = param
const sums = []
columns.forEach((column, index) => {
if (index === 0) {
sums[index] = '合计'
return
} else if (index === 2) {
const values = data.map(item => Number(item[column.property]))
if (!values.every(value => isNaN(value))) {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
return prev + curr
} else {
return prev
}
}, 0)
sums[index] = sums[index].toFixed(2) + ' 元'
} else {
sums[index] = 'N/A'
}
}
})
return sums
},
fetchData() { fetchData() {
this.searchTable() this.searchTable()
}, },

View File

@@ -15,7 +15,7 @@
</el-table-column> </el-table-column>
<el-table-column label="请款金额" align="right" min-width="100" prop="请款金额"> <el-table-column label="请款金额" align="right" min-width="100" prop="请款金额">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.请款金额 }} {{ Number(scope.row.请款金额).toFixed(2) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="请款人" align="center" min-width="100"> <el-table-column label="请款人" align="center" min-width="100">
@@ -31,7 +31,7 @@
<el-table-column label="审核" align="center" width="320"> <el-table-column label="审核" align="center" width="320">
<template slot-scope="scope"> <template slot-scope="scope">
<el-popover placement="right" width="400" trigger="click"> <el-popover placement="right" width="400" trigger="click">
<el-table v-show="scope.row.类别==='采购'" :data="gridData1" stripe size="mini" show-summary> <el-table v-show="scope.row.类别==='采购'" :data="gridData1" :summary-method="getSummaries" stripe size="mini" show-summary>
<el-table-column width="50" align="center" type="index" label="序号"/> <el-table-column width="50" align="center" type="index" label="序号"/>
<el-table-column min-width="150" align="center" label="采购合同编号"> <el-table-column min-width="150" align="center" label="采购合同编号">
<template slot-scope="scope"> <template slot-scope="scope">
@@ -40,7 +40,7 @@
</el-table-column> </el-table-column>
<el-table-column min-width="100" align="center" label="合同总额" prop="请款金额"> <el-table-column min-width="100" align="center" label="合同总额" prop="请款金额">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.请款金额 }} {{ Number(scope.row.请款金额).toFixed(2) }}
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -252,6 +252,33 @@ export default {
this.searchTable() this.searchTable()
}, },
methods: { methods: {
// 合计
getSummaries(param) {
const { columns, data } = param
const sums = []
columns.forEach((column, index) => {
if (index === 0) {
sums[index] = '合计'
return
} else if (index === 2) {
const values = data.map(item => Number(item[column.property]))
if (!values.every(value => isNaN(value))) {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
return prev + curr
} else {
return prev
}
}, 0)
sums[index] = sums[index].toFixed(2) + ' 元'
} else {
sums[index] = 'N/A'
}
}
})
return sums
},
fetchData() { fetchData() {
this.searchTable() this.searchTable()
this.searchTable2() this.searchTable2()

View File

@@ -59,9 +59,15 @@
</el-col> </el-col>
</el-card> </el-card>
<el-card style="margin-left: 1px;width:1120px; display: inline-block;"> <el-card style="margin-left: 1px;width:1120px; display: inline-block;">
<div> <!--slot="header"--> <div>
<el-button type="distribution" size="small" plain icon="el-icon-circle-plus-outline" style="margin-left: 10px" @click="addPurchaseOrder">计划单</el-button>
<!--<el-tooltip :open-delay="1200" effect="dark" content="保存选中的采购计划单" placement="top">-->
<!--<el-button type="baocun" size="small" icon="el-icon-download" style="margin-left: 10px" @click="saveMateriel">保存采购计划单</el-button>-->
<!--</el-tooltip>-->
<el-button type="primary" size="small" plain icon="el-icon-download" style="margin-left: 10px" @click="submitAddMaterial">选入备料</el-button>
<!--slot="header"-->
<!--<el-input v-model="purchasingOrder" placeholder="采购计划单号" size="small" style="margin: 3px 0;width: 155px" clearable @keyup.enter.native="pageCurrent2=1;pageSize2=10;total2=0;searchTable2()"/>--> <!--<el-input v-model="purchasingOrder" placeholder="采购计划单号" size="small" style="margin: 3px 0;width: 155px" clearable @keyup.enter.native="pageCurrent2=1;pageSize2=10;total2=0;searchTable2()"/>-->
<el-input v-model="purchasingOrder" placeholder="离线备料单号" size="small" style="width: 160px;margin-top: 3px" clearable/> <el-input v-model="purchasingOrder" placeholder="离线备料单号" size="small" style="width: 160px;margin-top: 3px;margin-left: 20px" clearable/>
<el-select v-model="supplierName" placeholder="供应商" size="small" style="width: 200px" filterable clearable @change="searchTable"> <el-select v-model="supplierName" placeholder="供应商" size="small" style="width: 200px" filterable clearable @change="searchTable">
<el-option <el-option
v-for="item in supplierNames" v-for="item in supplierNames"
@@ -70,11 +76,6 @@
:value="item.value"/> :value="item.value"/>
</el-select> </el-select>
<el-button type="primary" size="small" plain icon="el-icon-search" style="margin-left: 10px" @click="searchTable()">查询</el-button> <el-button type="primary" size="small" plain icon="el-icon-search" style="margin-left: 10px" @click="searchTable()">查询</el-button>
<el-button type="distribution" size="small" plain icon="el-icon-circle-plus-outline" style="margin-left: 10px" @click="addPurchaseOrder">计划单</el-button>
<!--<el-tooltip :open-delay="1200" effect="dark" content="保存选中的采购计划单" placement="top">-->
<!--<el-button type="baocun" size="small" icon="el-icon-download" style="margin-left: 10px" @click="saveMateriel">保存采购计划单</el-button>-->
<!--</el-tooltip>-->
<el-button type="primary" size="small" plain icon="el-icon-download" style="margin-left: 10px" @click="submitAddMaterial">选入备料</el-button>
</div> </div>
<el-table v-loading="" :data="tableData" stripe highlight-current-row border style="width: 100%;max-height: 230px;margin-top: 10px" height="230px" size="mini" @row-click="searchMX"> <el-table v-loading="" :data="tableData" stripe highlight-current-row border style="width: 100%;max-height: 230px;margin-top: 10px" height="230px" size="mini" @row-click="searchMX">
<el-table-column label="进程" prop="采购计划状态" align="center" width="70"> <el-table-column label="进程" prop="采购计划状态" align="center" width="70">

View File

@@ -26,7 +26,7 @@
</el-card> </el-card>
<el-card> <el-card>
<el-table v-loading="loading1" :data="tableData1" size="mini" border stripe style="width: 100%;max-height: 300px;" height="150px" highlight-current-row @row-click="searchTable2"> <el-table v-loading="loading1" :data="tableData1" size="mini" border stripe style="width: 100%;max-height: 300px;" height="230px" highlight-current-row @row-click="searchTable2">
<el-table-column label="采购合同号" align="center"> <el-table-column label="采购合同号" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.采购合同编号 }} {{ scope.row.采购合同编号 }}
@@ -330,7 +330,7 @@
</div> </div>
</el-dialog> </el-dialog>
<el-dialog v-el-drag-dialog :visible.sync="dialogVisible3" title="采购合同审批" center style="min-height: 300px;" width="30%"> <el-dialog v-el-drag-dialog :visible.sync="dialogVisible3" title="采购合同审批" center style="min-height: 300px;" width="380px">
<el-form ref="form2" :model="form2" :rules="rules2" label-position="left" label-width="110px" class="demo-ruleForm"> <el-form ref="form2" :model="form2" :rules="rules2" label-position="left" label-width="110px" class="demo-ruleForm">
<el-form-item label="审批是否通过" prop="审批是否通过" center> <el-form-item label="审批是否通过" prop="审批是否通过" center>
<el-select v-model="form2.审批是否通过" size="small" @change="selectChange"> <el-select v-model="form2.审批是否通过" size="small" @change="selectChange">
@@ -479,7 +479,9 @@ export default {
}) })
}, },
Open(row) { Open(row) {
console.log(row) this.form2.审批是否通过 = 1
this.form2.未通过原因 = ''
this.disabled = true
this.dialogVisible3 = true this.dialogVisible3 = true
this.ProcurementContractNum = row.采购合同流水号 this.ProcurementContractNum = row.采购合同流水号
this.QGNUM = row.请购单流水号 this.QGNUM = row.请购单流水号

View File

@@ -522,9 +522,10 @@ export default {
}) })
}, },
tableRowClassName({ row, rowIndex }) { tableRowClassName({ row, rowIndex }) {
if (row.审批情况流水号 === '1') { // if (row.审批情况流水号 === '1') {
return 'adopt' // return 'adopt'
} else if (row.审批情况流水号 === '2') { // } else
if (row.审批情况流水号 === '2') {
return 'NotThrough' return 'NotThrough'
} }
}, },

View File

@@ -172,11 +172,6 @@
{{ scope.row.发票号 }} {{ scope.row.发票号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="供应商" align="center" min-width="250" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.供应商名称 }}
</template>
</el-table-column>
<el-table-column label="到票金额" align="center" min-width="70"> <el-table-column label="到票金额" align="center" min-width="70">
<template slot-scope="scope"> <template slot-scope="scope">
{{ Number(scope.row.开票金额).toFixed(2) }} {{ Number(scope.row.开票金额).toFixed(2) }}