projects/mes-zhp #418

Merged
juzi merged 4 commits from projects/mes-zhp into projects/mes-test 2025-01-08 16:21:21 +08:00
44 changed files with 1560 additions and 1077 deletions
Showing only changes of commit 00f54f3de6 - Show all commits

View File

@ -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'
@ -161,3 +161,20 @@ export function createConCoreWOr(data) {
data: data data: data
}) })
} }
// 更新分配产量
export function updateBatch(data) {
return request({
url: '/base/core-order-con-work-order/updateBatch',
method: 'put',
data: data
})
}
// 更新订单表与工单关联表 多对多
export function updateConCoreWOr(data) {
return request({
url: '/base/core-order-con-work-order/update',
method: 'put',
data: data
})
}

View File

@ -8,7 +8,13 @@ export function createGroupRule(data) {
data: data data: data
}) })
} }
// 作废排班规则
export function disableGroupRule(id) {
return request({
url: '/base/group-scheduling-rule/disable?id=' + id,
method: 'post',
})
}
// 更新排班规则基础信息 // 更新排班规则基础信息
export function updateGroupRule(data) { export function updateGroupRule(data) {
return request({ return request({

View File

@ -1,8 +1,16 @@
import request from '@/utils/request' import request from '@/utils/request'
// 获得产品列表 // 获得物料列表(包括产品)
export function getProductAll() { export function getProductAll() {
return request({ return request({
url: '/base/core-product-material/listAll', url: '/base/core-product-material/listAll',
method: 'get' method: 'get'
}) })
} }
// 获得产品列表
export function getProductList() {
return request({
url: '/base/core-product-material/listAllProduct',
method: 'get'
})
}

View File

@ -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,

View File

@ -38,15 +38,8 @@
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span='6'> <el-col :span='6'>
<el-form-item label="发货负责人" prop="deliveryPersonId"> <el-form-item label="发货负责人" prop="deliveryPerson">
<el-select v-model="form.deliveryPersonId" placeholder="请选择" style="width: 100%;" filterable> <el-input v-model="form.deliveryPerson"></el-input>
<el-option
v-for="item in personList"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span='6'> <el-col :span='6'>
@ -75,7 +68,6 @@
</el-form> </el-form>
</template> </template>
<script> <script>
import { getWorkerList } from '@/api/base/worker'
import { deliveryLogCreate, deliveryLogUpdate, getDeliveryLog, listOrderList } from '@/api/base/delivery' import { deliveryLogCreate, deliveryLogUpdate, getDeliveryLog, listOrderList } from '@/api/base/delivery'
export default { export default {
name: 'AddOrUpdate', name: 'AddOrUpdate',
@ -87,7 +79,7 @@ export default {
name: '', name: '',
code: '', code: '',
deliveryTime: null, deliveryTime: null,
deliveryPersonId: '', deliveryPerson: '',
principal: '', principal: '',
principalCall: '', principalCall: '',
principalCost: 0.00, principalCost: 0.00,
@ -100,7 +92,6 @@ export default {
code: [{ required: true, message: "发货单号不能为空", trigger: "blur" }] code: [{ required: true, message: "发货单号不能为空", trigger: "blur" }]
}, },
orderList: [], orderList: [],
personList: []
} }
}, },
methods: { methods: {
@ -118,9 +109,6 @@ export default {
listOrderList().then(res => { listOrderList().then(res => {
this.orderList = res.data || [] this.orderList = res.data || []
}) })
getWorkerList().then(res => {
this.personList = res.data || []
})
}, },
submitForm() { submitForm() {
this.$refs['addOrUpdate'].validate((valid) => { this.$refs['addOrUpdate'].validate((valid) => {

View File

@ -1,8 +1,8 @@
<!-- <!--
* @Author: zwq * @Author: zwq
* @Date: 2021-11-18 14:16:25 * @Date: 2021-11-18 14:16:25
* @LastEditors: zhp * @LastEditors: zwq
* @LastEditTime: 2024-07-31 09:48:36 * @LastEditTime: 2024-11-18 09:51:03
* @Description: * @Description:
--> -->
<template> <template>
@ -393,9 +393,12 @@ export default {
// } // }
this.$axios({ this.$axios({
url: url:
`/base/equipment-check-order/confirm?confirmPerson=${this.$store.getters.nickname}`, `/base/equipment-check-order/confirm`,
method: 'put', method: 'put',
data: [this.dataForm.id], data: {
ids: [this.dataForm.id],
confirmBy: this.$store.getters.nickname,
},
}).then(res =>{ }).then(res =>{
if (res.code == 0) { if (res.code == 0) {
this.visible = false; this.visible = false;

View File

@ -42,9 +42,7 @@
import AddOrUpdate from './add-or-updata'; import AddOrUpdate from './add-or-updata';
import moment from 'moment'; import moment from 'moment';
import basicPageMixin from '@/mixins/lb/basicPageMixin'; import basicPageMixin from '@/mixins/lb/basicPageMixin';
import { import { exportCheckOrderExcel } from '@/api/equipment/base/maintain/record';
exportCheckOrderExcel,
} from '@/api/equipment/base/maintain/record';
import WaitingListTable from './WaitingListTable.vue'; import WaitingListTable from './WaitingListTable.vue';
// const timeFilter = (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'); // const timeFilter = (val) => moment(val).format('yyyy-MM-DD HH:mm:ss');
@ -76,16 +74,14 @@ export default {
name: 'Confirm', name: 'Confirm',
components: { components: {
WaitingListTable, WaitingListTable,
AddOrUpdate AddOrUpdate,
}, },
mixins: [basicPageMixin], mixins: [basicPageMixin],
data() { data() {
return { return {
addOrUpdateVisible: false, addOrUpdateVisible: false,
recordDetailVisible: false, recordDetailVisible: false,
searchBarKeys: [ searchBarKeys: ['name'],
'name'
],
tobeConfirmedIdList: [], tobeConfirmedIdList: [],
searchBarFormConfig: [ searchBarFormConfig: [
{ {
@ -100,46 +96,51 @@ export default {
name: 'search', name: 'search',
color: 'primary', color: 'primary',
}, },
{
type: (this.$auth.hasPermiAnd([
'equipment:check-record:create',
'base:core-worker:query',
'base:core-production-line:query',
'base:core-department:query'
]) || this.$auth.hasPermi('equipment:check-record:update') || this.$auth.hasPermi('equipment:check-record:export')) ? 'separate' : '',
},
{
type: this.$auth.hasPermiAnd([
'equipment:check-record:create',
'base:core-worker:query',
'base:core-production-line:query',
'base:core-department:query'
])
? 'button'
: '',
btnName: '新增',
name: 'add',
plain: true,
color: 'success',
},
{ {
type: this.$auth.hasPermi('equipment:check-record:update') type:
this.$auth.hasPermiAnd([
'equipment:check-record:create',
'base:core-worker:query',
'base:core-production-line:query',
'base:core-department:query',
]) ||
this.$auth.hasPermi('equipment:check-record:update') ||
this.$auth.hasPermi('equipment:check-record:export')
? 'separate'
: '',
},
{
type: this.$auth.hasPermiAnd([
'equipment:check-record:create',
'base:core-worker:query',
'base:core-production-line:query',
'base:core-department:query',
])
? 'button'
: '',
btnName: '新增',
name: 'add',
plain: true,
color: 'success',
},
{
type: this.$auth.hasPermi('equipment:check-record:update')
? 'button' ? 'button'
: '', : '',
btnName: '巡检人批量确认', btnName: '巡检人批量确认',
name: 'batchConfirm', name: 'batchConfirm',
color: 'primary', color: 'primary',
plain: true, plain: true,
}, },
{ {
type: this.$auth.hasPermi('equipment:check-record:update') type: this.$auth.hasPermi('equipment:check-record:update')
? 'button' ? 'button'
: '', : '',
btnName: '确认人批量确认', btnName: '确认人批量确认',
name: 'batchConfirm2', name: 'batchConfirm2',
color: 'primary', color: 'primary',
plain: true, plain: true,
}, },
// { // {
// type: this.$auth.hasPermi('equipment:check-record:export') // type: this.$auth.hasPermi('equipment:check-record:export')
// ? 'button' // ? 'button'
@ -211,11 +212,14 @@ export default {
// } // }
return this.$axios({ return this.$axios({
// url: `/base/equipment-check-order/confirm?confirmPerson=${this.$store.getters.nickname}` + checkPersonParam, // url: `/base/equipment-check-order/confirm?confirmPerson=${this.$store.getters.nickname}` + checkPersonParam,
url: `/base/equipment-check-order/confirm?confirmPerson=${this.$store.getters.nickname}`, url: `/base/equipment-check-order/confirm`,
method: 'put', method: 'put',
data: this.$refs['waiting-list-table'].selectedPlan.map( data: {
(item) => item.id ids: this.$refs['waiting-list-table'].selectedPlan.map(
), (item) => item.id
),
confirmBy: this.$store.getters.nickname,
},
}); });
}) })
.then((res) => { .then((res) => {
@ -223,35 +227,38 @@ export default {
res.code == 0 && this.$modal.msgSuccess('确认成功'); res.code == 0 && this.$modal.msgSuccess('确认成功');
res.code != 0 && this.$modal.msgError('确认失败'); res.code != 0 && this.$modal.msgError('确认失败');
}) })
.catch(() => { }); .catch(() => {});
case 'batchConfirm2': case 'batchConfirm2':
if (this.$refs['waiting-list-table'].selectedPlan.length == 0) { if (this.$refs['waiting-list-table'].selectedPlan.length == 0) {
this.$message.warning('请选择待确认的设备巡检单'); this.$message.warning('请选择待确认的设备巡检单');
return; return;
} }
this.$modal this.$modal
.confirm('是否确认所有选中巡检单"?') .confirm('是否确认所有选中巡检单"?')
.then(() => { .then(() => {
// let checkPersonParam = ''; // let checkPersonParam = '';
// if (!row.checkPerson || row.checkPerson.trim() == '') { // if (!row.checkPerson || row.checkPerson.trim() == '') {
// /** */ // /** */
// checkPersonParam = `&checkPerson=${this.$store.getters.nickname}`; // checkPersonParam = `&checkPerson=${this.$store.getters.nickname}`;
// } // }
return this.$axios({ return this.$axios({
// url: `/base/equipment-check-order/confirm?confirmPerson=${this.$store.getters.nickname}` + checkPersonParam, // url: `/base/equipment-check-order/confirm?confirmPerson=${this.$store.getters.nickname}` + checkPersonParam,
url: `/base/equipment-check-order/confirm2?confirmPerson=${this.$store.getters.nickname}`, url: `/base/equipment-check-order/confirm2`,
method: 'put', method: 'put',
data: this.$refs['waiting-list-table'].selectedPlan.map( data: {
(item) => item.id ids: this.$refs['waiting-list-table'].selectedPlan.map(
), (item) => item.id
}); ),
}) confirmBy: this.$store.getters.nickname,
.then((res) => { },
this.getList(); });
res.code == 0 && this.$modal.msgSuccess('确认成功'); })
res.code != 0 && this.$modal.msgError('确认失败'); .then((res) => {
}) this.getList();
.catch(() => { }); res.code == 0 && this.$modal.msgSuccess('确认成功');
res.code != 0 && this.$modal.msgError('确认失败');
})
.catch(() => {});
break; break;
} }
}, },
@ -311,7 +318,7 @@ export default {
}, },
handleSearchBarChange({ param, value }) { handleSearchBarChange({ param, value }) {
console.log('122', param) console.log('122', param);
// if ('specialType' === param) { // if ('specialType' === param) {
// if (!value) { // if (!value) {
// this.setSearchBarEquipmentList(this.allSpecialEquipments); // this.setSearchBarEquipmentList(this.allSpecialEquipments);
@ -327,7 +334,7 @@ export default {
this.loading = true; this.loading = true;
// //
this.recv({ this.recv({
...this.queryParams ...this.queryParams,
}).then((response) => { }).then((response) => {
this.list = response.data.list; this.list = response.data.list;
this.total = response.data.total; this.total = response.data.total;
@ -376,18 +383,18 @@ export default {
// this.title = ''; // this.title = '';
// this.addOrEditTitle = ''; // this.addOrEditTitle = '';
this.addOrUpdateVisible = true; this.addOrUpdateVisible = true;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.addOrUpdate.init(); this.$refs.addOrUpdate.init();
}); });
}, },
// / // /
// addOrUpdateHandle(id) { // addOrUpdateHandle(id) {
// this.addOrUpdateVisible = true; // this.addOrUpdateVisible = true;
// this.$nextTick(() => { // this.$nextTick(() => {
// this.$refs.addOrUpdate.init(id); // this.$refs.addOrUpdate.init(id);
// }); // });
// }, // },
getConfirmed() { getConfirmed() {
return this.$confirm('是否直接确认巡检记录', '提示', { return this.$confirm('是否直接确认巡检记录', '提示', {
@ -462,10 +469,12 @@ export default {
// checkPersonParam = `&checkPerson=${row.checkPerson}` // checkPersonParam = `&checkPerson=${row.checkPerson}`
// } // }
return this.$axios({ return this.$axios({
url: url: `/base/equipment-check-order/confirm`,
`/base/equipment-check-order/confirm?confirmPerson=${this.$store.getters.nickname}`,
method: 'put', method: 'put',
data: [row.id], data: {
ids: [row.id],
confirmBy: this.$store.getters.nickname,
},
}); });
}) })
.then((res) => { .then((res) => {
@ -478,9 +487,9 @@ export default {
/** 编辑 */ /** 编辑 */
async handleEdit(row) { async handleEdit(row) {
this.addOrUpdateVisible = true; this.addOrUpdateVisible = true;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.addOrUpdate.init(row.id); this.$refs.addOrUpdate.init(row.id);
}); });
// this.reset(); // this.reset();
// if (row.relatePlan == 1) { // if (row.relatePlan == 1) {
// // // //
@ -501,9 +510,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
this.$modal this.$modal
.confirm( .confirm('是否确认删除巡检单名称为"' + row.name + '"的数据项?')
'是否确认删除巡检单名称为"' + row.name + '"的数据项?'
)
.then(() => { .then(() => {
return this.$axios({ return this.$axios({
url: '/base/equipment-check-order/delete?id=' + row.id, url: '/base/equipment-check-order/delete?id=' + row.id,
@ -518,9 +525,9 @@ export default {
}, },
handleDetail(row) { handleDetail(row) {
this.addOrUpdateVisible = true; this.addOrUpdateVisible = true;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.addOrUpdate.init(row.id, true); this.$refs.addOrUpdate.init(row.id, true);
}); });
// this.recordDetailVisible = true; // this.recordDetailVisible = true;
// this.$nextTick(() => { // this.$nextTick(() => {
// this.$refs.recordDetailDrawer.show({ // this.$refs.recordDetailDrawer.show({

View File

@ -392,10 +392,12 @@ export default {
console.log('111', confirm) console.log('111', confirm)
this.$axios({ this.$axios({
url: url:
'/base/equipment-maintain-log/confirm?confirmPerson=' + '/base/equipment-maintain-log/confirm',
this.$store.getters.userId,
method: 'put', method: 'put',
data: [this.form.id], data: {
ids: [this.form.id],
confirmBy: this.$store.getters.nickname,
},
}).then(res =>{ }).then(res =>{
if (res.code == 0) { if (res.code == 0) {
this.visible = false; this.visible = false;

View File

@ -287,9 +287,12 @@ export default {
return this.$axios({ return this.$axios({
url: '/base/equipment-maintain-log/confirm', url: '/base/equipment-maintain-log/confirm',
method: 'put', method: 'put',
data: this.$refs['waiting-list-table'].selectedPlan.map( data:{
(item) => item.id ids: this.$refs['waiting-list-table'].selectedPlan.map(
), (item) => item.id
),
confirmBy: this.$store.getters.nickname,
},
}); });
// if (res.code == 0) { // if (res.code == 0) {
// this.$message.success(''); // this.$message.success('');
@ -313,9 +316,12 @@ export default {
return this.$axios({ return this.$axios({
url: '/base/equipment-maintain-log/confirm2', url: '/base/equipment-maintain-log/confirm2',
method: 'put', method: 'put',
data: this.$refs['waiting-list-table'].selectedPlan.map( data: {
(item) => item.id ids: this.$refs['waiting-list-table'].selectedPlan.map(
), (item) => item.id
),
confirmBy: this.$store.getters.nickname,
},
}); });
// if (res.code == 0) { // if (res.code == 0) {
// this.$message.success(''); // this.$message.success('');
@ -547,7 +553,10 @@ export default {
return this.$axios({ return this.$axios({
url: '/base/equipment-maintain-log/confirm', url: '/base/equipment-maintain-log/confirm',
method: 'put', method: 'put',
data: [row.id], data: {
ids: [row.id],
confirmBy: this.$store.getters.nickname,
},
}); });
// if (res.code == 0) { // if (res.code == 0) {
// this.$message.success(''); // this.$message.success('');

View File

@ -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

View File

@ -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() {

View File

@ -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()

View File

@ -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)

View File

@ -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)

View File

@ -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) {

View File

@ -1,8 +1,8 @@
<!-- <!--
filename: index.vue filename: index.vue
author: liubin author: liubin
date: 2023-10-19 10:03:42 date: 2023-10-19 10:03:42
description: description:
--> -->
<template> <template>
@ -189,7 +189,7 @@ export default {
input: true, input: true,
label: '工艺编码', label: '工艺编码',
prop: 'code', prop: 'code',
// url: '/base/core-equipment/getCode', url: '/extend/process-flow/getCode',
}, },
], ],
[ [

View File

@ -76,10 +76,10 @@ const tableProps = [
label: '班次状态', label: '班次状态',
subcomponent: StatusBtn, subcomponent: StatusBtn,
}, },
{ // {
prop: 'remark', // prop: 'remark',
label: '备注', // label: '',
}, // },
]; ];
export default { export default {
name: 'GroupClass', name: 'GroupClass',

View File

@ -82,7 +82,7 @@
</div> </div>
<!-- 班次班组 --> <!-- 班次班组 -->
<!-- class有两个样式一个是类似class1还有个是选中红框显示 --> <!-- class有两个样式一个是类似class1还有个是选中红框显示 -->
<el-row <!-- <el-row
:gutter="2" :gutter="2"
:class=" :class="
'class' + 'class' +
@ -92,6 +92,14 @@
: '') : '')
" "
v-for="(item, index) in list[Number(data.day.split('-')[2])]" v-for="(item, index) in list[Number(data.day.split('-')[2])]"
:key="index"> -->
<el-row
:gutter="2"
:class="
'class' +
(index + 1)
"
v-for="(item, index) in list[Number(data.day.split('-')[2])]"
:key="index"> :key="index">
<el-col :span="12"> <el-col :span="12">
<div class="selectDiv"> <div class="selectDiv">
@ -141,6 +149,9 @@
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<div v-else style='font-size: 20px;font-weight: 500;text-align: right;'>
{{ Number(data.day.split('-')[2]) }}
</div>
</template> </template>
</el-calendar> </el-calendar>
</div> </div>

View File

@ -211,6 +211,9 @@ export default {
this.$modal.msgSuccess('操作成功'); this.$modal.msgSuccess('操作成功');
this.$emit('successSubmit'); this.$emit('successSubmit');
}); });
}else{
this.$modal.msgSuccess('操作成功');
this.$emit('successSubmit');
} }
} }
}); });
@ -226,6 +229,9 @@ export default {
this.$modal.msgSuccess('操作成功'); this.$modal.msgSuccess('操作成功');
this.$emit('successSubmit'); this.$emit('successSubmit');
}); });
}else{
this.$modal.msgSuccess('操作成功');
this.$emit('successSubmit');
} }
} }
}); });

View File

@ -176,7 +176,7 @@ export default {
if (res.code === 0 && res.data.list && res.data.list.length > 0) { if (res.code === 0 && res.data.list && res.data.list.length > 0) {
res.data.list.forEach(item => { res.data.list.forEach(item => {
if(item.isProduction){ if(item.isProduction){
item.str = item.strList?item.strList.join(','):'-' item.str = item.strList?item.strList.join(''):'-'
} }
}); });
this.list = res.data.list; this.list = res.data.list;

View File

@ -44,6 +44,7 @@ import {
deleteGroupRule, deleteGroupRule,
updateGroupRule, updateGroupRule,
getGroupRule, getGroupRule,
disableGroupRule
} from '@/api/base/groupSchedulingRule'; } from '@/api/base/groupSchedulingRule';
import schedulingRuleConfigAdd from './components/schedulingRuleConfigAdd.vue'; import schedulingRuleConfigAdd from './components/schedulingRuleConfigAdd.vue';
import { formatDate } from '@/utils'; import { formatDate } from '@/utils';
@ -231,14 +232,9 @@ export default {
'是否确认作废序号为"' + row.planName + '"的数据项?' '是否确认作废序号为"' + row.planName + '"的数据项?'
,'提示') ,'提示')
.then(() => { .then(() => {
getGroupRule(row.id).then((response) => { disableGroupRule(row.id).then((response) => {
let datas = response.data;
datas.list = datas.sequenceList;
datas.enabled = 0;
updateGroupRule(datas).then(() => {
_this.getList(); _this.getList();
_this.$modal.msgSuccess('操作成功'); _this.$modal.msgSuccess('操作成功');
});
}); });
}) })
.catch(() => {}); .catch(() => {});

View File

@ -18,7 +18,7 @@
v-if="tableBtn.length" v-if="tableBtn.length"
slot="handleBtn" slot="handleBtn"
:width="80" :width="80"
label="操作" label="生产情况"
:method-list="tableBtn" :method-list="tableBtn"
@clickBtn="handleClick" @clickBtn="handleClick"
/> />
@ -122,8 +122,8 @@ export default {
tableBtn: [ tableBtn: [
this.$auth.hasPermi('base:team-production:detail') this.$auth.hasPermi('base:team-production:detail')
? { ? {
type: 'detail', type: 'prodDetail',
btnName: '详情' btnName: '查看'
} }
: undefined : undefined
].filter((v) => v), ].filter((v) => v),

View File

@ -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"

View File

@ -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) {

View File

@ -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 {
} }

View File

@ -8,7 +8,7 @@
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="6"> <el-col :span="6">
<el-form-item label="工单模式"> <el-form-item label="工单模式">
<el-radio-group v-model="isBind"> <el-radio-group v-model="isBind" @input='toggleWay'>
<el-radio :label="true">绑定工单</el-radio> <el-radio :label="true">绑定工单</el-radio>
<el-radio :label="false">新增工单</el-radio> <el-radio :label="false">新增工单</el-radio>
</el-radio-group> </el-radio-group>
@ -48,16 +48,19 @@
<el-option <el-option
v-for="item in productList" v-for="item in productList"
:key="item.id" :key="item.id"
:label="item.name + ' | ' + item.specifications" :label="item.name"
:value="item.id"> :value="item.id"/>
<span style="float: left">{{ item.name }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">
{{ item.specifications }}
</span>
</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6">
<el-form-item label="产品规格" prop="specifications">
<el-input
v-model="form.specifications"
placeholder="请输入产品规格"
disabled />
</el-form-item>
</el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="计划开始时间"> <el-form-item label="计划开始时间">
<el-date-picker <el-date-picker
@ -100,33 +103,6 @@
style="width: 100%"></el-input-number> style="width: 100%"></el-input-number>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6">
<el-form-item label="关联工艺" prop="processFlowId">
<el-select
v-model="form.processFlowId"
placeholder="请选择"
disabled
style="width: 100%">
<el-option
v-for="item in processFlowList"
:key="item.id"
:label="item.name"
:value="item.id"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="物料计算方式" prop="materialMethod">
<el-select
v-model="form.materialMethod"
placeholder="请选择"
style="width: 100%"
disabled>
<el-option label="产品基础BOM" :value="1"></el-option>
<el-option label="工艺扩展BOM" :value="2"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="优先级" prop="priority"> <el-form-item label="优先级" prop="priority">
<el-select <el-select
@ -158,15 +134,14 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="关联产线" prop="productLineId"> <el-form-item label="负责部门" prop="deptId">
<el-select <el-select
v-model="form.productLineId" v-model="form.deptId"
placeholder="请选择" placeholder="请选择关联产线"
multiple
style="width: 100%" style="width: 100%"
:disabled="isBind"> :disabled="isBind">
<el-option <el-option
v-for="item in productLineList" v-for="item in deptList"
:key="item.id" :key="item.id"
:label="item.name" :label="item.name"
:value="item.id"></el-option> :value="item.id"></el-option>
@ -178,37 +153,123 @@
<el-input v-model="form.workers" :disabled="isBind"></el-input> <el-input v-model="form.workers" :disabled="isBind"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> </el-row>
<el-form-item label="负责部门" prop="deptId"> <el-row :gutter="20">
<el-col :span="24">
<span class="add-type">物料计算方式</span>
<el-radio-group
v-model="form.materialMethod"
:disabled="isBind"
@change="materialMethodChange">
<el-radio :label="1">产品基础BOM</el-radio>
<el-radio :label="2">工艺扩展BOM</el-radio>
</el-radio-group>
</el-col>
</el-row>
<div v-if="form.materialMethod === 1">
<el-row :gutter="20">
<el-col :span="24">
<span style="margin: 8px 0;" class="add-type">关联产线</span>
<el-button style="margin-left: 20px" type="text" @click="addBind" :disabled="isBind">
新增
</el-button>
</el-col>
</el-row>
<el-row
:gutter="20"
v-for="(item, index) in form.productLineIds"
:key="index + 'line'"
style="margin-bottom: 8px">
<el-col :span="8">
<el-select <el-select
v-model="form.deptId" v-model="item.lineId"
placeholder="请选择关联产线" placeholder="请选择产线"
:disabled="isBind"
style="width: 100%"> style="width: 100%">
<el-option <el-option
v-for="item in deptList" v-for="item in productLineList"
:key="item.id" :key="item.id"
:label="item.name" :label="item.name"
:value="item.id"></el-option> :value="item.id"></el-option>
</el-select> </el-select>
</el-form-item> </el-col>
</el-col> <el-col :span="8">
<el-col :span="6"> <el-tooltip effect="dark" content="该产线分配生产数量" placement="top-end">
<el-form-item label="计划分配订单量" prop="planAssignmentQuantity">
<el-input-number <el-input-number
v-model="form.planAssignmentQuantity" style="width: 100%"
v-model="item.num"
placeholder="请输入数量"
:step="1"
:min="0" :min="0"
:max="9999999999999" :disabled="isBind"
style="width: 100%"></el-input-number> step-strictly />
</el-form-item> </el-tooltip>
</el-col> </el-col>
</el-row> </el-row>
</div>
<div v-else>
<el-row :gutter="20">
<el-col :span="24">
<span style="margin: 8px 0; display: inline-block">
关联产线及工艺
</span>
<el-button style="margin-left: 20px" type="text" @click="addBind" :disabled="isBind">
新增
</el-button>
</el-col>
</el-row>
<el-row
:gutter="20"
v-for="(item, index) in form.productLineIds"
:key="index + 'process'"
style="margin-bottom: 8px">
<el-col :span="8">
<el-select
v-model="item.lineId"
placeholder="请选择产线"
style="width: 100%"
:disabled="isBind"
@change="processLineIdChange">
<el-option
v-for="item in productLineList"
:key="item.id"
:label="item.name"
:value="item.id"></el-option>
</el-select>
</el-col>
<el-col :span="8">
<el-select
v-model="item.processId"
placeholder="请选择工艺"
filterable
:disabled="isBind"
style="width: 100%">
<el-option
v-for="item in processFlowList"
:key="item.id"
:label="item.name"
:value="item.id"></el-option>
</el-select>
</el-col>
<el-col :span="8">
<el-tooltip effect="dark" content="该产线分配生产数量" placement="top-end">
<el-input-number
style="width: 100%"
v-model="item.num"
:step="1"
:min="0"
:disabled="isBind"
step-strictly />
</el-tooltip>
</el-col>
</el-row>
</div>
</el-form> </el-form>
</template> </template>
<script> <script>
import { getProductAll } from '@/api/base/product'; import { getProductList } from '@/api/base/product';
import { import {
getProcessFlowList, getProcessFlowPage,
getWorkOrderCode,
orderIssue, orderIssue,
workOrderList, workOrderList,
getWorkOrderById, getWorkOrderById,
@ -216,13 +277,13 @@ import {
import { getLineAll } from '@/api/base/productionLine'; import { getLineAll } from '@/api/base/productionLine';
import { listDept } from '@/api/system/dept'; import { listDept } from '@/api/system/dept';
import moment from 'moment'; import moment from 'moment';
import { getCode } from '@/api/base/coreWorkOrder';
export default { export default {
name: 'AddWorkOrder', name: 'AddWorkOrder',
data() { data() {
return { return {
form: { form: {
workOrderId: '', workOrderId: '',
orderId: '',
name: '', name: '',
code: '', code: '',
planProductId: '', planProductId: '',
@ -231,10 +292,9 @@ export default {
planAssignQuantity: 0, planAssignQuantity: 0,
deptId: undefined, deptId: undefined,
planQuantity: 0, planQuantity: 0,
processFlowId: '',
materialMethod: 1, materialMethod: 1,
priority: '', priority: '',
productLineId: [], productLineIds: [{ lineId: null, processId: null, num: null }],
type: '', type: '',
workers: '', workers: '',
planAssignmentQuantity: '', planAssignmentQuantity: '',
@ -253,9 +313,6 @@ export default {
planQuantity: [ planQuantity: [
{ required: true, message: '计划生产数量不能为空', trigger: 'blur' }, { required: true, message: '计划生产数量不能为空', trigger: 'blur' },
], ],
productLineId: [
{ required: true, message: '产线不能为空', trigger: 'change' },
],
planAssignmentQuantity: [ planAssignmentQuantity: [
{ {
required: true, required: true,
@ -263,63 +320,81 @@ export default {
trigger: 'blur', trigger: 'blur',
}, },
], ],
deptId:[
{ required: true, message: '负责部门不能为空', trigger: 'change' },
],
}, },
productList: [], productList: [],
processFlowList: [], processFlowList: [],
productLineList: [], productLineList: [],
workOrderTypeList: [ workOrderTypeList: [
{ id: 1, name: '标准工单' }, { id: 1, name: '普通' },
{ id: 2, name: '特殊工单' }, { id: 2, name: '特殊' },
], ],
planStartTime: '', planStartTime: '',
planFinishTime: '', planFinishTime: '',
isBind: false, isBind: true,
workOrderList: [], workOrderList: [],
orderData: {}, orderData: {},
}; };
}, },
methods: { methods: {
//
materialMethodChange(val) {
console.log(val);
this.processFlowList = [];
this.form.productLineIds = [];
const obj = { lineId: null, processId: null, num: null };
this.form.productLineIds.push(obj);
},
// 线
processLineIdChange(val) {
const params = {
pageNo: 1,
pageSize: 100,
lineId: val,
};
//
getProcessFlowPage(params).then((res) => {
this.processFlowList = res.data.list || [];
console.log(this.processFlowList);
});
},
init(data, param) { init(data, param) {
this.isBind = true; this.isBind = true;
this.orderData = data; this.orderData = data;
this.form.orderId = data.id;
this.getList(); this.getList();
}, },
changeAdd() { toggleWay(val) {
if (this.isBind) { console.log(val);
this.isBind = false; this.formClear()
getWorkOrderCode().then((res) => { if (!val) {
this.form.code = res.data || ''; //
}); getCode().then((res) => {
this.form.orderId = null; this.form.code = res.data;
this.form.planProductId = this.orderData.planProductId; this.form.planProductId = this.orderData.planProductId;
this.form.processFlowId = this.orderData.processFlowId; this.form.name = '';
this.form.materialMethod = this.orderData.materialMethod; this.selectProduct(this.form.planProductId)
} else { })
this.isBind = true; }else{
this.form.orderId = this.orderData.id; this.form.code = '';
this.form.planProductId = null; this.form.planProductId = '';
this.form.processFlowId = null;
this.form.materialMethod = null;
this.form.code = null;
} }
this.form.materialMethod = 1;
this.form.productLineIds = [];
}, },
getList() { getList() {
listDept().then((res) => { listDept().then((res) => {
this.deptList = res.data || []; this.deptList = res.data || [];
}); });
// //
getProductAll().then((res) => { getProductList().then((res) => {
this.productList = res.data || []; this.productList = res.data || [];
}); });
// 线 // 线
getLineAll().then((res) => { getLineAll().then((res) => {
this.productLineList = res.data || []; this.productLineList = res.data || [];
}); });
//
getProcessFlowList().then((res) => {
this.processFlowList = res.data || [];
});
// list // list
workOrderList({ workOrderList({
status: 1, status: 1,
@ -327,6 +402,18 @@ export default {
this.workOrderList = res.data || []; this.workOrderList = res.data || [];
}); });
}, },
//
selectProduct(val) {
if (val) {
this.productList.map((item) => {
if (val === item.id) {
this.form.specifications = item.specifications;
}
});
} else {
this.form.specifications = '';
}
},
addWorkOrderSubmit() { addWorkOrderSubmit() {
this.$refs['addWorkOrder'].validate((valid) => { this.$refs['addWorkOrder'].validate((valid) => {
if (valid) { if (valid) {
@ -334,8 +421,7 @@ export default {
// //
orderIssue({ orderIssue({
workOrderId: this.form.workOrderId, workOrderId: this.form.workOrderId,
orderId: this.form.orderId, orderId: this.orderData.id,
planAssignmentQuantity: this.form.planAssignmentQuantity,
}).then((res) => { }).then((res) => {
if (res.code === 0) { if (res.code === 0) {
this.$modal.msgSuccess('操作成功'); this.$modal.msgSuccess('操作成功');
@ -344,24 +430,19 @@ export default {
}); });
} else { } else {
// //
let _this = this; this.form.planStartTime = this.planStartTime
_this.form.planStartTime = _this.planStartTime ? new Date(this.planStartTime).valueOf()
? new Date(_this.planStartTime).valueOf()
: ''; : '';
_this.form.planFinishTime = _this.planFinishTime this.form.planFinishTime = this.planFinishTime
? new Date(_this.planFinishTime).valueOf() ? new Date(this.planFinishTime).valueOf()
: ''; : '';
orderIssue({ ..._this.form }).then((res) => { orderIssue({
...this.form,
orderId: this.orderData.id,
}).then((res) => {
if (res.code === 0) { if (res.code === 0) {
_this.$modal.msgSuccess('操作成功'); this.$modal.msgSuccess('操作成功');
let name = this.form.name; this.$emit('addWorkOrderSubmit');
_this.$emit('addWorkOrderSubmit');
// 使
// _this.$modal.confirm('使?').then(function() {
// _this.$router.push({
// path: '/core/core-work-order?workOrderName='+encodeURI(name)
// })
// })
} }
}); });
} }
@ -379,39 +460,52 @@ export default {
this.planStartTime = ''; this.planStartTime = '';
this.form.planFinishTime = ''; this.form.planFinishTime = '';
this.form.planStartTime = ''; this.form.planStartTime = '';
this.isBind = false;
}, },
// //
getWorkOrderMsg() { getWorkOrderMsg() {
if (this.form.workOrderId) { if (this.form.workOrderId) {
getWorkOrderById({ id: this.form.workOrderId }).then((res) => { getWorkOrderById({ id: this.form.workOrderId }).then((res) => {
if (res.code === 0) { if (res.code === 0) {
this.form.code = res.data.code; this.form = res.data;
this.form.planProductId = res.data.planProductId; this.form.workOrderId = res.data.id;
this.planStartTime = res.data.planStartTime this.planStartTime = res.data.planStartTime
? moment ? moment(res.data.planStartTime)
.unix(res.data.planStartTime)
.format('YYYY-MM-DD HH:mm:ss') .format('YYYY-MM-DD HH:mm:ss')
: null; : null;
this.planFinishTime = res.data.planFinishTime this.planFinishTime = res.data.planFinishTime
? moment ? moment(res.data.planFinishTime)
.unix(res.data.planFinishTime)
.format('YYYY-MM-DD HH:mm:ss') .format('YYYY-MM-DD HH:mm:ss')
: null; : null;
this.form.planAssignQuantity = res.data.planAssignQuantity;
this.form.planQuantity = res.data.planQuantity;
this.form.processFlowId = res.data.processFlowId;
this.form.materialMethod = res.data.materialMethod;
this.form.priority = res.data.priority this.form.priority = res.data.priority
? res.data.priority + '' ? res.data.priority + ''
: ''; : '';
this.form.productLineId = res.data.productLineIds; // 线
this.form.type = res.data.type; if (this.form.materialMethod === 2) {
this.form.workers = res.data.workers; this.form.productLineIds.forEach((item) => {
if (item.lineId) {
this.processLineIdChange(item.lineId);
}
})
}
} }
}); });
} }
}, },
addBind() {
const obj = { lineId: null, processId: null, num: null };
this.form.productLineIds.push(obj);
},
}, },
}; };
</script> </script>
<style scoped>
.add-type {
margin: 0 20px 15px 0;
display: inline-block;
}
.add-type::before {
content: '*';
color: #ff4949;
margin-right: 4px;
}
</style>

View File

@ -19,6 +19,12 @@
</el-col> </el-col>
<el-col :span='6'> <el-col :span='6'>
<el-form-item label="产品名称" prop="planProductId"> <el-form-item label="产品名称" prop="planProductId">
<el-select @change="getSpec" v-model="form.planProductId" placeholder="请选择" style="width: 100%;" filterable>
<el-option v-for="item in productList" :key="item.id" :label="item.name"
:value="item.id"/>
</el-select>
</el-form-item>
<!-- <el-form-item label="产品名称" prop="planProductId">
<el-select @change="getSpec" v-model="form.planProductId" placeholder="请选择" style="width: 100%;" filterable> <el-select @change="getSpec" v-model="form.planProductId" placeholder="请选择" style="width: 100%;" filterable>
<el-option v-for="item in productList" :key="item.id" :label="item.name+' | '+(item.specifications || '')" <el-option v-for="item in productList" :key="item.id" :label="item.name+' | '+(item.specifications || '')"
:value="item.id"> :value="item.id">
@ -26,7 +32,7 @@
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.specifications }}</span> <span style="float: right; color: #8492a6; font-size: 13px">{{ item.specifications }}</span>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item> -->
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
@ -79,7 +85,7 @@
</template> </template>
<script> <script>
import { getOrderCode, getOrderById, getProcessFlowList, orderUpdate, orderCreate } from '@/api/base/orderManage' import { getOrderCode, getOrderById, getProcessFlowList, orderUpdate, orderCreate } from '@/api/base/orderManage'
import { getProductAll } from '@/api/base/product' import { getProductList } from '@/api/base/product'
import { getCustomerList } from '@/api/base/customer' import { getCustomerList } from '@/api/base/customer'
export default { export default {
name: 'OrderAdd', name: 'OrderAdd',
@ -160,7 +166,7 @@ export default {
}, },
getList() { getList() {
// //
getProductAll().then(res => { getProductList().then(res => {
this.productList = res.data || [] this.productList = res.data || []
}) })
// //

View File

@ -2,7 +2,7 @@
* @Author: zwq * @Author: zwq
* @Date: 2024-09-26 14:08:58 * @Date: 2024-09-26 14:08:58
* @LastEditors: zwq * @LastEditors: zwq
* @LastEditTime: 2024-11-06 09:52:59 * @LastEditTime: 2024-11-13 15:23:25
* @Description: * @Description:
--> -->
<template> <template>
@ -69,7 +69,7 @@ const tableProps = [
showOverflowtooltip: true, showOverflowtooltip: true,
}, },
{ {
prop: 'specifications', prop: 'productSpec',
label: '产品规格', label: '产品规格',
showOverflowtooltip: true, showOverflowtooltip: true,
}, },
@ -92,7 +92,7 @@ const tableProps = [
subcomponent: selectTime, subcomponent: selectTime,
}, },
{ {
prop: 'customerId', prop: 'customerName',
label: '客户', label: '客户',
showOverflowtooltip: true, showOverflowtooltip: true,
// subcomponent: selectMember, // subcomponent: selectMember,

View File

@ -69,7 +69,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="workOrderNum" label="工单数量" width="140"> <el-table-column prop="workOrderNum" label="工单数量" width="140">
<template v-slot="scope"> <template v-slot="scope">
<el-button @click="handleRoute" type="text"> <el-button @click="handleRoute(scope.row)" type="text">
{{ scope.row.workOrderNum }} {{ scope.row.workOrderNum }}
</el-button> </el-button>
</template> </template>
@ -117,14 +117,14 @@
<el-button <el-button
type="text" type="text"
:disabled=" :disabled="
!(scope.row.status === 1 && scope.row.triggerOrigin === 1) !(scope.row.status === 1)
" "
@click="handleClick({ data: scope.row, type: 'edit' })" @click="handleClick({ data: scope.row, type: 'edit' })"
v-hasPermi="['base:order-manage:edit']"> v-hasPermi="['base:order-manage:edit']">
<span <span
class="iconfont icon-edit" class="iconfont icon-edit"
:class=" :class="
!(scope.row.status === 1 && scope.row.triggerOrigin === 1) !(scope.row.status === 1)
? '' ? ''
: 'primary-color' : 'primary-color'
" /> " />
@ -193,7 +193,6 @@
import { parseTime } from '@/utils/ruoyi'; import { parseTime } from '@/utils/ruoyi';
import { import {
getOrderPage, getOrderPage,
orderDelete,
orderAssignmentList, orderAssignmentList,
orderFinish, orderFinish,
orderVoid, orderVoid,
@ -380,7 +379,6 @@ export default {
} }
}, },
handleClick(val) { handleClick(val) {
console.log(val);
switch (val.type) { switch (val.type) {
case 'edit': case 'edit':
this.addOrEditTitle = '编辑'; this.addOrEditTitle = '编辑';
@ -389,21 +387,11 @@ export default {
this.$refs.orderAdd.init(val.data.id); this.$refs.orderAdd.init(val.data.id);
}); });
break; break;
case 'delete':
this.handleDelete(val.data);
break;
case 'detail': case 'detail':
this.$router.push({ this.$router.push({
path: 'order-detail-data?orderId=' + val.data.id, path: 'order-detail-data?orderId=' + val.data.id,
}); });
break; break;
case 'add':
this.workIssueTitle = '新增工单';
this.addWorkOrdervisible = true;
this.$nextTick(() => {
this.$refs.addWorkOrder.init(val.data, 'add');
});
break;
case 'void': case 'void':
orderVoid({ id: val.data.id }).then((res) => { orderVoid({ id: val.data.id }).then((res) => {
console.log(res); console.log(res);
@ -437,19 +425,6 @@ export default {
default: default:
} }
}, },
//
handleDelete(val) {
this.$modal
.confirm('是否确认删除"' + val.name + '"的数据项?')
.then(function () {
return orderDelete({ id: val.id });
})
.then(() => {
this.getList();
this.$modal.msgSuccess('操作成功');
})
.catch(() => {});
},
// //
handleComplete(val) { handleComplete(val) {
this.$modal this.$modal
@ -499,13 +474,13 @@ export default {
this.splitWorkOrderCancel(); this.splitWorkOrderCancel();
this.getList(); this.getList();
}, },
async handleRoute() { async handleRoute(row) {
const res = await orderAssignmentList({ const res = await orderAssignmentList({
orderIdList: [this.injectData.id], orderIdList: [row.id],
}); });
console.log(res.data); console.log(res.data);
let arr = []; let arr = [];
res.data[this.injectData.id].forEach((ele) => { res.data[row.id].forEach((ele) => {
arr.push(ele.workOrderId); arr.push(ele.workOrderId);
}); });
let woIdString = arr.join(','); let woIdString = arr.join(',');

View File

@ -9,7 +9,7 @@
type="primary" type="primary"
plain plain
size="small" size="small"
style="float: right; margin-top: -10px" style="float: right; margin-top: -25px"
@click="returnOrderManage"> @click="returnOrderManage">
<svg-icon icon-class="return" /> <svg-icon icon-class="return" />
返回 返回
@ -421,6 +421,19 @@ export default {
.box1 { .box1 {
height: 215px; height: 215px;
padding: 16px 16px 0 16px; padding: 16px 16px 0 16px;
.boxTitle {
font-size: 16px;
font-weight: 600;
}
.blueTitle {
display: inline-block;
width: 4px;
height: 18px;
background-color: #0b58ff;
margin-right: 8px;
position: relative;
top:4px;
}
.blodTip { .blodTip {
height: 16px; height: 16px;
font-size: 14px; font-size: 14px;

View File

@ -81,7 +81,7 @@ export default {
this.chartList[i].workOrder.map(item => { this.chartList[i].workOrder.map(item => {
colorList.push(item.color) colorList.push(item.color)
}) })
let percentage = (this.chartList[i].sunNum/this.chartList[i].num*100).toFixed(0) let percentage = (this.chartList[i].sunNum/this.chartList[i].num*100).toFixed(2)
var option = { var option = {
color: colorList, color: colorList,
series: [ series: [

View File

@ -249,14 +249,14 @@ export default {
let sunNum = 0 let sunNum = 0
for (let i = 0; i < tempArr[key].length; i++) { for (let i = 0; i < tempArr[key].length; i++) {
let subObj = {} let subObj = {}
subObj.value = tempArr[key][i].actualAssignmentQuantity subObj.value = tempArr[key][i].actualAssignmentQuantity || 0
subObj.name = tempArr[key][i].woName subObj.name = tempArr[key][i].woName
if (i < 5) { if (i < 5) {
subObj.color = color[i] subObj.color = color[i]
} else { } else {
subObj.color = color[i%5] subObj.color = color[i%5]
} }
sunNum+=tempArr[key][i].actualAssignmentQuantity sunNum+=(tempArr[key][i].actualAssignmentQuantity || 0)
tempArr3.push(subObj) tempArr3.push(subObj)
} }
tempArr3.push({ tempArr3.push({
@ -268,6 +268,7 @@ export default {
obj.workOrder = tempArr3 obj.workOrder = tempArr3
tempArr2.push(obj) tempArr2.push(obj)
} }
console.log(tempArr2)
this.chartList = tempArr2 this.chartList = tempArr2
if (this.activeName === 'barChart' && this.chartList.length > 0) { if (this.activeName === 'barChart' && this.chartList.length > 0) {
this.$nextTick(() => { this.$nextTick(() => {

View File

@ -40,7 +40,7 @@ $pxls: (xl, 28px) (lg, 24px) (de, 20px) (md, 18px) (sm, 16px);
$mgr: 8px; $mgr: 8px;
@each $size, $height in $pxls { @each $size, $height in $pxls {
.#{$size}-title { .#{$size}-title {
font-size: 18px; font-size: $height;
line-height: $height; line-height: $height;
color: #000; color: #000;
font-weight: 500; font-weight: 500;

View File

@ -43,7 +43,8 @@
<el-form-item label="产品规格" prop="specifications"> <el-form-item label="产品规格" prop="specifications">
<el-input <el-input
v-model="dataForm.specifications" v-model="dataForm.specifications"
placeholder="请输入产品规格" /> placeholder="请输入产品规格"
disabled/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
@ -149,11 +150,6 @@
<el-radio :label="1">产品基础BOM</el-radio> <el-radio :label="1">产品基础BOM</el-radio>
<el-radio :label="2">工艺扩展BOM</el-radio> <el-radio :label="2">工艺扩展BOM</el-radio>
</el-radio-group> </el-radio-group>
<!-- <el-select v-model="dataForm.materialMethod" placeholder="请选择物料计算方式" style="width: 100%;"
@change="materialMethodChange">
<el-option key="1" label="产品基础BOM" :value="1" />
<el-option key="2" label="工艺扩展BOM" :value="2" />
</el-select> -->
</el-col> </el-col>
</el-row> </el-row>
<div v-if="dataForm.materialMethod === 1"> <div v-if="dataForm.materialMethod === 1">
@ -183,6 +179,7 @@
</el-select> </el-select>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-tooltip effect="dark" content="该产线分配生产数量" placement="top-end">
<el-input-number <el-input-number
style="width: 100%" style="width: 100%"
v-model="item.num" v-model="item.num"
@ -190,6 +187,7 @@
:step="1" :step="1"
:min="0" :min="0"
step-strictly /> step-strictly />
</el-tooltip>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@ -236,26 +234,21 @@
</el-select> </el-select>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-tooltip effect="dark" content="该产线分配生产数量" placement="top-end">
<el-input-number <el-input-number
style="width: 100%" style="width: 100%"
v-model="item.num" v-model="item.num"
:step="1" :step="1"
:min="0" :min="0"
step-strictly /> step-strictly />
</el-tooltip>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<!-- <el-row>
<el-col :span='12'>
<el-form-item label="计划分配订单量" prop="planAssignmentQuantity">
<el-input-number v-model="form.planAssignmentQuantity" :min="0" :max="9999999999999" style="width: 100%;"></el-input-number>
</el-form-item>
</el-col>
</el-row> -->
</el-form> </el-form>
</template> </template>
<script> <script>
import { getProductAll } from '@/api/base/product'; import { getProductList } from '@/api/base/product';
import { getProcessFlowPage, workOrderList } from '@/api/base/orderManage'; import { getProcessFlowPage, workOrderList } from '@/api/base/orderManage';
import { import {
createCoreWO, createCoreWO,
@ -323,9 +316,6 @@ export default {
{ id: 1, name: '普通' }, { id: 1, name: '普通' },
{ id: 2, name: '特殊' }, { id: 2, name: '特殊' },
], ],
planStartTime: '',
planFinishTime: '',
isBind: false,
workOrderList: [], workOrderList: [],
}; };
}, },
@ -340,10 +330,6 @@ export default {
this.dataForm.productLineIds = []; this.dataForm.productLineIds = [];
const obj = { lineId: null, processId: null, num: null }; const obj = { lineId: null, processId: null, num: null };
this.dataForm.productLineIds.push(obj); this.dataForm.productLineIds.push(obj);
// if (val === 2 && !this.dataForm.processFlowId) {
// this.dataForm.materialMethod = 1;
// this.$modal.msgError('');
// }
}, },
// 线 // 线
processLineIdChange(val) { processLineIdChange(val) {
@ -355,6 +341,7 @@ export default {
// //
getProcessFlowPage(params).then((res) => { getProcessFlowPage(params).then((res) => {
this.processFlowList = res.data.list || []; this.processFlowList = res.data.list || [];
console.log(this.processFlowList);
}); });
}, },
init(id) { init(id) {
@ -365,15 +352,26 @@ export default {
} }
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['dataForm'].resetFields(); this.$refs['dataForm'].resetFields();
this.planStartTime = ''; this.dataForm.planStartTime = '';
this.planFinishTime = ''; this.dataForm.planFinishTime = '';
this.dataForm.productLineIds = [{ lineId: null, processId: null, num: null }];
if (this.dataForm.id) { if (this.dataForm.id) {
getCoreWO(id).then((response) => { getCoreWO(id).then((response) => {
this.dataForm = response.data; this.dataForm = response.data;
this.dataForm.planStartTime = response.data.planStartTime ? response.data.planStartTime : '';
this.dataForm.planFinishTime = response.data.planFinishTime ? response.data.planFinishTime : '';
if (this.dataForm.priority !== undefined) { if (this.dataForm.priority !== undefined) {
this.dataForm.priority = String(this.dataForm.priority); this.dataForm.priority = String(this.dataForm.priority);
} }
this.dataForm.priority; this.dataForm.priority;
// 线
if (this.dataForm.materialMethod === 2) {
this.dataForm.productLineIds.forEach((item) => {
if (item.lineId) {
this.processLineIdChange(item.lineId);
}
})
}
}); });
} else { } else {
if (this.urlOptions.isGetCode) { if (this.urlOptions.isGetCode) {
@ -418,21 +416,7 @@ export default {
this.urlOptions.createURL(this.dataForm).then((response) => { this.urlOptions.createURL(this.dataForm).then((response) => {
this.$modal.msgSuccess('新增成功'); this.$modal.msgSuccess('新增成功');
this.visible = false; this.visible = false;
this.$confirm('是否添加预使用主原料信息?', '提示', { this.$emit('refreshDataList');
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
console.log('121', this.dataForm.name);
this.$emit('refreshDataList', {
id: response.data,
name: this.dataForm.name,
});
})
.catch(() => {
this.$emit('refreshDataList');
});
}); });
} }
}); });
@ -447,7 +431,7 @@ export default {
}, },
getDict() { getDict() {
// //
getProductAll().then((res) => { getProductList().then((res) => {
this.productList = res.data || []; this.productList = res.data || [];
}); });
// 线 // 线

View File

@ -0,0 +1,311 @@
<!--
* @Author: zwq
* @Date: 2021-11-18 14:16:25
* @LastEditors: DY
* @LastEditTime: 2024-07-19 18:59:13
* @Description:
-->
<template>
<el-drawer
:visible.sync="visible"
:show-close="false"
:wrapper-closable="false"
class="drawer"
size="55%">
<small-title slot="title" :no-padding="true">
{{ '分配产量' }}
</small-title>
<div class="content">
<div class='formContainer'>
<el-row :gutter="20">
<el-col :span="12"><span class='label'>工单名称</span><span class='text'>{{ dataForm.name }}</span></el-col>
<el-col :span="12"><span class='label'>工单编码</span><span class='text'>{{ dataForm.code }}</span></el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12"><span class='label'>产品名称</span><span class='text'>{{ dataForm.productName }}</span></el-col>
<el-col :span="12"><span class='label'>产品规格</span><span class='text'>{{ dataForm.specifications }}</span></el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12"><span class='label'>实际生产数量</span><span class='text'>{{ dataForm.actualQuantity }}</span></el-col>
</el-row>
</div>
<div class="attr-list">
<!-- <el-button v-show="!isdetail" type="success" size="small" style="float: right" @click="addRow()">添加一行</el-button> -->
<el-table
border
:data="tableData"
:header-cell-style="{
background: '#F2F4F9',
color: '#606266'
}"
style="width: 100%">
<el-table-column type="index" label="序号" width='50' align="center" />
<el-table-column prop="orderName" label="订单名称" />
<el-table-column prop="orderCode" label="订单编码" />
<el-table-column prop="priority" label="优先级" />
<el-table-column prop="planAssignmentQuantity" label="计划分配数量" >
<template slot-scope="scope">
<el-input v-model="scope.row.planAssignmentQuantity" :disabled="scope.row.actualAssignmentQuantity"></el-input>
</template>
</el-table-column>
<el-table-column prop="actualAssignmentQuantity" label="实际分配数量">
<template slot-scope="scope">
<el-input v-model="scope.row.actualAssignmentQuantity" :disabled="scope.row.actualAssignmentQuantity"></el-input>
</template>
</el-table-column>
<el-table-column label="操作" width='50' align="center" fixed='right'>
<template slot-scope="scope">
<el-button type="text" size="small" @click="saveData(scope.row)">保存</el-button>
<!-- <el-tooltip v-if="!scope.row.isEdit" placement="top" content="编辑">
<el-button
type="text"
:style="{color:'#0B58FF'}"
size="mini"
@click="edit(scope.row)"
>
<svg-icon style="width: 18px; height: 18px" class="item-icon" icon-class="edit" />
</el-button>
</el-tooltip> -->
<!-- <el-tooltip placement="top" content="删除">
<el-button
type="text"
:style="{color:'#FF5454'}"
size="mini"
@click="deleteDetail(scope.row)"
>
<svg-icon style="width: 18px; height: 18px" class="item-icon" icon-class="table_delete" />
</el-button>
</el-tooltip> -->
</template>
</el-table-column>
</el-table>
<pagination
v-show="listQuery.total > 0"
:total="listQuery.total"
:page.sync="listQuery.pageNo"
:limit.sync="listQuery.pageSize"
:page-sizes="[5, 10, 15]"
@pagination="getList" />
</div>
<div class="drawer-body__footer">
<el-button style="" type="primary" @click="goback()">关闭</el-button>
<!-- <el-button v-if="isdetail" type="primary" @click="goEdit()">
编辑
</el-button>
<el-button v-else type="primary" @click="dataFormSubmit()">确定</el-button> -->
</div>
</div>
<!-- <attr-add
v-if="addOrUpdateVisible"
ref="addOrUpdate"
:material-id="dataForm.id"
@refreshDataList="getList" /> -->
</el-drawer>
</template>
<script>
import basicAdd from '../../core/mixins/basic-add';
import { getConOrderList, createConCoreWOr, getCoreWO } from '@/api/base/coreWorkOrder';
import SmallTitle from './SmallTitle';
// import { parseTime } from '../../core/mixins/code-filter';
// import attrAdd from './attr-add';
export default {
mixins: [basicAdd],
components: { SmallTitle },
data() {
return {
addOrUpdateVisible: false,
urlOptions: {
infoURL: getCoreWO,
},
listQuery: {
pageSize: 10,
pageNo: 1,
total: 0,
},
dataForm: {
id: undefined,
code: undefined,
productId: '',
remark: undefined,
},
productList: [],
materialAttrList: [],
materialList: [],
tableData: [],
visible: false,
isdetail: false,
idAttrShow: false
};
},
mounted() {},
methods: {
initData() {
// this.materialAttrList.splice(0);
this.listQuery.total = 0;
},
edit(row) {
row.isEdit = true
},
saveData(row) {
if (row.actualAssignmentQuantity) {
if (row.id) {
// updateMaterialPBDet({
// ...row
// }).then((response) => {
// this.$modal.msgSuccess('');
// // this.visible = false;
// this.getList();
// });
// return;
}
//
createConCoreWOr({
...row,
workOrderId: this.dataForm.id
}).then((response) => {
this.$modal.msgSuccess('分配成功');
// this.visible = false;
this.getList();
});
} else {
this.$message.warning('请填写实际分配数量');
}
},
getList() {
// Bom
getConOrderList({
...this.listQuery,
workOrderId: this.dataForm.id
}).then((response) => {
this.tableData = response.data.map(item => {
item.isEdit = false
return item
});
this.listQuery.total = response.data.total;
});
},
//
// addRow() {
// const row = {
// bomId: this.dataForm.id,
// materialId: '',
// num: 0,
// materialCode: undefined,
// unit: undefined,
// remark: '',
// isEdit: true
// }
// this.tableData.push(row)
// },
init(id, isdetail) {
this.initData();
this.isdetail = isdetail || false;
this.dataForm.id = id || undefined;
this.visible = true;
// if (id) {
// this.idAttrShow = true
// } else {
// this.idAttrShow = false
// }
this.$nextTick(() => {
// this.$refs['dataForm'].resetFields();
if (this.dataForm.id) {
//
this.urlOptions.infoURL(id).then(response => {
this.dataForm = response.data;
});
//
this.getList();
} else {}
});
},
goback() {
this.$emit('refreshDataList');
this.visible = false;
// this.initData();
},
goEdit() {
this.isdetail = false;
},
// /
addNew(id) {
this.addOrUpdateVisible = true;
this.$nextTick(() => {
this.$refs.addOrUpdate.init(id);
});
}
}
};
</script>
<style scoped>
.drawer >>> .el-drawer {
border-radius: 8px 0 0 8px;
display: flex;
flex-direction: column;
}
.drawer >>> .el-form-item__label {
padding: 0;
}
.drawer >>> .el-drawer__header {
margin: 0;
padding: 32px 32px 24px;
border-bottom: 1px solid #dcdfe6;
}
.drawer >>> .el-drawer__body {
flex: 1;
height: 1px;
display: flex;
flex-direction: column;
}
.drawer >>> .content {
padding: 30px 24px;
flex: 1;
display: flex;
flex-direction: column;
/* height: 100%; */
}
.drawer >>> .visual-part {
flex: 1 auto;
max-height: 30vh;
overflow: hidden;
overflow-y: scroll;
padding-right: 10px; /* 调整滚动条样式 */
}
.drawer >>> .el-form {
padding: 0 16px;
}
.drawer-body__footer {
display: flex;
justify-content: flex-end;
padding: 18px;
}
.formContainer {
.label {
display: inline-block;
padding: 5px 0px;
font-size: 14px;
font-weight: 600;
}
.text {
display: inline-block;
padding: 5px 0px;
font-size: 14px;
color:rgba(102, 102, 102, 0.75);
}
margin-bottom: 10px;
}
</style>

View File

@ -16,98 +16,58 @@
{{ '分配产量' }} {{ '分配产量' }}
</small-title> </small-title>
<div class="content"> <div class="content">
<div class="formContent"> <div class='formContainer'>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12">工单名称:{{ dataForm.name }}</el-col> <el-col :span="12"><span class='label'>工单名称</span><span class='text'>{{ dataForm.name }}</span></el-col>
<el-col :span="12">工单编码:{{ dataForm.code }}</el-col> <el-col :span="12"><span class='label'>工单编码</span><span class='text'>{{ dataForm.code }}</span></el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12">产品名称:{{ dataForm.productName }}</el-col> <el-col :span="12"><span class='label'>产品名称</span><span class='text'>{{ dataForm.productName }}</span></el-col>
<el-col :span="12">产品规格:{{ dataForm.specifications }}</el-col> <el-col :span="12"><span class='label'>产品规格</span><span class='text'>{{ dataForm.specifications }}</span></el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12">实际生产数量:{{ dataForm.expectedTime }}</el-col> <el-col :span="12"><span class='label'>实际生产数量</span><span class='text'>{{ dataForm.actualQuantity }}</span></el-col>
</el-row> </el-row>
</div> </div>
<div class="attr-list"> <div class="attr-list">
<!-- <el-button v-show="!isdetail" type="success" size="small" style="float: right" @click="addRow()">添加一行</el-button> -->
<el-table <el-table
border
:data="tableData" :data="tableData"
:header-cell-style="{
background: '#F2F4F9',
color: '#606266'
}"
style="width: 100%"> style="width: 100%">
<el-table-column type="index" label="序号" /> <el-table-column type="index" label="序号" width='50' align="center" />
<el-table-column prop="orderName" label="订单名称" /> <el-table-column prop="orderName" label="订单名称" />
<el-table-column prop="orderCode" label="订单编码" /> <el-table-column prop="orderCode" label="订单编码" />
<el-table-column prop="priority" label="优先级" /> <el-table-column prop="priority" label="优先级">
<el-table-column prop="planAssignmentQuantity" label="计划分配数量" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.planAssignmentQuantity" :disabled="scope.row.actualAssignmentQuantity"></el-input> {{scope.row.priority == 1 ? '低' : scope.row.priority == 2 ? '正常' : scope.row.priority == 3 ? '高' : ''}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="planAssignmentQuantity" label="计划分配数量" />
<el-table-column prop="actualAssignmentQuantity" label="实际分配数量"> <el-table-column prop="actualAssignmentQuantity" label="实际分配数量">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.actualAssignmentQuantity" :disabled="scope.row.actualAssignmentQuantity"></el-input> <el-input-number :disabled='isSaved' v-model="scope.row.actualAssignmentQuantity" style='width: 100%;' controls-position="right" :min="0" :max="dataForm.actualQuantity"></el-input-number>
</template>
</el-table-column>
<el-table-column label="操作">
<template slot-scope="scope">
<el-button type="text" size="small" @click="saveData(scope.row)">保存</el-button>
<!-- <el-tooltip v-if="!scope.row.isEdit" placement="top" content="编辑">
<el-button
type="text"
:style="{color:'#0B58FF'}"
size="mini"
@click="edit(scope.row)"
>
<svg-icon style="width: 18px; height: 18px" class="item-icon" icon-class="edit" />
</el-button>
</el-tooltip> -->
<!-- <el-tooltip placement="top" content="删除">
<el-button
type="text"
:style="{color:'#FF5454'}"
size="mini"
@click="deleteDetail(scope.row)"
>
<svg-icon style="width: 18px; height: 18px" class="item-icon" icon-class="table_delete" />
</el-button>
</el-tooltip> -->
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination
v-show="listQuery.total > 0"
:total="listQuery.total"
:page.sync="listQuery.pageNo"
:limit.sync="listQuery.pageSize"
:page-sizes="[5, 10, 15]"
@pagination="getList" />
</div> </div>
<div class="drawer-body__footer"> <div class="drawer-body__footer">
<el-button style="" type="primary" @click="goback()">关闭</el-button> <el-button plain type="primary" @click="goback()">关闭</el-button>
<!-- <el-button v-if="isdetail" type="primary" @click="goEdit()"> <el-button type="primary" @click="saveData()" :disabled='isSaved'>保存</el-button>
编辑
</el-button>
<el-button v-else type="primary" @click="dataFormSubmit()">确定</el-button> -->
</div> </div>
</div> </div>
<!-- <attr-add
v-if="addOrUpdateVisible"
ref="addOrUpdate"
:material-id="dataForm.id"
@refreshDataList="getList" /> -->
</el-drawer> </el-drawer>
</template> </template>
<script> <script>
import basicAdd from '../../core/mixins/basic-add'; import basicAdd from '../../core/mixins/basic-add';
import { getConOrderList, createConCoreWOr, getCoreWO } from '@/api/base/coreWorkOrder'; import { getConOrderList, updateBatch, getCoreWO } from '@/api/base/coreWorkOrder';
import SmallTitle from './SmallTitle'; import SmallTitle from './SmallTitle';
// import { parseTime } from '../../core/mixins/code-filter';
// import attrAdd from './attr-add';
export default { export default {
mixins: [basicAdd], mixins: [basicAdd],
@ -118,100 +78,51 @@ export default {
urlOptions: { urlOptions: {
infoURL: getCoreWO, infoURL: getCoreWO,
}, },
listQuery: {
pageSize: 10,
pageNo: 1,
total: 0,
},
dataForm: { dataForm: {
id: undefined, id: undefined,
code: undefined, code: undefined,
productId: '', productId: '',
remark: undefined, remark: undefined,
}, },
productList: [],
materialAttrList: [],
materialList: [],
tableData: [], tableData: [],
visible: false, visible: false,
isdetail: false, isSaved:false
idAttrShow: false
}; };
}, },
mounted() {}, mounted() {},
methods: { methods: {
initData() { saveData() {
// this.materialAttrList.splice(0); console.log(this.tableData)
this.listQuery.total = 0; let sunNum = 0
}, this.tableData.forEach(row => {
edit(row) { sunNum+=(row.actualAssignmentQuantity || 0)
row.isEdit = true })
}, if (sunNum > this.dataForm.actualQuantity) {
saveData(row) { this.$message.warning('各订单实际分配数量之和不能大于实际生产数量');
if (row.actualAssignmentQuantity) { return
if (row.id) {
// updateMaterialPBDet({
// ...row
// }).then((response) => {
// this.$modal.msgSuccess('');
// // this.visible = false;
// this.getList();
// });
// return;
}
//
createConCoreWOr({
...row,
workOrderId: this.dataForm.id
}).then((response) => {
this.$modal.msgSuccess('分配成功');
// this.visible = false;
this.getList();
});
} else {
this.$message.warning('请填写实际分配数量');
} }
updateBatch(this.tableData).then((response) => {
this.$modal.msgSuccess('分配成功');
this.isSaved = true;
});
}, },
getList() { getList() {
// Bom // Bom
getConOrderList({ getConOrderList({
...this.listQuery,
workOrderId: this.dataForm.id workOrderId: this.dataForm.id
}).then((response) => { }).then((response) => {
this.tableData = response.data.map(item => { this.tableData = response.data.map(item => {
item.isEdit = false item.actualAssignmentQuantity = item.actualAssignmentQuantity || 0
item.workOrderId = this.dataForm.id
return item return item
}); });
this.listQuery.total = response.data.total;
}); });
}, },
// init(id) {
// addRow() {
// const row = {
// bomId: this.dataForm.id,
// materialId: '',
// num: 0,
// materialCode: undefined,
// unit: undefined,
// remark: '',
// isEdit: true
// }
// this.tableData.push(row)
// },
init(id, isdetail) {
this.initData();
this.isdetail = isdetail || false;
this.dataForm.id = id || undefined; this.dataForm.id = id || undefined;
this.visible = true; this.visible = true;
// if (id) { this.isSaved = false;
// this.idAttrShow = true
// } else {
// this.idAttrShow = false
// }
this.$nextTick(() => { this.$nextTick(() => {
// this.$refs['dataForm'].resetFields();
if (this.dataForm.id) { if (this.dataForm.id) {
// //
this.urlOptions.infoURL(id).then(response => { this.urlOptions.infoURL(id).then(response => {
@ -225,17 +136,6 @@ export default {
goback() { goback() {
this.$emit('refreshDataList'); this.$emit('refreshDataList');
this.visible = false; this.visible = false;
// this.initData();
},
goEdit() {
this.isdetail = false;
},
// /
addNew(id) {
this.addOrUpdateVisible = true;
this.$nextTick(() => {
this.$refs.addOrUpdate.init(id);
});
} }
} }
}; };
@ -279,8 +179,7 @@ export default {
padding-right: 10px; /* 调整滚动条样式 */ padding-right: 10px; /* 调整滚动条样式 */
} }
.drawer >>> .el-form, .drawer >>> .el-form {
.drawer >>> .attr-list {
padding: 0 16px; padding: 0 16px;
} }
@ -289,10 +188,19 @@ export default {
justify-content: flex-end; justify-content: flex-end;
padding: 18px; padding: 18px;
} }
.formContent { .formContainer {
font-size: 16px; .label {
line-height: 1.5; display: inline-block;
padding: 5px 0px;
font-size: 14px;
font-weight: 600;
}
.text {
display: inline-block;
padding: 5px 0px;
font-size: 14px;
color:rgba(102, 102, 102, 0.75);
}
margin-bottom: 10px; margin-bottom: 10px;
width: 100%;
} }
</style> </style>

File diff suppressed because it is too large Load Diff

View File

@ -130,17 +130,7 @@ export default {
{ {
name: 'status', name: 'status',
type: 'equal', type: 'equal',
value: 2 value: 1
},
{
name: 'status',
type: 'equal',
value: 3
},
{
name: 'status',
type: 'equal',
value: 4
} }
] ]
} }
@ -315,7 +305,14 @@ export default {
{ {
prop: 'status', prop: 'status',
label: '工单状态', label: '工单状态',
filter: (val) => ['', '等待', '激活', '暂停', '完成', '', '', '', '', '作废'][val] filter: (val) => ['', '等待', '激活', '暂停', '完成', '作废', '终止', '', '', ''][val]
},
{
prop: 'startProduceTime',
label: '实际开始时间',
filter: parseTime,
minWidth: 150,
showOverflowtooltip: true
}, },
{ {
prop: 'planFinishTime', prop: 'planFinishTime',
@ -362,20 +359,20 @@ export default {
}) })
}, },
refreshWorkOrder(val) { refreshWorkOrder(val) {
console.log(val) // if (val) {
if (val) { // // 使
// 使 // console.log('使')
console.log('预使用原料信息') // this.handleCancel()
this.handleCancel() // this.getDataList()
this.getDataList() // this.materialVisible = true;
this.materialVisible = true; // this.addOrEditTitle = "使";
this.addOrEditTitle = "预使用主原料信息"; // this.$nextTick(() => {
this.$nextTick(() => { // this.$refs.material.init(val, true);
this.$refs.material.init(val, true); // });
}); // } else {
} else { // this.successSubmit()
this.successSubmit() // }
} this.successSubmit()
}, },
closeDetail() { closeDetail() {
this.detailVisible = false this.detailVisible = false
@ -417,7 +414,7 @@ export default {
opration = '暂停' opration = '暂停'
} }
if (val.type === 'nullify') { if (val.type === 'nullify') {
param.status = 9 param.status = 5
opration = '报废' opration = '报废'
} }
if (val.type === 'finish') { if (val.type === 'finish') {
@ -475,7 +472,6 @@ export default {
switch (val.btnName) { switch (val.btnName) {
case 'search': case 'search':
this.listQuery.pageNo = 1; this.listQuery.pageNo = 1;
this.listQuery.pageSize = 10;
this.listQuery.name = val.name ? val.name : undefined; this.listQuery.name = val.name ? val.name : undefined;
this.listQuery.status = val.status ? val.status : undefined; this.listQuery.status = val.status ? val.status : undefined;
this.listQuery.startProduceTime = val.time ? val.time : undefined this.listQuery.startProduceTime = val.time ? val.time : undefined
@ -484,7 +480,6 @@ export default {
case 'reset': case 'reset':
this.$refs.searchBarForm.resetForm(); this.$refs.searchBarForm.resetForm();
this.listQuery = { this.listQuery = {
pageSize: 10,
pageNo: 1, pageNo: 1,
total: 1, total: 1,
}; };

View File

@ -1,23 +1,20 @@
<!-- <!--
* @Author: zhp * @Author: zhp
* @Date: 2024-09-09 15:39:08 * @Date: 2024-09-09 15:39:08
* @LastEditTime: 2024-09-11 10:25:54 * @LastEditTime: 2024-11-18 16:43:54
* @LastEditors: zhp * @LastEditors: zwq
* @Description: * @Description:
--> -->
<template> <template>
<div> <div>
<div class="button-nav"> <div class="button-nav">
<!-- <div class="text-carousel"> --> <!-- <div class="text-carousel"> -->
<el-button style="flex: .1" type="text" @click="prevText" icon="el-icon-caret-left"></el-button> <el-button class='btn' style="flex: .1" type="text" @click="prevText" icon="el-icon-caret-left"></el-button>
<button @click="handleChange(item.id)" v-for="(item,index) in idList" :key="item.id" <button class='tap-btn' @click="handleChange(item.id)" v-for="(item,index) in idList" :key="item.id"
:class="[item.id === currentMenu ? 'active' : '']">{{ item.name }} :class="[item.id === currentMenu ? 'active' : '']">{{ item.name }}
</button> </button>
<el-button style="flex: .1" type="text" @click="nextText" icon="el-icon-caret-right"></el-button> <el-button class='btn' style="flex: .1" type="text" @click="nextText" icon="el-icon-caret-right"></el-button>
<button style="flex: .2;display: inline-block;" @click="goback()"> <el-button type="primary" plain style="flex: .2;margin-left: 0px;" @click="goback()"><svg-icon icon-class="return" />返回</el-button>
<svg-icon style="width: 20px; height: 20px" :icon-class=" 'back' " />
<span>返回</span>
</button>
</div> </div>
<!-- </div> --> <!-- </div> -->
</div> </div>
@ -84,16 +81,19 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.button-nav { .button-nav {
width: 100%; width: 100%;
padding: 12px 0; padding-bottom:5px;
display: flex; display: flex;
// justify-content: space-around;
gap: 12px; gap: 12px;
* { * {
user-select: none; user-select: none;
} }
.btn {
background: #fff;
}
button { .tap-btn {
font-size: 16px;
cursor: pointer; cursor: pointer;
appearance: none; appearance: none;
outline: none; outline: none;
@ -102,7 +102,7 @@ export default {
border-radius: 8px; border-radius: 8px;
border-bottom-left-radius: 5px; border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px; border-bottom-right-radius: 5px;
padding: 20px; height: 40px;
color: #888; color: #888;
letter-spacing: 2px; letter-spacing: 2px;
flex: 1; flex: 1;

View File

@ -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>

View File

@ -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(

View File

@ -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: {

View File

@ -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: '备注',

View File

@ -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',