|
|
@ -3,41 +3,61 @@ |
|
|
|
<j-form-container :disabled="formDisabled"> |
|
|
|
<j-form-container :disabled="formDisabled"> |
|
|
|
<a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail"> |
|
|
|
<a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail"> |
|
|
|
<a-row> |
|
|
|
<a-row> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--关联服装款式表 zy_cloths_style 关联列:名称 传值id--> |
|
|
|
<a-col :span="24"> |
|
|
|
<a-col :span="24"> |
|
|
|
<a-form-model-item label="编号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="nums"> |
|
|
|
<a-form-model-item label="款式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="styleName"> |
|
|
|
<a-input v-model="model.nums" placeholder="请输入编号" ></a-input> |
|
|
|
<j-dict-select-tag v-model="model.styleName" placeholder="请输入款式" |
|
|
|
|
|
|
|
dict-code="zy_cloths_style,style_names,style_names"></j-dict-select-tag> |
|
|
|
</a-form-model-item> |
|
|
|
</a-form-model-item> |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
|
|
|
|
|
|
|
|
|
<a-col :span="24"> |
|
|
|
<a-col :span="24"> |
|
|
|
<a-form-model-item label="部件名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="componentName"> |
|
|
|
<a-form-model-item label="模块" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="moduleId"> |
|
|
|
<a-input v-model="model.componentName" placeholder="请输入部件名称" ></a-input> |
|
|
|
<j-dict-select-tag type="list" v-model="model.moduleId" dictCode="zy_module_sample,module_name,id" placeholder="请选择模块" /> |
|
|
|
</a-form-model-item> |
|
|
|
</a-form-model-item> |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--zy_cloths_component 关联制衣部件--> |
|
|
|
<a-col :span="24"> |
|
|
|
<a-col :span="24"> |
|
|
|
<a-form-model-item label="描述" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="descr"> |
|
|
|
<a-form-model-item label="部件" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="componentName"> |
|
|
|
<a-input v-model="model.descr" placeholder="请输入描述" ></a-input> |
|
|
|
<j-dict-select-tag v-model="model.componentName" placeholder="请输入部件名称" |
|
|
|
|
|
|
|
dict-code="zy_cloths_component,parts_name,id"></j-dict-select-tag> |
|
|
|
|
|
|
|
<!-- <j-dict-select-tag v-model="model.componentName" placeholder="请输入部件名称" |
|
|
|
|
|
|
|
dict-code="zy_component_sample,component_name,component_name"></j-dict-select-tag>--> |
|
|
|
|
|
|
|
|
|
|
|
</a-form-model-item> |
|
|
|
</a-form-model-item> |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
|
|
|
|
|
|
|
|
|
<a-col :span="24"> |
|
|
|
<a-col :span="24"> |
|
|
|
<a-form-model-item label="图片" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="url"> |
|
|
|
<a-form-model-item label="编号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="nums"> |
|
|
|
<j-image-upload isMultiple v-model="model.url" ></j-image-upload> |
|
|
|
<a-input v-model="model.nums" placeholder="请输入编号" ></a-input> |
|
|
|
</a-form-model-item> |
|
|
|
</a-form-model-item> |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
|
|
|
|
|
|
|
|
|
<a-col :span="24"> |
|
|
|
<a-col :span="24"> |
|
|
|
<a-form-model-item label="模块" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="moduleId"> |
|
|
|
<a-form-model-item label="描述" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="descr"> |
|
|
|
<j-dict-select-tag type="list" v-model="model.moduleId" dictCode="zy_module_sample,module_name,id" placeholder="请选择模块" /> |
|
|
|
<a-textarea v-model="model.descr" placeholder="请输入描述" ></a-textarea> |
|
|
|
</a-form-model-item> |
|
|
|
</a-form-model-item> |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
|
<a-col :span="24"> |
|
|
|
<a-col :span="24"> |
|
|
|
<a-form-model-item label="用户" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="userId"> |
|
|
|
<a-form-model-item label="用户" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="userId"> |
|
|
|
<a-input v-model="model.userId" placeholder="请输入用户" ></a-input> |
|
|
|
<j-dict-select-tag v-model="model.userId" placeholder="请输入用户" |
|
|
|
|
|
|
|
dict-code="sys_user,username,username"></j-dict-select-tag> |
|
|
|
</a-form-model-item> |
|
|
|
</a-form-model-item> |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
|
|
|
|
|
|
|
|
|
<a-col :span="24"> |
|
|
|
<a-col :span="24"> |
|
|
|
|
|
|
|
<a-form-model-item label="图片" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="url"> |
|
|
|
|
|
|
|
<j-image-upload isMultiple v-model="model.url" ></j-image-upload> |
|
|
|
|
|
|
|
</a-form-model-item> |
|
|
|
|
|
|
|
</a-col> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <a-col :span="24"> |
|
|
|
<a-form-model-item label="用户类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="userType"> |
|
|
|
<a-form-model-item label="用户类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="userType"> |
|
|
|
<a-input v-model="model.userType" placeholder="请输入用户类型" ></a-input> |
|
|
|
<a-input v-model="model.userType" placeholder="请输入用户类型" ></a-input> |
|
|
|
</a-form-model-item> |
|
|
|
</a-form-model-item> |
|
|
|
</a-col> |
|
|
|
</a-col>--> |
|
|
|
</a-row> |
|
|
|
</a-row> |
|
|
|
</a-form-model> |
|
|
|
</a-form-model> |
|
|
|
</j-form-container> |
|
|
|
</j-form-container> |
|
|
@ -75,6 +95,25 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
confirmLoading: false, |
|
|
|
confirmLoading: false, |
|
|
|
validatorRules: { |
|
|
|
validatorRules: { |
|
|
|
|
|
|
|
styleName: [ |
|
|
|
|
|
|
|
{required: true, message: '款式不能为空'}, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
moduleId: [ |
|
|
|
|
|
|
|
{required: true, message: '不能为空'}, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
componentName: [ |
|
|
|
|
|
|
|
{required: true, message: '不能为空'}, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
nums: [ |
|
|
|
|
|
|
|
{ required:true, message: '编号不能为空'}, |
|
|
|
|
|
|
|
{ pattern: /^[0-9A-Za-z]{0,10}$/, message: '编号太长'}, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
descr: [ |
|
|
|
|
|
|
|
{pattern: /^[0-9A-Za-z\u4e00-\u9fa5.,;,。;、!?]{0,200}$/, message: '文本长度过长'}, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
userId:[ |
|
|
|
|
|
|
|
{required: true, message: '不能为空'}, |
|
|
|
|
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
url: { |
|
|
|
url: { |
|
|
|
add: "/sample/zyComponentSample/add", |
|
|
|
add: "/sample/zyComponentSample/add", |
|
|
|