fix:paoaomian也和kaiaomian一样加入分批

This commit is contained in:
shijing 2025-12-23 10:53:37 +08:00
parent a2e849640f
commit 11ebb98897
2 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,6 @@
<el-col :span="14"> <el-col :span="14">
<span style="margin: 0 0 0 20px;" v-if="route_code=='pengma'">选择物料:</span> <span style="margin: 0 0 0 20px;" v-if="route_code=='pengma'">选择物料:</span>
<el-input ref="codeInput" <el-input ref="codeInput"
v-if="route_code=='pengma'"
placeholder="扫描交接物料" placeholder="扫描交接物料"
v-model="listItem.wm_in" clearable v-model="listItem.wm_in" clearable
style="width: 120px;margin: 0 10px;" style="width: 120px;margin: 0 10px;"
@ -70,7 +69,7 @@
<span>{{ item3 }}</span> <span>{{ item3 }}</span>
</div> --> </div> -->
</el-col> </el-col>
<el-col v-else-if="route_code=='kaiaomian'" :span="24" style="padding-left: 80px;margin-bottom: 20px;margin-top: -5px;"> <el-col v-else :span="24" style="padding-left: 80px;margin-bottom: 20px;margin-top: -5px;">
<span v-for="(item2) in wprOptions" :key="item2.wpr" style="margin-right: 10px;"> <span v-for="(item2) in wprOptions" :key="item2.wpr" style="margin-right: 10px;">
<el-checkbox v-model="item2.checked" :label="item2.number" @change="handleChange($index)"/> <el-checkbox v-model="item2.checked" :label="item2.number" @change="handleChange($index)"/>
</span> </span>
@ -262,11 +261,12 @@ export default {
}else{ }else{
//handoverbdisabled //handoverbdisabled
that.wprOptions.forEach(item=>{ that.wprOptions.forEach(item=>{
if(item.number.indexOf(arr) > -1){ if(item.number.indexOf(number) > -1){
if(item.disabled){ if(item.disabled){
that.$message.error("该物料已被分配"); that.$message.error("该物料已被分配");
that.form.handoverb[index].wpr = ''; that.form.handoverb[index].wpr = '';
}else{ }else{
item.checked = true;
item.disabled = true; item.disabled = true;
let obj = {}; let obj = {};
obj.number = item.number; obj.number = item.number;

View File

@ -93,7 +93,7 @@
min-width="150" min-width="150"
> >
<template #default="scope"> <template #default="scope">
<span v-if="route_code=='pengma'||route_code=='kaiaomian'" @click="rowClick(scope.row)" style="color:#0052d9;font-weight: 600;cursor: pointer;">{{scope.row.batch}}</span> <span v-if="route_code=='pengma'||route_code=='kaiaomian'||route_code=='paoaomian'" @click="rowClick(scope.row)" style="color:#0052d9;font-weight: 600;cursor: pointer;">{{scope.row.batch}}</span>
<span v-else>{{scope.row.batch}}</span> <span v-else>{{scope.row.batch}}</span>
</template> </template>
</el-table-column> </el-table-column>