Merge remote-tracking branch 'origin/master'
commit
b405d5e1b9
@ -0,0 +1,5 @@
|
||||
<svg t="1720683721767" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1481" width="200" height="200"><path d="M819.2 364.8h-44.8V128c0-17.066667-14.933333-32-32-32H281.6c-17.066667 0-32 14.933333-32 32v236.8H204.8c-59.733333 0-108.8 49.066667-108.8 108.8v192c0 59.733333 49.066667 108.8 108.8 108.8h44.8V896c0 17.066667 14.933333 32 32 32h460.8c17.066667 0 32-14.933333 32-32v-121.6h44.8c59.733333 0 108.8-49.066667 108.8-108.8v-192c0-59.733333-49.066667-108.8-108.8-108.8zM313.6 160h396.8v204.8H313.6V160z m396.8 704H313.6V620.8h396.8v243.2z m153.6-198.4c0 25.6-19.2 44.8-44.8 44.8h-44.8v-121.6c0-17.066667-14.933333-32-32-32H281.6c-17.066667 0-32 14.933333-32 32v121.6H204.8c-25.6 0-44.8-19.2-44.8-44.8v-192c0-25.6 19.2-44.8 44.8-44.8h614.4c25.6 0 44.8 19.2 44.8 44.8v192z" fill="#1296db" p-id="1482"></path></svg>
|
||||
|
||||
|
||||
|
||||
|
After Width: | Height: | Size: 866 B |
@ -0,0 +1,158 @@
|
||||
<template>
|
||||
<!-- 授权用户 -->
|
||||
<el-dialog title="选择订单" :visible.sync="visible" width="1200px" top="5vh" append-to-body>
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true">
|
||||
<el-form-item label="生产日期" prop="productDate">
|
||||
<el-date-picker
|
||||
v-model="queryParams.productDate"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择生产日期">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="产线编码" prop="workorderName">
|
||||
<el-select clearable v-model="queryParams.workorderName">
|
||||
<el-option
|
||||
v-for="item in prodLineList"
|
||||
:key="item.lineCode"
|
||||
:label="item.lineName"
|
||||
:value="item.lineCode"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="物料编码" prop="productCode">
|
||||
<el-input
|
||||
v-model="queryParams.productCode"
|
||||
placeholder="请输入物料编码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-row>
|
||||
<!-- <el-table-->
|
||||
<!-- ref="singleTable"-->
|
||||
<!-- :data="userList"-->
|
||||
<!-- highlight-current-row-->
|
||||
<!-- @selection-change="handleSelectionChange">-->
|
||||
<el-table
|
||||
ref="table"
|
||||
:data="userList"
|
||||
highlight-current-row
|
||||
@current-change="handleCurrentChange"
|
||||
height="260px">
|
||||
<el-table-column label="工单号" prop="workorderCode" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="SAP订单号" prop="workorderCodeSap" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="产品编码" width="200" prop="productCode" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="产品名称" width="200" prop="productName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="生产日期" prop="productDate" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="产线" prop="sapName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="产线编码" prop="sapCode" :show-overflow-tooltip="true" />
|
||||
</el-table>
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</el-row>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="handleSelectUser">确 定</el-button>
|
||||
<el-button @click="visible = false">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
import {
|
||||
listWorkorderLevel0,
|
||||
getProdLineList
|
||||
} from '@/api/plan/workorder'
|
||||
export default {
|
||||
|
||||
dicts: ['sys_normal_disable'],
|
||||
props: {
|
||||
// 角色编号
|
||||
datasourceId: {
|
||||
type: [Number, String]
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
visible: false,
|
||||
// 选中数组值
|
||||
orderId: null,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 未授权用户数据
|
||||
userList: [],
|
||||
prodLineList:[],
|
||||
currentRow: null,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
datasourceId: undefined,
|
||||
userName: undefined,
|
||||
phonenumber: undefined,
|
||||
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
getProdLineList().then(response => {
|
||||
this.prodLineList = response
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
// 显示弹框
|
||||
show() {
|
||||
this.queryParams.datasourceId = this.datasourceId;
|
||||
this.getList();
|
||||
this.visible = true;
|
||||
},
|
||||
clickRow(row) {
|
||||
this.$refs.table.toggleRowSelection(row);
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleCurrentChange(val) {
|
||||
this.currentRow = val;
|
||||
},
|
||||
// 查询表数据
|
||||
getList() {
|
||||
this.queryParams.parentOrder= '0';
|
||||
listWorkorderLevel0(this.queryParams).then(res => {
|
||||
console.log(res)
|
||||
this.userList = res.rows;
|
||||
this.total = res.total;
|
||||
});
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
/** 选择授权用户操作 */
|
||||
handleSelectUser() {
|
||||
this.visible = false;
|
||||
this.$emit('showAddDialog',this.currentRow); // 触发自定义事件
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Reference in New Issue