|
|
|
|
@ -45,7 +45,16 @@ |
|
|
|
|
@click.stop="handleEdit(scope.row)" |
|
|
|
|
>编辑</el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
type="text" |
|
|
|
|
v-if="scope.row.status == 1 || scope.row.status == 2" |
|
|
|
|
@click.stop="handleDel(scope.row)" |
|
|
|
|
>删除</el-button |
|
|
|
|
> |
|
|
|
|
</template> |
|
|
|
|
<!-- <template #outDate="scope"> |
|
|
|
|
{{ scope.row.outDate }} |
|
|
|
|
</template> --> |
|
|
|
|
</avue-crud> |
|
|
|
|
<outDialog |
|
|
|
|
v-if="outDialogVisible" |
|
|
|
|
@ -72,7 +81,7 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { getList } from "@/api/firstOrder/outbound"; |
|
|
|
|
import { getList, deleteList } from "@/api/firstOrder/outbound"; |
|
|
|
|
import outDialog from "./components/outDialog.vue"; |
|
|
|
|
import needDialog from "./components/needDialog.vue"; |
|
|
|
|
export default { |
|
|
|
|
@ -113,7 +122,7 @@ export default { |
|
|
|
|
gridSpan: false, |
|
|
|
|
filterBtn: false, |
|
|
|
|
columnBtn: false, |
|
|
|
|
menuWidth: 120, |
|
|
|
|
menuWidth: 150, |
|
|
|
|
menu: true, |
|
|
|
|
menuAlign: "left", |
|
|
|
|
searchMenuPosition: "right", |
|
|
|
|
@ -156,12 +165,12 @@ export default { |
|
|
|
|
label: "出库日期", |
|
|
|
|
prop: "outDate", |
|
|
|
|
search: true, |
|
|
|
|
type: "datetime", |
|
|
|
|
type: "date", |
|
|
|
|
searchRange: true, |
|
|
|
|
startPlaceholder: "开始时间", |
|
|
|
|
endPlaceholder: "结束时间", |
|
|
|
|
format: "yyyy-MM-dd HH:mm:ss", |
|
|
|
|
valueFormat: "yyyy-MM-dd HH:mm:ss", |
|
|
|
|
format: "yyyy-MM-dd HH:mm", |
|
|
|
|
valueFormat: "yyyy-MM-dd HH:mm", |
|
|
|
|
width: 140, |
|
|
|
|
headerAlign: "center", |
|
|
|
|
align: "center", |
|
|
|
|
@ -172,7 +181,7 @@ export default { |
|
|
|
|
search: false, |
|
|
|
|
headerAlign: "center", |
|
|
|
|
align: "center", |
|
|
|
|
width: 110, |
|
|
|
|
width: 110, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "物资类型", |
|
|
|
|
@ -268,6 +277,33 @@ export default { |
|
|
|
|
this.outDialogTiltle = "编辑"; |
|
|
|
|
this.id = row.id; |
|
|
|
|
}, |
|
|
|
|
// 删除 |
|
|
|
|
handleDel(row) { |
|
|
|
|
this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", { |
|
|
|
|
confirmButtonText: "确定", |
|
|
|
|
cancelButtonText: "取消", |
|
|
|
|
type: "warning", |
|
|
|
|
}) |
|
|
|
|
.then(() => { |
|
|
|
|
deleteList({id:row.id}) |
|
|
|
|
.then((res) => { |
|
|
|
|
this.$message({ |
|
|
|
|
type: "success", |
|
|
|
|
message: "删除成功!", |
|
|
|
|
}); |
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
|
}) |
|
|
|
|
.catch(() => { |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
.catch(() => { |
|
|
|
|
this.$message({ |
|
|
|
|
type: "info", |
|
|
|
|
message: "已取消删除", |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
// 需求单 |
|
|
|
|
purchaseFn(row) { |
|
|
|
|
console.log("xuqiudanchuku"); |
|
|
|
|
@ -343,8 +379,8 @@ export default { |
|
|
|
|
pageNum: page.currentPage, |
|
|
|
|
}; |
|
|
|
|
if (queryParams.outDate && Array.isArray(queryParams.outDate)) { |
|
|
|
|
queryParams.startTime = queryParams.outDate[0]; |
|
|
|
|
queryParams.endTime = queryParams.outDate[1]; |
|
|
|
|
queryParams.startTime = queryParams.outDate[0]+":00"; |
|
|
|
|
queryParams.endTime = queryParams.outDate[1]+':00'; |
|
|
|
|
delete queryParams.outDate; |
|
|
|
|
} |
|
|
|
|
getList(page.currentPage, page.pageSize, queryParams).then((res) => { |
|
|
|
|
|