|
|
@ -30,27 +30,31 @@ |
|
|
|
<el-button type="primary" |
|
|
|
<el-button type="primary" |
|
|
|
size="small" |
|
|
|
size="small" |
|
|
|
plain |
|
|
|
plain |
|
|
|
@click="handleDetailAdd">新增 |
|
|
|
@click="handleDetailAdd" |
|
|
|
|
|
|
|
v-if="permission.material_add">新增 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" |
|
|
|
<el-button type="primary" |
|
|
|
size="small" |
|
|
|
size="small" |
|
|
|
plain |
|
|
|
plain |
|
|
|
@click="handleIn">入库 |
|
|
|
@click="handleIn" |
|
|
|
|
|
|
|
v-if="permission.material_entry">入库 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" |
|
|
|
<el-button type="primary" |
|
|
|
size="small" |
|
|
|
size="small" |
|
|
|
plain |
|
|
|
plain |
|
|
|
@click="handleOut">出库 |
|
|
|
@click="handleOut" |
|
|
|
|
|
|
|
v-if="permission.material_out">出库 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" |
|
|
|
<el-button type="primary" |
|
|
|
size="small" |
|
|
|
size="small" |
|
|
|
plain |
|
|
|
plain |
|
|
|
@click="handleExport()">导出 |
|
|
|
@click="handleExport()" |
|
|
|
|
|
|
|
v-if="permission.material_export">导出 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template #menu="{row,index,size}"> |
|
|
|
<template #menu="{row,index,size}"> |
|
|
|
<el-button @click="handleDetailSearch(row,index)" type="text">查看</el-button> |
|
|
|
<el-button @click="handleDetailSearch(row,index)" type="text" v-if="permission.material_view">查看</el-button> |
|
|
|
<el-button @click="rowDel(row)" type="text">删除</el-button> |
|
|
|
<el-button @click="rowDel(row)" type="text" v-if="permission.material_delete">删除</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</avue-crud> |
|
|
|
</avue-crud> |
|
|
|
<el-dialog title="入库信息" |
|
|
|
<el-dialog title="入库信息" |
|
|
@ -276,7 +280,11 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
event: { |
|
|
|
event: { |
|
|
|
change: (val) => { |
|
|
|
change: (val) => { |
|
|
|
if (!val) return |
|
|
|
if (!val) { |
|
|
|
|
|
|
|
this.inForm.materialName = ''; |
|
|
|
|
|
|
|
this.inForm.model = ''; |
|
|
|
|
|
|
|
this.inForm.warehouse = ''; |
|
|
|
|
|
|
|
} |
|
|
|
if (val) { |
|
|
|
if (val) { |
|
|
|
request({ |
|
|
|
request({ |
|
|
|
url: '/api/spares/material/getDetailList', |
|
|
|
url: '/api/spares/material/getDetailList', |
|
|
@ -368,7 +376,11 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
event: { |
|
|
|
event: { |
|
|
|
change: (val) => { |
|
|
|
change: (val) => { |
|
|
|
if (!val) return |
|
|
|
if (!val) { |
|
|
|
|
|
|
|
this.outForm.materialName = ''; |
|
|
|
|
|
|
|
this.outForm.model = ''; |
|
|
|
|
|
|
|
this.outForm.warehouse = ''; |
|
|
|
|
|
|
|
} |
|
|
|
if (val) { |
|
|
|
if (val) { |
|
|
|
request({ |
|
|
|
request({ |
|
|
|
url: '/api/spares/material/getDetailList', |
|
|
|
url: '/api/spares/material/getDetailList', |
|
|
|