|
|
|
@ -44,7 +44,7 @@ |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="11"> |
|
|
|
|
<a-form-model-item label="单价" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="money"> |
|
|
|
|
<a-input-number v-model="model.money" placeholder="请输入单价" :precision="2" :min="0" style="width: 100%" /> |
|
|
|
|
<a-input v-model="model.money" placeholder="请输入单价" :precision="2" :min="0" style="width: 100%" /> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
|
|
|
|
|
</a-col> |
|
|
|
@ -55,7 +55,7 @@ |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="11"> |
|
|
|
|
<a-form-model-item label="零售价(元)" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="retailPrice"> |
|
|
|
|
<a-input-number v-model="model.retailPrice" placeholder="请输入零售价" style="width: 100%" /> |
|
|
|
|
<a-input v-model="model.retailPrice" placeholder="请输入零售价" style="width: 100%" /> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="12"> |
|
|
|
@ -91,8 +91,8 @@ |
|
|
|
|
<!-- </a-form-model-item>--> |
|
|
|
|
<!-- </a-col>--> |
|
|
|
|
<a-col :span="11"> |
|
|
|
|
<a-form-model-item label="供货商" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="supplierInfo"> |
|
|
|
|
<j-select-depart v-model="model.supplierInfo" multi /> |
|
|
|
|
<a-form-model-item label="供应商" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="supplierInfo"> |
|
|
|
|
<j-select-depart v-model="model.supplierInfo" /> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="12"> |
|
|
|
@ -317,11 +317,11 @@ |
|
|
|
|
], |
|
|
|
|
money: [ |
|
|
|
|
{ required: true, message: '请输入单价!'}, |
|
|
|
|
{pattern: /^\d+$/,message:'请输入正整数'} |
|
|
|
|
{pattern: /^\d*\.?\d+$/,message:'请输入正数'} |
|
|
|
|
], |
|
|
|
|
retailPrice: [ |
|
|
|
|
{ required: true, message: '请输入零售价!'}, |
|
|
|
|
{pattern: /^\d+$/,message:'请输入正整数'} |
|
|
|
|
{pattern: /^\d*\.?\d+$/,message:'请输入正数'} |
|
|
|
|
], |
|
|
|
|
// money: [ |
|
|
|
|
// { required: false}, |
|
|
|
@ -374,6 +374,18 @@ |
|
|
|
|
}, |
|
|
|
|
edit (record) { |
|
|
|
|
this.model = Object.assign({}, record); |
|
|
|
|
if(this.model.codes==1){ |
|
|
|
|
getAction(this.url.sort,this.model).then((res)=>{ |
|
|
|
|
console.log(res) |
|
|
|
|
var num=parseInt(res.result,10)+1 |
|
|
|
|
num=num.toString() |
|
|
|
|
while(num.length<10){ |
|
|
|
|
num="0"+num |
|
|
|
|
} |
|
|
|
|
this.model.fabricNumber="ML"+this.model.typeId+this.model.material+num; |
|
|
|
|
console.log(this.model.typeId) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
this.visible = true; |
|
|
|
|
}, |
|
|
|
|
submitForm () { |
|
|
|
|