Merge remote-tracking branch 'origin/0.8.X' into 0.8.X
This commit is contained in:
@@ -127,7 +127,7 @@ export function completeAction(actionId, newCoilIds) {
|
|||||||
url: `/wms/coilPendingAction/complete/${actionId}`,
|
url: `/wms/coilPendingAction/complete/${actionId}`,
|
||||||
method: 'put',
|
method: 'put',
|
||||||
params: {
|
params: {
|
||||||
newCoilIds: newCoilIds
|
newCoilIds: newCoilIds || '-'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,25 +1,34 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="muti-select">
|
<div class="muti-select">
|
||||||
<!-- 下拉选择模式 -->
|
<!-- 下拉选择模式 -->
|
||||||
<el-select
|
<div v-if="type === 'select'" class="select-container">
|
||||||
v-if="type === 'select'"
|
<el-select
|
||||||
v-model="innerValue"
|
v-model="innerValue"
|
||||||
multiple
|
multiple
|
||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
:filterable="filterable"
|
:filterable="filterable"
|
||||||
:clearable="clearable"
|
:clearable="clearable"
|
||||||
:allow-create="allowAdd"
|
:allow-create="allowAdd"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:size="size"
|
:size="size"
|
||||||
@change="handleChange"
|
@change="handleChange"
|
||||||
>
|
>
|
||||||
<el-option
|
<!-- 全选选项 -->
|
||||||
v-for="item in options"
|
<el-option
|
||||||
:key="item.value"
|
v-if="showSelectAll && options.length > 0"
|
||||||
:label="item.label"
|
key="selectAll"
|
||||||
:value="item.value"
|
label="全选"
|
||||||
/>
|
value="selectAll"
|
||||||
</el-select>
|
@click="toggleSelectAll"
|
||||||
|
/>
|
||||||
|
<el-option
|
||||||
|
v-for="item in options"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- 复选框模式 -->
|
<!-- 复选框模式 -->
|
||||||
<div v-else-if="type === 'checkbox'" class="checkbox-group">
|
<div v-else-if="type === 'checkbox'" class="checkbox-group">
|
||||||
@@ -33,14 +42,14 @@
|
|||||||
{{ item.label }}
|
{{ item.label }}
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
<!-- <el-button
|
<el-button
|
||||||
v-if="showSelectAll && options.length > 0"
|
v-if="showSelectAll && options.length > 0"
|
||||||
type="text"
|
type="text"
|
||||||
size="small"
|
size="small"
|
||||||
@click="toggleSelectAll"
|
@click="toggleSelectAll"
|
||||||
>
|
>
|
||||||
{{ isAllSelected ? '取消全选' : '全选' }}
|
{{ isAllSelected ? '取消全选' : '全选' }}
|
||||||
</el-button> -->
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -114,7 +123,9 @@
|
|||||||
methods: {
|
methods: {
|
||||||
// 处理选择变化
|
// 处理选择变化
|
||||||
handleChange(val) {
|
handleChange(val) {
|
||||||
this.$emit('change', val.join(','));
|
// 过滤掉 'selectAll' 选项
|
||||||
|
const filteredVal = val.filter(item => item !== 'selectAll');
|
||||||
|
this.$emit('change', filteredVal.join(','));
|
||||||
},
|
},
|
||||||
// 处理复选框变化
|
// 处理复选框变化
|
||||||
handleCheckboxChange(val) {
|
handleCheckboxChange(val) {
|
||||||
|
|||||||
@@ -82,10 +82,10 @@ export default {
|
|||||||
{ required: true, message: '请选择位置', trigger: 'change' },
|
{ required: true, message: '请选择位置', trigger: 'change' },
|
||||||
{ validator: this.validateArray, trigger: 'change' }
|
{ validator: this.validateArray, trigger: 'change' }
|
||||||
],
|
],
|
||||||
plateSurface: [
|
// plateSurface: [
|
||||||
{ required: true, message: '请选择上下板面', trigger: 'change' },
|
// { required: true, message: '请选择上下板面', trigger: 'change' },
|
||||||
{ validator: this.validateArray, trigger: 'change' }
|
// { validator: this.validateArray, trigger: 'change' }
|
||||||
],
|
// ],
|
||||||
startPosition: [
|
startPosition: [
|
||||||
{ required: true, message: '请输入开始位置', trigger: ['blur', 'change'] },
|
{ required: true, message: '请输入开始位置', trigger: ['blur', 'change'] },
|
||||||
{ validator: this.validateStartPosition, trigger: ['blur', 'change'] }
|
{ validator: this.validateStartPosition, trigger: ['blur', 'change'] }
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
<div class="section-header">
|
<div class="section-header">
|
||||||
<h4 class="section-title">异常记录</h4>
|
<h4 class="section-title">异常记录</h4>
|
||||||
<div>
|
<div>
|
||||||
<el-button type="primary" size="mini" @click="handleSave">保存</el-button>
|
<el-button type="primary" size="mini" @click="handleSave" :loading="buttonLoading">保存</el-button>
|
||||||
<el-button type="default" icon="el-icon-refresh" plain size="mini" @click="refreshAbnormalList"
|
<el-button type="default" icon="el-icon-refresh" plain size="mini" @click="refreshAbnormalList"
|
||||||
:loading="abnormalLoading">
|
:loading="abnormalLoading">
|
||||||
刷新
|
刷新
|
||||||
@@ -291,10 +291,10 @@ export default {
|
|||||||
this.$message.error(`第${rowIndex}行:请选择断面位置`)
|
this.$message.error(`第${rowIndex}行:请选择断面位置`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!row.plateSurface || row.plateSurface.length === 0) {
|
// if (!row.plateSurface || row.plateSurface.length === 0) {
|
||||||
this.$message.error(`第${rowIndex}行:请选择上下板面`)
|
// this.$message.error(`第${rowIndex}行:请选择上下板面`)
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
if (!row.defectCode) {
|
if (!row.defectCode) {
|
||||||
this.$message.error(`第${rowIndex}行:请选择缺陷代码`)
|
this.$message.error(`第${rowIndex}行:请选择缺陷代码`)
|
||||||
return
|
return
|
||||||
@@ -445,7 +445,7 @@ export default {
|
|||||||
|
|
||||||
.exception-section {
|
.exception-section {
|
||||||
background-color: #fafafa;
|
background-color: #fafafa;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
border: 1px solid #e4e7ed;
|
border: 1px solid #e4e7ed;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
export const dugeConfig = {
|
export const dugeConfig = {
|
||||||
actionTypes: [505, 120],
|
actionTypes: [505, 120],
|
||||||
actionQueryParams: {
|
actionQueryParams: {
|
||||||
createBy: 'dugekuguan'
|
createBys: 'dugekuguan'
|
||||||
},
|
},
|
||||||
baseQueryParams: {
|
baseQueryParams: {
|
||||||
createBy: 'dugekuguan',
|
createBy: 'dugekuguan',
|
||||||
@@ -19,7 +19,7 @@ export const dugeConfig = {
|
|||||||
export const lajiaoConfig = {
|
export const lajiaoConfig = {
|
||||||
actionTypes: [503, 120],
|
actionTypes: [503, 120],
|
||||||
actionQueryParams: {
|
actionQueryParams: {
|
||||||
updateBy: 'lajiaokuguan'
|
updateBys: 'lajiaokuguan'
|
||||||
},
|
},
|
||||||
baseQueryParams: {
|
baseQueryParams: {
|
||||||
createBy: 'lajiaokuguan',
|
createBy: 'lajiaokuguan',
|
||||||
@@ -37,7 +37,7 @@ export const lajiaoConfig = {
|
|||||||
export const shuangConfig = {
|
export const shuangConfig = {
|
||||||
actionTypes: [504, 120],
|
actionTypes: [504, 120],
|
||||||
actionQueryParams: {
|
actionQueryParams: {
|
||||||
createBy: 'shuangkuguan'
|
createBys: 'shuangkuguan'
|
||||||
},
|
},
|
||||||
baseQueryParams: {
|
baseQueryParams: {
|
||||||
createBy: 'shuangkuguan',
|
createBy: 'shuangkuguan',
|
||||||
@@ -55,7 +55,7 @@ export const shuangConfig = {
|
|||||||
export const tuozhiConfig = {
|
export const tuozhiConfig = {
|
||||||
actionTypes: [502, 120],
|
actionTypes: [502, 120],
|
||||||
actionQueryParams: {
|
actionQueryParams: {
|
||||||
createBy: 'tuozhikuguan'
|
createBys: 'tuozhikuguan'
|
||||||
},
|
},
|
||||||
baseQueryParams: {
|
baseQueryParams: {
|
||||||
createBy: 'tuozhikuguan',
|
createBy: 'tuozhikuguan',
|
||||||
@@ -73,7 +73,7 @@ export const tuozhiConfig = {
|
|||||||
export const suanzhaConfig = {
|
export const suanzhaConfig = {
|
||||||
actionTypes: [11, 120],
|
actionTypes: [11, 120],
|
||||||
actionQueryParams: {
|
actionQueryParams: {
|
||||||
createBy: 'suanzhakuguan'
|
createBys: 'suanzhakuguan,yuanliaoku'
|
||||||
},
|
},
|
||||||
baseQueryParams: {
|
baseQueryParams: {
|
||||||
createBy: 'suanzhakuguan',
|
createBy: 'suanzhakuguan',
|
||||||
@@ -94,7 +94,7 @@ export const suanzhaConfig = {
|
|||||||
export const zincConfig = {
|
export const zincConfig = {
|
||||||
actionTypes: [501, 120],
|
actionTypes: [501, 120],
|
||||||
actionQueryParams: {
|
actionQueryParams: {
|
||||||
createBy: 'duxinkuguan'
|
createBys: 'duxinkuguan'
|
||||||
},
|
},
|
||||||
baseQueryParams: {
|
baseQueryParams: {
|
||||||
createBy: 'duxinkuguan',
|
createBy: 'duxinkuguan',
|
||||||
@@ -113,7 +113,7 @@ export const zincConfig = {
|
|||||||
export const splitConfig = {
|
export const splitConfig = {
|
||||||
actionTypes: [506],
|
actionTypes: [506],
|
||||||
actionQueryParams: {
|
actionQueryParams: {
|
||||||
createBy: 'fenjiankuguan'
|
createBys: 'fenjiankuguan'
|
||||||
},
|
},
|
||||||
baseQueryParams: {
|
baseQueryParams: {
|
||||||
createBy: 'fenjiankuguan',
|
createBy: 'fenjiankuguan',
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ export async function fetchLossList(actionTypes, queryParams, callback) {
|
|||||||
return listPendingAction({
|
return listPendingAction({
|
||||||
actionStatus: 2,
|
actionStatus: 2,
|
||||||
actionType,
|
actionType,
|
||||||
createBy: queryParams.createBy,
|
createBys: queryParams.createBys,
|
||||||
startTime: queryParams.byCreateTimeStart,
|
startTime: queryParams.byCreateTimeStart,
|
||||||
endTime: queryParams.byCreateTimeEnd,
|
endTime: queryParams.byCreateTimeEnd,
|
||||||
pageSize: 99999,
|
pageSize: 99999,
|
||||||
@@ -63,6 +63,7 @@ export async function fetchLossList(actionTypes, queryParams, callback) {
|
|||||||
...queryParams,
|
...queryParams,
|
||||||
byCreateTimeStart: undefined,
|
byCreateTimeStart: undefined,
|
||||||
byCreateTimeEnd: undefined,
|
byCreateTimeEnd: undefined,
|
||||||
|
createBys: undefined,
|
||||||
createBy: undefined,
|
createBy: undefined,
|
||||||
actionIds: actionIds,
|
actionIds: actionIds,
|
||||||
pageSize: 99999,
|
pageSize: 99999,
|
||||||
|
|||||||
@@ -68,10 +68,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listCoilWithIds } from "@/api/wms/coil";
|
|
||||||
import {
|
|
||||||
listPendingAction,
|
|
||||||
} from '@/api/wms/pendingAction';
|
|
||||||
import ProductInfo from "@/components/KLPService/Renderer/ProductInfo";
|
import ProductInfo from "@/components/KLPService/Renderer/ProductInfo";
|
||||||
import RawMaterialInfo from "@/components/KLPService/Renderer/RawMaterialInfo";
|
import RawMaterialInfo from "@/components/KLPService/Renderer/RawMaterialInfo";
|
||||||
import CoilNo from "@/components/KLPService/Renderer/CoilNo.vue";
|
import CoilNo from "@/components/KLPService/Renderer/CoilNo.vue";
|
||||||
|
|||||||
@@ -68,7 +68,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listCoilWithIds } from "@/api/wms/coil";
|
|
||||||
import ProductInfo from "@/components/KLPService/Renderer/ProductInfo";
|
import ProductInfo from "@/components/KLPService/Renderer/ProductInfo";
|
||||||
import RawMaterialInfo from "@/components/KLPService/Renderer/RawMaterialInfo";
|
import RawMaterialInfo from "@/components/KLPService/Renderer/RawMaterialInfo";
|
||||||
import CoilNo from "@/components/KLPService/Renderer/CoilNo.vue";
|
import CoilNo from "@/components/KLPService/Renderer/CoilNo.vue";
|
||||||
|
|||||||
Reference in New Issue
Block a user