|
@@ -218,7 +218,7 @@ export default {
|
|
|
}
|
|
|
const dataBox = {
|
|
|
url: 'http://121.36.142.167:7774/jbl/api/module-data/box_orders/box_orders/diy/defective_order_no_list',
|
|
|
- post: { "defective_order_no_list":["BZ00266"]}
|
|
|
+ post: { "defective_order_no_list":text}
|
|
|
}
|
|
|
// const dataBox = {
|
|
|
// url: 'http://121.36.142.167:7774/jbl/api/module-data/box_orders/box_orders/diy/defective_order_no_list',
|
|
@@ -246,7 +246,8 @@ export default {
|
|
|
"process_title": element.process_title,
|
|
|
"process_title_two": element.process_title_two,
|
|
|
"box_orders": element.box_orders.id,
|
|
|
- "box_id": element.box_orders.id
|
|
|
+ "box_id": element.box_orders.id,
|
|
|
+ 'box_detail': element
|
|
|
}
|
|
|
this.scan_data.push(object)
|
|
|
})
|
|
@@ -271,7 +272,7 @@ export default {
|
|
|
let table_data_detail = JSON.parse(JSON.stringify(this.key_tableData[this.deelUniqueProductKey(element)]))
|
|
|
table_data_detail.box_orders = element.box_id
|
|
|
table_data_detail.box_orders_show = element.box_no
|
|
|
- table_data_detail.box_detail = element
|
|
|
+ table_data_detail.box_detail = element.box_detail
|
|
|
table_data_detail.this_delivery_qty = element.box_num
|
|
|
table_data_detail.out_qty = element.box_num
|
|
|
this.key_tableData[this.deelUniqueProductKey(element)].this_delivery_qty -= element.box_num*1
|
|
@@ -297,114 +298,118 @@ export default {
|
|
|
const date = new Date()
|
|
|
const now_time = date.toISOString()
|
|
|
this.data = {
|
|
|
- auditInfo: null,
|
|
|
- // bizId: "491138208411951104",
|
|
|
+ // auditInfo: null,
|
|
|
+ bizId: -1,
|
|
|
bizTypeEk: 'LOWCODE',
|
|
|
- businessType: null,
|
|
|
+ // businessType: null,
|
|
|
// createdBy: "473698106823094272",
|
|
|
createdDate: now_time,
|
|
|
- dynamicFormId: "474057887278641152",
|
|
|
- extDataId: null,
|
|
|
+ dynamicFormId: '474057887278641152',
|
|
|
+ // extDataId: null,
|
|
|
// id: "491138208411951104",
|
|
|
// lastModifiedBy: "473698106823094272",
|
|
|
- lastModifiedDate: now_time,
|
|
|
- requestId: null,
|
|
|
- showModelId: null,
|
|
|
+ // lastModifiedDate: now_time,
|
|
|
+ // requestId: null,
|
|
|
+ showModelId: '474061442555260928',
|
|
|
version: 1,
|
|
|
- versionNo: null,
|
|
|
+ // versionNo: null,
|
|
|
data: {
|
|
|
send_goods_out: {},
|
|
|
send_goods_out_product: []
|
|
|
}
|
|
|
}
|
|
|
this.data.data.send_goods_out = {
|
|
|
- area_selection: this.detail.area_selection,
|
|
|
- area_selection_show: this.detail.area_selection_show,
|
|
|
- attachment: null,
|
|
|
+ send_goods_out_no: null,
|
|
|
+ in_out_type: 'CK007',
|
|
|
box_title: 'WH05001',
|
|
|
- box_title_show: '成品仓',
|
|
|
- carrier: '', //司机姓名
|
|
|
- carrier_phone: '', //司机电话
|
|
|
- contact: this.detail.contact,
|
|
|
- contact_way: this.detail.contact_way,
|
|
|
- delivery_method_dk: this.detail.delivery_method_dk,
|
|
|
- delivery_method_dk_show: this.detail.delivery_method_dk_show,
|
|
|
- detailed_address: this.detail.detailed_address,
|
|
|
- dynamic_form_value_id: this.detail.dynamic_form_value_id,
|
|
|
- expect_date_arrival: this.detail.expect_date_arrival,
|
|
|
- expect_date_arrival_lt: this.detail.expect_date_arrival_lt,
|
|
|
+ out_time: now_time,
|
|
|
+ out_depart: '481280388644478976',
|
|
|
+ out_employee_id: 'RX0001',
|
|
|
expect_date_delivery: this.detail.expect_date_delivery,
|
|
|
- expect_date_delivery_lt: this.detail.expect_date_delivery_lt,
|
|
|
+ expect_date_arrival: this.detail.expect_date_arrival,
|
|
|
+ delivery_method_dk: this.detail.delivery_method_dk,
|
|
|
express_company: null,
|
|
|
express_no: null,
|
|
|
- // id: "491138208583917568"
|
|
|
+ carrier: null, //司机姓名
|
|
|
+ carrier_phone: null, //司机电话
|
|
|
+ plate_no: '3',
|
|
|
id_number: this.detail.id_number,
|
|
|
- in_out_type: 'CK007',
|
|
|
- in_out_type_show: '成品发货出库',
|
|
|
- main_table_id: null,
|
|
|
+ area_selection: this.detail.area_selection,
|
|
|
+ detailed_address: this.detail.detailed_address,
|
|
|
+ contact: this.detail.contact,
|
|
|
+ contact_way: this.detail.contact_way,
|
|
|
+ status: 'NOT_APPROVED',
|
|
|
oa_id: null,
|
|
|
- oa_id_show: null,
|
|
|
oa_time: null,
|
|
|
- oa_time_lt: null,
|
|
|
+ remark: null,
|
|
|
order_no: this.detail.order_no,
|
|
|
- out_depart: '481280388644478976',
|
|
|
+ site: null,
|
|
|
+ in_out_type_show: '成品发货出库',
|
|
|
+ box_title_show: '成品仓',
|
|
|
out_depart_show: '仓储部',
|
|
|
- out_employee_id: 'RX0001',
|
|
|
out_employee_id_show: '郭银',
|
|
|
- out_time: now_time,
|
|
|
- out_time_lt: now_time,
|
|
|
- plate_no: '3',
|
|
|
- remark: null,
|
|
|
- request_id: null,
|
|
|
+ delivery_method_dk_show: this.detail.delivery_method_dk_show,
|
|
|
+ area_selection_show: this.detail.area_selection_show,
|
|
|
+
|
|
|
+ // attachment: null,
|
|
|
+ // dynamic_form_value_id: this.detail.dynamic_form_value_id,
|
|
|
+ // expect_date_arrival_lt: this.detail.expect_date_arrival_lt,
|
|
|
+ // expect_date_delivery_lt: this.detail.expect_date_delivery_lt,
|
|
|
+ // id: "491138208583917568"
|
|
|
+ // main_table_id: null,
|
|
|
+ // oa_id_show: null,
|
|
|
+ // oa_time_lt: null,
|
|
|
+ // out_time_lt: now_time,
|
|
|
+ // request_id: null,
|
|
|
// send_goods_out_no: "FCK2023091700099",
|
|
|
- site: this.detail.site,
|
|
|
- site_show: this.detail.site_show,
|
|
|
- status: 'NOT_APPROVED',
|
|
|
- status_show: '待审核'
|
|
|
+ // site_show: this.detail.site_show,
|
|
|
+ // status_show: '待审核'
|
|
|
}
|
|
|
this.new_table_data.forEach((element,index) =>{
|
|
|
-
|
|
|
+ // console.log(element)
|
|
|
let box_detail = {
|
|
|
- box_orders: element.box_detail.box_orders,
|
|
|
- box_orders_show: element.box_detail.defective_order_no,
|
|
|
- bus_id: element.bus_id,
|
|
|
- bus_item_id: element.bus_item_id,
|
|
|
- bus_item_no: element.item_no,
|
|
|
- bus_no: element.item_no,
|
|
|
- color: element.box_detail.color,
|
|
|
+ item_num: (index + 1),
|
|
|
+ product_code: element.box_detail.product_code,
|
|
|
+ product_title: element.box_detail.product_title,
|
|
|
+ product_size: element.box_detail.product_size,
|
|
|
+ product_unit: element.box_detail.product_unit,
|
|
|
+ product_unit_title: element.box_detail.product_unit_title,
|
|
|
+ process_code: element.box_detail.process_code,
|
|
|
color_code: element.box_detail.color_code,
|
|
|
+ process_code_two: element.box_detail.process_code_two,
|
|
|
color_code_two: element.box_detail.color_code_two,
|
|
|
+ process_title: element.box_detail.process_title,
|
|
|
+ color: element.box_detail.color,
|
|
|
+ process_title_two: element.box_detail.process_title_two,
|
|
|
color_two: element.box_detail.color_two,
|
|
|
+ bus_no: this.detail.no,
|
|
|
+ bus_id: element.bus_id,
|
|
|
+ bus_item_id: element.bus_item_id,
|
|
|
+ bus_item_no: element.item_no,
|
|
|
+ order_no: element.box_detail.order_no,
|
|
|
+ out_qty: element.out_qty,
|
|
|
+ this_delivery_qty: element.out_qty,
|
|
|
+ order_item_id: element.order_item_id,
|
|
|
+ unit_price: element.unit_price,
|
|
|
+ site: null,
|
|
|
customer_name: element.box_detail.customer_name,
|
|
|
customer_no: element.box_detail.customer_no,
|
|
|
dealer_name: element.box_detail.dealer_name,
|
|
|
dealer_no: element.box_detail.dealer_no,
|
|
|
- dynamic_form_value_id: element.box_detail.dynamic_form_value_id,
|
|
|
- // id: "491138208592306176",
|
|
|
- item_num: (index + 1),
|
|
|
+ box_orders: element.box_detail.box_orders.id,
|
|
|
+ box_orders_show: element.box_detail.box_orders.defective_order_no
|
|
|
+ // site_show: element.box_detail.site_show
|
|
|
+ // dynamic_form_value_id: element.box_detail.dynamic_form_value_id,
|
|
|
+ // id: "491138208592306176"
|
|
|
// lineId: "29E776DE",
|
|
|
// mainKey: "29E776DE",
|
|
|
// main_table_id: "491138208583917568",
|
|
|
- order_item_id: element.order_item_id,
|
|
|
- order_no: element.box_detail.order_no,
|
|
|
- out_qty: element.out_qty,
|
|
|
- process_code: element.box_detail.process_code,
|
|
|
- process_code_two: element.box_detail.process_code_two,
|
|
|
- process_title: element.box_detail.process_title,
|
|
|
- process_title_two: element.box_detail.process_title_two,
|
|
|
- product_code: element.box_detail.product_code,
|
|
|
- product_size: element.box_detail.product_size,
|
|
|
- product_title: element.box_detail.product_title,
|
|
|
- product_unit: element.box_detail.product_unit,
|
|
|
- product_unit_title: element.box_detail.product_unit_title,
|
|
|
- request_id: null,
|
|
|
- site: element.box_detail.site,
|
|
|
- site_show: element.box_detail.site_show,
|
|
|
- this_delivery_qty: element.box_detail.out_qty,
|
|
|
- unit_price: element.unit_price
|
|
|
+ // request_id: null,
|
|
|
}
|
|
|
this.data.data.send_goods_out_product.push(box_detail)
|
|
|
})
|
|
|
+ // console.log(this.data)
|
|
|
+ // return false
|
|
|
// this.data.data.send_goods_out = this.tableData
|
|
|
// this.data.data.send_goods_out_product = this.tableData
|
|
|
let data = {
|