Merge pull request '更新bug' (#412) from projects/mes-zwq into projects/mes-test
Reviewed-on: #412
This commit is contained in:
commit
baede9ef34
@ -1,8 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: Do not edit
|
* @Author: Do not edit
|
||||||
* @Date: 2023-10-21 11:50:46
|
* @Date: 2023-10-21 11:50:46
|
||||||
* @LastEditTime: 2023-11-15 17:19:19
|
* @LastEditTime: 2024-12-27 15:20:14
|
||||||
* @LastEditors: DY
|
* @LastEditors: zwq
|
||||||
* @Description:
|
* @Description:
|
||||||
*/
|
*/
|
||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
@ -169,4 +169,12 @@ export function updateBatch(data) {
|
|||||||
method: 'put',
|
method: 'put',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 更新订单表与工单关联表 多对多
|
||||||
|
export function updateConCoreWOr(data) {
|
||||||
|
return request({
|
||||||
|
url: '/base/core-order-con-work-order/update',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
@ -23,6 +23,13 @@ export function getItemPageData(data) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getByEquId(id) {
|
||||||
|
return request({
|
||||||
|
url: '/base/equipment-maintain-program/getByEquId?id=' + id,
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
export function getItemData(id) {
|
export function getItemData(id) {
|
||||||
return request({
|
return request({
|
||||||
url: 'base/equipment-maintain-program/get?id=' + id,
|
url: 'base/equipment-maintain-program/get?id=' + id,
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { createPlanDet, updatePlanDet, getPlanDet } from '@/api/equipment/base/maintain/planconfig';
|
import { createPlanDet, updatePlanDet, getPlanDet } from '@/api/equipment/base/maintain/planconfig';
|
||||||
import { getEquipmentPage } from '@/api/base/equipment'
|
import { getEquipmentPage } from '@/api/base/equipment'
|
||||||
import { getItemPageData } from '@/api/equipment/base/maintain/items';
|
import { getByEquId } from '@/api/equipment/base/maintain/items';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
@ -94,20 +94,14 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
async handleChange(val) {
|
async handleChange(val) {
|
||||||
console.log(val);
|
// let equipmentTypeId = undefined
|
||||||
let equipmentTypeId = undefined
|
// this.eqList.forEach((ele) => {
|
||||||
this.eqList.forEach((ele) => {
|
// if (ele.id == val) {
|
||||||
if (ele.id == val) {
|
// equipmentTypeId = ele.equipmentTypeId
|
||||||
equipmentTypeId = ele.equipmentTypeId
|
// }
|
||||||
}
|
// })
|
||||||
})
|
const { code, data } = await getByEquId(val)
|
||||||
const { code, data } = await getItemPageData({
|
this.programList = data
|
||||||
pageNo: 1,
|
|
||||||
pageSize: 99,
|
|
||||||
equipmentTypeId: equipmentTypeId,
|
|
||||||
})
|
|
||||||
this.programList = data.list
|
|
||||||
console.log(data);
|
|
||||||
},
|
},
|
||||||
handleDecChange(val) {
|
handleDecChange(val) {
|
||||||
let maintenanceDes = undefined
|
let maintenanceDes = undefined
|
||||||
|
@ -70,6 +70,12 @@ import { getList,} from "@/api/base/qualityScrapType";
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
mixins: [basicAdd],
|
mixins: [basicAdd],
|
||||||
|
|
||||||
|
props: {
|
||||||
|
mainId: {
|
||||||
|
type: String,
|
||||||
|
},
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
urlOptions: {
|
urlOptions: {
|
||||||
@ -96,7 +102,7 @@ export default {
|
|||||||
id: undefined,
|
id: undefined,
|
||||||
program: undefined,
|
program: undefined,
|
||||||
resultType: undefined,
|
resultType: undefined,
|
||||||
equipmentTypeId: undefined,
|
mainId:this.mainId,
|
||||||
minValue: undefined,
|
minValue: undefined,
|
||||||
maxValue: undefined,
|
maxValue: undefined,
|
||||||
maintainResult:undefined,
|
maintainResult:undefined,
|
||||||
@ -117,7 +123,6 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getDict()
|
this.getDict()
|
||||||
console.log('我看看', this.dataForm)
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleClear() {
|
handleClear() {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2022-08-24 11:19:43
|
* @Date: 2022-08-24 11:19:43
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2024-07-19 14:47:02
|
* @LastEditTime: 2024-12-13 15:50:49
|
||||||
* @Description:
|
* @Description:
|
||||||
*/
|
*/
|
||||||
export default {
|
export default {
|
||||||
@ -28,10 +28,8 @@ export default {
|
|||||||
activated() {
|
activated() {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init(obj) {
|
init(id) {
|
||||||
console.log(obj);
|
this.dataForm.id = id || "";
|
||||||
this.dataForm.id = obj.id || "";
|
|
||||||
this.dataForm.equipmentTypeId = obj.equipmentTypeId || "";
|
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
if (this.urlOptions.getOption) {
|
if (this.urlOptions.getOption) {
|
||||||
this.getArr()
|
this.getArr()
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2024-07-19 09:49:22
|
* @Date: 2024-07-19 09:49:22
|
||||||
* @LastEditTime: 2024-07-22 09:17:31
|
* @LastEditTime: 2024-12-13 15:52:24
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zwq
|
||||||
* @Description:
|
* @Description:
|
||||||
*/
|
*/
|
||||||
export default {
|
export default {
|
||||||
@ -88,12 +88,8 @@ export default {
|
|||||||
if (val.type === "edit") {
|
if (val.type === "edit") {
|
||||||
this.addOrUpdateVisible = true;
|
this.addOrUpdateVisible = true;
|
||||||
this.addOrEditTitle = "编辑"
|
this.addOrEditTitle = "编辑"
|
||||||
let obj = {
|
|
||||||
id: val.data.id,
|
|
||||||
equipmentTypeId:val.data.equipmentTypeId
|
|
||||||
}
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.addOrUpdate.init(obj);
|
this.$refs.addOrUpdate.init(val.data.id);
|
||||||
});
|
});
|
||||||
} else if (val.type === "delete") {
|
} else if (val.type === "delete") {
|
||||||
this.deleteHandle(val.data.id, val.data.program, val.data._pageIndex)
|
this.deleteHandle(val.data.id, val.data.program, val.data._pageIndex)
|
||||||
|
@ -186,7 +186,7 @@ export default {
|
|||||||
handleDetail(row) {
|
handleDetail(row) {
|
||||||
this.showDetailVisible = true
|
this.showDetailVisible = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.showDetail.init(row.equipmentTypeId)
|
this.$refs.showDetail.init(row.id)
|
||||||
})
|
})
|
||||||
// alert('跳转到 保养记录')
|
// alert('跳转到 保养记录')
|
||||||
// console.log(row)
|
// console.log(row)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2024-07-12 13:28:21
|
* @Date: 2024-07-12 13:28:21
|
||||||
* @LastEditTime: 2024-07-23 14:00:38
|
* @LastEditTime: 2024-12-13 16:03:29
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zwq
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -22,7 +22,7 @@
|
|||||||
</el-drawer>
|
</el-drawer>
|
||||||
<base-dialog :dialogTitle="addOrEditTitle" :dialogVisible="addOrUpdateVisible" @cancel="handleCancel"
|
<base-dialog :dialogTitle="addOrEditTitle" :dialogVisible="addOrUpdateVisible" @cancel="handleCancel"
|
||||||
@confirm="handleConfirm" :before-close="handleCancel" width="30%">
|
@confirm="handleConfirm" :before-close="handleCancel" width="30%">
|
||||||
<add-or-update ref="addOrUpdate" @refreshDataList="successSubmit"></add-or-update>
|
<add-or-update ref="addOrUpdate" @refreshDataList="successSubmit" :main-id="queryParams.mainId"></add-or-update>
|
||||||
</base-dialog>
|
</base-dialog>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ export default {
|
|||||||
queryParams: {
|
queryParams: {
|
||||||
pageNo:1,
|
pageNo:1,
|
||||||
pageSize:10,
|
pageSize:10,
|
||||||
equipmentTypeId:null,
|
mainId:null,
|
||||||
},
|
},
|
||||||
tableProps,
|
tableProps,
|
||||||
basePath: 'base/equipment-maintain-program',
|
basePath: 'base/equipment-maintain-program',
|
||||||
@ -105,21 +105,18 @@ export default {
|
|||||||
},
|
},
|
||||||
getDataList(id) {
|
getDataList(id) {
|
||||||
this.dataListLoading = true;
|
this.dataListLoading = true;
|
||||||
this.queryParams.equipmentTypeId = id
|
this.queryParams.mainId = id
|
||||||
this.urlOptions.getDataListURL(this.listQuery).then(response => {
|
this.urlOptions.getDataListURL(this.queryParams).then(response => {
|
||||||
this.tableData = response.data.list;
|
this.tableData = response.data.list;
|
||||||
this.listQuery.total = response.data.total;
|
this.queryParams.total = response.data.total;
|
||||||
this.dataListLoading = false
|
this.dataListLoading = false
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.addOrUpdateVisible = true
|
this.addOrUpdateVisible = true
|
||||||
this.addOrEditTitle = '新增'
|
this.addOrEditTitle = '新增'
|
||||||
let obj = {
|
|
||||||
equipmentTypeId: this.queryParams.equipmentTypeId
|
|
||||||
}
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.addOrUpdate.init(obj)
|
this.$refs.addOrUpdate.init()
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
init(id) {
|
init(id) {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2021-11-18 14:16:25
|
* @Date: 2021-11-18 14:16:25
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2024-08-14 15:24:11
|
* @LastEditTime: 2024-12-12 09:54:25
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -83,7 +83,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8" v-if="showTime">
|
<el-col :span="8" v-if="showTime">
|
||||||
<el-form-item label="生产单位用时" prop="processTime">
|
<el-form-item label="生产单位用时(s)" prop="processTime">
|
||||||
<el-input
|
<el-input
|
||||||
v-model.number="dataForm.processTime"
|
v-model.number="dataForm.processTime"
|
||||||
type="number"
|
type="number"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2024-07-01 14:54:06
|
* @Date: 2024-07-01 14:54:06
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2024-08-21 11:19:51
|
* @LastEditTime: 2024-12-16 10:03:30
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -346,6 +346,7 @@ export default {
|
|||||||
this.listQuery.typeId = data.id || undefined;
|
this.listQuery.typeId = data.id || undefined;
|
||||||
this.listQuery.product = data.product;
|
this.listQuery.product = data.product;
|
||||||
this.$refs.searchBarForm.formInline.type = data.name || undefined;
|
this.$refs.searchBarForm.formInline.type = data.name || undefined;
|
||||||
|
this.getDataList()
|
||||||
},
|
},
|
||||||
// 新增节点
|
// 新增节点
|
||||||
append(data) {
|
append(data) {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2021-11-18 14:16:25
|
* @Date: 2021-11-18 14:16:25
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2024-10-14 09:26:53
|
* @LastEditTime: 2024-12-12 16:13:11
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -41,18 +41,19 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="物料批次" prop="materialDateId">
|
<el-form-item label="物料批次" prop="materialDate">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="dataForm.materialDateId"
|
v-model="dataForm.materialDate"
|
||||||
clearable
|
clearable
|
||||||
filterable
|
filterable
|
||||||
|
allow-create
|
||||||
placeholder="请选择物料批次"
|
placeholder="请选择物料批次"
|
||||||
style="width: 100%">
|
style="width: 100%">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in materialDateList"
|
v-for="dict in materialDateList"
|
||||||
:key="dict.id"
|
:key="dict.id"
|
||||||
:label="dict.code"
|
:label="dict.code"
|
||||||
:value="dict.id" />
|
:value="dict.code" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -147,7 +148,7 @@ import {
|
|||||||
getMaterialLog,
|
getMaterialLog,
|
||||||
getEqListAll,
|
getEqListAll,
|
||||||
} from '@/api/base/materialUseLog';
|
} from '@/api/base/materialUseLog';
|
||||||
import { getMaterialTree,getMaterialList } from '@/api/base/material';
|
import { getMaterialTree, getMaterialList } from '@/api/base/material';
|
||||||
import { getMaterDateList } from '@/api/base/materialDate';
|
import { getMaterDateList } from '@/api/base/materialDate';
|
||||||
import { listSimpleUsers } from '@/api/system/user';
|
import { listSimpleUsers } from '@/api/system/user';
|
||||||
|
|
||||||
@ -164,7 +165,7 @@ export default {
|
|||||||
id: undefined,
|
id: undefined,
|
||||||
materialId: undefined,
|
materialId: undefined,
|
||||||
materialCode: undefined,
|
materialCode: undefined,
|
||||||
materialDateId: undefined,
|
materialDate: undefined,
|
||||||
equipmentId: undefined,
|
equipmentId: undefined,
|
||||||
userName: undefined,
|
userName: undefined,
|
||||||
userNames: [],
|
userNames: [],
|
||||||
@ -208,15 +209,17 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
async getDictData() {
|
async getDictData() {
|
||||||
const materRes = await getMaterialTree(); //
|
const materRes = await getMaterialTree(); //
|
||||||
let typeId = materRes.data.find(item=>item.product === 0).id
|
let typeId = materRes.data.find((item) => item.product === 0).id;
|
||||||
const listQuery= {
|
const listQuery = {
|
||||||
typeId:typeId
|
typeId: typeId,
|
||||||
}
|
};
|
||||||
const materData = await getMaterialList(listQuery);
|
const materData = await getMaterialList(listQuery);
|
||||||
this.materialList = [];
|
this.materialList = [];
|
||||||
this.materialList = materData.data;
|
this.materialList = materData.data;
|
||||||
const dateRes = await getMaterDateList();
|
if (!this.dataForm.id) {
|
||||||
this.materialDateList = dateRes.data;
|
const dateRes = await getMaterDateList();
|
||||||
|
this.materialDateList = dateRes.data;
|
||||||
|
}
|
||||||
const eqRes = await getEqListAll();
|
const eqRes = await getEqListAll();
|
||||||
this.eqList = eqRes.data;
|
this.eqList = eqRes.data;
|
||||||
const workerRes = await listSimpleUsers();
|
const workerRes = await listSimpleUsers();
|
||||||
@ -257,7 +260,7 @@ export default {
|
|||||||
this.dataForm.id = response.data.id;
|
this.dataForm.id = response.data.id;
|
||||||
this.dataForm.materialCode = response.data.materialCode;
|
this.dataForm.materialCode = response.data.materialCode;
|
||||||
this.dataForm.materialId = response.data.materialId;
|
this.dataForm.materialId = response.data.materialId;
|
||||||
this.dataForm.materialDateId = response.data.materialDateId;
|
this.dataForm.materialDate = response.data.materialDateName;
|
||||||
this.dataForm.equipmentId = response.data.equipmentId;
|
this.dataForm.equipmentId = response.data.equipmentId;
|
||||||
this.dataForm.useTime = response.data.useTime;
|
this.dataForm.useTime = response.data.useTime;
|
||||||
// this.dataForm.userName = response.data.userName
|
// this.dataForm.userName = response.data.userName
|
||||||
@ -265,6 +268,11 @@ export default {
|
|||||||
this.dataForm.source = response.data.source;
|
this.dataForm.source = response.data.source;
|
||||||
this.dataForm.remark = response.data.remark;
|
this.dataForm.remark = response.data.remark;
|
||||||
this.dataForm.userNames = response.data.userName.split(',');
|
this.dataForm.userNames = response.data.userName.split(',');
|
||||||
|
getMaterDateList({ materialId: this.dataForm.materialId }).then(
|
||||||
|
(res) => {
|
||||||
|
this.materialDateList = res.data;
|
||||||
|
}
|
||||||
|
);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,15 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
|
<!-- 搜索工作栏 -->
|
||||||
<!-- 搜索工作栏 -->
|
|
||||||
<search-bar
|
<search-bar
|
||||||
:formConfigs="formConfig"
|
:formConfigs="formConfig"
|
||||||
ref="searchBarForm"
|
ref="searchBarForm"
|
||||||
@headBtnClick="buttonClick" />
|
@headBtnClick="buttonClick" />
|
||||||
|
|
||||||
<!-- 列表 -->
|
<!-- 列表 -->
|
||||||
<base-table
|
<base-table
|
||||||
v-loading="dataListLoading"
|
v-loading="dataListLoading"
|
||||||
:table-props="tableProps"
|
:table-props="tableProps"
|
||||||
:page="listQuery.pageNo"
|
:page="listQuery.pageNo"
|
||||||
:limit="listQuery.pageSize"
|
:limit="listQuery.pageSize"
|
||||||
@ -49,13 +48,11 @@ import AddOrUpdate from './add-or-updata';
|
|||||||
import basicPage from '@/mixins/basic-page';
|
import basicPage from '@/mixins/basic-page';
|
||||||
import codeFilter from '@/mixins/code-filter';
|
import codeFilter from '@/mixins/code-filter';
|
||||||
import {
|
import {
|
||||||
deleteWarehouseArea,
|
deleteWarehouseArea,
|
||||||
getWarehouseAreaPage,
|
getWarehouseAreaPage,
|
||||||
getWarehouseAreaListAll
|
getWarehouseAreaListAll,
|
||||||
} from "@/api/warehouse/warehouse-area-setup";
|
} from '@/api/warehouse/warehouse-area-setup';
|
||||||
import {
|
import { getWarehouseList } from '@/api/warehouse/warehouse-setup';
|
||||||
getWarehouseList
|
|
||||||
} from "@/api/warehouse/warehouse-setup";
|
|
||||||
import tableHeightMixin from '@/mixins/tableHeightMixin';
|
import tableHeightMixin from '@/mixins/tableHeightMixin';
|
||||||
|
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
@ -79,7 +76,7 @@ const tableProps = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
mixins: [basicPage,tableHeightMixin],
|
mixins: [basicPage, tableHeightMixin],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
urlOptions: {
|
urlOptions: {
|
||||||
@ -94,13 +91,13 @@ export default {
|
|||||||
btnName: '编辑',
|
btnName: '编辑',
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
this.$auth.hasPermi(`warehouse:warehouse-area-setup:delete`)
|
this.$auth.hasPermi(`warehouse:warehouse-area-setup:delete`)
|
||||||
? {
|
? {
|
||||||
type: 'delete',
|
type: 'delete',
|
||||||
btnName: '删除',
|
btnName: '删除',
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
].filter((v)=>v),
|
].filter((v) => v),
|
||||||
tableData: [],
|
tableData: [],
|
||||||
formConfig: [
|
formConfig: [
|
||||||
{
|
{
|
||||||
@ -129,7 +126,9 @@ export default {
|
|||||||
type: 'separate',
|
type: 'separate',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('warehouse:warehouse-area-setup:create') ? 'button' : '',
|
type: this.$auth.hasPermi('warehouse:warehouse-area-setup:create')
|
||||||
|
? 'button'
|
||||||
|
: '',
|
||||||
btnName: '新增',
|
btnName: '新增',
|
||||||
name: 'add',
|
name: 'add',
|
||||||
color: 'success',
|
color: 'success',
|
||||||
@ -148,7 +147,7 @@ export default {
|
|||||||
getWarehouseAreaListAll().then((response) => {
|
getWarehouseAreaListAll().then((response) => {
|
||||||
this.formConfig[1].selectOptions = response.data;
|
this.formConfig[1].selectOptions = response.data;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
buttonClick(val) {
|
buttonClick(val) {
|
||||||
switch (val.btnName) {
|
switch (val.btnName) {
|
||||||
@ -180,6 +179,22 @@ export default {
|
|||||||
console.log(val);
|
console.log(val);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 获取数据列表
|
||||||
|
getDataList() {
|
||||||
|
this.dataListLoading = true;
|
||||||
|
getWarehouseAreaListAll().then((response) => { //刷新搜索框库区
|
||||||
|
this.formConfig[1].selectOptions = response.data;
|
||||||
|
});
|
||||||
|
this.urlOptions.getDataListURL(this.listQuery).then(response => {
|
||||||
|
if (response.hasOwnProperty('data')) {
|
||||||
|
this.tableData = response.data.list;
|
||||||
|
this.listQuery.total = response.data.total;
|
||||||
|
} else {
|
||||||
|
this.tableData = []
|
||||||
|
}
|
||||||
|
this.dataListLoading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2023-08-01 13:52:10
|
* @Date: 2023-08-01 13:52:10
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2024-08-21 10:26:21
|
* @LastEditTime: 2024-12-16 16:30:12
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -35,7 +35,7 @@
|
|||||||
<el-form-item label="库区名称" prop="areaId">
|
<el-form-item label="库区名称" prop="areaId">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="dataForm.areaId"
|
v-model="dataForm.areaId"
|
||||||
:disabled="!areaArr.length>0"
|
:disabled="!areaArr.length > 0"
|
||||||
filterable
|
filterable
|
||||||
:style="{ width: '100%' }"
|
:style="{ width: '100%' }"
|
||||||
@change="setAreaType"
|
@change="setAreaType"
|
||||||
@ -204,18 +204,22 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
getWarehouseList().then((response) => {
|
getWarehouseList().then((response) => {
|
||||||
this.warehouseArr = response.data;
|
this.warehouseArr = response.data.filter((item) =>
|
||||||
|
item.type === 1
|
||||||
|
);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getAreaList(){
|
getAreaList() {
|
||||||
getWarehouseAreaList(this.dataForm.warehouseId).then((response) => {
|
getWarehouseAreaList(this.dataForm.warehouseId).then((response) => {
|
||||||
this.areaArr = response.data;
|
this.areaArr = response.data;
|
||||||
if(this.areaArr.length===0){
|
this.dataForm.areaId = null
|
||||||
this.$message('该仓库下暂无库区');
|
this.dataForm.areaType = null
|
||||||
}
|
if (this.areaArr.length === 0) {
|
||||||
});
|
this.$message('该仓库下暂无库区');
|
||||||
},
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
setAreaType() {
|
setAreaType() {
|
||||||
if (this.dataForm.areaId) {
|
if (this.dataForm.areaId) {
|
||||||
this.dataForm.areaType = this.areaArr.find(
|
this.dataForm.areaType = this.areaArr.find(
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2024-08-02 16:26:58
|
* @Date: 2024-08-02 16:26:58
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2024-08-08 16:38:53
|
* @LastEditTime: 2024-12-19 14:15:06
|
||||||
* @Description:,
|
* @Description:,
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -103,7 +103,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
getUserProfile().then((response) => {
|
getUserProfile().then((response) => {
|
||||||
this.dataForm.operator = response.data.username;
|
this.dataForm.operator = response.data.nickname;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -67,6 +67,14 @@ const tableProps = [
|
|||||||
prop: 'warehouseName',
|
prop: 'warehouseName',
|
||||||
label: '仓库名称',
|
label: '仓库名称',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
prop: 'areaName',
|
||||||
|
label: '库区名称',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: 'areaType',
|
||||||
|
label: '库区类型',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
label: '库位名称',
|
label: '库位名称',
|
||||||
@ -95,6 +103,10 @@ const tableProps = [
|
|||||||
filter: parseTime,
|
filter: parseTime,
|
||||||
width: 150,
|
width: 150,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
prop: 'goodsName',
|
||||||
|
label: '物品名称',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
label: '备注',
|
label: '备注',
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
v-if="tableBtn.length"
|
v-if="tableBtn.length"
|
||||||
slot="handleBtn"
|
slot="handleBtn"
|
||||||
:width="90"
|
:width="90"
|
||||||
label="库位详情"
|
label="详情"
|
||||||
:method-list="tableBtn"
|
:method-list="tableBtn"
|
||||||
@clickBtn="handleClick" />
|
@clickBtn="handleClick" />
|
||||||
</base-table>
|
</base-table>
|
||||||
@ -70,10 +70,12 @@ const tableProps = [
|
|||||||
{
|
{
|
||||||
prop: 'oldCode',
|
prop: 'oldCode',
|
||||||
label: '源库位编码',
|
label: '源库位编码',
|
||||||
|
width: 150,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'palletCode',
|
prop: 'palletCode',
|
||||||
label: '移动托盘编码',
|
label: '移动托盘编码',
|
||||||
|
width: 150,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'goodName',
|
prop: 'goodName',
|
||||||
|
Loading…
Reference in New Issue
Block a user