Browse Source

操作屏优化

master
蔡玲 1 month ago
parent
commit
ccba70a8cf
  1. 24
      lms/nladmin-ui/src/views/wms/produceScreen/index.vue
  2. 5
      lms/nladmin-ui/src/views/wms/produceScreen/style.scss

24
lms/nladmin-ui/src/views/wms/produceScreen/index.vue

@ -14,10 +14,10 @@
<div v-if="e.type === '0'" class="button" @click="showPop('BACK', e)">回库</div> <div v-if="e.type === '0'" class="button" @click="showPop('BACK', e)">回库</div>
</div> </div>
</div> </div>
<div v-show="type === 'IN'" class="pop-wraper" :class="{'popshow': show, 'pophide': !show}"> <div v-show="type === 'IN'" class="pop-wraper pop-wraper-2" :class="{'popshow': show, 'pophide': !show}">
<div class="pop-grid"> <div class="pop-grid">
<el-row type="flex" justify="space-between"> <el-row type="flex" justify="space-between">
<el-col :span="14"> <el-col :span="13">
<el-table <el-table
:data="popList" :data="popList"
style="width: 100%; padding-right: 10px" style="width: 100%; padding-right: 10px"
@ -49,7 +49,7 @@
/> />
</el-table> </el-table>
</el-col> </el-col>
<el-col :span="10"> <el-col :span="11">
<el-table <el-table
:data="popSecList" :data="popSecList"
style="width: 100%" style="width: 100%"
@ -62,6 +62,10 @@
prop="due_date" prop="due_date"
label="交期时间" label="交期时间"
/> />
<el-table-column
prop="material_code"
label="零件号"
/>
<el-table-column <el-table-column
prop="material_qty" prop="material_qty"
label="物料数量" label="物料数量"
@ -179,8 +183,9 @@
<el-table-column <el-table-column
label="操作" label="操作"
> >
<template> <template slot-scope="scope">
<el-button circle type="primary" icon="el-icon-plus" @click="addRow" /> <el-button circle type="primary" icon="el-icon-plus" @click.native.prevent="addRow(scope.$index, popList)" />
<el-button circle type="primary" icon="el-icon-minus" @click.native.prevent="delRow(scope.$index, popList)" />
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -362,7 +367,7 @@ export default {
} }
const arr = [] const arr = []
this.popList.map(el => { this.popList.map(el => {
if (el.order_code !== '' && el.material_qty !== '') { if (el.order_code !== '' && el.material_qty !== '' && el.material_code !== '') {
arr.push(el) arr.push(el)
} }
}) })
@ -381,8 +386,11 @@ export default {
} }
this.show = false this.show = false
}, },
addRow() { addRow(index, rows) {
this.popList.push({ order_code: '', material_qty: '' }) rows.splice(index, 0, { order_code: '', material_qty: '', material_code: '' })
},
delRow(index, rows) {
rows.splice(index, 1)
} }
} }
} }

5
lms/nladmin-ui/src/views/wms/produceScreen/style.scss

@ -270,6 +270,11 @@
height: auto; height: auto;
background: center / 100% 100% url('~@/assets/images/screen_4.png') no-repeat; background: center / 100% 100% url('~@/assets/images/screen_4.png') no-repeat;
} }
.pop-wraper-2 {
left: 3%;
width: 94%;
padding: 2% 1.5% 3% 1.5%;
}
.popshow { .popshow {
transform: translateY(-50%); transform: translateY(-50%);
} }

Loading…
Cancel
Save