|
|
|
@ -5,10 +5,12 @@ |
|
|
|
|
<a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail"> |
|
|
|
|
<a-row type="flex" justify="space-between"> |
|
|
|
|
<a-col :span="12"> |
|
|
|
|
<a-form-model-item label="企业" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="enterpriseId" class="label"> |
|
|
|
|
<j-select-depart v-model="model.enterpriseId" multi/> |
|
|
|
|
<a-form-model-item label="企业" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="enterpriseId" |
|
|
|
|
class="label"> |
|
|
|
|
<j-select-depart v-model="model.enterpriseId" multi @change="bianHao"/> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
|
|
|
|
|
|
<a-col :span="12"> |
|
|
|
|
<a-form-model-item label="服装类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="typeId"> |
|
|
|
|
<j-popup |
|
|
|
@ -21,7 +23,7 @@ |
|
|
|
|
@input="popupCallback" |
|
|
|
|
/> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
<a-input v-model="model.typeId" hidden/> |
|
|
|
|
<a-input v-model="model.typeId" placeholder="请选择服装类型" hidden/> |
|
|
|
|
</a-col> |
|
|
|
|
|
|
|
|
|
<a-col :span="12"> |
|
|
|
@ -50,7 +52,8 @@ |
|
|
|
|
</a-col> |
|
|
|
|
|
|
|
|
|
<a-col :span="12"> |
|
|
|
|
<a-form-model-item label="规格" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="specification" class="label"> |
|
|
|
|
<a-form-model-item label="规格" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="specification" |
|
|
|
|
class="label"> |
|
|
|
|
<a-input v-model="model.specification" placeholder="请输入规格"></a-input> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
@ -61,7 +64,8 @@ |
|
|
|
|
</a-col> |
|
|
|
|
|
|
|
|
|
<a-col :span="12"> |
|
|
|
|
<a-form-model-item label="风格" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="characteristic" class="label"> |
|
|
|
|
<a-form-model-item label="风格" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="characteristic" |
|
|
|
|
class="label"> |
|
|
|
|
<a-input v-model="model.characteristic" placeholder="请输入风格"></a-input> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
@ -72,12 +76,14 @@ |
|
|
|
|
</a-col> |
|
|
|
|
|
|
|
|
|
<a-col :span="12"> |
|
|
|
|
<a-form-model-item label="结构" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="structure" class="label"> |
|
|
|
|
<a-form-model-item label="结构" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="structure" |
|
|
|
|
class="label"> |
|
|
|
|
<a-input v-model="model.structure" placeholder="请输入结构"></a-input> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="12"> |
|
|
|
|
<a-form-model-item label="折叠搭配及包装" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="foldingPackaging" class="label"> |
|
|
|
|
<a-form-model-item label="折叠搭配及包装" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="foldingPackaging" |
|
|
|
|
class="label"> |
|
|
|
|
<j-dict-select-tag v-model="model.foldingPackaging" placeholder="请选择折叠搭配及包装" |
|
|
|
|
dict-code="foldingPackaging"/> |
|
|
|
|
</a-form-model-item> |
|
|
|
@ -85,7 +91,8 @@ |
|
|
|
|
</a-row> |
|
|
|
|
<a-row> |
|
|
|
|
<a-col :span="48"> |
|
|
|
|
<a-form-model-item label="产品概述" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="productOverview" class="label" > |
|
|
|
|
<a-form-model-item label="产品概述" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="productOverview" |
|
|
|
|
class="label"> |
|
|
|
|
<a-textarea v-model="model.productOverview" placeholder="请输入产品概述"/> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
@ -95,14 +102,16 @@ |
|
|
|
|
<!-- <a-form-model-item label="销售地区" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="salesTerritory" :labelAlign="left">--> |
|
|
|
|
<!-- <a-textarea v-model="model.salesTerritory" placeholder="请输入销售地区" />--> |
|
|
|
|
<!-- </a-form-model-item>--> |
|
|
|
|
<a-form-model-item label="销售地区" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="salesTerritory" class="label"> |
|
|
|
|
<a-form-model-item label="销售地区" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="salesTerritory" |
|
|
|
|
class="label"> |
|
|
|
|
<a-textarea v-model="model.salesTerritory" placeholder="请输入销售地区"/> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
|
</a-row> |
|
|
|
|
<a-row> |
|
|
|
|
<a-col> |
|
|
|
|
<a-form-model-item label="制衣参数" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="measuringMethod" class="label"> |
|
|
|
|
<a-form-model-item label="制衣参数" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="measuringMethod" |
|
|
|
|
class="label"> |
|
|
|
|
<a-textarea v-model="model.measuringMethod" placeholder="请输入制衣参数"></a-textarea> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
@ -110,7 +119,8 @@ |
|
|
|
|
|
|
|
|
|
<a-row> |
|
|
|
|
<a-col> |
|
|
|
|
<a-form-model-item label="配件及标志" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="accLogos" class="label"> |
|
|
|
|
<a-form-model-item label="配件及标志" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="accLogos" |
|
|
|
|
class="label"> |
|
|
|
|
<a-textarea v-model="model.accLogos" placeholder="请输入配件及标志"/> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
@ -127,7 +137,7 @@ |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
|
</a-row> |
|
|
|
|
<!-- <a-row>--> |
|
|
|
|
<!-- <a-row>--> |
|
|
|
|
<!-- <a-col :span="24">--> |
|
|
|
|
<!-- <a-form-model-item label="企业" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="enterpriseId">--> |
|
|
|
|
<!-- <j-select-depart v-model="model.enterpriseId" multi />--> |
|
|
|
@ -152,51 +162,21 @@ |
|
|
|
|
<!-- <j-dict-select-tag type="radio" v-model="model.shape" dictCode="style_shape" placeholder="请输入形式" ></j-dict-select-tag>--> |
|
|
|
|
<!-- </a-form-model-item>--> |
|
|
|
|
<!-- </a-col>--> |
|
|
|
|
<!-- <a-col :span="24">--> |
|
|
|
|
<!-- <a-form-model-item label="编号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="nums">--> |
|
|
|
|
<!-- <a-input v-model="model.nums" placeholder="请输入编号" ></a-input>--> |
|
|
|
|
<!-- </a-form-model-item>--> |
|
|
|
|
<!-- </a-col>--> |
|
|
|
|
<!-- <a-col :span="24">--> |
|
|
|
|
<!-- <a-form-model-item label="款式名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="styleNames">--> |
|
|
|
|
<!-- <a-input v-model="model.styleNames" placeholder="请输入款式名称" ></a-input>--> |
|
|
|
|
<!-- </a-form-model-item>--> |
|
|
|
|
<!-- </a-col>--> |
|
|
|
|
<!-- <a-col :span="24">--> |
|
|
|
|
<!-- <a-form-model-item label="规格" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="specification">--> |
|
|
|
|
<!-- <a-input v-model="model.specification" placeholder="请输入规格" ></a-input>--> |
|
|
|
|
<!-- </a-form-model-item>--> |
|
|
|
|
<!-- </a-col>--> |
|
|
|
|
<!-- <a-col>--> |
|
|
|
|
<!-- <a-form-model-item label="销售地区" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="salesTerritory" :labelAlign="left">--> |
|
|
|
|
<!-- <a-textarea v-model="model.salesTerritory" rows="4" placeholder="请输入销售地区" />--> |
|
|
|
|
<!-- </a-form-model-item>--> |
|
|
|
|
<!-- </a-col>--> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <a-col>--> |
|
|
|
|
<!-- <a-form-model-item label="产品概述" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="productOverview">--> |
|
|
|
|
<!-- <a-textarea v-model="model.productOverview" rows="4" placeholder="请输入产品概述" />--> |
|
|
|
|
<!-- </a-form-model-item>--> |
|
|
|
|
<!-- </a-col>--> |
|
|
|
|
<!-- <a-col :span="24">--> |
|
|
|
|
<!-- <a-form-model-item label="规格" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="specification">--> |
|
|
|
|
<!-- <a-input v-model="model.specification" placeholder="请输入规格" ></a-input>--> |
|
|
|
|
<!-- </a-form-model-item>--> |
|
|
|
|
<!-- </a-col>--> |
|
|
|
|
<!-- <a-col :span="24">--> |
|
|
|
|
<!-- <a-form-model-item label="结构" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="structure">--> |
|
|
|
|
<!-- <a-input v-model="model.structure" placeholder="请输入结构" ></a-input>--> |
|
|
|
|
<!-- </a-form-model-item>--> |
|
|
|
|
<!-- </a-col>--> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <a-col :span="24">--> |
|
|
|
|
<!-- <a-form-model-item label="风格" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="characteristic">--> |
|
|
|
|
<!-- <a-input v-model="model.characteristic" placeholder="请输入风格" ></a-input>--> |
|
|
|
|
<!-- </a-form-model-item>--> |
|
|
|
|
<!-- </a-col>--> |
|
|
|
|
<!-- <a-col :span="24">--> |
|
|
|
|
<!-- <a-form-model-item label="测体余量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="error">--> |
|
|
|
|
<!-- <a-input v-model="model.error" placeholder="请输入测体余量" ></a-input>--> |
|
|
|
|
<!-- </a-form-model-item>--> |
|
|
|
|
<!-- </a-col>--> |
|
|
|
|
|
|
|
|
|
<!-- <a-col :span="24">--> |
|
|
|
|
<!-- <a-form-model-item label="效果" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="designSketch">--> |
|
|
|
|
<!-- <j-image-upload isMultiple v-model="model.designSketch" ></j-image-upload>--> |
|
|
|
@ -218,12 +198,8 @@ |
|
|
|
|
<!-- <a-input v-model="model.quotaMaterials" placeholder="请输入定额用料" ></a-input>--> |
|
|
|
|
<!-- </a-form-model-item>--> |
|
|
|
|
<!-- </a-col>--> |
|
|
|
|
<!-- <a-col :span="24">--> |
|
|
|
|
<!-- <a-form-model-item label="折叠搭配及包装" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="foldingPackaging">--> |
|
|
|
|
<!-- <j-dict-select-tag v-model="model.foldingPackaging" placeholder="请选择折叠搭配及包装" dict-code="foldingPackaging" />--> |
|
|
|
|
<!-- </a-form-model-item>--> |
|
|
|
|
<!-- </a-col>--> |
|
|
|
|
<!-- <a-col>--> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <a-form-model-item label="配件及标志" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="accLogos">--> |
|
|
|
|
<!-- <a-textarea v-model="model.accLogos" rows="4" placeholder="请输入配件及标志" />--> |
|
|
|
|
<!-- </a-form-model-item>--> |
|
|
|
@ -233,7 +209,7 @@ |
|
|
|
|
<!-- <j-dict-select-tag v-model="model.sewingForm" placeholder="请选择缝纫形式" dict-code="sewingForm"/>--> |
|
|
|
|
<!-- </a-form-model-item>--> |
|
|
|
|
<!-- </a-col>--> |
|
|
|
|
<!-- </a-row>--> |
|
|
|
|
<!-- </a-row>--> |
|
|
|
|
|
|
|
|
|
<!-- <a-row>--> |
|
|
|
|
<!-- <a-col :span="24">--> |
|
|
|
@ -338,6 +314,7 @@ |
|
|
|
|
<!-- </a-col>--> |
|
|
|
|
|
|
|
|
|
<!-- </a-row>--> |
|
|
|
|
|
|
|
|
|
</a-form-model> |
|
|
|
|
</j-form-container> |
|
|
|
|
</a-spin> |
|
|
|
@ -345,6 +322,7 @@ |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import {getAction, httpAction} from '@/api/manage' |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
@ -402,7 +380,9 @@ export default { |
|
|
|
|
edit: "/zyclothsstyle/zyClothsStyle/edit", |
|
|
|
|
queryById: "/zyclothsstyle/zyClothsStyle/queryById", |
|
|
|
|
//getAction的url |
|
|
|
|
sort:"/zyclothsstyle/zyClothsStyle/sort" |
|
|
|
|
sort: "/zyclothsstyle/zyClothsStyle/sort", |
|
|
|
|
//企业编号问题 |
|
|
|
|
enterpriseNum: "/zyclothsstyle/zyClothsStyle/enterpriseNum" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -416,6 +396,25 @@ export default { |
|
|
|
|
this.modelDefault = JSON.parse(JSON.stringify(this.model)); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
async bianHao() { |
|
|
|
|
if (this.model.id) { |
|
|
|
|
const {data: res} = await this.$axios.get('/jeecg-boot/zyclothsstyle/zyClothsStyle/enterpriseNum?id=' + this.model.enterpriseId) |
|
|
|
|
|
|
|
|
|
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) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
add() { |
|
|
|
|
this.edit(this.modelDefault); |
|
|
|
|
}, |
|
|
|
@ -452,12 +451,20 @@ export default { |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
popupCallback(value, row) { |
|
|
|
|
console.log("1222346584" + "++++++"+row) |
|
|
|
|
var n = 8; |
|
|
|
|
async popupCallback(value, row) { |
|
|
|
|
this.model = Object.assign(this.model, row); |
|
|
|
|
getAction(this.url.sort, {id: this.model.typeId}).then((res) => { |
|
|
|
|
console.log("aaaaaa"+res.result); |
|
|
|
|
console.log("1222346584" + "++++++" + row) |
|
|
|
|
const {data: res} = await this.$axios.get('/jeecg-boot/zyclothsstyle/zyClothsStyle/sort?id=' + this.model.typeId) |
|
|
|
|
if (res.code !== 200) { |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'error', |
|
|
|
|
message: '未查询到数据!' |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
// var n = 8; |
|
|
|
|
// this.model = Object.assign(this.model, row); |
|
|
|
|
// getAction(this.url.sort, {id: this.model.typeId}).then((res) => { |
|
|
|
|
//console.log("aaaaaa" + res.result); |
|
|
|
|
//var num = parseInt(res.result, 10) + 1; |
|
|
|
|
// num = num.toString(); |
|
|
|
|
// while (num.length < n) { |
|
|
|
@ -465,7 +472,6 @@ export default { |
|
|
|
|
// } |
|
|
|
|
this.model.nums = res.result; |
|
|
|
|
// console.log(this.model.processCode) |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -474,7 +480,8 @@ export default { |
|
|
|
|
.ant-form-item { |
|
|
|
|
margin-bottom: 16px; |
|
|
|
|
} |
|
|
|
|
/deep/ .label label{ |
|
|
|
|
text-align:left; |
|
|
|
|
|
|
|
|
|
/deep/ .label label { |
|
|
|
|
text-align: left; |
|
|
|
|
} |
|
|
|
|
</style> |