|
|
|
@ -1,273 +1,190 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="app-container">
|
|
|
|
<div class="app-container">
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
|
|
|
|
|
<el-form-item label="租户id" prop="tenantId">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.tenantId"
|
|
|
|
|
|
|
|
placeholder="请输入租户id"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="归档ID" prop="archiveId">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.archiveId"
|
|
|
|
|
|
|
|
placeholder="请输入归档ID"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="产品ID" prop="productId">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.productId"
|
|
|
|
|
|
|
|
placeholder="请输入产品ID"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="部门ID" prop="deptId">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.deptId"
|
|
|
|
|
|
|
|
placeholder="请输入部门ID"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="车间" prop="workshop">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.workshop"
|
|
|
|
|
|
|
|
placeholder="请输入车间"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="包活工单名称" prop="name">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.name"
|
|
|
|
|
|
|
|
placeholder="请输入包活工单名称"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="加工数量" prop="productNum">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.productNum"
|
|
|
|
|
|
|
|
placeholder="请输入加工数量"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="产品单价" prop="price">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.price"
|
|
|
|
|
|
|
|
placeholder="请输入产品单价"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="单位" prop="unit">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.unit"
|
|
|
|
|
|
|
|
placeholder="请输入单位"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="加工总金额" prop="amount">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.amount"
|
|
|
|
|
|
|
|
placeholder="请输入加工总金额"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="开始时间" prop="beginTime">
|
|
|
|
|
|
|
|
<el-date-picker clearable
|
|
|
|
|
|
|
|
v-model="queryParams.beginTime"
|
|
|
|
|
|
|
|
type="date"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
|
|
|
placeholder="请选择开始时间">
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="结束时间" prop="endTime">
|
|
|
|
|
|
|
|
<el-date-picker clearable
|
|
|
|
|
|
|
|
v-model="queryParams.endTime"
|
|
|
|
|
|
|
|
type="date"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
|
|
|
placeholder="请选择结束时间">
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="质检人员" prop="qualityName">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.qualityName"
|
|
|
|
|
|
|
|
placeholder="请输入质检人员"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="检验说明" prop="qualityRemark">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.qualityRemark"
|
|
|
|
|
|
|
|
placeholder="请输入检验说明"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="入库时间" prop="instorageTime">
|
|
|
|
|
|
|
|
<el-date-picker clearable
|
|
|
|
|
|
|
|
v-model="queryParams.instorageTime"
|
|
|
|
|
|
|
|
type="date"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
|
|
|
placeholder="请选择入库时间">
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="入库人员" prop="instorageName">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.instorageName"
|
|
|
|
|
|
|
|
placeholder="请输入入库人员"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="实际入库数量" prop="instorageNum">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.instorageNum"
|
|
|
|
|
|
|
|
placeholder="请输入实际入库数量"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="项目经理" prop="managerName">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.managerName"
|
|
|
|
|
|
|
|
placeholder="请输入项目经理"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="删除标志" prop="deleted">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.deleted"
|
|
|
|
|
|
|
|
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 :gutter="10" class="mb8">
|
|
|
|
<div class="company" v-if="!$store.state.user.tenantId">
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-input
|
|
|
|
<el-button
|
|
|
|
style="width: 200px"
|
|
|
|
type="primary"
|
|
|
|
placeholder="公司名称"
|
|
|
|
plain
|
|
|
|
size="small"
|
|
|
|
icon="el-icon-plus"
|
|
|
|
prefix-icon="el-icon-search"
|
|
|
|
size="mini"
|
|
|
|
v-model="gsInfo.tenantName"
|
|
|
|
@click="handleAdd"
|
|
|
|
@keyup.enter.native="getGsInfoList">
|
|
|
|
v-hasPermi="['pay:workOrderBaohuo:add']"
|
|
|
|
</el-input>
|
|
|
|
>新增</el-button>
|
|
|
|
<div class="cp-content" style="width: 200px">
|
|
|
|
</el-col>
|
|
|
|
<div :class="gsInfo.active_id===item.id?'cp-item active':'cp-item'" @click="changCompany(item.id)" v-for="item in gsInfo.list">{{ item.name }}</div>
|
|
|
|
<el-col :span="1.5">
|
|
|
|
</div>
|
|
|
|
<el-button
|
|
|
|
</div>
|
|
|
|
type="success"
|
|
|
|
|
|
|
|
plain
|
|
|
|
<div :class="$store.state.user.tenantId?'content-all':'content'">
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
:disabled="single"
|
|
|
|
|
|
|
|
@click="handleUpdate"
|
|
|
|
|
|
|
|
v-hasPermi="['pay:workOrderBaohuo: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="['pay:workOrderBaohuo:remove']"
|
|
|
|
|
|
|
|
>删除</el-button>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="warning"
|
|
|
|
|
|
|
|
plain
|
|
|
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
@click="handleExport"
|
|
|
|
|
|
|
|
v-hasPermi="['pay:workOrderBaohuo:export']"
|
|
|
|
|
|
|
|
>导出</el-button>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="workOrderBaohuoList" @selection-change="handleSelectionChange">
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
<el-form-item label="包活工单名称" prop="name">
|
|
|
|
<el-table-column label="主键ID" align="center" prop="id" v-if="true"/>
|
|
|
|
<el-input
|
|
|
|
<el-table-column label="租户id" align="center" prop="tenantId" />
|
|
|
|
v-model="queryParams.name"
|
|
|
|
<el-table-column label="归档ID" align="center" prop="archiveId" />
|
|
|
|
placeholder="请输入包活工单名称"
|
|
|
|
<el-table-column label="产品ID" align="center" prop="productId" />
|
|
|
|
clearable
|
|
|
|
<el-table-column label="部门ID" align="center" prop="deptId" />
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
<el-table-column label="车间" align="center" prop="workshop" />
|
|
|
|
/>
|
|
|
|
<el-table-column label="包活工单名称" align="center" prop="name" />
|
|
|
|
</el-form-item>
|
|
|
|
<el-table-column label="工作内容" align="center" prop="content" />
|
|
|
|
<el-form-item label="包活工单ID" prop="id">
|
|
|
|
<el-table-column label="加工数量" align="center" prop="productNum" />
|
|
|
|
<el-input
|
|
|
|
<el-table-column label="产品单价" align="center" prop="price" />
|
|
|
|
v-model="queryParams.id"
|
|
|
|
<el-table-column label="单位" align="center" prop="unit" />
|
|
|
|
placeholder="请输入包活工单ID"
|
|
|
|
<el-table-column label="加工总金额" align="center" prop="amount" />
|
|
|
|
clearable
|
|
|
|
<el-table-column label="开始时间" align="center" prop="beginTime" width="180">
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
<template slot-scope="scope">
|
|
|
|
/>
|
|
|
|
<span>{{ parseTime(scope.row.beginTime, '{y}-{m}-{d}') }}</span>
|
|
|
|
</el-form-item>
|
|
|
|
</template>
|
|
|
|
<el-form-item label="部门" prop="deptId">
|
|
|
|
</el-table-column>
|
|
|
|
<treeselect v-model="queryParams.deptId" :options="deptOptions" :show-count="true" placeholder="请选择归属部门" style="width: 220px"/>
|
|
|
|
<el-table-column label="结束时间" align="center" prop="endTime" width="180">
|
|
|
|
</el-form-item>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-form-item label="员工" prop="empId">
|
|
|
|
<span>{{ parseTime(scope.row.endTime, '{y}-{m}-{d}') }}</span>
|
|
|
|
<el-select v-model="queryParams.empId" filterable clearable placeholder="请选择">
|
|
|
|
</template>
|
|
|
|
<el-option
|
|
|
|
</el-table-column>
|
|
|
|
v-for="item in employeeList"
|
|
|
|
<el-table-column label="质检人员" align="center" prop="qualityName" />
|
|
|
|
:key="item.id"
|
|
|
|
<el-table-column label="检验说明" align="center" prop="qualityRemark" />
|
|
|
|
:label="item.name"
|
|
|
|
<el-table-column label="入库时间" align="center" prop="instorageTime" width="180">
|
|
|
|
:value="item.id">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
</el-option>
|
|
|
|
<span>{{ parseTime(scope.row.instorageTime, '{y}-{m}-{d}') }}</span>
|
|
|
|
</el-select>
|
|
|
|
</template>
|
|
|
|
</el-form-item>
|
|
|
|
</el-table-column>
|
|
|
|
<el-form-item label="车间" prop="workshop">
|
|
|
|
<el-table-column label="入库人员" align="center" prop="instorageName" />
|
|
|
|
<el-select v-model="queryParams.workshop" placeholder="请选择车间" clearable>
|
|
|
|
<el-table-column label="实际入库数量" align="center" prop="instorageNum" />
|
|
|
|
<el-option
|
|
|
|
<el-table-column label="项目经理" align="center" prop="managerName" />
|
|
|
|
v-for="dict in dict.type.pay_workshop"
|
|
|
|
<el-table-column label="删除标志" align="center" prop="deleted" />
|
|
|
|
:key="dict.value"
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" />
|
|
|
|
:label="dict.label"
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
:value="dict.value"
|
|
|
|
<template slot-scope="scope">
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="入库时间" prop="instorageTime">
|
|
|
|
|
|
|
|
<el-date-picker clearable
|
|
|
|
|
|
|
|
v-model="queryParams.instorageTime"
|
|
|
|
|
|
|
|
type="date"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
|
|
|
placeholder="请选择入库时间">
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="入库月份" prop="instorageDate">
|
|
|
|
|
|
|
|
<el-date-picker clearable
|
|
|
|
|
|
|
|
v-model="queryParams.instorageDate"
|
|
|
|
|
|
|
|
type="month"
|
|
|
|
|
|
|
|
value-format="yyyy-MM"
|
|
|
|
|
|
|
|
placeholder="请选择入库月份">
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="工作日期" prop="workDate">
|
|
|
|
|
|
|
|
<el-date-picker clearable
|
|
|
|
|
|
|
|
v-model="queryParams.workDate"
|
|
|
|
|
|
|
|
type="date"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
|
|
|
placeholder="请选择工作时间">
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</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
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
plain
|
|
|
|
|
|
|
|
icon="el-icon-plus"
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
type="text"
|
|
|
|
@click="handleAdd"
|
|
|
|
|
|
|
|
v-hasPermi="['pay:workOrderBaohuo:add']"
|
|
|
|
|
|
|
|
>新增</el-button>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="success"
|
|
|
|
|
|
|
|
plain
|
|
|
|
icon="el-icon-edit"
|
|
|
|
icon="el-icon-edit"
|
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
:disabled="single"
|
|
|
|
|
|
|
|
@click="handleUpdate"
|
|
|
|
v-hasPermi="['pay:workOrderBaohuo:edit']"
|
|
|
|
v-hasPermi="['pay:workOrderBaohuo:edit']"
|
|
|
|
>修改</el-button>
|
|
|
|
>修改</el-button>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
size="mini"
|
|
|
|
type="danger"
|
|
|
|
type="text"
|
|
|
|
plain
|
|
|
|
icon="el-icon-delete"
|
|
|
|
icon="el-icon-delete"
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
:disabled="multiple"
|
|
|
|
|
|
|
|
@click="handleDelete"
|
|
|
|
v-hasPermi="['pay:workOrderBaohuo:remove']"
|
|
|
|
v-hasPermi="['pay:workOrderBaohuo:remove']"
|
|
|
|
>删除</el-button>
|
|
|
|
>删除</el-button>
|
|
|
|
</template>
|
|
|
|
</el-col>
|
|
|
|
</el-table-column>
|
|
|
|
<el-col :span="1.5">
|
|
|
|
</el-table>
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="warning"
|
|
|
|
|
|
|
|
plain
|
|
|
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
@click="handleExport"
|
|
|
|
|
|
|
|
v-hasPermi="['pay:workOrderBaohuo:export']"
|
|
|
|
|
|
|
|
>导出</el-button>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="workOrderBaohuoList" @selection-change="handleSelectionChange">
|
|
|
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
|
|
|
<el-table-column label="工单ID" align="center" prop="id"/>
|
|
|
|
|
|
|
|
<el-table-column label="包活工单名称" align="center" prop="name" />
|
|
|
|
|
|
|
|
<el-table-column label="工作内容" align="center" prop="content" />
|
|
|
|
|
|
|
|
<el-table-column label="质检人员" align="center" prop="qualityName" />
|
|
|
|
|
|
|
|
<el-table-column label="检验说明" align="center" prop="qualityRemark" />
|
|
|
|
|
|
|
|
<el-table-column label="入库时间" align="center" prop="instorageTime">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<span>{{ parseTime(scope.row.instorageTime, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="入库人员" align="center" prop="instorageName" />
|
|
|
|
|
|
|
|
<el-table-column label="实际入库数量" align="center" prop="instorageNum" />
|
|
|
|
|
|
|
|
<el-table-column label="项目经理" align="center" prop="managerName" />
|
|
|
|
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" />
|
|
|
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
|
|
|
|
|
v-hasPermi="['pay:workOrderBaohuo:edit']"
|
|
|
|
|
|
|
|
>修改</el-button>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
|
|
|
@click="handleDetails(scope.row)"
|
|
|
|
|
|
|
|
v-hasPermi="['pay:workOrderBaohuo:query']"
|
|
|
|
|
|
|
|
>详情</el-button>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
|
|
|
|
v-hasPermi="['pay:workOrderBaohuo:remove']"
|
|
|
|
|
|
|
|
>删除</el-button>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
|
|
<pagination
|
|
|
|
<pagination
|
|
|
|
v-show="total>0"
|
|
|
|
v-show="total>0"
|
|
|
|
:total="total"
|
|
|
|
:total="total"
|
|
|
|
:page.sync="queryParams.pageNum"
|
|
|
|
:page.sync="queryParams.pageNum"
|
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
|
@pagination="getList"
|
|
|
|
@pagination="getList"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 添加或修改包活派工单对话框 -->
|
|
|
|
<!-- 添加或修改包活派工单对话框 -->
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
@ -356,16 +273,30 @@
|
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { listWorkOrderBaohuo, getWorkOrderBaohuo, delWorkOrderBaohuo, addWorkOrderBaohuo, updateWorkOrderBaohuo } from "@/api/pay/workOrderBaohuo";
|
|
|
|
import { listWorkOrderBaohuo, getWorkOrderBaohuo, delWorkOrderBaohuo, addWorkOrderBaohuo, updateWorkOrderBaohuo } from "@/api/pay/workOrderBaohuo";
|
|
|
|
|
|
|
|
import { listTenant } from "@/api/pay/tenant";
|
|
|
|
|
|
|
|
import { listEmployeeInfo } from "@/api/pay/employeeInfo";
|
|
|
|
|
|
|
|
import { deptTreeSelect } from "@/api/system/user";
|
|
|
|
|
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
|
|
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "WorkOrderBaohuo",
|
|
|
|
name: "WorkOrderBaohuo",
|
|
|
|
|
|
|
|
dicts: ['pay_workshop'],
|
|
|
|
|
|
|
|
components: { Treeselect },
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
// 公司信息
|
|
|
|
|
|
|
|
gsInfo:{
|
|
|
|
|
|
|
|
tenantName:'',
|
|
|
|
|
|
|
|
active_id:this.$store.state.user.tenantId,
|
|
|
|
|
|
|
|
list:[]
|
|
|
|
|
|
|
|
},
|
|
|
|
// 按钮loading
|
|
|
|
// 按钮loading
|
|
|
|
buttonLoading: false,
|
|
|
|
buttonLoading: false,
|
|
|
|
// 遮罩层
|
|
|
|
// 遮罩层
|
|
|
|
@ -382,6 +313,8 @@ export default {
|
|
|
|
total: 0,
|
|
|
|
total: 0,
|
|
|
|
// 包活派工单表格数据
|
|
|
|
// 包活派工单表格数据
|
|
|
|
workOrderBaohuoList: [],
|
|
|
|
workOrderBaohuoList: [],
|
|
|
|
|
|
|
|
// 部门树选项
|
|
|
|
|
|
|
|
deptOptions: undefined,
|
|
|
|
// 弹出层标题
|
|
|
|
// 弹出层标题
|
|
|
|
title: "",
|
|
|
|
title: "",
|
|
|
|
// 是否显示弹出层
|
|
|
|
// 是否显示弹出层
|
|
|
|
@ -411,23 +344,13 @@ export default {
|
|
|
|
managerName: undefined,
|
|
|
|
managerName: undefined,
|
|
|
|
deleted: undefined,
|
|
|
|
deleted: undefined,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// 选择员工
|
|
|
|
|
|
|
|
employeeList: [],
|
|
|
|
// 表单参数
|
|
|
|
// 表单参数
|
|
|
|
form: {},
|
|
|
|
form: {},
|
|
|
|
// 表单校验
|
|
|
|
// 表单校验
|
|
|
|
rules: {
|
|
|
|
rules: {
|
|
|
|
id: [
|
|
|
|
/*deptId: [
|
|
|
|
{ required: true, message: "主键ID不能为空", trigger: "blur" }
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
tenantId: [
|
|
|
|
|
|
|
|
{ required: true, message: "租户id不能为空", trigger: "blur" }
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
archiveId: [
|
|
|
|
|
|
|
|
{ required: true, message: "归档ID不能为空", trigger: "blur" }
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
productId: [
|
|
|
|
|
|
|
|
{ required: true, message: "产品ID不能为空", trigger: "blur" }
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
deptId: [
|
|
|
|
|
|
|
|
{ required: true, message: "部门ID不能为空", trigger: "blur" }
|
|
|
|
{ required: true, message: "部门ID不能为空", trigger: "blur" }
|
|
|
|
],
|
|
|
|
],
|
|
|
|
workshop: [
|
|
|
|
workshop: [
|
|
|
|
@ -480,17 +403,60 @@ export default {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
remark: [
|
|
|
|
remark: [
|
|
|
|
{ required: true, message: "备注不能为空", trigger: "blur" }
|
|
|
|
{ required: true, message: "备注不能为空", trigger: "blur" }
|
|
|
|
]
|
|
|
|
]*/
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
this.getList();
|
|
|
|
if (!this.$store.state.user.tenantId) {
|
|
|
|
|
|
|
|
this.getGsInfoList()
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
this.gsInfo.active_id = this.$store.state.user.tenantId
|
|
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
this.getDeptTree();
|
|
|
|
|
|
|
|
this.getlistEmployee();
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
// 获取左侧公司列表
|
|
|
|
|
|
|
|
getGsInfoList(){
|
|
|
|
|
|
|
|
listTenant({ name: this.gsInfo.tenantName }).then(response => {
|
|
|
|
|
|
|
|
if(response.rows.length>0){
|
|
|
|
|
|
|
|
this.gsInfo.list = response.rows;
|
|
|
|
|
|
|
|
this.gsInfo.active_id = this.gsInfo.list[0].id
|
|
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
this.getDeptTree();
|
|
|
|
|
|
|
|
this.getlistEmployee();
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
this.$alert(`没有查到相关公司,暂无数据!`, `提示`, {
|
|
|
|
|
|
|
|
type: 'warning'
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 选择公司
|
|
|
|
|
|
|
|
changCompany(id){
|
|
|
|
|
|
|
|
this.gsInfo.active_id = id
|
|
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
this.getDeptTree();
|
|
|
|
|
|
|
|
this.getlistEmployee();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/** 查询时员工 */
|
|
|
|
|
|
|
|
getlistEmployee() {
|
|
|
|
|
|
|
|
listEmployeeInfo({pageSize: 100000}).then(response => {
|
|
|
|
|
|
|
|
this.employeeList = response.rows
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/** 查询部门下拉树结构 */
|
|
|
|
|
|
|
|
getDeptTree() {
|
|
|
|
|
|
|
|
deptTreeSelect({tenantId: this.gsInfo.active_id}).then(response => {
|
|
|
|
|
|
|
|
this.deptOptions = response.data;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
/** 查询包活派工单列表 */
|
|
|
|
/** 查询包活派工单列表 */
|
|
|
|
getList() {
|
|
|
|
getList() {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
|
|
|
|
this.queryParams.tenantId = this.gsInfo.active_id;
|
|
|
|
listWorkOrderBaohuo(this.queryParams).then(response => {
|
|
|
|
listWorkOrderBaohuo(this.queryParams).then(response => {
|
|
|
|
this.workOrderBaohuoList = response.rows;
|
|
|
|
this.workOrderBaohuoList = response.rows;
|
|
|
|
this.total = response.total;
|
|
|
|
this.total = response.total;
|
|
|
|
@ -573,6 +539,7 @@ export default {
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
|
if (valid) {
|
|
|
|
if (valid) {
|
|
|
|
this.buttonLoading = true;
|
|
|
|
this.buttonLoading = true;
|
|
|
|
|
|
|
|
this.form.tenantId = this.gsInfo.active_id;
|
|
|
|
if (this.form.id != null) {
|
|
|
|
if (this.form.id != null) {
|
|
|
|
updateWorkOrderBaohuo(this.form).then(response => {
|
|
|
|
updateWorkOrderBaohuo(this.form).then(response => {
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
@ -617,3 +584,43 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
|
|
|
.app-container {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
.company {
|
|
|
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
|
|
|
width: 230px;
|
|
|
|
|
|
|
|
height: calc(100vh - 115px);
|
|
|
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
|
|
.cp-content {
|
|
|
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
|
|
|
.cp-item {
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
padding: 6px 10px 6px 5px;
|
|
|
|
|
|
|
|
color: #424242;
|
|
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
|
|
background: #f6f6f6;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.active{
|
|
|
|
|
|
|
|
background: #edf6ff;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.content{
|
|
|
|
|
|
|
|
padding-left: 15px;
|
|
|
|
|
|
|
|
width: calc(100% - 250px);
|
|
|
|
|
|
|
|
.el-button--medium {
|
|
|
|
|
|
|
|
padding: 2px 0px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.content-all{
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
.el-button--medium {
|
|
|
|
|
|
|
|
padding: 2px 0px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|