|
|
@@ -847,6 +847,7 @@
|
|
|
import { getCode } from '@/api/codeManagement';
|
|
|
import dayjs from 'dayjs';
|
|
|
import { debounce } from 'lodash';
|
|
|
+ import { log } from 'bpmn-js-token-simulation';
|
|
|
export default {
|
|
|
mixins: [dictMixins],
|
|
|
components: {
|
|
|
@@ -1036,7 +1037,7 @@
|
|
|
},
|
|
|
async getProducedData() {
|
|
|
console.log(111111111111111);
|
|
|
- let query = this.$route.query;
|
|
|
+ let query = {...this.$route.query };
|
|
|
console.log(query, 'query');
|
|
|
|
|
|
if (!query.producedList || query.producedList.length == 0) {
|
|
|
@@ -1051,7 +1052,7 @@
|
|
|
},
|
|
|
// 初始化时间赋值
|
|
|
initTime() {
|
|
|
- let data = this.$route.query;
|
|
|
+ let data = {...this.$route.query };
|
|
|
if (data.startTime) {
|
|
|
this.$set(this.form, 'startTime', data.startTime);
|
|
|
}
|
|
|
@@ -1181,7 +1182,7 @@
|
|
|
if (res.length) {
|
|
|
let o = res[0];
|
|
|
if (type == 'init') {
|
|
|
- let query = this.$route.query;
|
|
|
+ let query = {...this.$route.query };
|
|
|
let id = query.bomCategoryId ? query.bomCategoryId : o.id;
|
|
|
this.$set(this.form, 'bomCategoryId', id);
|
|
|
} else {
|
|
|
@@ -1209,7 +1210,7 @@
|
|
|
this.form.produceVersionName = '';
|
|
|
this.selectionRowShow = false; // ****
|
|
|
if (type == 'init') {
|
|
|
- let queryD = this.$route.query;
|
|
|
+ let queryD = {...this.$route.query };
|
|
|
if (queryD.produceRoutingId && !queryD.bomCategoryId) {
|
|
|
this.form.produceRoutingName = queryD.produceRoutingName;
|
|
|
this.form.produceRoutingId = queryD.produceRoutingId;
|
|
|
@@ -1252,7 +1253,6 @@
|
|
|
getSaleInfo() {
|
|
|
let params = JSON.parse(this.$route.query.selection);
|
|
|
productionToPlan(params).then((res) => {
|
|
|
- console.log(this.$route.query);
|
|
|
this.form = deepClone(res);
|
|
|
console.log(222222222222222222222222, '===');
|
|
|
this.initTime();
|
|
|
@@ -1270,7 +1270,7 @@
|
|
|
this.form.produceType = this.$route.query.produceType
|
|
|
? parseInt(this.$route.query.produceType)
|
|
|
: res.produceType;
|
|
|
- console.log(this.form.produceType, '这里吗');
|
|
|
+ console.log('this.form', this.form, res);
|
|
|
this.changeProduceType('init');
|
|
|
this.form.bomCategoryId =
|
|
|
res.bomCategoryId || this.$route.query.bomCategoryId;
|
|
|
@@ -1526,7 +1526,7 @@
|
|
|
this.changeData();
|
|
|
},
|
|
|
addEquipment() {
|
|
|
- let query = this.$route.query;
|
|
|
+ let query = {...this.$route.query };
|
|
|
let orderType = query.orderType;
|
|
|
let arr = this.form.salesOrders;
|
|
|
if (arr && arr.length > 0) {
|
|
|
@@ -1637,7 +1637,7 @@
|
|
|
|
|
|
row.requiredFormingNum = Number(
|
|
|
row.planProductNum * (this.form.marginCoefficient || 1)
|
|
|
- ).toFixed(5);
|
|
|
+ ).toFixed(0);
|
|
|
},
|
|
|
confirmChoose(list) {
|
|
|
// 取出在弹窗中选中并且不在表格中的数据
|