添加缓存物料按钮

This commit is contained in:
2025-03-06 15:19:10 +08:00
parent c4df1d1876
commit 42dd62d4a3
4 changed files with 66 additions and 5 deletions

View File

@@ -11,6 +11,7 @@
<p class="point_value">{{ e.device_code }}</p>
<div v-if="e.type === '1'" class="button" @click="showPop('CONTAINER', e)">呼叫空框</div>
<div v-if="e.type === '1'" class="button" @click="showPop('SCANER', e)">完成入库</div>
<div v-if="e.type === '0'" class="button" @click="showPop('CACHE', e)">缓存物料</div>
<div v-if="e.type === '0'" class="button" @click="showPop('PALLET', e)">当前托盘</div>
<div v-if="e.type === '0'" class="button" @click="showPop('BACK', e)">回库</div>
</div>
@@ -267,6 +268,34 @@
</el-col>
</el-row>
</div>
<div v-show="type === 'CACHE'" class="pop-wraper" :class="{'popshow': show, 'pophide': !show}">
<el-row :gutter="20" class="filter-wraper">
<el-col :span="2" class="p-label">载具号</el-col>
<el-col :span="8" class="select-wraper">
<input v-model="vcode" type="text" class="set-input" disabled>
</el-col>
</el-row>
<div class="pop-grid pop-grid_1">
<el-table
:data="popList"
height="100%"
>
<el-table-column
prop="order_code"
label="订单号"
/>
<el-table-column
prop="material_id"
label="物料号"
/>
</el-table>
</div>
<el-row type="flex" justify="space-around">
<el-col :span="4">
<button class="login_button login_button_dis" @click="show = false">返回</button>
</el-col>
</el-row>
</div>
<div v-show="show" class="modal" />
<div v-show="alertShow" class="pop-wraper pop-wraper-1" :class="{'popshow': alertShow, 'pophide': !alertShow}" style="z-index: 22;">
<div class="pop-h1">提示</div>
@@ -384,6 +413,12 @@ export default {
this.popList = [...res.materialList]
})
this.show = true
} else if (type === 'CACHE') {
crudProduceScreen.selectCacheTask({ deviceCode: this.popData.device_code }).then(res => {
this.popList = [...res.materialList]
this.vcode = res.vehicleCode
this.show = true
})
}
},
handleCurrentChange(val) {