wms成品盘点页面修改
parent
1964e2213c
commit
bcc76bf7a7
@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询成品盘点单列表
|
||||
export function listSystemFinished(query) {
|
||||
return request({
|
||||
url: '/wms/systemFinished/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
// 查询成品盘点单详细
|
||||
export function getSystemFinished(ID) {
|
||||
return request({
|
||||
url: '/wms/systemFinished/' + ID,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
// 新增成品盘点单
|
||||
export function addSystemFinished(data) {
|
||||
return request({
|
||||
url: '/wms/systemFinished',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
// 修改成品盘点单
|
||||
export function updateSystemFinished(data) {
|
||||
return request({
|
||||
url: '/wms/systemFinished',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
// 删除成品盘点单
|
||||
export function delSystemFinished(ID) {
|
||||
return request({
|
||||
url: '/wms/systemFinished/' + ID,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
@ -0,0 +1,536 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"
|
||||
label-width="68px">
|
||||
|
||||
<el-form-item label="盘点单号" prop="orderCode">
|
||||
<el-input
|
||||
v-model="queryParams.orderCode"
|
||||
placeholder="请输入盘点单号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
|
||||
<el-form-item label="盘点仓库" prop="userDefined1">
|
||||
<el-input
|
||||
v-model="queryParams.userDefined1"
|
||||
placeholder="盘点仓库"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="盘点位置" prop="locCode">
|
||||
<el-input
|
||||
v-model="queryParams.locCode"
|
||||
placeholder="盘点位置"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="盘点单状态" prop="userDefined2">
|
||||
<el-input
|
||||
v-model="queryParams.userDefined2"
|
||||
placeholder="盘点单状态"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人" prop="createBy">
|
||||
<el-input
|
||||
v-model="queryParams.createBy"
|
||||
placeholder="创建人"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="盘点人" prop="userDefined10">
|
||||
<el-input
|
||||
v-model="queryParams.userDefined10"
|
||||
placeholder="请输入用户自定义属性10"
|
||||
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 :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['systemFinished:systemFinished:add']"
|
||||
>新增
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['systemFinished:systemFinished:edit']"
|
||||
>盘点调整
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['systemFinished:systemFinished:edit']"
|
||||
>审核
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['systemFinished:systemFinished:remove']"
|
||||
>关闭
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['systemFinished:systemFinished:edit']"
|
||||
>打印
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['systemFinished:systemFinished:export']"
|
||||
>导出
|
||||
</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="systemFinishedList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center"/>
|
||||
|
||||
<el-table-column label="ID" align="center" prop="ID" v-if="false" />
|
||||
<el-table-column label="盘点单号" align="center" prop="orderCode"/>
|
||||
<el-table-column label="工厂编码" align="center" prop="siteCode" />
|
||||
<el-table-column label="型号编码" align="center" prop="materialCode"v-if="false" />
|
||||
<el-table-column label="型号名称" align="center" prop="materialDesc"v-if="false" />
|
||||
<el-table-column label="库存数量" align="center" prop="locNumber"v-if="false" />
|
||||
<el-table-column label="单位" align="center" prop="Unit"v-if="false" />
|
||||
<el-table-column label="实际数量" align="center" prop="realityNumber"v-if="false" />
|
||||
<el-table-column label="订单状态" align="center" prop="orderStatus"/>
|
||||
<el-table-column label="盘点仓库" align="center" prop="userDefined1"/>
|
||||
<el-table-column label="盘点位置" align="center" prop="locCode"/>
|
||||
<el-table-column label="盘点类型" align="center" prop="userDefined3" />
|
||||
<el-table-column label="盘点单状态" align="center" prop="userDefined2"/>
|
||||
|
||||
<el-table-column label="审核意见" align="center" prop="userDefined4" />
|
||||
<el-table-column label="盘点时间" align="center" prop="userDefined5"/>
|
||||
<el-table-column label="盘点调整人" align="center" prop="userDefined6"/>
|
||||
<el-table-column label="盘点调整时间" align="center" prop="userDefined7"/>
|
||||
<el-table-column label="审核人" align="center" prop="userDefined8"/>
|
||||
<el-table-column label="审核时间" align="center" prop="userDefined9"/>
|
||||
<el-table-column label="盘点策略" align="center" prop="userDefined10"v-if="false" />
|
||||
<el-table-column label="产品状态" align="center" prop="userDefined11"v-if="false" />
|
||||
<el-table-column label="备注" align="center" prop="Remark"/>
|
||||
<el-table-column label="创建人" align="center" prop="createBy"/>
|
||||
<el-table-column label="创建时间" align="center" prop="createDate" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.createDate, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="最后更新人" align="center" prop="lastUpdateBy"/>
|
||||
<el-table-column label="最后更新时间" align="center" prop="lastUpdateDate" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.lastUpdateDate, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="可用标识" align="center" prop="Active"v-if="false" />
|
||||
<el-table-column label="企业主键" align="center" prop="enterpriseId"v-if="false" />
|
||||
<el-table-column label="企业编码" align="center" prop="enterpriseCode"v-if="false" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['systemFinished:systemFinished:edit']"
|
||||
>修改
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['systemFinished:systemFinished:remove']"
|
||||
>删除
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改成品盘点单对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="1232px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="盘点单号" prop="orderCode">
|
||||
<el-input v-model="form.orderCode" placeholder="请输入盘点单号"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="8">
|
||||
<el-form-item label="工厂编码" prop="siteCode">
|
||||
<el-input v-model="form.siteCode" placeholder="请输入工厂编码"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="盘点仓库" prop="userDefined1">
|
||||
<el-input v-model="form.userDefined1" placeholder="请输入盘点仓库"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="盘点位置" prop="locCode">
|
||||
<el-input v-model="form.locCode" placeholder="请输入盘点位置"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="盘点类型" prop="userDefined3">
|
||||
<el-input v-model="form.userDefined3" placeholder="请输入盘点类型"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="8">
|
||||
<el-form-item label="盘点策略" prop="userDefined10">
|
||||
<el-input v-model="form.userDefined10" placeholder="请输入盘点策略"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="产品状态" prop="userDefined11">
|
||||
<el-input v-model="form.userDefined11" placeholder="请输入用户自定义属性11"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="备注" prop="Remark">
|
||||
<el-input v-model="form.Remark" type="textarea" placeholder="请输入内容"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
</el-row>
|
||||
</el-form>
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handlequeryform">清空</el-button>
|
||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="WarehouseLocationCreation">仓库/位置创建</el-button>
|
||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="MaterialCreation()">物资创建</el-button>
|
||||
</el-col>
|
||||
<!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> -->
|
||||
</el-row>
|
||||
<el-table :data="addoutorderList" @selection-change="handleSelectionChange1">
|
||||
<el-table-column type="selection" width="55" align="center" :index="indexMethod" />
|
||||
<el-table-column label="序号" type="index"> </el-table-column>
|
||||
<el-table-column label="盘点位置" align="center" prop="locCode" />
|
||||
<el-table-column label="托盘号" align="center" prop="sn" />
|
||||
<el-table-column label="批次号" align="center" prop="incomeBatchNo" />
|
||||
<el-table-column label="物料编码" align="center" prop="materialCode" />
|
||||
<el-table-column label="物料名称" align="center" prop="materialName" />
|
||||
<el-table-column label="单位" align="center" prop="unit" />
|
||||
<el-table-column label="应盘数量" align="center" prop="quantity" />
|
||||
|
||||
<el-table-column label="操作" align="center" width="180">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" size="mini" @click="handleDeleteRW(scope.row)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
</el-table>
|
||||
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确认</el-button>
|
||||
<el-button @click="cancel">取消</el-button>
|
||||
</div>
|
||||
|
||||
</el-dialog>
|
||||
<!--订单选择弹窗-->
|
||||
<ItemSelectWorkOrderk
|
||||
ref="ItemSelectWorkOrderk"
|
||||
@onSelected="onSelectWorkOrder"
|
||||
></ItemSelectWorkOrderk>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
import {
|
||||
listSystemFinished,
|
||||
getSystemFinished,
|
||||
delSystemFinished,
|
||||
addSystemFinished,
|
||||
updateSystemFinished } from "@/api/systemFinished/systemFinished";
|
||||
import ItemSelectWorkOrderk from "./selectWorkOrder.vue";
|
||||
|
||||
export default {
|
||||
name: "SystemFinished",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
components: { ItemSelectWorkOrderk},
|
||||
//
|
||||
showFlags:false,
|
||||
//
|
||||
addoutorderList:[],
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 成品盘点单表格数据
|
||||
systemFinishedList: [],
|
||||
//
|
||||
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
siteCode: null,
|
||||
orderCode: null,
|
||||
materialCode: null,
|
||||
materialDesc: null,
|
||||
planDate: null,
|
||||
locNumber: null,
|
||||
Unit: null,
|
||||
realityNumber: null,
|
||||
orderStatus: null,
|
||||
userDefined1: null,
|
||||
locCode: null,
|
||||
userDefined2: null,
|
||||
userDefined3: null,
|
||||
userDefined4: null,
|
||||
userDefined5: null,
|
||||
userDefined6: null,
|
||||
userDefined7: null,
|
||||
userDefined8: null,
|
||||
userDefined9: null,
|
||||
userDefined10: null,
|
||||
userDefined11: null,
|
||||
Remark: null,
|
||||
createBy: null,
|
||||
createDate: null,
|
||||
lastUpdateBy: null,
|
||||
lastUpdateDate: null,
|
||||
Active: null,
|
||||
enterpriseId: null,
|
||||
enterpriseCode: null
|
||||
},
|
||||
|
||||
|
||||
queryParamsOne: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
siteCode: null,
|
||||
orderCode: null,
|
||||
materialCode: null,
|
||||
materialDesc: null,
|
||||
planDate: null,
|
||||
locNumber: null,
|
||||
Unit: null,
|
||||
realityNumber: null,
|
||||
orderStatus: null,
|
||||
userDefined1: null,
|
||||
locCode: null,
|
||||
userDefined2: null,
|
||||
userDefined3: null,
|
||||
userDefined4: null,
|
||||
userDefined5: null,
|
||||
userDefined6: null,
|
||||
userDefined7: null,
|
||||
userDefined8: null,
|
||||
userDefined9: null,
|
||||
userDefined10: null,
|
||||
userDefined11: null,
|
||||
Remark: null,
|
||||
createBy: null,
|
||||
createDate: null,
|
||||
lastUpdateBy: null,
|
||||
lastUpdateDate: null,
|
||||
Active: null,
|
||||
enterpriseId: null,
|
||||
enterpriseCode: null
|
||||
},
|
||||
// 表单参数
|
||||
form: {
|
||||
}
|
||||
,
|
||||
// 表单校验
|
||||
rules: {
|
||||
}
|
||||
}
|
||||
;
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询成品盘点单列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listSystemFinished(this.queryParams).then(response => {
|
||||
this.systemFinishedList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
siteCode: null,
|
||||
ID: null,
|
||||
orderCode: null,
|
||||
materialCode: null,
|
||||
materialDesc: null,
|
||||
planDate: null,
|
||||
locNumber: null,
|
||||
Unit: null,
|
||||
realityNumber: null,
|
||||
orderStatus: null,
|
||||
userDefined1: null,
|
||||
locCode: null,
|
||||
userDefined2: null,
|
||||
userDefined3: null,
|
||||
userDefined4: null,
|
||||
userDefined5: null,
|
||||
userDefined6: null,
|
||||
userDefined7: null,
|
||||
userDefined8: null,
|
||||
userDefined9: null,
|
||||
userDefined10: null,
|
||||
userDefined11: null,
|
||||
Remark: null,
|
||||
createBy: null,
|
||||
createDate: null,
|
||||
lastUpdateBy: null,
|
||||
lastUpdateDate: null,
|
||||
Active: null,
|
||||
enterpriseId: null,
|
||||
enterpriseCode: null
|
||||
}
|
||||
;
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.ID)
|
||||
this.single = selection.length !== 1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "盘点新增";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const ID =
|
||||
row.ID || this.ids
|
||||
getSystemFinished(ID).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改成品盘点单";
|
||||
});
|
||||
},
|
||||
handleDeleteRW(row){
|
||||
let datas =this.addoutorderList
|
||||
for(var i=0;i<datas.length;i++){
|
||||
if (datas[i],key==row.key){
|
||||
datas.splice(i,1);
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
WarehouseLocationCreation(){
|
||||
console.log("---sda")
|
||||
this.$refs.ItemSelectWorkOrderk.showFlags = true;
|
||||
console.log("---ssda")
|
||||
},
|
||||
onSelectWorkOrder(obj) {
|
||||
this.form.orderNo = obj.workorderCode;
|
||||
this.form.materialName = obj.materialName;
|
||||
this.form.materialCode = obj.materialCode;
|
||||
this.form.quality = obj.quality;
|
||||
this.form.unit = obj.unit;
|
||||
this.form.incomeTime = obj.incomeTime;
|
||||
getBatchList(obj.workorderCode).then(response => {
|
||||
this.batchList = response;
|
||||
});
|
||||
},
|
||||
MaterialCreation(){
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
;
|
||||
</script>
|
@ -0,0 +1,149 @@
|
||||
<template>
|
||||
<el-dialog title="生产订单号选择"
|
||||
v-if="showFlags"
|
||||
:visible.sync="showFlags"
|
||||
:modal= false
|
||||
width="1000px"
|
||||
>
|
||||
<el-row :gutter="20">
|
||||
|
||||
<el-col :span="24" :xs="24">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="105px" align="left">
|
||||
<el-form-item label="订单号">
|
||||
<el-input
|
||||
v-model="queryParams.orderNo"
|
||||
placeholder="订单号"
|
||||
clearable
|
||||
style="width: 240px"
|
||||
@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-table v-loading="loading" :data="itemList" @selection-change="handleBomSelectionChange" ref="myTable" >
|
||||
<el-table-column width="50" align="center" type="selection"/>
|
||||
<el-table-column label="订单号" align="left" prop="orderNo" width="120" :formatter="orderCodeFormate"/>
|
||||
<!--<el-table-column label="订单状态" align="left" prop="status" width="90"/>-->
|
||||
<el-table-column label="工单号" align="left" prop="workorderCode" width="130"/>
|
||||
<el-table-column label="产品编码" align="left" prop="materialCode" width="160" :formatter="productCodeFormate"/>
|
||||
<el-table-column label="产品名称" align="left" prop="materialName" width="200"/>
|
||||
<el-table-column label="排产数量" align="left" prop="quality" width="100" />
|
||||
<el-table-column label="单位" align="left" prop="unit" width="80"/>
|
||||
<el-table-column label="生产日期" align="left" prop="incomeTime" width="100" >
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.incomeTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitLLOrderForm">确 定</el-button>
|
||||
<el-button @click="showFlags=false">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</template>
|
||||
<script>
|
||||
|
||||
|
||||
export default {
|
||||
name: "itemSelectWorkOrder",
|
||||
data() {
|
||||
return {
|
||||
showFlags:false,
|
||||
// 选中数组
|
||||
selectedRows: {},
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// BOM产品表格数据
|
||||
itemList: null,
|
||||
|
||||
//树名称
|
||||
bomCode: undefined,
|
||||
defaultProps: {
|
||||
id: "id",
|
||||
label: "label"
|
||||
},
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
workorderCode: ''
|
||||
},
|
||||
selectionRow:{}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
|
||||
methods: {
|
||||
//产品编码格式化
|
||||
productCodeFormate(row, column, cellValue){
|
||||
return cellValue.slice(7,18); //返回值
|
||||
},
|
||||
//订单编码格式化
|
||||
orderCodeFormate(row, column, cellValue){
|
||||
if(cellValue !=null){
|
||||
return cellValue.slice(3,18); //返回值
|
||||
}
|
||||
},
|
||||
/** 查询表格列表*/
|
||||
getList() {
|
||||
this.loading = true;
|
||||
// getWorkOrder(this.queryParams).then(response => {
|
||||
// this.itemList = response.rows;
|
||||
// this.total = response.total;
|
||||
// this.loading = false;
|
||||
// }
|
||||
// );
|
||||
},
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
|
||||
|
||||
// 多选框选中数据
|
||||
handleBomSelectionChange(selection) {
|
||||
|
||||
if(selection.length>1){
|
||||
this.$modal.msgSuccess("只能选一个");
|
||||
}
|
||||
|
||||
this.selectionRow = selection[0]
|
||||
},
|
||||
|
||||
|
||||
submitLLOrderForm() {
|
||||
this.$emit('onSelected', this.selectionRow);
|
||||
this.showFlags = false;
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Reference in New Issue