|
|
|
@ -6,14 +6,15 @@ |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-form-model-item label="面料类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="typeId"> |
|
|
|
|
<j-popup |
|
|
|
|
v-model="model.typeId" |
|
|
|
|
field="id" |
|
|
|
|
org-fields="id" |
|
|
|
|
dest-fields="id" |
|
|
|
|
v-model="model.typeName" |
|
|
|
|
field="typeName" |
|
|
|
|
org-fields="id,content" |
|
|
|
|
dest-fields="typeId,typeName" |
|
|
|
|
code="zy_fabric_type" |
|
|
|
|
:multi="false" |
|
|
|
|
@input="popupCallback" |
|
|
|
|
/> |
|
|
|
|
<a-input v-model="model.typeId" hidden /> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="24"> |
|
|
|
@ -53,7 +54,7 @@ |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-form-model-item label="单价" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="money"> |
|
|
|
|
<a-input-number v-model="model.money" placeholder="请输入单价" style="width: 100%" /> |
|
|
|
|
<a-input-number v-model="model.money" placeholder="请输入单价" :precision="2" :min="0" style="width: 100%" /> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="24"> |
|
|
|
@ -136,6 +137,7 @@ |
|
|
|
|
import { httpAction, getAction } from '@/api/manage' |
|
|
|
|
import { validateDuplicateValue } from '@/utils/util' |
|
|
|
|
import OnlineCamera from './Components/OnlineCamera' |
|
|
|
|
import pick from 'lodash.pick' |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
name: 'ZyFabricForm', |
|
|
|
@ -181,14 +183,14 @@ |
|
|
|
|
name: [ |
|
|
|
|
{ required: true, message: '请输入名称!'}, |
|
|
|
|
], |
|
|
|
|
money: [ |
|
|
|
|
{ required: false}, |
|
|
|
|
{ pattern: /^\d{0,11}$/, message: '长度不能超过11位数字'}, |
|
|
|
|
], |
|
|
|
|
retailPrice: [ |
|
|
|
|
{ required: false}, |
|
|
|
|
{ pattern: /^\d{0,11}$/, message: '长度不能超过11位数字'}, |
|
|
|
|
], |
|
|
|
|
// money: [ |
|
|
|
|
// { required: false}, |
|
|
|
|
// { pattern: /^\d{0,11}$/, message: '长度不能超过11位数字'}, |
|
|
|
|
// ], |
|
|
|
|
// retailPrice: [ |
|
|
|
|
// { required: false}, |
|
|
|
|
// { pattern: /^\d{0,11}$/, message: '长度不能超过11位数字'}, |
|
|
|
|
// ], |
|
|
|
|
location: [ |
|
|
|
|
{ required: false}, |
|
|
|
|
{ pattern: /^.{0,30}$/, message: '长度不能超过30位字符'}, |
|
|
|
@ -256,6 +258,10 @@ |
|
|
|
|
changeOnlineVisible(value){ |
|
|
|
|
this.model.imageUrl=value; |
|
|
|
|
}, |
|
|
|
|
popupCallback(value,row){ |
|
|
|
|
this.model = Object.assign(this.model, row); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|