|
|
@@ -75,6 +75,11 @@
|
|
75
|
75
|
</el-option>
|
|
76
|
76
|
</el-select>
|
|
77
|
77
|
</el-form-item>
|
|
|
78
|
+ <el-form-item label="协议类型:" prop="protocolType">
|
|
|
79
|
+ <el-select v-model="addForm.protocolType" placeholder="请选择">
|
|
|
80
|
+ <el-option v-for="(item,index) in xyArr" :key="index" :label="item.enumName" :value="item.enumCode"></el-option>
|
|
|
81
|
+ </el-select>
|
|
|
82
|
+ </el-form-item>
|
|
78
|
83
|
<el-form-item label="产品描述:">
|
|
79
|
84
|
<el-input
|
|
80
|
85
|
style="width: 80%"
|
|
|
@@ -108,6 +113,7 @@ export default {
|
|
108
|
113
|
},
|
|
109
|
114
|
orgCode:"",
|
|
110
|
115
|
ckLists: [],
|
|
|
116
|
+ xyArr:[],
|
|
111
|
117
|
typeLists: [],
|
|
112
|
118
|
addForm: {},
|
|
113
|
119
|
dialogFormVisible: false,
|
|
|
@@ -119,6 +125,9 @@ export default {
|
|
119
|
125
|
proCategoryCode: [
|
|
120
|
126
|
{ required: true, message: "请选择产品分类", trigger: "blur" },
|
|
121
|
127
|
],
|
|
|
128
|
+ protocolType: [
|
|
|
129
|
+ { required: true, message: "请选择协议类型", trigger: "blur" },
|
|
|
130
|
+ ],
|
|
122
|
131
|
},
|
|
123
|
132
|
};
|
|
124
|
133
|
},
|
|
|
@@ -135,6 +144,7 @@ export default {
|
|
135
|
144
|
},
|
|
136
|
145
|
getInfo(row) {
|
|
137
|
146
|
this.addForm = row;
|
|
|
147
|
+ this.addForm.protocolType=this.addForm.protocolType.replace(/\s+/g,"")
|
|
138
|
148
|
// this.addForm = row;
|
|
139
|
149
|
this.addForm.label = row.proCategoryName;
|
|
140
|
150
|
},
|
|
|
@@ -175,6 +185,23 @@ export default {
|
|
175
|
185
|
.catch((err) => {
|
|
176
|
186
|
console.log(err);
|
|
177
|
187
|
});
|
|
|
188
|
+ var condition = {
|
|
|
189
|
+ enumCode: 120000,
|
|
|
190
|
+ };
|
|
|
191
|
+ condition = JSON.stringify(condition);
|
|
|
192
|
+ var data = {
|
|
|
193
|
+ condition: condition,
|
|
|
194
|
+ };
|
|
|
195
|
+ api
|
|
|
196
|
+ .dataDic(data)
|
|
|
197
|
+ .then((res) => {
|
|
|
198
|
+ if (res.code == 200) {
|
|
|
199
|
+ this.xyArr = res.data[0].children;
|
|
|
200
|
+ }
|
|
|
201
|
+ })
|
|
|
202
|
+ .catch((err) => {
|
|
|
203
|
+ console.log(err);
|
|
|
204
|
+ });
|
|
178
|
205
|
},
|
|
179
|
206
|
|
|
180
|
207
|
//新建产品提交
|