|
@@ -213,7 +213,8 @@
|
213
|
213
|
min_number:"",
|
214
|
214
|
packing_unit:"",
|
215
|
215
|
packing_price:'',
|
216
|
|
- default_count_unit:""
|
|
216
|
+ default_count_unit:"",
|
|
217
|
+ is_user:"2",
|
217
|
218
|
},
|
218
|
219
|
|
219
|
220
|
isVisibility: false
|
|
@@ -308,6 +309,12 @@
|
308
|
309
|
response.data.data.goodInfo.good_kind
|
309
|
310
|
}
|
310
|
311
|
|
|
312
|
+
|
|
313
|
+ if(this.goodInfo.goodInfoDialog.formValue.is_user <= 0){
|
|
314
|
+ this.goodInfo.goodInfoDialog.formValue.is_user = ''
|
|
315
|
+ } else{
|
|
316
|
+ this.goodInfo.goodInfoDialog.formValue.is_user = this.goodInfo.goodInfoDialog.is_user.toString()
|
|
317
|
+ }
|
311
|
318
|
|
312
|
319
|
|
313
|
320
|
if (response.data.data.goodInfo.medical_insurance_level <= 0) {
|
|
@@ -561,29 +568,21 @@
|
561
|
568
|
} else {
|
562
|
569
|
this.$refs.dialog.hide()
|
563
|
570
|
|
564
|
|
- this.goodInfo.goodInfoData[
|
565
|
|
- this.goodInfo.editGoodIndex
|
566
|
|
- ].specification_name =
|
567
|
|
- response.data.data.goodInfo.specification_name
|
568
|
|
- this.goodInfo.goodInfoData[this.goodInfo.editGoodIndex].good_unit =
|
569
|
|
- response.data.data.goodInfo.good_unit
|
570
|
|
- this.goodInfo.goodInfoData[
|
571
|
|
- this.goodInfo.editGoodIndex
|
572
|
|
- ].buy_price = response.data.data.goodInfo.buy_price.toString()
|
573
|
|
- this.goodInfo.goodInfoData[
|
574
|
|
- this.goodInfo.editGoodIndex
|
575
|
|
- ].sell_price = response.data.data.goodInfo.sell_price.toString()
|
576
|
|
- this.goodInfo.goodInfoData[
|
577
|
|
- this.goodInfo.editGoodIndex
|
578
|
|
- ].expiry_date_warn_day_count = response.data.data.goodInfo.expiry_date_warn_day_count.toString()
|
579
|
|
- this.goodInfo.goodInfoData[
|
580
|
|
- this.goodInfo.editGoodIndex
|
581
|
|
- ].stock_warn_count = response.data.data.goodInfo.stock_warn_count.toString()
|
|
571
|
+ this.goodInfo.goodInfoData[this.goodInfo.editGoodIndex].specification_name = response.data.data.goodInfo.specification_name
|
|
572
|
+ this.goodInfo.goodInfoData[this.goodInfo.editGoodIndex].good_unit = response.data.data.goodInfo.good_unit
|
|
573
|
+ this.goodInfo.goodInfoData[ this.goodInfo.editGoodIndex].buy_price = response.data.data.goodInfo.buy_price.toString()
|
|
574
|
+ this.goodInfo.goodInfoData[this.goodInfo.editGoodIndex].sell_price = response.data.data.goodInfo.sell_price.toString()
|
|
575
|
+ this.goodInfo.goodInfoData[this.goodInfo.editGoodIndex].expiry_date_warn_day_count = response.data.data.goodInfo.expiry_date_warn_day_count.toString()
|
|
576
|
+ this.goodInfo.goodInfoData[this.goodInfo.editGoodIndex].stock_warn_count = response.data.data.goodInfo.stock_warn_count.toString()
|
582
|
577
|
|
583
|
578
|
this.$message.success('修改成功')
|
584
|
579
|
}
|
585
|
580
|
})
|
586
|
581
|
} else if (val.isCreated == 1) {
|
|
582
|
+ console.log("val23232323232323",val)
|
|
583
|
+ if(val.is_user == 0){
|
|
584
|
+ val.is_user = 2
|
|
585
|
+ }
|
587
|
586
|
//新增
|
588
|
587
|
createGoodInfo(val).then(response => {
|
589
|
588
|
if (response.data.state == 0) {
|
|
@@ -639,7 +638,7 @@
|
639
|
638
|
this.goodInfo.goodInfoDialog.formValue.dealer = ''
|
640
|
639
|
this.goodInfo.goodInfoDialog.formValue.expiry_date_warn_day_count = ''
|
641
|
640
|
this.goodInfo.goodInfoDialog.formValue.stock_warn_count = ''
|
642
|
|
- this.goodInfo.goodInfoDialog.formValue.is_reuse = '2'
|
|
641
|
+ this.goodInfo.goodInfoDialog.formValue.is_user = "2"
|
643
|
642
|
|
644
|
643
|
|
645
|
644
|
},
|