中航光电热表web
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

367 lines
9.5 KiB

<template>
<basic-container>
4 months ago
<avue-crud :option="option" :table-loading="loading" :data="data" v-model="form" v-model:page="page" ref="crud"
@row-del="rowDel" @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange"
@current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
<template #menu-left>
4 months ago
<el-input v-model="input" style="width: 240px; margin-right: 24px" placeholder="请扫描条形码" />
<el-button type="primary" @click="addView()">新增</el-button>
</template>
<template #menu-right> </template>
<template #menu="scope">
4 months ago
<el-button type="text" size="mini" @click="handle(scope.row.tbId)">处理</el-button>
</template>
<template #userNam="scope">
{{
scope.row.stAccBill.pfUserInfo.userCode +
"/" +
scope.row.stAccBill.pfUserInfo.userName
}}
</template>
</avue-crud>
<otherIssuingDailog v-if="openShow" :showDialog="openShow"></otherIssuingDailog>
</basic-container>
</template>
<script>
import otherIssuingDailog from "./otherIssuingDailog.vue";
export default {
components: {
otherIssuingDailog,
},
data() {
return {
openShow: false,
selectionList: [],
option: {
height: "auto",
calcHeight: 32,
tip: false,
size: "medium",
simplePage: true,
searchShow: true,
searchMenuSpan: 6,
searchIcon: true,
searchIndex: 3,
tree: false,
border: true,
index: true,
selection: false,
viewBtn: true,
delBtn: false,
addBtn: false,
editBtnText: "修改",
viewBtnIcon: " ",
delBtnIcon: " ",
editBtnIcon: " ",
viewBtnText: "详情",
labelWidth: 120,
4 months ago
menuWidth: 150,
dialogWidth: 1200,
dialogClickModal: false,
searchEnter: true,
excelBtn: false,
filterBtn: true,
searchShowBtn: false,
columnSort: true,
excelBtn: true,
columnSort: true,
index: true,
searchLabelPosition: "left",
searchLabelPosition: "left",
searchGutter: 24,
searchSpan: 6,
menuAlign: "left",
gridBtn: false,
searchMenuPosition: "right",
addBtnIcon: " ",
viewBtnIcon: " ",
delBtnIcon: " ",
editBtnIcon: " ",
align: "center",
column: [
{
label: "出库单号",
prop: "stAccBill.billCode",
bind: "stAccBill.billCode",
sortable: true,
filter: true,
span: 12,
search: true,
4 months ago
width: 110,
},
{
label: "出库日期",
prop: "stAccBill.billDate",
bind: "stAccBill.billDate",
search: true,
sortable: true,
filter: true,
span: 12,
4 months ago
width: 110,
},
{
label: "出库仓库",
prop: "stAccBill.coStorehouse.shName",
bind: "stAccBill.coStorehouse.shName",
search: true,
sortable: true,
filter: true,
span: 12,
4 months ago
width: 110,
},
{
label: "出库类别",
prop: "stAccBill.billFlagStr",
bind: "stAccBill.billFlagStr",
search: false,
sortable: true,
filter: true,
span: 12,
4 months ago
width:110,
},
{
label: "出库原因",
prop: "outTypStr",
search: false,
sortable: true,
filter: true,
span: 12,
4 months ago
width: 110,
},
{
label: "领料人",
prop: "userName",
search: true,
sortable: true,
filter: true,
span: 12,
4 months ago
width: 100,
},
{
label: "制单人",
4 months ago
prop: "createMan.userName",
bind: "stAccBill.createMan.userName",
search: false,
sortable: true,
filter: true,
span: 12,
4 months ago
width: 100,
},
{
label: "工装编号",
prop: "pjMold.toolingCode",
bind: "pjMold.toolingCode",
search: false,
sortable: true,
filter: true,
span: 12,
display: false,
4 months ago
width: 110,
},
{
4 months ago
label: "报废单号",
prop: "bfCode",
search: false,
sortable: true,
filter: true,
span: 12,
display: false,
4 months ago
width: 110,
},
{
4 months ago
label: "关联车间订单号",
prop: "orderCode",
search: false,
sortable: true,
filter: true,
span: 12,
display: false,
width: 150,
},
{
label: "审批状态",
prop: "approvalStatus",
search: false,
sortable: true,
filter: true,
span: 12,
display: false,
type: "select",
width: 110,
dicData: [
{
label: "未提交",
value: 0,
},
{
label: "审批中",
value: 1,
},
{
label: "审批通过",
value: 2,
},
{
label: "审批不通过",
value: 3,
},
],
},
{
label: "审批意见",
prop: "approvalOpinion",
search: false,
sortable: true,
filter: true,
span: 12,
display: false,
width: 110,
},
{
label: "审批人",
prop: "approvalUser",
search: false,
sortable: true,
filter: true,
span: 12,
display: false,
width: 110,
},
{
label: "审批时间",
prop: "approvalUser",
search: false,
sortable: true,
filter: true,
span: 12,
display: false,
type: "datetime",
width: 110,
},
{
label: "报废原因",
prop: "scrapReason",
bind: "scrapReason",
search: false,
sortable: true,
filter: true,
span: 24,
display: false,
width: 110,
},
{
label: "备注",
prop: "memo",
search: false,
sortable: true,
filter: true,
span: 12,
display: false,
4 months ago
width: 110,
},
4 months ago
],
},
form: {},
page: {
pageSize: 10,
currentPage: 1,
total: 0,
},
};
},
methods: {
addView() {
this.openShow = true;
},
handleDelete() {
if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据");
return;
}
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
4 months ago
}).then(() => { });
},
// 多选
selectionChange(list) {
this.selectionList = list;
},
onLoad() {
this.loading = true;
4 months ago
this.data = [
{
tbId: 'OT2023001',
stAccBill: {
billCode: 'OT2023001',
billDate: '2023-06-15',
coStorehouse: {
shName: '原料仓库'
},
billFlagStr: '其他出库',
pfUserInfo: {
userCode: 'U001',
userName: '张三'
},
createMan: {
userName: '李四'
}
},
outTypStr: '生产领料',
pjMold: {
toolingCode: 'MOLD001'
},
bfCode: 'BF2023001',
orderCode: 'WO2023001',
approvalStatus: 2,
approvalOpinion: '审批通过',
approvalUser: '王五',
approvalTime: '2023-06-15 14:30:00',
scrapReason: '无',
memo: '紧急生产需求'
},
{
tbId: 'OT2023002',
stAccBill: {
billCode: 'OT2023002',
billDate: '2023-06-16',
coStorehouse: {
shName: '成品仓库'
},
billFlagStr: '其他出库',
pfUserInfo: {
userCode: 'U002',
userName: '赵六'
},
createMan: {
userName: '钱七'
}
},
outTypStr: '样品出库',
pjMold: {
toolingCode: 'MOLD002'
},
bfCode: 'BF2023002',
orderCode: 'WO2023002',
approvalStatus: 2,
approvalOpinion: '审批通过',
approvalUser: '孙八',
approvalTime: '2023-06-16 10:15:00',
scrapReason: '无',
memo: '客户样品需求'
}
];
this.page.total = this.data.length;
this.loading = false;
setTimeout(() => {
this.selectionClear();
}, 500);
},
},
};
</script>
<style lang="scss" scoped></style>