diff --git a/klp-ui/src/components/DictSelect/index.vue b/klp-ui/src/components/DictSelect/index.vue index eae364f4..cb48fef6 100644 --- a/klp-ui/src/components/DictSelect/index.vue +++ b/klp-ui/src/components/DictSelect/index.vue @@ -8,10 +8,11 @@ style="width: 200px;" :multiple="multiple" collapse-tags> @@ -152,11 +153,12 @@ export default { props: { dictType: { type: String, default: '' }, editable: { type: Boolean, default: true }, - kisv: { type: Boolean, default: false }, + kisv: { type: Boolean, default: true }, value: { type: String, default: '' }, placeholder: { type: String, default: '请选择' }, refresh: { type: Boolean, default: true }, multiple: { type: Boolean, default: false }, + disables: { type: String, default: '' }, }, data() { return { @@ -199,7 +201,15 @@ export default { this.$emit('change', val) } } - } + }, + disabledOptions() { + return this.dictOptions.map(item => { + return { + ...item, + disabled: this.disabledFormat(item.dictValue) + } + }) + }, }, watch: { dictType: { @@ -235,6 +245,13 @@ export default { this.dictId = res.rows[0].dictId return this.dictId }, + disabledFormat(item) { + if (this.disables) { + const list = this.disables.split(',') + return list.includes(item) + } + return false + }, // 新增:刷新字典数据 async handleRefresh() { this.loading = true diff --git a/klp-ui/src/views/wms/hrm/records/meal.vue b/klp-ui/src/views/wms/hrm/records/meal.vue index 22a91760..06d297aa 100644 --- a/klp-ui/src/views/wms/hrm/records/meal.vue +++ b/klp-ui/src/views/wms/hrm/records/meal.vue @@ -163,11 +163,11 @@ - +
({{ form.dineInPeople || 0 }}人)
- +
({{ form.takeoutPeople || 0 }}人)
diff --git a/klp-ui/src/views/wms/report/zha/day.vue b/klp-ui/src/views/wms/report/zha/day.vue index 946a298a..244e220b 100644 --- a/klp-ui/src/views/wms/report/zha/day.vue +++ b/klp-ui/src/views/wms/report/zha/day.vue @@ -326,7 +326,7 @@ export default { // actionStatus: 2, warehouseId: this.queryParams.planId, // actionType: 401, - actionType: 200, // 分条工序 + actionType: 120, // 分条工序 pageSize: 999, pageNum: 1, startTime: this.queryParams.byCreateTimeStart, diff --git a/klp-ui/src/views/wms/report/zha/month.vue b/klp-ui/src/views/wms/report/zha/month.vue index 8955a84a..2da51625 100644 --- a/klp-ui/src/views/wms/report/zha/month.vue +++ b/klp-ui/src/views/wms/report/zha/month.vue @@ -347,7 +347,7 @@ export default { // actionStatus: 2, warehouseId: this.queryParams.planId, // actionType: 401, - actionType: 200, // 分条工序 + actionType: 120, // 分条工序 pageSize: 999, pageNum: 1, startTime: this.queryParams.byCreateTimeStart, diff --git a/klp-ui/src/views/wms/report/zha/team.vue b/klp-ui/src/views/wms/report/zha/team.vue index bbc28ab6..fbb66efc 100644 --- a/klp-ui/src/views/wms/report/zha/team.vue +++ b/klp-ui/src/views/wms/report/zha/team.vue @@ -402,7 +402,7 @@ export default { // actionStatus: 2, warehouseId: this.queryParams.planId, // actionType: 401, - actionType: 200, // 分条工序 + actionType: 120, // 分条工序 pageSize: 999, pageNum: 1, startTime: this.queryParams.byCreateTimeStart, diff --git a/klp-ui/src/views/wms/report/zha/year.vue b/klp-ui/src/views/wms/report/zha/year.vue index f0fc65b9..b44cef72 100644 --- a/klp-ui/src/views/wms/report/zha/year.vue +++ b/klp-ui/src/views/wms/report/zha/year.vue @@ -331,7 +331,7 @@ export default { // actionStatus: 2, warehouseId: this.queryParams.planId, // actionType: 401, - actionType: 200, // 分条工序 + actionType: 120, // 分条工序 pageSize: 999, pageNum: 1, startTime: this.queryParams.byCreateTimeStart, diff --git a/klp-ui/src/views/wms/report/zha_.vue b/klp-ui/src/views/wms/report/zha_.vue index ae4c6713..da093a03 100644 --- a/klp-ui/src/views/wms/report/zha_.vue +++ b/klp-ui/src/views/wms/report/zha_.vue @@ -195,7 +195,7 @@ export default { // actionStatus: 2, warehouseId: this.queryParams.planId, // actionType: 401, - actionType: 200, // 分条工序 + actionType: 120, // 分条工序 pageSize: 999, pageNum: 1, startTime: this.queryParams.byCreateTimeStart, diff --git a/klp-ui/src/views/wms/report/zinc/day.vue b/klp-ui/src/views/wms/report/zinc/day.vue index 28643833..2b9321cd 100644 --- a/klp-ui/src/views/wms/report/zinc/day.vue +++ b/klp-ui/src/views/wms/report/zinc/day.vue @@ -312,7 +312,7 @@ export default { // actionStatus: 2, warehouseId: this.queryParams.planId, // actionType: 401, - actionType: 200, // 分条工序 + actionType: 120, // 分条工序 pageSize: 999, pageNum: 1, startTime: this.queryParams.byCreateTimeStart, diff --git a/klp-ui/src/views/wms/report/zinc/month.vue b/klp-ui/src/views/wms/report/zinc/month.vue index cf4be4ad..5202efeb 100644 --- a/klp-ui/src/views/wms/report/zinc/month.vue +++ b/klp-ui/src/views/wms/report/zinc/month.vue @@ -333,7 +333,7 @@ export default { // actionStatus: 2, warehouseId: this.queryParams.planId, // actionType: 401, - actionType: 200, // 分条工序 + actionType: 120, // 分条工序 pageSize: 999, pageNum: 1, startTime: this.queryParams.byCreateTimeStart, diff --git a/klp-ui/src/views/wms/report/zinc/team.vue b/klp-ui/src/views/wms/report/zinc/team.vue index d4877d4d..61dcde8c 100644 --- a/klp-ui/src/views/wms/report/zinc/team.vue +++ b/klp-ui/src/views/wms/report/zinc/team.vue @@ -389,7 +389,7 @@ export default { // actionStatus: 2, warehouseId: this.queryParams.planId, // actionType: 401, - actionType: 200, // 分条工序 + actionType: 120, // 分条工序 pageSize: 999, pageNum: 1, startTime: this.queryParams.byCreateTimeStart, diff --git a/klp-ui/src/views/wms/report/zinc/year.vue b/klp-ui/src/views/wms/report/zinc/year.vue index f3469767..7f4ba98c 100644 --- a/klp-ui/src/views/wms/report/zinc/year.vue +++ b/klp-ui/src/views/wms/report/zinc/year.vue @@ -315,7 +315,7 @@ export default { // actionStatus: 2, warehouseId: this.queryParams.planId, // actionType: 401, - actionType: 200, // 分条工序 + actionType: 120, // 分条工序 pageSize: 999, pageNum: 1, startTime: this.queryParams.byCreateTimeStart, diff --git a/klp-ui/src/views/wms/report/zinc_.vue b/klp-ui/src/views/wms/report/zinc_.vue index 39b80183..951d82ac 100644 --- a/klp-ui/src/views/wms/report/zinc_.vue +++ b/klp-ui/src/views/wms/report/zinc_.vue @@ -195,7 +195,7 @@ export default { // actionStatus: 2, warehouseId: this.queryParams.planId, // actionType: 401, - actionType: 200, // 分条工序 + actionType: 120, // 分条工序 pageSize: 999, pageNum: 1, startTime: this.queryParams.byCreateTimeStart,