|
@@ -138,7 +138,7 @@
|
|
|
placeholder-class="phcolor"
|
|
placeholder-class="phcolor"
|
|
|
class="tui-input"
|
|
class="tui-input"
|
|
|
name="stockWarning"
|
|
name="stockWarning"
|
|
|
- placeholder="如:1扎=20支,请填写20"
|
|
|
|
|
|
|
+ placeholder="请填写"
|
|
|
maxlength="50"
|
|
maxlength="50"
|
|
|
type="number"
|
|
type="number"
|
|
|
/>
|
|
/>
|
|
@@ -188,8 +188,8 @@ export default {
|
|
|
name:"",
|
|
name:"",
|
|
|
py:"",
|
|
py:"",
|
|
|
ratio:'',
|
|
ratio:'',
|
|
|
- bigUnitId:'',
|
|
|
|
|
- smallUnitId:'',
|
|
|
|
|
|
|
+ bigUnitId:1,
|
|
|
|
|
+ smallUnitId:2,
|
|
|
classId:'',
|
|
classId:'',
|
|
|
cost:'',
|
|
cost:'',
|
|
|
addPrice:'',
|
|
addPrice:'',
|
|
@@ -211,6 +211,8 @@ export default {
|
|
|
if(option.id){
|
|
if(option.id){
|
|
|
this.form.id = this.option.id
|
|
this.form.id = this.option.id
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
watch:{
|
|
watch:{
|
|
|
},
|
|
},
|
|
@@ -267,7 +269,18 @@ export default {
|
|
|
this._getAllUnit().then(res=>{
|
|
this._getAllUnit().then(res=>{
|
|
|
|
|
|
|
|
this._getAllItemClass().then(res => {
|
|
this._getAllItemClass().then(res => {
|
|
|
- this._getDet();
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if(this.form.id == 0){
|
|
|
|
|
+ this.smallUnitSelectedData = this.unitData.filter(
|
|
|
|
|
+ e => 2 == e.id
|
|
|
|
|
+ )[0];
|
|
|
|
|
+ this.bigUnitSelectedData = this.unitData.filter(
|
|
|
|
|
+ e => 1 == e.id
|
|
|
|
|
+ )[0];
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this._getDet();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
})
|
|
})
|