|
|
@ -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,7 +69,7 @@ |
|
|
|
</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="请选择企业"/>--> |
|
|
@ -105,7 +106,7 @@ |
|
|
|
<!-- <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) |
|
|
|