需求修改

This commit is contained in:
蔡玲
2024-09-05 16:33:48 +08:00
parent 497e47beab
commit 4290d8cc1a
5 changed files with 58 additions and 81 deletions

View File

@@ -9,9 +9,9 @@
<p v-if="e.type === '1'" class="point_name">{{ e.name }}</p>
<p v-if="e.type === '0'" class="point_name point_name_btn" @click="showPop('IN', e)">{{ e.name }}</p>
<p class="point_value">{{ e.device_code }}</p>
<div v-if="e.type === '1'" class="button" @click="showPop('CONTAINER', e)">CONTAINER</div>
<div v-if="e.type === '1'" class="button" @click="showPop('SCANER', e)">SCANER</div>
<div v-if="e.type === '0'" class="button" @click="showPop('BACK', e)">BACK</div>
<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('BACK', e)">回库</div>
</div>
</div>
<div v-show="type === 'IN'" class="pop-wraper" :class="{'popshow': show, 'pophide': !show}">
@@ -107,10 +107,10 @@
</el-row>
</div>
<div v-show="type === 'SCANER'" class="pop-wraper" :class="{'popshow': show, 'pophide': !show}">
<el-row class="filter-wraper" style="width: 50%" type="flex" justify="space-between">
<el-col :span="5" class="p-label">目的地</el-col>
<el-col :span="18" class="select-wraper">
<el-select v-model="value1" placeholder="请选择">
<el-row class="filter-wraper" type="flex" justify="space-between">
<el-col :span="2" class="p-label">目的地</el-col>
<el-col :span="8" class="select-wraper">
<el-select v-model="value1" placeholder="请选择" @change="selectChange">
<el-option
v-for="item in options1"
:key="item.value"
@@ -120,6 +120,11 @@
/>
</el-select>
</el-col>
<el-col :span="2" class="p-label" />
<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">
</el-col>
</el-row>
<div class="pop-grid pop-grid_1">
<el-table
@@ -130,21 +135,31 @@
label="订单号"
>
<template slot-scope="scope">
<input v-model="scope.row.order_code" type="text" class="set-input">
<div class="select-wraper">
<el-select v-model="scope.row.order_code" placeholder="请选择" :disabled="value1 !== '1'">
<el-option
v-for="item in options2"
:key="item.order_code"
:label="item.order_code"
:value="item.order_code"
class="option-wraper"
/>
</el-select>
</div>
</template>
</el-table-column>
<el-table-column
label="数量"
>
<template slot-scope="scope">
<input v-model="scope.row.material_qty" type="text" class="set-input">
<input v-model="scope.row.material_qty" :disabled="value1 !== '1'" type="text" class="set-input" :class="{'set-input_dis': value1 !== '1'}">
</template>
</el-table-column>
<el-table-column
label="操作"
>
<template>
<el-button circle type="primary" icon="el-icon-plus" @click="addRow" />
<el-button circle :type="value1 === '1' ? 'primary' : 'info'" icon="el-icon-plus" @click="addRow" />
</template>
</el-table-column>
</el-table>
@@ -192,6 +207,7 @@
<script>
import crudProduceScreen from './produceScreen'
// import crudProduceScreen from './mork'
export default {
data() {
return {
@@ -204,7 +220,10 @@ export default {
value: '',
options: [{ value: 'G01', label: '钢托盘' }, { value: 'R01', label: '990mm笼框' }, { value: 'R02', label: '450mm 笼框' }, { value: 'S04', label: '1670mm料架' }, { value: 'S06', label: '1700mm料架' }],
value1: '',
options1: [{ value: 'G01', label: '钢托盘' }, { value: 'R01', label: '990mm笼框' }, { value: 'R02', label: '450mm 笼框' }, { value: 'S04', label: '1670mm料架' }, { value: 'S06', label: '1700mm料架' }],
options1: [{ value: '1', label: '货架' }, { value: '2', label: '内部' }, { value: '3', label: '外协' }],
value2: '',
options2: [],
vcode: '',
disabled: false
}
},
@@ -235,6 +254,7 @@ export default {
this.currentRow = null
this.value = ''
this.value1 = ''
this.vcode = ''
this.type = type
this.popData = e
if (type === 'IN') {
@@ -249,7 +269,9 @@ export default {
this.show = true
this.emptyObj.device_code = e.name
} else if (type === 'SCANER') {
this.popList.push({ order_code: '', material_qty: '' })
crudProduceScreen.fabOrders({ device_code: this.popData.device_code }).then(res => {
this.options2 = [...res]
})
this.show = true
} else if (type === 'BACK') {
crudProduceScreen.fabOrders({ device_code: this.popData.device_code }).then(res => {
@@ -306,6 +328,12 @@ export default {
this.show = false
},
addRow() {
if (this.value1 === '1') {
this.popList.push({ order_code: '', material_qty: '' })
}
},
selectChange(e) {
this.popList = []
this.popList.push({ order_code: '', material_qty: '' })
}
}