|
@@ -1052,7 +1052,7 @@ export default {
|
1052
|
1052
|
stockIn: this.recordInfo.tableList,
|
1053
|
1053
|
return_remake: this.return_remark,
|
1054
|
1054
|
};
|
1055
|
|
- // return
|
|
1055
|
+
|
1056
|
1056
|
addGoodOrder( params,this.supplier_name,start,this.arrearage,this.payment, warehousing_id,this.number,this.rate_of_concession,this.discount_amount).then((response) => {
|
1057
|
1057
|
if (response.data.state == 1) {
|
1058
|
1058
|
this.loading = false;
|
|
@@ -1186,18 +1186,21 @@ export default {
|
1186
|
1186
|
).then((response) => {
|
1187
|
1187
|
if (response.data.state == 1) {
|
1188
|
1188
|
var orderInfo = response.data.data.list
|
1189
|
|
- // for (let i = 0; i < orderInfo.length; i++) {
|
1190
|
|
- // orderInfo[i].id = orderInfo[i].id
|
1191
|
|
- // orderInfo[i].supply_count = orderInfo[i].count;
|
1192
|
|
- // orderInfo[i].supply_price = orderInfo[i].price;
|
1193
|
|
- // orderInfo[i].supply_remake = orderInfo[i].remark;
|
1194
|
|
- // orderInfo[i].type = orderInfo[i].is_source;
|
1195
|
|
- // orderInfo[i].project_id = orderInfo[i].project_id;
|
1196
|
|
- // orderInfo[i].supply_unit = orderInfo[i].supply_unit;
|
1197
|
|
- // orderInfo[i].order_number = orderInfo[i].order_number;
|
1198
|
|
- // orderInfo[i].warehouse_info_id = orderInfo[i].warehouse_info_id
|
1199
|
|
- // orderInfo[i].warehousing_id = orderInfo[i].warehousing_id
|
1200
|
|
- // }
|
|
1189
|
+ for (let i = 0; i < orderInfo.length; i++) {
|
|
1190
|
+ orderInfo[i].id = orderInfo[i].id
|
|
1191
|
+ orderInfo[i].supply_count = orderInfo[i].count;
|
|
1192
|
+ orderInfo[i].supply_price = orderInfo[i].price;
|
|
1193
|
+ orderInfo[i].supply_remake = orderInfo[i].remark;
|
|
1194
|
+ orderInfo[i].type = orderInfo[i].is_source;
|
|
1195
|
+ orderInfo[i].project_id = orderInfo[i].project_id;
|
|
1196
|
+ orderInfo[i].supply_unit = orderInfo[i].supply_unit;
|
|
1197
|
+ orderInfo[i].order_number = orderInfo[i].order_number;
|
|
1198
|
+ orderInfo[i].warehouse_info_id = orderInfo[i].warehouse_info_id
|
|
1199
|
+ orderInfo[i].warehousing_id = orderInfo[i].warehousing_id
|
|
1200
|
+ orderInfo[i].supply_total_price = (orderInfo[i].count * orderInfo[i].price).toFixed(2);
|
|
1201
|
+ orderInfo[i].supply_expiry_date = this.getTimes(orderInfo[i].supply_expiry_date);
|
|
1202
|
+ orderInfo[i].supply_product_date = this.getTimes( orderInfo[i].supply_product_date);
|
|
1203
|
+ }
|
1201
|
1204
|
this.recordInfo.tableList = orderInfo
|
1202
|
1205
|
this.loading = false;
|
1203
|
1206
|
this.$message.success("保存成功!");
|