|
|
@ -5,7 +5,7 @@ |
|
|
|
<a-row> |
|
|
|
<a-row> |
|
|
|
<a-col :span="48"> |
|
|
|
<a-col :span="48"> |
|
|
|
<a-form-model-item label="企业" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="enterpriseId"> |
|
|
|
<a-form-model-item label="企业" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="enterpriseId"> |
|
|
|
<j-select-depart v-model="model.enterpriseId" placeholder="请选择企业"/> |
|
|
|
<j-select-depart v-model="model.enterpriseId" placeholder="请选择企业" @change="getEnterNums"/> |
|
|
|
</a-form-model-item> |
|
|
|
</a-form-model-item> |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
|
</a-row> |
|
|
|
</a-row> |
|
|
@ -49,7 +49,8 @@ |
|
|
|
<a-row> |
|
|
|
<a-row> |
|
|
|
<a-col :span="48"> |
|
|
|
<a-col :span="48"> |
|
|
|
<a-form-model-item label="模块类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="modularType"> |
|
|
|
<a-form-model-item label="模块类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="modularType"> |
|
|
|
<j-dict-select-tag type="list" v-model="model.modularType" dictCode="zyModularType" placeholder="请选择模块类型" /> |
|
|
|
<j-dict-select-tag type="list" v-model="model.modularType" dictCode="zyModularType" |
|
|
|
|
|
|
|
placeholder="请选择模块类型"/> |
|
|
|
</a-form-model-item> |
|
|
|
</a-form-model-item> |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
|
</a-row> |
|
|
|
</a-row> |
|
|
@ -68,44 +69,44 @@ |
|
|
|
</a-form-model-item> |
|
|
|
</a-form-model-item> |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
|
</a-row> |
|
|
|
</a-row> |
|
|
|
<!-- <a-row>--> |
|
|
|
<!-- <a-row>--> |
|
|
|
<!-- <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">--> |
|
|
|
<!-- <j-select-depart v-model="model.enterpriseId" placeholder="请选择企业"/>--> |
|
|
|
<!-- <j-select-depart v-model="model.enterpriseId" placeholder="请选择企业"/>--> |
|
|
|
<!-- </a-form-model-item>--> |
|
|
|
<!-- </a-form-model-item>--> |
|
|
|
<!-- </a-col>--> |
|
|
|
<!-- </a-col>--> |
|
|
|
<!-- <a-col :span="24">--> |
|
|
|
<!-- <a-col :span="24">--> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <a-col :span="24">--> |
|
|
|
<!-- <a-col :span="24">--> |
|
|
|
<!-- <a-form-model-item label="模块名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="modularName">--> |
|
|
|
<!-- <a-form-model-item label="模块名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="modularName">--> |
|
|
|
<!-- <a-input v-model="model.modularName" placeholder="请输入模块名称" ></a-input>--> |
|
|
|
<!-- <a-input v-model="model.modularName" 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="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-col>--> |
|
|
|
<!-- </a-col>--> |
|
|
|
<!-- <a-col :span="24">--> |
|
|
|
<!-- <a-col :span="24">--> |
|
|
|
<!-- <a-form-model-item label="描述" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="description">--> |
|
|
|
<!-- <a-form-model-item label="描述" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="description">--> |
|
|
|
<!-- <a-textarea v-model="model.description" rows="4" placeholder="请输入描述"/>--> |
|
|
|
<!-- <a-textarea v-model="model.description" rows="4" placeholder="请输入描述"/>--> |
|
|
|
<!-- </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="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>--> |
|
|
|
<!-- </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="pictureUrl">--> |
|
|
|
<!-- <a-form-model-item label="图片" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="pictureUrl">--> |
|
|
|
<!-- <j-image-upload isMultiple v-model="model.pictureUrl" ></j-image-upload>--> |
|
|
|
<!-- <j-image-upload isMultiple v-model="model.pictureUrl" ></j-image-upload>--> |
|
|
|
<!-- </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> |
|
|
|
</a-spin> |
|
|
|
</a-spin> |
|
|
@ -162,7 +163,9 @@ export default { |
|
|
|
edit: "/base/zyClothsModular/edit", |
|
|
|
edit: "/base/zyClothsModular/edit", |
|
|
|
queryById: "/base/zyClothsModular/queryById", |
|
|
|
queryById: "/base/zyClothsModular/queryById", |
|
|
|
//getAction的url |
|
|
|
//getAction的url |
|
|
|
sort: "/base/zyClothsModular/sort" |
|
|
|
sort: "/base/zyClothsModular/sort", |
|
|
|
|
|
|
|
//企业编号问题 |
|
|
|
|
|
|
|
enterpriseNum: "/base/zyClothsType/getEnterpriseNum" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
@ -176,8 +179,26 @@ export default { |
|
|
|
this.modelDefault = JSON.parse(JSON.stringify(this.model)); |
|
|
|
this.modelDefault = JSON.parse(JSON.stringify(this.model)); |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
getEnterNums() { |
|
|
|
|
|
|
|
if (this.model.id) { |
|
|
|
|
|
|
|
getAction(this.url.enterpriseNum, {id: this.model.enterpriseId}).then((res) => { |
|
|
|
|
|
|
|
if (res.code === 500) { |
|
|
|
|
|
|
|
this.$message({ |
|
|
|
|
|
|
|
type: 'error', |
|
|
|
|
|
|
|
message: '只能选择一个企业!' |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} else if (res.code !== 200) { |
|
|
|
|
|
|
|
this.$message({ |
|
|
|
|
|
|
|
type: 'error', |
|
|
|
|
|
|
|
message: '未查询到数据!' |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.model.nums = res.result + this.model.nums.substring(4); |
|
|
|
|
|
|
|
console.log('编辑中改变企业编号 res.result ' + this.model.nums) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
async bianhao() { |
|
|
|
async bianhao() { |
|
|
|
//var n=6 |
|
|
|
|
|
|
|
getAction(this.url.sort, {id: this.model.clothsTypeId}).then((res) => { |
|
|
|
getAction(this.url.sort, {id: this.model.clothsTypeId}).then((res) => { |
|
|
|
//let num = res.result; |
|
|
|
//let num = res.result; |
|
|
|
console.log("+6++++aaa: " + res.result) |
|
|
|
console.log("+6++++aaa: " + res.result) |
|
|
|