|
@ -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) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|