|
|
@ -11,9 +11,17 @@ |
|
|
|
</a-row> |
|
|
|
</a-row> |
|
|
|
<a-row> |
|
|
|
<a-row> |
|
|
|
<a-col :span="48"> |
|
|
|
<a-col :span="48"> |
|
|
|
<a-form-model-item label="服装类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="clothsTypeId"> |
|
|
|
<!-- <a-form-model-item label="服装类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="clothsTypeId">--> |
|
|
|
<j-dict-select-tag type="list" v-model="model.clothsTypeId" dictCode="zy_cloths_type,type_name,id" placeholder="请选择衣服类型" /> |
|
|
|
<!-- <j-dict-select-tag type="list" v-model="model.clothsTypeId" dictCode="zy_cloths_type,type_name,id" placeholder="请选择衣服类型" />--> |
|
|
|
</a-form-model-item> |
|
|
|
<!-- </a-form-model-item>--> |
|
|
|
|
|
|
|
<a-form-item label="服装类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="clothsTypeId"> |
|
|
|
|
|
|
|
<j-tree-select v-model="model.clothsTypeId" |
|
|
|
|
|
|
|
dict="zy_cloths_type,type_name,id" |
|
|
|
|
|
|
|
pidField="type_id" |
|
|
|
|
|
|
|
placeholder="请选择服装类型" |
|
|
|
|
|
|
|
@change="getNumberClothsComponentList"> |
|
|
|
|
|
|
|
</j-tree-select> |
|
|
|
|
|
|
|
</a-form-item> |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
|
</a-row> |
|
|
|
</a-row> |
|
|
|
<a-row> |
|
|
|
<a-row> |
|
|
@ -30,6 +38,16 @@ |
|
|
|
</a-form-model-item> |
|
|
|
</a-form-model-item> |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
|
</a-row> |
|
|
|
</a-row> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a-row> |
|
|
|
|
|
|
|
<a-col :span="48"> |
|
|
|
|
|
|
|
<a-form-model-item label="制衣模块类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="modularType"> |
|
|
|
|
|
|
|
<j-dict-select-tag type="list" v-model="model.modularType" dictCode="zyModularType" |
|
|
|
|
|
|
|
placeholder="请选择制衣模块类型"/> |
|
|
|
|
|
|
|
</a-form-model-item> |
|
|
|
|
|
|
|
</a-col> |
|
|
|
|
|
|
|
</a-row> |
|
|
|
|
|
|
|
|
|
|
|
<a-row> |
|
|
|
<a-row> |
|
|
|
<a-col :span="48"> |
|
|
|
<a-col :span="48"> |
|
|
|
<a-form-model-item label="描述" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="description"> |
|
|
|
<a-form-model-item label="描述" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="description"> |
|
|
@ -86,11 +104,7 @@ |
|
|
|
<!-- </a-form-model-item>--> |
|
|
|
<!-- </a-form-model-item>--> |
|
|
|
<!-- </a-col>--> |
|
|
|
<!-- </a-col>--> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <a-col :span="24">--> |
|
|
|
|
|
|
|
<!-- <a-form-model-item label="制衣模块类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="modularType">--> |
|
|
|
|
|
|
|
<!-- <j-dict-select-tag type="list" v-model="model.modularType" dictCode="zyModularType" placeholder="请选择制衣模块类型" />--> |
|
|
|
|
|
|
|
<!-- </a-form-model-item>--> |
|
|
|
|
|
|
|
<!-- </a-col>--> |
|
|
|
|
|
|
|
<!-- <a-col :span="24">--> |
|
|
|
<!-- <a-col :span="24">--> |
|
|
|
<!-- <a-form-model-item label="企业" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="enterpriseId">--> |
|
|
|
<!-- <a-form-model-item label="企业" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="enterpriseId">--> |
|
|
|
<!-- <a-input v-model="model.enterpriseId" placeholder="请输入企业" ></a-input>--> |
|
|
|
<!-- <a-input v-model="model.enterpriseId" placeholder="请输入企业" ></a-input>--> |
|
|
@ -107,10 +121,12 @@ |
|
|
|
|
|
|
|
|
|
|
|
import { httpAction, getAction } from '@/api/manage' |
|
|
|
import { httpAction, getAction } from '@/api/manage' |
|
|
|
import { validateDuplicateValue } from '@/utils/util' |
|
|
|
import { validateDuplicateValue } from '@/utils/util' |
|
|
|
|
|
|
|
import JTreeSelect from '@/components/jeecg/JTreeSelect' |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: 'ZyClothsComponentForm', |
|
|
|
name: 'ZyClothsComponentForm', |
|
|
|
components: { |
|
|
|
components: { |
|
|
|
|
|
|
|
JTreeSelect |
|
|
|
}, |
|
|
|
}, |
|
|
|
props: { |
|
|
|
props: { |
|
|
|
//表单禁用 |
|
|
|
//表单禁用 |
|
|
@ -123,6 +139,7 @@ |
|
|
|
data () { |
|
|
|
data () { |
|
|
|
return { |
|
|
|
return { |
|
|
|
model:{ |
|
|
|
model:{ |
|
|
|
|
|
|
|
nums: '', |
|
|
|
}, |
|
|
|
}, |
|
|
|
labelCol: { |
|
|
|
labelCol: { |
|
|
|
xs: { span: 24 }, |
|
|
|
xs: { span: 24 }, |
|
|
@ -143,9 +160,9 @@ |
|
|
|
partsName: [ |
|
|
|
partsName: [ |
|
|
|
{ required: true, message: '请输入部件名称!'}, |
|
|
|
{ required: true, message: '请输入部件名称!'}, |
|
|
|
], |
|
|
|
], |
|
|
|
modularId: [ |
|
|
|
// modularId: [ |
|
|
|
{ required: true, message: '请选择模块!'}, |
|
|
|
// { required: true, message: '请选择模块!'}, |
|
|
|
], |
|
|
|
// ], |
|
|
|
modularType: [ |
|
|
|
modularType: [ |
|
|
|
{ required: true, message: '请选择制衣模块类型!'}, |
|
|
|
{ required: true, message: '请选择制衣模块类型!'}, |
|
|
|
], |
|
|
|
], |
|
|
@ -154,7 +171,9 @@ |
|
|
|
url: { |
|
|
|
url: { |
|
|
|
add: "/base/zyClothsComponent/add", |
|
|
|
add: "/base/zyClothsComponent/add", |
|
|
|
edit: "/base/zyClothsComponent/edit", |
|
|
|
edit: "/base/zyClothsComponent/edit", |
|
|
|
queryById: "/base/zyClothsComponent/queryById" |
|
|
|
queryById: "/base/zyClothsComponent/queryById", |
|
|
|
|
|
|
|
//编号 |
|
|
|
|
|
|
|
sort: "/base/zyClothsComponent/sort" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
@ -168,8 +187,35 @@ |
|
|
|
this.modelDefault = JSON.parse(JSON.stringify(this.model)); |
|
|
|
this.modelDefault = JSON.parse(JSON.stringify(this.model)); |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
async getNumberClothsComponentList() { |
|
|
|
|
|
|
|
const {data: res} = await this.$axios.get('/jeecg-boot/base/zyClothsComponent/sort?id=' + this.model.clothsTypeId) |
|
|
|
|
|
|
|
if (res.code !== 200) { |
|
|
|
|
|
|
|
this.$message({ |
|
|
|
|
|
|
|
type: 'error', |
|
|
|
|
|
|
|
message: '未查询到数据!' |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.model.nums = res.result |
|
|
|
|
|
|
|
console.log('res.result') |
|
|
|
|
|
|
|
console.log(res.result) |
|
|
|
|
|
|
|
//this.confirmLoading = false |
|
|
|
|
|
|
|
// if (this.data.length === 0) { |
|
|
|
|
|
|
|
// this.data.push(res.result) |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log("制衣部件List 编号 "+this.model.nums); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// bianHao() { |
|
|
|
|
|
|
|
// getAction(this.url.sort, {id: this.model.clothsTypeId}).then((res) => { |
|
|
|
|
|
|
|
// let number = res.result; |
|
|
|
|
|
|
|
// console.log("制衣部件List id " + this.model.clothsTypeId) |
|
|
|
|
|
|
|
// console.log("制衣部件List 编号 " +number) |
|
|
|
|
|
|
|
// this.model.nums = number; |
|
|
|
|
|
|
|
// }) |
|
|
|
|
|
|
|
// }, |
|
|
|
add () { |
|
|
|
add () { |
|
|
|
this.edit(this.modelDefault); |
|
|
|
this.edit(this.modelDefault); |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
edit (record) { |
|
|
|
edit (record) { |
|
|
|
this.model = Object.assign({}, record); |
|
|
|
this.model = Object.assign({}, record); |
|
|
|