|
@@ -38,11 +38,24 @@
|
|
|
@on-change="handleChangeEmployee($event, index)"></b-form-select>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="secd_input">
|
|
|
+ <div class="secd_input" v-for='(_item,_index) in item.box_orders_label_product' :key="_index" style="flex-direction: column;">
|
|
|
+ <div style="display: flex">
|
|
|
+ <div class="secd_input_l">商标名称:</div>
|
|
|
+ <div class="secd_input_r">
|
|
|
+ <span>{{_item.product_title}}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="display: flex;margin-top: .5rem">
|
|
|
<div class="secd_input_l">商标损耗:</div>
|
|
|
<div class="secd_input_r">
|
|
|
- <b-form-select id="input-3" v-model="item.num" :options="numList" class="inp select_list" required
|
|
|
- placeholder="请选择设备" @change="(e) => handleChangeEquipment(e, index)"></b-form-select>
|
|
|
+ <input style="height: 2.2rem" type="text" v-model="_item.loss_num" placeholder="请输入数量">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="display: flex;margin-top: .5rem">
|
|
|
+ <div class="secd_input_l">商标备注:</div>
|
|
|
+ <div class="secd_input_r">
|
|
|
+ <input style="height: 2.2rem" type="text" v-model="_item.remark" placeholder="请输入备注">
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -186,8 +199,30 @@ export default {
|
|
|
initData(id) {
|
|
|
if (id) {
|
|
|
this.list = JSON.parse(localStorage.getItem(id + ''))
|
|
|
+ let box_orders_label_product = [];
|
|
|
+ {
|
|
|
+ order_no:
|
|
|
+ order_item_no:
|
|
|
+ order_item_id:""
|
|
|
+ }
|
|
|
this.list.forEach(v => {
|
|
|
- v.team_id = ''
|
|
|
+ v.team_id = '';
|
|
|
+ v.box_orders_label_product = [];
|
|
|
+ v.prod_trademark_compare_c.brand_code.split(',').forEach((c, idx) => {
|
|
|
+ let obj = {}
|
|
|
+ obj.order_no = v.exe_sale_order_b.no
|
|
|
+ obj.order_item_no = v.item_no
|
|
|
+ obj.order_item_id = v.id
|
|
|
+ obj.loss_num = ''
|
|
|
+ obj.product_no = c
|
|
|
+ obj.product_title = v.prod_trademark_compare_c.brand_code_show.split('$$$')[idx]
|
|
|
+ obj.product_size = v.specs
|
|
|
+ obj.product_unit = v.unit_code
|
|
|
+ obj.product_unit_title = v.unit_code_show
|
|
|
+ obj.remark = ''
|
|
|
+ obj.site = null
|
|
|
+ v.box_orders_label_product.push(obj)
|
|
|
+ })
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -210,11 +245,13 @@ export default {
|
|
|
},
|
|
|
handleSure() {
|
|
|
let box_orders_products = [];
|
|
|
+ let box_orders_label_products = []
|
|
|
let team_id = '';
|
|
|
// let team_name = '';
|
|
|
// let employee_ids = '';
|
|
|
// let employee_names = '';
|
|
|
this.list.forEach((v, index) => {
|
|
|
+ box_orders_label_products.push(...v.box_orders_label_product)
|
|
|
let box_orders_product = {
|
|
|
"item_num": (index + 1),
|
|
|
"product_no": v.material_code,
|
|
@@ -265,7 +302,7 @@ export default {
|
|
|
"showModelId": "474108545251880960",
|
|
|
data: {
|
|
|
"box_orders": box_orders,
|
|
|
- "box_orders_label_product": [],
|
|
|
+ "box_orders_label_product": box_orders_label_products,
|
|
|
"box_orders_product": box_orders_products,
|
|
|
"production_orders_dtl": box_orders_products,
|
|
|
}
|
|
@@ -512,6 +549,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
.send_work {
|
|
|
+ height:24rem;
|
|
|
background-image: url('../../../assets/home/packUpback.png');
|
|
|
background-size: 100% 100%;
|
|
|
margin-top: 1.38rem;
|