|
@@ -155,7 +155,7 @@
|
155
|
155
|
<template slot-scope="scope">
|
156
|
156
|
<div v-if="scope.row.type == 2">{{ scope.row.unit }}</div>
|
157
|
157
|
<div v-if="scope.row.type == 3">
|
158
|
|
- {{ getUnit(scope.row.unit) }}
|
|
158
|
+ {{ scope.row.unit }}
|
159
|
159
|
</div>
|
160
|
160
|
</template>
|
161
|
161
|
</el-table-column>
|
|
@@ -251,7 +251,6 @@ export default {
|
251
|
251
|
}
|
252
|
252
|
},
|
253
|
253
|
changeProject(val) {
|
254
|
|
- console.log("i23232323323",val.id)
|
255
|
254
|
this.form.number = 1;
|
256
|
255
|
},
|
257
|
256
|
querySearch(queryString, cb) {
|
|
@@ -272,7 +271,7 @@ export default {
|
272
|
271
|
};
|
273
|
272
|
},
|
274
|
273
|
handleSelect(val) {
|
275
|
|
- console.log("val3223322323232323",val)
|
|
274
|
+
|
276
|
275
|
this.project_name = val.project_name;
|
277
|
276
|
this.form.project_detail = val.id;
|
278
|
277
|
},
|
|
@@ -314,7 +313,7 @@ export default {
|
314
|
313
|
saveTeam(data, params).then((response) => {
|
315
|
314
|
if (response.data.state == 1) {
|
316
|
315
|
var projectTeam = response.data.data.projectTeam;
|
317
|
|
- // console.log('projectTeam', projectTeam)
|
|
316
|
+
|
318
|
317
|
this.$message.success("保存成功");
|
319
|
318
|
this.visible = false;
|
320
|
319
|
(this.form.project_team = ""),
|
|
@@ -341,12 +340,12 @@ export default {
|
341
|
340
|
if (response.data.state == 1) {
|
342
|
341
|
var projectList = response.data.data.projectList;
|
343
|
342
|
var goodInfos = response.data.data.good_info;
|
344
|
|
-
|
|
343
|
+
|
345
|
344
|
for (let i = 0; i < projectList.length; i++) {
|
346
|
345
|
let obj = {
|
347
|
346
|
id: projectList[i].id,
|
348
|
347
|
statistical_classification:
|
349
|
|
- projectList[i].statistical_classification,
|
|
348
|
+ projectList[i].statistical_classification,
|
350
|
349
|
number: "1",
|
351
|
350
|
project_name: projectList[i].project_name,
|
352
|
351
|
unit: projectList[i].unit,
|
|
@@ -363,12 +362,10 @@ export default {
|
363
|
362
|
for (let i = 0; i < goodInfos.length; i++) {
|
364
|
363
|
let obj = {
|
365
|
364
|
id: goodInfos[i].id,
|
366
|
|
- statistical_classification:
|
367
|
|
- goodInfos[i].statistical_classification,
|
|
365
|
+ statistical_classification:goodInfos[i].statistical_classification,
|
368
|
366
|
number: "1",
|
369
|
|
- project_name:
|
370
|
|
- goodInfos[i].good_name + " " + goodInfos[i].specification_name,
|
371
|
|
- unit: goodInfos[i].good_unit,
|
|
367
|
+ project_name:goodInfos[i].good_name + " " + goodInfos[i].specification_name,
|
|
368
|
+ unit: goodInfos[i].packing_unit,
|
372
|
369
|
price: goodInfos[i].retail_price,
|
373
|
370
|
type: 3,
|
374
|
371
|
new_id: Math.floor(
|
|
@@ -379,7 +376,7 @@ export default {
|
379
|
376
|
this.projectList.push(obj);
|
380
|
377
|
}
|
381
|
378
|
|
382
|
|
- console.log("项目2323332", this.projectList);
|
|
379
|
+
|
383
|
380
|
}
|
384
|
381
|
});
|
385
|
382
|
},
|
|
@@ -416,6 +413,7 @@ export default {
|
416
|
413
|
}
|
417
|
414
|
}
|
418
|
415
|
}
|
|
416
|
+ console.log("project_232332323232323232",this.projectList)
|
419
|
417
|
for (let i = 0; i < this.projectList.length; i++) {
|
420
|
418
|
if (this.form.project_detail == this.projectList[i].new_id) {
|
421
|
419
|
this.projectList[i].number = this.form.number
|