|
@@ -638,7 +638,27 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ qiyjiny: {
|
|
|
+ name: ({ row, index, column }) => {
|
|
|
+ return row.state == "ON" ? "禁用" : "启用"
|
|
|
+ },
|
|
|
+ prompt: ({ row, index, column }) => {
|
|
|
+ return `是否${row.state == "ON" ? "禁用" : "启用"}?`
|
|
|
+ },
|
|
|
+ click: ({ row, index, column }) => {
|
|
|
+ goodsMaterialBatchUpdateStatus({
|
|
|
+ ids: row.id,
|
|
|
+ stateEnum: row.state == "ON" ? "OFF" : "ON"
|
|
|
+ }).then(res => {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '设置成功'
|
|
|
+ })
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
})
|
|
|
},
|
|
|
openForm() {
|