|
@@ -737,6 +737,7 @@ export default {
|
737
|
737
|
},
|
738
|
738
|
methods: {
|
739
|
739
|
getzuobiao(){
|
|
740
|
+
|
740
|
741
|
if(this.org_id == 10206){
|
741
|
742
|
var that = this
|
742
|
743
|
axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/querystockgood', {
|
|
@@ -3305,21 +3306,21 @@ export default {
|
3305
|
3306
|
}
|
3306
|
3307
|
}
|
3307
|
3308
|
|
3308
|
|
- // if(this.org_id == 10206){
|
3309
|
|
- // if (row.zuobiao_stock_num <= 0) {
|
3310
|
|
- // if (selection) {
|
3311
|
|
- // selection.forEach(row => {
|
3312
|
|
- // if (row.zuobiao_stock_num <= 0) {
|
3313
|
|
- // this.$refs.multipleTable.toggleRowSelection(row)
|
3314
|
|
- // }
|
3315
|
|
- // })
|
3316
|
|
- // } else {
|
3317
|
|
- // this.$refs.multipleTable.clearSelection()
|
3318
|
|
- // }
|
3319
|
|
- // this.$message.error(row.drug_name + '库存不足')
|
3320
|
|
- // return
|
3321
|
|
- // }
|
3322
|
|
- // }
|
|
3309
|
+ if(this.org_id == 10206){
|
|
3310
|
+ if (row.zuobiao_stock_num <= 0) {
|
|
3311
|
+ if (selection) {
|
|
3312
|
+ selection.forEach(row => {
|
|
3313
|
+ if (row.zuobiao_stock_num <= 0) {
|
|
3314
|
+ this.$refs.multipleTable.toggleRowSelection(row)
|
|
3315
|
+ }
|
|
3316
|
+ })
|
|
3317
|
+ } else {
|
|
3318
|
+ this.$refs.multipleTable.clearSelection()
|
|
3319
|
+ }
|
|
3320
|
+ this.$message.error(row.drug_name + '库存不足')
|
|
3321
|
+ return
|
|
3322
|
+ }
|
|
3323
|
+ }
|
3323
|
3324
|
|
3324
|
3325
|
|
3325
|
3326
|
|
|
@@ -3633,21 +3634,21 @@ export default {
|
3633
|
3634
|
}
|
3634
|
3635
|
}
|
3635
|
3636
|
|
3636
|
|
- // if ( this.org_id == 10206) {
|
3637
|
|
- // if (row.type == 3) {
|
3638
|
|
- // if (selection) {
|
3639
|
|
- // selection.forEach(row => {
|
3640
|
|
- // if (row.zuobiao_stock_num <= 0) {
|
3641
|
|
- // this.$refs.tables.toggleRowSelection(row)
|
3642
|
|
- // }
|
3643
|
|
- // })
|
3644
|
|
- // } else {
|
3645
|
|
- // this.$refs.tables.clearSelection()
|
3646
|
|
- // }
|
3647
|
|
- // this.$message.error(row.project_name + '库存不足')
|
3648
|
|
- // return
|
3649
|
|
- // }
|
3650
|
|
- // }
|
|
3637
|
+ if ( this.org_id == 10206) {
|
|
3638
|
+ if (row.type == 3) {
|
|
3639
|
+ if (selection) {
|
|
3640
|
+ selection.forEach(row => {
|
|
3641
|
+ if (row.zuobiao_stock_num <= 0) {
|
|
3642
|
+ this.$refs.tables.toggleRowSelection(row)
|
|
3643
|
+ }
|
|
3644
|
+ })
|
|
3645
|
+ } else {
|
|
3646
|
+ this.$refs.tables.clearSelection()
|
|
3647
|
+ }
|
|
3648
|
+ this.$message.error(row.project_name + '库存不足')
|
|
3649
|
+ return
|
|
3650
|
+ }
|
|
3651
|
+ }
|
3651
|
3652
|
this.teamList = selection
|
3652
|
3653
|
},
|
3653
|
3654
|
getlist() {
|
|
@@ -3733,6 +3734,8 @@ export default {
|
3733
|
3734
|
console.log( this.zuobiao_project[i].lsqty)
|
3734
|
3735
|
console.log( this.tabProject[b].zuobiao_stock_num)
|
3735
|
3736
|
this.tabProject[b].zuobiao_stock_num = this.zuobiao_project[i].lsqty
|
|
3737
|
+ this.tabProject[b].price = this.zuobiao_project[i].price
|
|
3738
|
+
|
3736
|
3739
|
}
|
3737
|
3740
|
}
|
3738
|
3741
|
}
|
|
@@ -3830,11 +3833,11 @@ export default {
|
3830
|
3833
|
this.$message.error(project[i].good_info.good_name + '库存不足')
|
3831
|
3834
|
}
|
3832
|
3835
|
|
3833
|
|
- // if (project[i].good_info.zuobiao_stock_num <= 0 && this.org_id == 10206) {
|
3834
|
|
- // num++
|
3835
|
|
- // this.$refs.tabProjectTeam.toggleRowSelection(row)
|
3836
|
|
- // this.$message.error(project[i].good_info.good_name + '库存不足')
|
3837
|
|
- // }
|
|
3836
|
+ if (project[i].good_info.zuobiao_stock_num <= 0 && this.org_id == 10206) {
|
|
3837
|
+ num++
|
|
3838
|
+ this.$refs.tabProjectTeam.toggleRowSelection(row)
|
|
3839
|
+ this.$message.error(project[i].good_info.good_name + '库存不足')
|
|
3840
|
+ }
|
3838
|
3841
|
|
3839
|
3842
|
if (num > 0) {
|
3840
|
3843
|
this.$refs.tabProjectTeam.clearSelection()
|