|
@@ -71,15 +71,15 @@
|
|
|
>
|
|
>
|
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
-<!-- <el-form-item label="岗位" prop="workstationId">-->
|
|
|
|
|
-<!-- <treeselect-->
|
|
|
|
|
-<!-- style="width: 218px"-->
|
|
|
|
|
-<!-- v-model="queryParams.workstationId"-->
|
|
|
|
|
-<!-- :options="marsOptions"-->
|
|
|
|
|
-<!-- :normalizer="normalizer"-->
|
|
|
|
|
-<!-- placeholder="选择岗位"-->
|
|
|
|
|
-<!-- />-->
|
|
|
|
|
-<!-- </el-form-item>-->
|
|
|
|
|
|
|
+ <!-- <el-form-item label="岗位" prop="workstationId">-->
|
|
|
|
|
+ <!-- <treeselect-->
|
|
|
|
|
+ <!-- style="width: 218px"-->
|
|
|
|
|
+ <!-- v-model="queryParams.workstationId"-->
|
|
|
|
|
+ <!-- :options="marsOptions"-->
|
|
|
|
|
+ <!-- :normalizer="normalizer"-->
|
|
|
|
|
+ <!-- placeholder="选择岗位"-->
|
|
|
|
|
+ <!-- />-->
|
|
|
|
|
+ <!-- </el-form-item>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="状态" prop="status">
|
|
<el-form-item label="状态" prop="status">
|
|
@@ -130,32 +130,33 @@
|
|
|
size="mini"
|
|
size="mini"
|
|
|
@click="handleExport"
|
|
@click="handleExport"
|
|
|
v-hasPermi="['iscs:check:export']"
|
|
v-hasPermi="['iscs:check:export']"
|
|
|
- >导出</el-button>
|
|
|
|
|
-<!-- <el-col :span="1.5">-->
|
|
|
|
|
-<!-- <el-button-->
|
|
|
|
|
-<!-- v-no-more-click-->
|
|
|
|
|
-<!-- type="primary"-->
|
|
|
|
|
-<!-- plain-->
|
|
|
|
|
-<!-- icon="el-icon-plus"-->
|
|
|
|
|
-<!-- size="mini"-->
|
|
|
|
|
-<!-- @click="handleAdd"-->
|
|
|
|
|
-<!-- v-hasPermi="['iscs:check:add']"-->
|
|
|
|
|
-<!-- >新增-->
|
|
|
|
|
-<!-- </el-button>-->
|
|
|
|
|
-<!-- </el-col>-->
|
|
|
|
|
-<!-- <el-col :span="1.5">-->
|
|
|
|
|
-<!-- <el-button-->
|
|
|
|
|
-<!-- v-no-more-click-->
|
|
|
|
|
-<!-- type="danger"-->
|
|
|
|
|
-<!-- plain-->
|
|
|
|
|
-<!-- icon="el-icon-delete"-->
|
|
|
|
|
-<!-- size="mini"-->
|
|
|
|
|
-<!-- :disabled="multiple"-->
|
|
|
|
|
-<!-- @click="handleDelete"-->
|
|
|
|
|
-<!-- v-hasPermi="['iscs:check:remove']"-->
|
|
|
|
|
-<!-- >批量删除-->
|
|
|
|
|
-<!-- </el-button>-->
|
|
|
|
|
-<!-- </el-col>-->
|
|
|
|
|
|
|
+ >导出
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ <!-- <el-col :span="1.5">-->
|
|
|
|
|
+ <!-- <el-button-->
|
|
|
|
|
+ <!-- v-no-more-click-->
|
|
|
|
|
+ <!-- type="primary"-->
|
|
|
|
|
+ <!-- plain-->
|
|
|
|
|
+ <!-- icon="el-icon-plus"-->
|
|
|
|
|
+ <!-- size="mini"-->
|
|
|
|
|
+ <!-- @click="handleAdd"-->
|
|
|
|
|
+ <!-- v-hasPermi="['iscs:check:add']"-->
|
|
|
|
|
+ <!-- >新增-->
|
|
|
|
|
+ <!-- </el-button>-->
|
|
|
|
|
+ <!-- </el-col>-->
|
|
|
|
|
+ <!-- <el-col :span="1.5">-->
|
|
|
|
|
+ <!-- <el-button-->
|
|
|
|
|
+ <!-- v-no-more-click-->
|
|
|
|
|
+ <!-- type="danger"-->
|
|
|
|
|
+ <!-- plain-->
|
|
|
|
|
+ <!-- icon="el-icon-delete"-->
|
|
|
|
|
+ <!-- size="mini"-->
|
|
|
|
|
+ <!-- :disabled="multiple"-->
|
|
|
|
|
+ <!-- @click="handleDelete"-->
|
|
|
|
|
+ <!-- v-hasPermi="['iscs:check:remove']"-->
|
|
|
|
|
+ <!-- >批量删除-->
|
|
|
|
|
+ <!-- </el-button>-->
|
|
|
|
|
+ <!-- </el-col>-->
|
|
|
<right-toolbar
|
|
<right-toolbar
|
|
|
:showSearch.sync="showSearch"
|
|
:showSearch.sync="showSearch"
|
|
|
@queryTable="getList"
|
|
@queryTable="getList"
|
|
@@ -166,18 +167,18 @@
|
|
|
:data="RecordList"
|
|
:data="RecordList"
|
|
|
@selection-change="handleSelectionChange"
|
|
@selection-change="handleSelectionChange"
|
|
|
>
|
|
>
|
|
|
- <el-table-column type="selection" width="55" align="center"/>
|
|
|
|
|
|
|
+ <!-- <el-table-column type="selection" width="55" align="center"/>-->
|
|
|
<el-table-column label="计划名称" align="center" prop="planName" width="200">
|
|
<el-table-column label="计划名称" align="center" prop="planName" width="200">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- {{scope.row.planName}}
|
|
|
|
|
|
|
+ {{ scope.row.planName }}
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="物资柜" align="center" prop="cabinetName">
|
|
<el-table-column label="物资柜" align="center" prop="cabinetName">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="物资编号" align="center" prop="materialsId">
|
|
<el-table-column label="物资编号" align="center" prop="materialsId">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="物资名称" align="center" prop="materialsName" />
|
|
|
|
|
- <el-table-column label="物资类型" align="center" prop="materialsTypeName" />
|
|
|
|
|
|
|
+ <el-table-column label="物资名称" align="center" prop="materialsName"/>
|
|
|
|
|
+ <el-table-column label="物资类型" align="center" prop="materialsTypeName"/>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
label="物资图片"
|
|
label="物资图片"
|
|
|
align="center"
|
|
align="center"
|
|
@@ -220,33 +221,33 @@
|
|
|
<el-button type="text" @click="goto(scope.row)">查看</el-button>
|
|
<el-button type="text" @click="goto(scope.row)">查看</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
-<!-- <el-table-column-->
|
|
|
|
|
-<!-- label="操作"-->
|
|
|
|
|
-<!-- align="center"-->
|
|
|
|
|
-<!-- class-name="small-padding fixed-width"-->
|
|
|
|
|
-<!-- >-->
|
|
|
|
|
-<!-- <template slot-scope="scope">-->
|
|
|
|
|
-<!-- <el-button-->
|
|
|
|
|
-<!-- v-no-more-click-->
|
|
|
|
|
-<!-- size="mini"-->
|
|
|
|
|
-<!-- type="text"-->
|
|
|
|
|
-<!-- icon="el-icon-edit"-->
|
|
|
|
|
-<!-- @click="handleUpdate(scope.row)"-->
|
|
|
|
|
-<!-- v-hasPermi="['iscs:check:edit']"-->
|
|
|
|
|
-<!-- >编辑-->
|
|
|
|
|
-<!-- </el-button>-->
|
|
|
|
|
|
|
+ <!-- <el-table-column-->
|
|
|
|
|
+ <!-- label="操作"-->
|
|
|
|
|
+ <!-- align="center"-->
|
|
|
|
|
+ <!-- class-name="small-padding fixed-width"-->
|
|
|
|
|
+ <!-- >-->
|
|
|
|
|
+ <!-- <template slot-scope="scope">-->
|
|
|
|
|
+ <!-- <el-button-->
|
|
|
|
|
+ <!-- v-no-more-click-->
|
|
|
|
|
+ <!-- size="mini"-->
|
|
|
|
|
+ <!-- type="text"-->
|
|
|
|
|
+ <!-- icon="el-icon-edit"-->
|
|
|
|
|
+ <!-- @click="handleUpdate(scope.row)"-->
|
|
|
|
|
+ <!-- v-hasPermi="['iscs:check:edit']"-->
|
|
|
|
|
+ <!-- >编辑-->
|
|
|
|
|
+ <!-- </el-button>-->
|
|
|
|
|
|
|
|
-<!-- <el-button-->
|
|
|
|
|
-<!-- v-no-more-click-->
|
|
|
|
|
-<!-- size="mini"-->
|
|
|
|
|
-<!-- type="text"-->
|
|
|
|
|
-<!-- icon="el-icon-delete"-->
|
|
|
|
|
-<!-- @click="handleDelete(scope.row)"-->
|
|
|
|
|
-<!-- v-hasPermi="['iscs:check:remove']"-->
|
|
|
|
|
-<!-- >删除-->
|
|
|
|
|
-<!-- </el-button>-->
|
|
|
|
|
-<!-- </template>-->
|
|
|
|
|
-<!-- </el-table-column>-->
|
|
|
|
|
|
|
+ <!-- <el-button-->
|
|
|
|
|
+ <!-- v-no-more-click-->
|
|
|
|
|
+ <!-- size="mini"-->
|
|
|
|
|
+ <!-- type="text"-->
|
|
|
|
|
+ <!-- icon="el-icon-delete"-->
|
|
|
|
|
+ <!-- @click="handleDelete(scope.row)"-->
|
|
|
|
|
+ <!-- v-hasPermi="['iscs:check:remove']"-->
|
|
|
|
|
+ <!-- >删除-->
|
|
|
|
|
+ <!-- </el-button>-->
|
|
|
|
|
+ <!-- </template>-->
|
|
|
|
|
+ <!-- </el-table-column>-->
|
|
|
</el-table>
|
|
</el-table>
|
|
|
<pagination
|
|
<pagination
|
|
|
v-show="total > 0"
|
|
v-show="total > 0"
|
|
@@ -255,124 +256,13 @@
|
|
|
:limit.sync="queryParams.size"
|
|
:limit.sync="queryParams.size"
|
|
|
@pagination="getList"
|
|
@pagination="getList"
|
|
|
/>
|
|
/>
|
|
|
- <!-- 添加或修改班组对话框 -->
|
|
|
|
|
- <el-dialog :visible.sync="open" width="500px" append-to-body>
|
|
|
|
|
- <div slot="title" class="dialog-title">
|
|
|
|
|
- <i></i>
|
|
|
|
|
- <span class="title">{{ title }}</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- <el-form ref="form" :model="form" :rules="rules" label-width="110px">
|
|
|
|
|
- <el-form-item label="计划名称Id" prop="planId">
|
|
|
|
|
- <el-select
|
|
|
|
|
- style="width: 348px"
|
|
|
|
|
- v-model="form.planId"
|
|
|
|
|
- placeholder="请选择检查计划"
|
|
|
|
|
- clearable
|
|
|
|
|
- >
|
|
|
|
|
- <el-option
|
|
|
|
|
- v-for="dict in planList"
|
|
|
|
|
- :key="dict.value"
|
|
|
|
|
- :label="dict.label"
|
|
|
|
|
- :value="dict.value"
|
|
|
|
|
- />
|
|
|
|
|
- </el-select>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- <el-form-item label="更换日期">
|
|
|
|
|
- <el-date-picker
|
|
|
|
|
- style="width: 350px"
|
|
|
|
|
- v-model="form.changeDate"
|
|
|
|
|
- placeholder="请选择日期"
|
|
|
|
|
- :picker-options="pickerOptions"
|
|
|
|
|
- align="right"
|
|
|
|
|
- >
|
|
|
|
|
- </el-date-picker>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
-<!-- <el-form-item label="所属岗位" prop="workstationId">-->
|
|
|
|
|
-<!-- <treeselect style="width: 348px" v-model="form.workstationId" :options="workstationOption"-->
|
|
|
|
|
-<!-- :normalizer="normalizer" placeholder="选择岗位"-->
|
|
|
|
|
-<!-- />-->
|
|
|
|
|
-<!-- </el-form-item>-->
|
|
|
|
|
-<!-- <el-form-item label="检查物资柜" prop="cabinetIds">-->
|
|
|
|
|
-<!-- <el-select-->
|
|
|
|
|
-<!-- style="width: 348px"-->
|
|
|
|
|
-<!-- v-model="form.cabinetIds"-->
|
|
|
|
|
-<!-- placeholder="请选择需要检查的物资柜"-->
|
|
|
|
|
-<!-- multiple-->
|
|
|
|
|
-<!-- clearable-->
|
|
|
|
|
-<!-- >-->
|
|
|
|
|
-<!-- <el-option-->
|
|
|
|
|
-<!-- v-for="dict in cabinets"-->
|
|
|
|
|
-<!-- :key="dict.value"-->
|
|
|
|
|
-<!-- :label="dict.label"-->
|
|
|
|
|
-<!-- :value="dict.value"-->
|
|
|
|
|
-<!-- />-->
|
|
|
|
|
-<!-- </el-select>-->
|
|
|
|
|
-<!-- </el-form-item>-->
|
|
|
|
|
- <el-form-item label="更换员" prop="changeUserId">
|
|
|
|
|
- <el-select
|
|
|
|
|
- style="width: 348px"
|
|
|
|
|
- v-model="form.changeUserId"
|
|
|
|
|
- placeholder="请选择更换员"
|
|
|
|
|
- clearable
|
|
|
|
|
- >
|
|
|
|
|
- <el-option
|
|
|
|
|
- v-for="dict in planPersonOption"
|
|
|
|
|
- :key="dict.value"
|
|
|
|
|
- :label="dict.label"
|
|
|
|
|
- :value="dict.value"
|
|
|
|
|
- />
|
|
|
|
|
- </el-select>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- <el-form-item label="物资Id" prop="materialsId">
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model="form.materialsId"
|
|
|
|
|
- placeholder="请输入物资Id"
|
|
|
|
|
- clearable
|
|
|
|
|
- />
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- <el-form-item label="新物资Id" prop="newMaterialsId">
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model="form.newMaterialsId"
|
|
|
|
|
- placeholder="请输入新物资Id"
|
|
|
|
|
- clearable
|
|
|
|
|
- />
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- <el-form-item label="新物资RFID" prop="newMaterialsRfid">
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model="form.newMaterialsRfid"
|
|
|
|
|
- placeholder="请输入新物资RFID"
|
|
|
|
|
- clearable
|
|
|
|
|
- />
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- <el-form-item label="原物资Id" prop="oldMaterialsId">
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model="form.oldMaterialsId"
|
|
|
|
|
- placeholder="请输入原物资Id"
|
|
|
|
|
- clearable
|
|
|
|
|
- />
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- <el-form-item label="原物资Rfid" prop="oldMaterialsRfid">
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model="form.oldMaterialsRfid"
|
|
|
|
|
- placeholder="请输入原物资Rfid"
|
|
|
|
|
- clearable
|
|
|
|
|
- />
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </el-form>
|
|
|
|
|
|
|
|
|
|
- <div slot="footer" class="dialog-footer">
|
|
|
|
|
- <el-button v-no-more-click type="primary" @click="submitForm"
|
|
|
|
|
- >确 定
|
|
|
|
|
- </el-button>
|
|
|
|
|
- <el-button v-no-more-click @click="cancel">取 消</el-button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </el-dialog>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import {
|
|
import {
|
|
|
- listCheckRecord,addCheckRecord,updateCheckRecord,deleteCheckRecord,selectCheckRecordById
|
|
|
|
|
|
|
+ listCheckRecord, addCheckRecord, updateCheckRecord, deleteCheckRecord, selectCheckRecordById
|
|
|
} from '@/api/mes/material/checkRecord'
|
|
} from '@/api/mes/material/checkRecord'
|
|
|
import Treeselect from '@riophae/vue-treeselect'
|
|
import Treeselect from '@riophae/vue-treeselect'
|
|
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
|
@@ -386,21 +276,21 @@ import { listPlan } from '@/api/mes/material/plan'
|
|
|
export default {
|
|
export default {
|
|
|
name: 'Team',
|
|
name: 'Team',
|
|
|
components: { Template, Treeselect },
|
|
components: { Template, Treeselect },
|
|
|
- props:{
|
|
|
|
|
- cabinetId:{
|
|
|
|
|
- type:String,
|
|
|
|
|
- required:false
|
|
|
|
|
|
|
+ props: {
|
|
|
|
|
+ cabinetId: {
|
|
|
|
|
+ type: String,
|
|
|
|
|
+ required: false
|
|
|
},
|
|
},
|
|
|
- planId:{
|
|
|
|
|
- type:String,
|
|
|
|
|
- required:false
|
|
|
|
|
|
|
+ planId: {
|
|
|
|
|
+ type: String,
|
|
|
|
|
+ required: false
|
|
|
|
|
+ },
|
|
|
|
|
+ planName: {
|
|
|
|
|
+ type: String,
|
|
|
|
|
+ required: false
|
|
|
},
|
|
},
|
|
|
- planName:{
|
|
|
|
|
- type:String,
|
|
|
|
|
- required:false
|
|
|
|
|
- }
|
|
|
|
|
},
|
|
},
|
|
|
- dicts: ['material_status','checks_status','exceptions_status'],
|
|
|
|
|
|
|
+ dicts: ['material_status', 'checks_status', 'exceptions_status'],
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
//自动生成编码
|
|
//自动生成编码
|
|
@@ -432,24 +322,24 @@ export default {
|
|
|
queryParams: {
|
|
queryParams: {
|
|
|
current: 1,
|
|
current: 1,
|
|
|
size: 10,
|
|
size: 10,
|
|
|
- materialsRfid:'',
|
|
|
|
|
|
|
+ materialsRfid: '',
|
|
|
materialsName: null,
|
|
materialsName: null,
|
|
|
loanState: null,
|
|
loanState: null,
|
|
|
materialsCabinetId: null,
|
|
materialsCabinetId: null,
|
|
|
materialsTypeId: null,
|
|
materialsTypeId: null,
|
|
|
startTime: '',
|
|
startTime: '',
|
|
|
endTime: '',
|
|
endTime: '',
|
|
|
- reason:'',
|
|
|
|
|
- status:'',
|
|
|
|
|
- planId:null,
|
|
|
|
|
- planName:'',
|
|
|
|
|
- cabinetId:null,
|
|
|
|
|
|
|
+ reason: '',
|
|
|
|
|
+ status: '',
|
|
|
|
|
+ planId: null,
|
|
|
|
|
+ planName: '',
|
|
|
|
|
+ cabinetId: null
|
|
|
},
|
|
},
|
|
|
// 表单参数
|
|
// 表单参数
|
|
|
form: {},
|
|
form: {},
|
|
|
cabinets: [], //物资所属柜
|
|
cabinets: [], //物资所属柜
|
|
|
planPersonOption: [], // 检查人员
|
|
planPersonOption: [], // 检查人员
|
|
|
- planList:[],//检查计划Id
|
|
|
|
|
|
|
+ planList: [],//检查计划Id
|
|
|
workstationOption: [],//所属岗位
|
|
workstationOption: [],//所属岗位
|
|
|
// 表单校验
|
|
// 表单校验
|
|
|
rules: {
|
|
rules: {
|
|
@@ -467,92 +357,111 @@ export default {
|
|
|
pickerOptions: {
|
|
pickerOptions: {
|
|
|
shortcuts: [
|
|
shortcuts: [
|
|
|
{
|
|
{
|
|
|
- text: "最近一周",
|
|
|
|
|
|
|
+ text: '最近一周',
|
|
|
onClick(picker) {
|
|
onClick(picker) {
|
|
|
- const end = new Date();
|
|
|
|
|
- const start = new Date();
|
|
|
|
|
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
|
|
|
|
- picker.$emit("pick", [start, end]);
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ const end = new Date()
|
|
|
|
|
+ const start = new Date()
|
|
|
|
|
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
|
|
|
|
|
+ picker.$emit('pick', [start, end])
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- text: "最近一个月",
|
|
|
|
|
|
|
+ text: '最近一个月',
|
|
|
onClick(picker) {
|
|
onClick(picker) {
|
|
|
- const end = new Date();
|
|
|
|
|
- const start = new Date();
|
|
|
|
|
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
|
|
|
|
- picker.$emit("pick", [start, end]);
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ const end = new Date()
|
|
|
|
|
+ const start = new Date()
|
|
|
|
|
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 30)
|
|
|
|
|
+ picker.$emit('pick', [start, end])
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- text: "最近三个月",
|
|
|
|
|
|
|
+ text: '最近三个月',
|
|
|
onClick(picker) {
|
|
onClick(picker) {
|
|
|
- const end = new Date();
|
|
|
|
|
- const start = new Date();
|
|
|
|
|
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
|
|
|
|
|
- picker.$emit("pick", [start, end]);
|
|
|
|
|
- },
|
|
|
|
|
- },
|
|
|
|
|
- ],
|
|
|
|
|
|
|
+ const end = new Date()
|
|
|
|
|
+ const start = new Date()
|
|
|
|
|
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 90)
|
|
|
|
|
+ picker.$emit('pick', [start, end])
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
},
|
|
},
|
|
|
- materialstypeOptions:[],
|
|
|
|
|
- visibleSelect:false,
|
|
|
|
|
|
|
+ materialstypeOptions: [],
|
|
|
|
|
+ visibleSelect: false
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
created() {
|
|
created() {
|
|
|
this.getList()
|
|
this.getList()
|
|
|
this.getTreeselect()
|
|
this.getTreeselect()
|
|
|
this.materialsCabinets()
|
|
this.materialsCabinets()
|
|
|
|
|
|
|
|
- this.queryParams.planName = this.$route.query.planName || this.planName||null;
|
|
|
|
|
- this.queryParams.cabinetId = this.$route.query.cabinetId ||this.cabinetId||null;
|
|
|
|
|
- if(this.cabinetId){
|
|
|
|
|
- this.visibleSelect=true
|
|
|
|
|
-
|
|
|
|
|
|
|
+ console.log(this.planId, this.planName, '接收到了 生活时尚生活是')
|
|
|
|
|
+ if (this.cabinetId) {
|
|
|
|
|
+ this.visibleSelect = true
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
-
|
|
|
|
|
- goto(row){
|
|
|
|
|
- if(this.cabinetId){
|
|
|
|
|
- this.$emit('recordId',row.recordId);
|
|
|
|
|
- }else{
|
|
|
|
|
|
|
+ goto(row) {
|
|
|
|
|
+ if (this.cabinetId) {
|
|
|
|
|
+ this.$emit('recordId', row.recordId)
|
|
|
|
|
+ } else {
|
|
|
this.$router.push({
|
|
this.$router.push({
|
|
|
- path:'/material/replacementrecords',
|
|
|
|
|
- query:{
|
|
|
|
|
- recordId:row.recordId,
|
|
|
|
|
|
|
+ path: '/material/replacementrecords',
|
|
|
|
|
+ query: {
|
|
|
|
|
+ recordId: row.recordId
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
formatDate(date) {
|
|
formatDate(date) {
|
|
|
- const year = date.getFullYear().toString().padStart(2, "0");
|
|
|
|
|
- const month = (date.getMonth() + 1).toString().padStart(2, "0");
|
|
|
|
|
- const day = date.getDate().toString().padStart(2, "0");
|
|
|
|
|
- const hours = date.getHours().toString().padStart(2, "0");
|
|
|
|
|
- const minutes = date.getMinutes().toString().padStart(2, "0");
|
|
|
|
|
- const seconds = date.getSeconds().toString().padStart(2, "0");
|
|
|
|
|
|
|
+ const year = date.getFullYear().toString().padStart(2, '0')
|
|
|
|
|
+ const month = (date.getMonth() + 1).toString().padStart(2, '0')
|
|
|
|
|
+ const day = date.getDate().toString().padStart(2, '0')
|
|
|
|
|
+ const hours = date.getHours().toString().padStart(2, '0')
|
|
|
|
|
+ const minutes = date.getMinutes().toString().padStart(2, '0')
|
|
|
|
|
+ const seconds = date.getSeconds().toString().padStart(2, '0')
|
|
|
|
|
|
|
|
- return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
|
|
|
|
|
|
|
+ return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`
|
|
|
},
|
|
},
|
|
|
/** 查询物资信息列表 */
|
|
/** 查询物资信息列表 */
|
|
|
getList() {
|
|
getList() {
|
|
|
this.loading = true
|
|
this.loading = true
|
|
|
|
|
+ this.queryParams.planName = null
|
|
|
|
|
+ this.queryParams.cabinetId = null
|
|
|
|
|
+ this.queryParams.planId = null
|
|
|
// 格式化日期并更新 queryParams
|
|
// 格式化日期并更新 queryParams
|
|
|
if (Array.isArray(this.createTime) && this.createTime.length === 2) {
|
|
if (Array.isArray(this.createTime) && this.createTime.length === 2) {
|
|
|
this.queryParams.startTime = this.formatDate(this.createTime[0])
|
|
this.queryParams.startTime = this.formatDate(this.createTime[0])
|
|
|
this.queryParams.endTime = this.formatDate(this.createTime[1])
|
|
this.queryParams.endTime = this.formatDate(this.createTime[1])
|
|
|
}
|
|
}
|
|
|
- const data={
|
|
|
|
|
- ...this.queryParams,
|
|
|
|
|
- cabinetId:this.cabinetId,
|
|
|
|
|
- planId:this.$route.query.planId||this.planId,
|
|
|
|
|
|
|
+ // 更新 queryParams 从路由查询参数
|
|
|
|
|
+ if (this.$route.query.planName) {
|
|
|
|
|
+ this.queryParams.planName = this.$route.query.planName
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.$route.query.planId) {
|
|
|
|
|
+ this.queryParams.planId = this.$route.query.planId
|
|
|
|
|
+ }
|
|
|
|
|
+ // 更新 queryParams 从 props
|
|
|
|
|
+ if (this.planName) {
|
|
|
|
|
+ this.queryParams.planName = this.planName
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.planId) {
|
|
|
|
|
+ this.queryParams.planId = this.planId
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (this.$route.query.cabinetId) {
|
|
|
|
|
+ this.queryParams.cabinetId = this.$route.query.cabinetId
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.cabinetId) {
|
|
|
|
|
+ this.queryParams.cabinetId = this.cabinetId
|
|
|
|
|
+ }
|
|
|
|
|
+ const data = {
|
|
|
|
|
+ ...this.queryParams
|
|
|
}
|
|
}
|
|
|
listCheckRecord(data).then((response) => {
|
|
listCheckRecord(data).then((response) => {
|
|
|
- console.log(response,'response')
|
|
|
|
|
|
|
+ console.log(response, 'response')
|
|
|
this.RecordList = response.data.records
|
|
this.RecordList = response.data.records
|
|
|
|
|
|
|
|
this.total = response.data.total
|
|
this.total = response.data.total
|
|
@@ -567,7 +476,7 @@ export default {
|
|
|
size: -1
|
|
size: -1
|
|
|
}
|
|
}
|
|
|
listType(data).then((response) => {
|
|
listType(data).then((response) => {
|
|
|
- console.log(response,'物资类型树形结构')
|
|
|
|
|
|
|
+ console.log(response, '物资类型树形结构')
|
|
|
this.materialstypeOptions = this.handleTree(
|
|
this.materialstypeOptions = this.handleTree(
|
|
|
response.data.records,
|
|
response.data.records,
|
|
|
'materialsTypeId',
|
|
'materialsTypeId',
|
|
@@ -580,7 +489,7 @@ export default {
|
|
|
materialsCabinets() {
|
|
materialsCabinets() {
|
|
|
const data2 = {
|
|
const data2 = {
|
|
|
current: 1,
|
|
current: 1,
|
|
|
- size: -1,
|
|
|
|
|
|
|
+ size: -1
|
|
|
}
|
|
}
|
|
|
getIsMaterialsCabinets(data2).then((response) => {
|
|
getIsMaterialsCabinets(data2).then((response) => {
|
|
|
if (response?.data?.records) {
|
|
if (response?.data?.records) {
|
|
@@ -595,10 +504,10 @@ export default {
|
|
|
const data3 = {
|
|
const data3 = {
|
|
|
pasge: 1,
|
|
pasge: 1,
|
|
|
size: -1,
|
|
size: -1,
|
|
|
- parentId:'0'
|
|
|
|
|
|
|
+ parentId: '0'
|
|
|
}
|
|
}
|
|
|
listMarsDept(data3).then((response) => {
|
|
listMarsDept(data3).then((response) => {
|
|
|
- this.marsOptions = this.handleTree(response.data.records,"workstationId","parentId")
|
|
|
|
|
|
|
+ this.marsOptions = this.handleTree(response.data.records, 'workstationId', 'parentId')
|
|
|
})
|
|
})
|
|
|
const data1 = {
|
|
const data1 = {
|
|
|
pageSize: 999999999,
|
|
pageSize: 999999999,
|
|
@@ -616,7 +525,7 @@ export default {
|
|
|
this.planList = response.data.records.map((item) => {
|
|
this.planList = response.data.records.map((item) => {
|
|
|
return {
|
|
return {
|
|
|
label: item.planName,
|
|
label: item.planName,
|
|
|
- value: item.planId,
|
|
|
|
|
|
|
+ value: item.planId
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
@@ -651,17 +560,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 表单重置
|
|
// 表单重置
|
|
|
reset() {
|
|
reset() {
|
|
|
- this.form = {
|
|
|
|
|
- changeDate:'',
|
|
|
|
|
- changeUserId:'',
|
|
|
|
|
- checkUserName:'',
|
|
|
|
|
- materialsId:'',
|
|
|
|
|
- newMaterialsId:'',
|
|
|
|
|
- newMaterialsRfid:'',
|
|
|
|
|
- oldMaterialsId:'',
|
|
|
|
|
- oldMaterialsRfid:'',
|
|
|
|
|
- planId:''
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
this.resetForm('form')
|
|
this.resetForm('form')
|
|
|
this.autoGenFlag = false
|
|
this.autoGenFlag = false
|
|
|
},
|
|
},
|
|
@@ -675,7 +574,7 @@ export default {
|
|
|
this.resetForm('queryForm')
|
|
this.resetForm('queryForm')
|
|
|
this.queryParams.startTime = ''
|
|
this.queryParams.startTime = ''
|
|
|
this.queryParams.endTime = ''
|
|
this.queryParams.endTime = ''
|
|
|
- this.createTime=''
|
|
|
|
|
|
|
+ this.createTime = ''
|
|
|
this.handleQuery()
|
|
this.handleQuery()
|
|
|
},
|
|
},
|
|
|
// 多选框选中数据
|
|
// 多选框选中数据
|
|
@@ -689,7 +588,7 @@ export default {
|
|
|
handleAdd() {
|
|
handleAdd() {
|
|
|
this.reset()
|
|
this.reset()
|
|
|
this.open = true
|
|
this.open = true
|
|
|
- this.form.workstationId=null
|
|
|
|
|
|
|
+ this.form.workstationId = null
|
|
|
this.title = '新增检查记录'
|
|
this.title = '新增检查记录'
|
|
|
this.optType = 'add'
|
|
this.optType = 'add'
|
|
|
},
|
|
},
|
|
@@ -749,7 +648,7 @@ export default {
|
|
|
this.download('iscs/check/exportIsMaterialsCheckRecord', {
|
|
this.download('iscs/check/exportIsMaterialsCheckRecord', {
|
|
|
...this.queryParams
|
|
...this.queryParams
|
|
|
}, `records_${new Date().getTime()}.xlsx`)
|
|
}, `records_${new Date().getTime()}.xlsx`)
|
|
|
- },
|
|
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|