Browse Source

采购管理 删除卷 2022-06-21 sxm

master
[li_she] 4 years ago
parent
commit
0a4b8b595e
  1. 24
      src/views/modules/purchasingManagement/beginMaterialSlittedSet.vue

24
src/views/modules/purchasingManagement/beginMaterialSlittedSet.vue

@ -101,6 +101,16 @@
style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
:label="buttons.cz">
<template slot-scope="scope">
<a type="text" size="small" @click="remove(scope.row)" herf="#">删除卷</a>
</template>
</el-table-column>
</el-table>
</div>
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
@ -488,7 +498,7 @@
sortLv: 0,
status: true,
fixed: false,
columnWidth: 250
columnWidth: 100
},
{
userId: this.$store.state.user.name,
@ -825,6 +835,18 @@
this.sum1 = Number(this.sum1)+ Number(newDate.rollNumber);
this.sum2 = Number(this.sum2)+ Number(newDate.allRollQty);
},
remove(row){
this.$confirm('确认删除记录吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.sum1 = Number(this.sum1) - Number(row.rollNumber);
this.sum2 = Number(this.sum2) - Number(row.allRollQty);
this.dataList1 = this.dataList1.filter(item => item.number!=row.number)
})
},
saveCRoll() {
if(this.dataForm.checked==true){
this.$alert('打印机连接失败!', '错误', {

Loading…
Cancel
Save