|
|
@ -18,8 +18,19 @@ |
|
|
|
<!--关联服装款式表 zy_cloths_style 关联列:名称 传值id--> |
|
|
|
<!--关联服装款式表 zy_cloths_style 关联列:名称 传值id--> |
|
|
|
<a-col :span="24"> |
|
|
|
<a-col :span="24"> |
|
|
|
<a-form-model-item label="款式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="styleId" v-if="this.model.id==null"> |
|
|
|
<a-form-model-item label="款式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="styleId" v-if="this.model.id==null"> |
|
|
|
<j-dict-select-tag v-model="model.styleId" placeholder="请输入款式" |
|
|
|
<!-- <j-dict-select-tag v-model="model.styleId" placeholder="请输入款式" |
|
|
|
:dict-code="dict" @change="xiugai"></j-dict-select-tag> |
|
|
|
:dict-code="dict" @change="xiugai"></j-dict-select-tag>--> |
|
|
|
|
|
|
|
<j-popup |
|
|
|
|
|
|
|
v-model="model.styleName" |
|
|
|
|
|
|
|
field="styleName" |
|
|
|
|
|
|
|
org-fields="id,style_names" |
|
|
|
|
|
|
|
dest-fields="styleId,styleName" |
|
|
|
|
|
|
|
code="zy_cloths_style_enterprise_id" |
|
|
|
|
|
|
|
:multi="multi" |
|
|
|
|
|
|
|
:param = "param" |
|
|
|
|
|
|
|
@input="popupCallback" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<a-input v-model="model.styleId" hidden /> |
|
|
|
|
|
|
|
|
|
|
|
</a-form-model-item> |
|
|
|
</a-form-model-item> |
|
|
|
<a-form-model-item label="款式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="styleId" v-else> |
|
|
|
<a-form-model-item label="款式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="styleId" v-else> |
|
|
@ -35,8 +46,19 @@ |
|
|
|
<!-- <a-input v-model="model.stylemodelId" placeholder="请输入款式型号" @change="(vaule) => handletypeSelect(value)"></a-input>--> |
|
|
|
<!-- <a-input v-model="model.stylemodelId" placeholder="请输入款式型号" @change="(vaule) => handletypeSelect(value)"></a-input>--> |
|
|
|
<!-- <j-dict-select-tag v-model="model.stylemodelId" placeholder="请输入款式型号"--> |
|
|
|
<!-- <j-dict-select-tag v-model="model.stylemodelId" placeholder="请输入款式型号"--> |
|
|
|
<!-- dict-code="zy_style_model,model_number,model_number"></j-dict-select-tag>--> |
|
|
|
<!-- dict-code="zy_style_model,model_number,model_number"></j-dict-select-tag>--> |
|
|
|
<j-dict-select-tag v-model="model.stylemodelId" placeholder="请选择款式型号" |
|
|
|
<!-- <j-dict-select-tag v-model="model.stylemodelId" placeholder="请选择款式型号" |
|
|
|
:dictCode="modenumber" @change="gaibian"></j-dict-select-tag> |
|
|
|
:dictCode="modenumber" @change="gaibian"></j-dict-select-tag>--> |
|
|
|
|
|
|
|
<j-popup |
|
|
|
|
|
|
|
v-model="model.modelName" |
|
|
|
|
|
|
|
field="modelName" |
|
|
|
|
|
|
|
org-fields="id,model_number" |
|
|
|
|
|
|
|
dest-fields="stylemodelId,modelName" |
|
|
|
|
|
|
|
code="zy_style_model" |
|
|
|
|
|
|
|
:multi="multi" |
|
|
|
|
|
|
|
:param = "param2" |
|
|
|
|
|
|
|
@input="popupCallback2" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<a-input v-model="model.stylemodelId" hidden /> |
|
|
|
</a-form-model-item> |
|
|
|
</a-form-model-item> |
|
|
|
<a-form-model-item label="款式型号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="stylemodelId" v-else> |
|
|
|
<a-form-model-item label="款式型号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="stylemodelId" v-else> |
|
|
|
<!-- <a-input v-model="model.stylemodelId" placeholder="请输入款式型号" @change="(vaule) => handletypeSelect(value)"></a-input>--> |
|
|
|
<!-- <a-input v-model="model.stylemodelId" placeholder="请输入款式型号" @change="(vaule) => handletypeSelect(value)"></a-input>--> |
|
|
@ -113,6 +135,9 @@ export default { |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
nums: '', |
|
|
|
nums: '', |
|
|
|
|
|
|
|
multi: false, |
|
|
|
|
|
|
|
param:{enterprise_id:""}, |
|
|
|
|
|
|
|
param2:{style_id:""}, |
|
|
|
selectedKey: '', // 款式id |
|
|
|
selectedKey: '', // 款式id |
|
|
|
typeid: '', // 型号, |
|
|
|
typeid: '', // 型号, |
|
|
|
serialNumber: '', // 顺序号 |
|
|
|
serialNumber: '', // 顺序号 |
|
|
@ -178,17 +203,28 @@ export default { |
|
|
|
console.log(this.props, 'superFieldList') |
|
|
|
console.log(this.props, 'superFieldList') |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
popupCallback(value,row){ |
|
|
|
|
|
|
|
this.model = Object.assign(this.model, row); |
|
|
|
|
|
|
|
this.param2.style_id = this.model.styleId; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
popupCallback2(value,row){ |
|
|
|
|
|
|
|
this.model = Object.assign(this.model, row); |
|
|
|
|
|
|
|
this.gaibian(); |
|
|
|
|
|
|
|
}, |
|
|
|
add() { |
|
|
|
add() { |
|
|
|
this.edit(this.modelDefault); |
|
|
|
this.edit(this.modelDefault); |
|
|
|
}, |
|
|
|
}, |
|
|
|
// |
|
|
|
// |
|
|
|
kuanshi(){ |
|
|
|
kuanshi(){ |
|
|
|
this.dict="zy_cloths_style,style_names,id,enterprise_id="+"'"+this.model.enterpriseId+"'"; |
|
|
|
this.param.enterprise_id = this.model.enterpriseId; |
|
|
|
|
|
|
|
/*this.dict="zy_cloths_style,style_names,id,enterprise_id="+"'"+this.model.enterpriseId+"'";*/ |
|
|
|
// this.model.styleId=null |
|
|
|
// this.model.styleId=null |
|
|
|
// this.model.nums=null |
|
|
|
// this.model.nums=null |
|
|
|
}, |
|
|
|
}, |
|
|
|
xiugai(){ |
|
|
|
xiugai(){ |
|
|
|
this.modenumber="zy_style_model,model_number,id,style_id="+"'"+this.model.styleId+"'" |
|
|
|
/* this.modenumber="zy_style_model,model_number,id,style_id="+"'"+this.model.styleId+"'"*/ |
|
|
|
|
|
|
|
this.param2.style_id = this.model.styleId; |
|
|
|
|
|
|
|
|
|
|
|
// this.model.stylemodelId=null |
|
|
|
// this.model.stylemodelId=null |
|
|
|
// this.model.nums=null |
|
|
|
// this.model.nums=null |
|
|
|
// if(this.model.stylemodelId!=null&&this.model.enterpriseId!=null){ |
|
|
|
// if(this.model.stylemodelId!=null&&this.model.enterpriseId!=null){ |
|
|
|