|
|
@@ -358,6 +358,9 @@ export default {
|
|
|
},
|
|
|
statusChange(e){
|
|
|
this.form.status = e.detail.value ? 1 : 2;
|
|
|
+ if(this.form.status == 2){
|
|
|
+ this.form.stock = 0
|
|
|
+ }
|
|
|
},
|
|
|
ratioTypeChange(e){
|
|
|
this.form.ratioType = e.detail.value ? 0 : 1;
|
|
|
@@ -366,6 +369,7 @@ export default {
|
|
|
this.form.delStatus = e.detail.value ? 0 : 1;
|
|
|
if(this.form.delStatus == 1){
|
|
|
this.form.stock = 0
|
|
|
+ this.form.status = 2
|
|
|
}
|
|
|
},
|
|
|
//如果库存被修改则花材状态变化
|