四大金刚(循环写法渲染页面)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 | <template> <div> <a-card size= "small" :title= "titlename2" style= "margin-top:20px;" > <a-form-model ref = "ruleForm" :model= "form" :rules= "rules" :label-col= "labelCol" :wrapper-col= "wrapperCol" > <div class = "" > <h4 class = "item-paragraph" >Process Information</h4> <a-row :gutter= "24" > <a-col :span= "6" v- for = "(itempr, indexpr) in form.prInformationArr" :key= "indexpr" > <a-form-model-item : ref = "itempr.ref" :label= "itempr.label" :prop= "itempr.prop" > <a-input-number v- if = "itempr.type == 'inputnumber'" :min= "1" :step= "1" :formatter= "(value) => `${value}`" :parser= "(value) => value.replace('', '')" style= "width:100%" v-model= "form.prInformationArr[indexpr].value" /> <a-input-search v- else - if = "itempr.type == 'inputsearch'" placeholder= "" :loading= "itempr.loading" @search= "onSearch" v-model= "form.prInformationArr[indexpr].value" /> <a-input v- else v-model= "form.prInformationArr[indexpr].value" /> </a-form-model-item> </a-col> </a-row> <h4 class = "item-paragraph" >Measure Information</h4> <a-row :gutter= "24" > <a-col :span= "6" v- for = "(itempr, indexpr) in form.meInformationArr" :key= "indexpr" > <a-form-model-item : ref = "itempr.ref" :label= "itempr.label" :prop= "itempr.prop" > <a-input v-model= "form.meInformationArr[indexpr].value" /> </a-form-model-item> </a-col> </a-row> <h4 class = "item-paragraph" >Smart Smapling Group Rule</h4> <a-row :gutter= "24" > <a-col :span= "6" v- for = "(itempr, indexpr) in form.smaplingGroupRuleArr" :key= "indexpr" > <a-form-model-item : ref = "itempr.ref" :label= "itempr.label" :prop= "itempr.prop" > <a-input-number v- if = "itempr.type == 'inputnumber'" :min= "1" :step= "1" :formatter= "(value) => `${value}`" :parser= "(value) => value.replace('', '')" style= "width:100%" v-model= "form.smaplingGroupRuleArr[indexpr].value" /> <a-textarea v- else - if = "itempr.type == 'textarea'" v-model= "form.smaplingGroupRuleArr[indexpr].value" :auto-size= "{ minRows: 2, maxRows: 6 }" /> <a-input v- else v-model= "form.smaplingGroupRuleArr[indexpr].value" /> </a-form-model-item> </a-col> </a-row> </div> <div class = "attachment-box" > <h4 class = "item-paragraph" >Attachment</h4> <attach-ment @UpLoadAttachment= "UpLoadAttachment" :attachments= "attachments" :caseNo= "attachmentCaseNo" :isEdit= "isEdit" :rejcetFlag= "rejcetFlag" ></attach-ment> </div> <a-row type= "flex" justify= "center" > <a-col> <div class = "smapling-select flex-btn" > <a-button type= "primary" block @click= "onSubmit" > Submit </a-button> <a-button style= "margin-left: 15px" block>Cancel</a-button> <a-button type= "danger" style= "margin-left: 15px" block> Save Draft </a-button> </div> </a-col> </a-row> </a-form-model> </a-card> </div> </template> <script> import attachMent from "@/components/attachment/Attachment.vue" export default { components:{ attachMent }, data() { return { attachments:[], attachmentCaseNo: "0001" , rejcetFlag: true , isEdit: false , titlename2: "Applicaton Information" , labelCol: { span: 10 }, wrapperCol: { span: 14 }, rules: { productName:[ {required: true ,message: '请填写Product name' ,} ], processStepSEQ:[ {required: true ,message: '请填写Process Step SEQ' ,} ], totalChamberCount:[ {required: true ,message: '请填写大于0 的整数' ,} ], aVGChamberCount:[ {required: true ,message: '请填写大于0 的整数' ,} ], selectWaferCount:[ {required: true ,message: '请填写大于0 的整数' ,} ], }, form: { prInformationArr: [ { label: "Product Name" , ref : "productName" , prop: "productName" , type: "" , value: "" , }, { label: "processStepSEQ" , ref : "processStepSEQ" , prop: "processStepSEQ" , type: "inputsearch" , value: "" , loading: false , }, { label: "Process Step DESC" , ref : "processStepDESC" , prop: "processStepDESC" , type: "" , value: "" , }, { label: "Process Recipe" , ref : "processRecipe" , prop: "processRecipe" , type: "" , value: "" , }, { label: "Process Capability" , ref : "processCapability" , prop: "processCapability" , type: "" , value: "" , }, { label: "Module" , ref : "module" , prop: "module" , type: "" , value: "" , }, { label: "Total Chamber Count" , ref : "totalChamberCount" , prop: "totalChamberCount" , type: "inputnumber" , value: "" , }, { label: "AVG Chamber Count" , ref : "aVGChamberCount" , prop: "aVGChamberCount" , type: "inputnumber" , value: "" , }, ], meInformationArr: [ { label: "Measure Step SEQ" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Measure Recipe" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Measure Stage" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Measure Steo DESC" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Measure Capability" , ref : "" , prop: "" , type: "" , value: "" , }, ], smaplingGroupRuleArr: [ { label: "Time InterVal" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Total lot Count" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Total Wafer Count" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "select Wafer Count" , ref : "selectWaferCount" , prop: "selectWaferCount" , type: "inputnumber" , value: "" , }, { label: "Sample Ratio" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Comment" , ref : "" , prop: "" , type: "textarea" , value: "" , } ], }, }; }, methods: { UpLoadAttachment(val){ console.log( "Attachment" ,val) }, onSubmit() { this .$refs.ruleForm.validate(valid => { if (valid) { alert( 'submit!' ); } else { console.log( this .form) console.log( 'error submit!!' ); return false ; } }); }, onSearch(val){ console.log(val) } }, }; </script> <style lang= "less" scoped> .gutter-example { .ant-row { .gutter-box { display: flex; padding: 5px 0; border: 0; } } } .item-paragraph { height: 32px; line-height: 32px; font-size: 14px; } .smapling- select { display: flex; } .flex-btn { width: 350px; flex-direction: row; justify-content: space-between; align-items: center; } .attachment-box{ border-top: solid 1px #f0f0f0; margin-bottom: 10px; } </style> |
以上是newSmartSmapling.vue
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 | <template> <div> <!-- <a-card size= "small" :title= "titlename" > <div class = "gutter-example" > <a-row :gutter= "16" > <a-col class = "gutter-row" :span= "6" v- for = "(item, index) in basicInformationArr" :key= "index" > <div class = "gutter-box" > <div>{{ item.key }}:</div> <div>{{ item.val }}</div> </div> </a-col> </a-row> <a-row :gutter= "16" > <div class = "smapling-select" > <div>Smapling Type:</div> <div> <a- select style= "width: 160px" @change= "newSmaplingChange" > <a- select -option v- for = "(val, itemindex) in smaplingTypeArr" :value= "val.key" :key= "itemindex" >{{ val.name }}</a- select -option > </a- select > </div> </div> </a-row> </div> </a-card> --> <a-card size= "small" :title= "titlename2" style= "margin-top: 20px" > <a-form-model ref = "ruleForm" :model= "form" :rules= "rules" :label-col= "labelCol" :wrapper-col= "wrapperCol" > <div class = "" > <h4 class = "item-paragraph" >Process Information</h4> <a-row :gutter= "24" > <a-col :span= "6" v- for = "(itempr, indexpr) in prInformationArr" :key= "indexpr" > <a-form-model-item : ref = "itempr.ref" :label= "itempr.label" :prop= "itempr.prop" > <a-input v-model= "prInformationArr[indexpr].value" /> </a-form-model-item> </a-col> </a-row> <h4 class = "item-paragraph" >Measure Information</h4> <a-row :gutter= "24" > <a-col :span= "6" v- for = "(itempr, indexpr) in meInformationArr" :key= "indexpr" > <a-form-model-item : ref = "itempr.ref" :label= "itempr.label" :prop= "itempr.prop" > <a-input v-model= "meInformationArr[indexpr].value" /> </a-form-model-item> </a-col> </a-row> <h4 class = "item-paragraph" >Smart Smapling Group Rule</h4> <a-row :gutter= "24" > <a-col :span= "6" v- for = "(itempr, indexpr) in smaplingGroupRuleArr" :key= "indexpr" > <a-form-model-item : ref = "itempr.ref" :label= "itempr.label" :prop= "itempr.prop" > <a-input-number v- if = "itempr.type == 'inputnumber'" :min= "1" :step= "1" :formatter= "(value) => `${value}`" :parser= "(value) => value.replace('', '')" style= "width:100%" /> <a-textarea v- else - if = "itempr.type == 'textarea'" v-model= "smaplingGroupRuleArr[indexpr].value" :auto-size= "{ minRows: 2, maxRows: 6 }" /> <a-input v- else v-model= "smaplingGroupRuleArr[indexpr].value" /> </a-form-model-item> </a-col> </a-row> <h4 class = "item-paragraph" >Applicatin Information</h4> <a-row :gutter= "24" > <a-col :span= "6" v- for = "(itempr, indexpr) in apInformationArr" :key= "indexpr" > <a-form-model-item : ref = "itempr.ref" :label= "itempr.label" :prop= "itempr.prop" > <a-input v-model= "apInformationArr[indexpr].value" /> </a-form-model-item> </a-col> </a-row> </div> <div class = "attachment-box" > <h4 class = "item-paragraph" >Attachment</h4> <attach-ment @UpLoadAttachment= "UpLoadAttachment" :attachments= "attachments" :caseNo= "attachmentCaseNo" :isEdit= "isEdit" :rejcetFlag= "rejcetFlag" ></attach-ment> </div> <a-row type= "flex" justify= "center" > <a-col> <div class = "smapling-select flex-btn" > <a-button type= "primary" block> Submit </a-button> <a-button style= "margin-left: 15px" block>Cancel</a-button> <a-button type= "danger" style= "margin-left: 15px" block> Save Draft </a-button> </div> </a-col> </a-row> </a-form-model> </a-card> </div> </template> <script> import attachMent from "@/components/attachment/Attachment.vue" export default { components:{ attachMent }, data() { return { attachments:[], attachmentCaseNo: "0001" , rejcetFlag: true , isEdit: false , titlename: "Basic Information" , titlename2: "Applicaton Information" , basicInformationArr: [ { key: "CaseNo" , val: "caseNo" , }, { key: "Case Status" , val: "caseStatus" , }, { key: "create Date" , val: "createDate" , }, { key: "Applicant" , val: "applicant" , }, { key: "Org" , val: "org" , }, { key: "Company" , val: "company" , }, ], smaplingTypeArr: [ { name: "Smart Smapling" , key: "smartSmapling" , }, { name: "Fix" , key: "fix" , }, ], labelCol: { span: 10 }, wrapperCol: { span: 14 }, rules: { productName:[ {required: true ,message: '请填写Product name' } ], processStepSEQ:[ {required: true ,message: '请填写Process Step SEQ' } ], selectWaferCount:[ {required: true ,message: '请填写大于0 的整数' } ], }, form: {}, prInformationArr: [ { label: "Product Name" , ref : "productName" , prop: "productName" , type: "" , value: "" , }, { label: "Process Step SEQ" , ref : "processStepSEQ" , prop: "processStepSEQ" , type: "" , value: "" , }, { label: "Process Step DESC" , ref : "" , prop: "processStepDESC" , type: "" , value: "" , }, { label: "Process Recipe" , ref : "" , prop: "processRecipe" , type: "" , value: "" , }, { label: "Process Capability" , ref : "" , prop: "processCapability" , type: "" , value: "" , }, { label: "Module" , ref : "" , prop: "module" , type: "" , value: "" , }, { label: "Total Chamber Count" , ref : "" , prop: "totalChamberCount" , type: "" , value: "" , }, { label: "AVG run Chamber Count" , ref : "" , prop: "aVGrunChamberCount" , type: "" , value: "" , }, ], meInformationArr: [ { label: "Measure Step SEQ" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Measure Recipe" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Measure Stage" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Measure Steo DESC" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Measure Capability" , ref : "" , prop: "" , type: "" , value: "" , }, ], smaplingGroupRuleArr: [ { label: "Time InterVal" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Total lot Count" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Total Wafer Count" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "select Wafer Count" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "AVG MEA Wafer Count" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Sample Ratio" , ref : "" , prop: "" , type: "" , value: "" , }, ], apInformationArr: [ { label: "Time InterVal" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Total lot Count" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Total Wafer Count" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "select Wafer Count" , ref : "selectWaferCount" , prop: "selectWaferCount" , type: "inputnumber" , value: "" , }, { label: "AVG MEA Wafer Count" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Sample Ratio" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Comment" , ref : "" , prop: "" , type: "textarea" , value: "" , } ], }; }, methods: { UpLoadAttachment(val){ console.log( "Attachment" ,val) }, newSmaplingChange(e) {}, }, }; </script> <style lang= "less" scoped> .gutter-example { .ant-row { .gutter-box { display: flex; padding: 5px 0; border: 0; } } } .item-paragraph { height: 32px; line-height: 32px; font-size: 14px; } .smapling- select { display: flex; } .flex-btn { width: 350px; flex-direction: row; justify-content: space-between; align-items: center; } .attachment-box{ border-top: solid 1px #f0f0f0; margin-bottom: 10px; } </style> |
以上是changeSmartSmapling.vue
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 | <template> <div> <!-- <a-card size= "small" :title= "titlename" > <div class = "gutter-example" > <a-row :gutter= "16" > <a-col class = "gutter-row" :span= "6" v- for = "(item, index) in basicInformationArr" :key= "index" > <div class = "gutter-box" > <div>{{ item.key }}:</div> <div>{{ item.val }}</div> </div> </a-col> </a-row> <a-row :gutter= "16" > <div class = "smapling-select" > <div>Smapling Type:</div> <div> <a- select style= "width: 160px" @change= "newSmaplingChange" > <a- select -option v- for = "(val, itemindex) in smaplingTypeArr" :value= "val.key" :key= "itemindex" >{{ val.name }}</a- select -option > </a- select > </div> </div> </a-row> </div> </a-card> --> <a-card size= "small" :title= "titlename2" style= "margin-top:20px;" > <a-form-model ref = "ruleForm" :model= "form" :rules= "rules" :label-col= "labelCol" :wrapper-col= "wrapperCol" > <div class = "" > <a-row :gutter= "24" > <a-col :span= "6" v- for = "(itempr, indexpr) in apInformationArr" :key= "indexpr" > <a-form-model-item : ref = "itempr.ref" :label= "itempr.label" :prop= "itempr.prop" > <a-input v-model= "apInformationArr[indexpr].value" /> </a-form-model-item> </a-col> </a-row> </div> <div class = "attachment-box" > <h4 class = "item-paragraph" >Attachment</h4> <attach-ment @UpLoadAttachment= "UpLoadAttachment" :attachments= "attachments" :caseNo= "attachmentCaseNo" :isEdit= "isEdit" :rejcetFlag= "rejcetFlag" ></attach-ment> </div> <a-row type= "flex" justify= "center" > <a-col> <div class = "smapling-select flex-btn" > <a-button type= "primary" block> Submit </a-button> <a-button style= "margin-left: 15px" block>Cancel</a-button> <a-button type= "danger" style= "margin-left: 15px" block> Save Draft </a-button> </div> </a-col> </a-row> </a-form-model> </a-card> </div> </template> <script> import attachMent from "@/components/attachment/Attachment.vue" export default { components:{ attachMent }, data() { return { attachments:[], attachmentCaseNo: "0001" , rejcetFlag: true , isEdit: false , titlename: "Basic Information" , titlename2: "Applicaton Information" , basicInformationArr: [ { key: "CaseNo" , val: "caseNo" , }, { key: "Case Status" , val: "caseStatus" , }, { key: "create Date" , val: "createDate" , }, { key: "Applicant" , val: "applicant" , }, { key: "Org" , val: "org" , }, { key: "Company" , val: "company" , }, ], smaplingTypeArr: [ { name: "Smart Smapling" , key: "smartSmapling" , }, { name: "Fix" , key: "fix" , }, ], labelCol: { span: 10 }, wrapperCol: { span: 14 }, rules: {}, form: {}, apInformationArr: [ { label: "Product ID" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Plan ID" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Measure Step SQE" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Wafer Count" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Measure Recipe" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Measure Stage" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Measure Step DESC" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Measure Capabilty" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "BaseLine SUBID" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Scan Lot(s)" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Sample Ratio" , ref : "" , prop: "" , type: "" , value: "" , }, ], }; }, methods: { newSmaplingChange(e) {}, }, }; </script> <style lang= "less" scoped> .gutter-example { .ant-row { .gutter-box { display: flex; padding: 5px 0; border: 0; } } } .item-paragraph { height: 32px; line-height: 32px; font-size: 14px; } .smapling- select { display: flex; } .flex-btn { width: 350px; flex-direction: row; justify-content: space-between; align-items: center; } .attachment-box{ border-top: solid 1px #f0f0f0; margin-bottom: 10px; } </style> |
以上是newFix.vue
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 | <template> <div> <a-card size= "small" :title= "titlename" v- if = "headshow" > <div class = "gutter-example" > <a-row :gutter= "16" > <a-col class = "gutter-row" :span= "6" v- for = "(item, index) in basicInformationArr" :key= "index" > <div class = "gutter-box" > <div>{{ item.key }}:</div> <div>{{ item.val }}</div> </div> </a-col> </a-row> <a-row :gutter= "16" > <div class = "smapling-select" > <div>Smapling Type:</div> <div> <a- select style= "width: 160px" @change= "newSmaplingChange" > <a- select -option v- for = "(val, itemindex) in smaplingTypeArr" :value= "val.key" :key= "itemindex" >{{ val.name }}</a- select -option > </a- select > </div> </div> </a-row> </div> </a-card> <a-form-model ref = "ruleForm" :model= "form" :rules= "rules" :label-col= "labelCol" :wrapper-col= "wrapperCol" > <div class = "" > <a-card size= "small" :title= "titlename2" style= "margin-top: 20px" > <a-row :gutter= "24" > <a-col :span= "6" v- for = "(itempr, indexpr) in cInfoInformationArr" :key= "indexpr" > <a-form-model-item : ref = "itempr.ref" :label= "itempr.label" :prop= "itempr.prop" > <a-input v-model= "cInfoInformationArr[indexpr].value" /> </a-form-model-item> </a-col> </a-row> </a-card> <a-card size= "small" :title= "titlename3" style= "margin-top: 20px" > <a-row :gutter= "24" > <a-col :span= "6" v- for = "(itempr, indexpr) in apInformationArr" :key= "indexpr" > <a-form-model-item : ref = "itempr.ref" :label= "itempr.label" :prop= "itempr.prop" > <a-input v-model= "apInformationArr[indexpr].value" /> </a-form-model-item> </a-col> </a-row> <div class = "attachment-box" > <h4 class = "item-paragraph" >Attachment</h4> <attach-ment @UpLoadAttachment= "UpLoadAttachment" :attachments= "attachments" :caseNo= "attachmentCaseNo" :isEdit= "isEdit" :rejcetFlag= "rejcetFlag" ></attach-ment> </div> <div style= "background: #fff" > <a-row type= "flex" justify= "center" > <a-col> <div class = "smapling-select flex-btn" > <a-button type= "primary" block> Submit </a-button> <a-button style= "margin-left: 15px" block>Cancel</a-button> <a-button type= "danger" style= "margin-left: 15px" block> Save Draft </a-button> </div> </a-col> </a-row> </div> </a-card> </div> </a-form-model> </div> </template> <script> import attachMent from "@/components/attachment/Attachment.vue" export default { components:{ attachMent }, data() { return { attachments:[], attachmentCaseNo: "0001" , rejcetFlag: true , isEdit: false , headshow: false , titlename: "Basic Information" , titlename2: "Current Info Information" , titlename3: "Applicaton Information" , basicInformationArr: [ { key: "CaseNo" , val: "" , }, { key: "Case Status" , val: "" , }, { key: "create Date" , val: "" , }, { key: "Applicant" , val: "" , }, { key: "Org" , val: "" , }, { key: "Company" , val: "" , }, ], smaplingTypeArr: [ { name: "Smart Smapling" , key: "smartSmapling" , }, { name: "Fix" , key: "fix" , }, ], labelCol: { span: 10 }, wrapperCol: { span: 14 }, rules: { productId:[ {required: true ,message: '请填写Product id' } ], planId:[ {required: true ,message: '请填写plan id' } ], measureStepSeq:[ {required: true ,message: '请填写Measure Step SEQ' } ], }, form: {}, cInfoInformationArr: [ { label: "Product ID" , ref : "productId" , prop: "productId" , type: "" , value: "" , }, { label: "Plan ID" , ref : "planId" , prop: "planId" , type: "" , value: "" , }, { label: "Measure Step SEQ" , ref : "measureStepSeq" , prop: "measureStepSeq" , type: "" , value: "" , }, { label: "Wafer Count" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Measure Recipe" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Measure Stage" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Measure Step DESC" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Measure Capability" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Baseline SUBID" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Scan Lot(s)" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Sample Ratio" , ref : "" , prop: "" , type: "" , value: "" , }, ], apInformationArr: [ { label: "Baseline SUBID" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Scan Lost(s)" , ref : "" , prop: "" , type: "" , value: "" , }, { label: "Sample Ratio" , ref : "" , prop: "" , type: "" , value: "" , }, ], }; }, methods: { UpLoadAttachment(val){ console.log( "Attachment" ,val) }, newSmaplingChange(e) {}, }, }; </script> <style lang= "less" scoped> .gutter-example { .ant-row { .gutter-box { display: flex; padding: 5px 0; border: 0; } } } .item-paragraph { height: 32px; line-height: 32px; font-size: 14px; } .smapling- select { display: flex; } .flex-btn { width: 350px; flex-direction: row; justify-content: space-between; align-items: center; } .attachment-box{ border-top: solid 1px #f0f0f0; margin-bottom: 10px; } </style> |
以上上是changeFix.vue
//主页面来了
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | <template> <div> <a-card size= "small" :title= "titlename" > <div class = "gutter-example" > <a-row :gutter= "16" > <a-col class = "gutter-row" :span= "6" v- for = "(item, index) in basicInformationArr" :key= "index" > <div class = "gutter-box" > <div>{{ item.key }}:</div> <div>{{ item.val }}</div> </div> </a-col> <a-col :span= "6" > <div class = "gutter-box" > <div>Smapling Type:</div> <div><com-type :smaplingTypeArr= "smaplingTypeArr" @newSmaplingChange= "newSmaplingChange" ></com-type></div> </div> </a-col> </a-row> </div> </a-card> <!-- --> <newsmart-smapling></newsmart-smapling> <!-- --> <!-- <changesmart-smapling></changesmart-smapling> --> <!-- --> <!-- < new -fix></ new -fix> --> <!-- --> <!-- <changeFix></changeFix> --> </div> </template> <script> import { mapState } from "vuex" ; import { serialNumber } from "@/utils/tableIndex" ; //表格indx序号 import { inputRule, selectRule, dateRule } from "@/utils/rule" ; import Cookie from "js-cookie" ; import newsmartSmapling from "@/pages/csos/newApplication/commonPage/newSmartSmapling" ; import changesmartSmapling from "@/pages/csos/newApplication/commonPage/changeSmartSmapling" ; import newFix from "@/pages/csos/newApplication/commonPage/newFix.vue" ; import changeFix from "@/pages/csos/newApplication/commonPage/changeFix.vue" ; import comType from "@/pages/csos/newApplication/commonPage/comType" ; import { queryHeaderInfo } from "@/pages/csos/newApplication/CreateApplicant/api.js" ; function headStyle() { return { style: { background: "lightcyan" , }, }; } export default { name: "CreateApplicant" , components: { newsmartSmapling, changesmartSmapling, newFix, changeFix, comType, }, data() { return { keyword: "create" , titlename: "Basic Information" , basicInformationArr: [ { key: "CaseNo" , val: "" , }, { key: "Case Status" , val: "" , }, { key: "create Date" , val: "" , }, { key: "Applicant" , val: "" , }, { key: "Company" , val: "" , }, { key: "Org" , val: "" , }, ], smaplingTypeArr: [ { name: "Smart Smapling" , key: "smartSmapling" , }, { name: "Fix" , key: "fix" , }, //new ], form: this .$form.createForm( this , { name: "create_form" }), labelCol: { span: 8, }, wrapperCol: { span: 16, }, inputRule: inputRule, selectRule: selectRule, }; }, computed: { ...mapState( "account" , { currUser: "user" , }), ...mapState( "setting" , [ "pageMinHeight" ]), }, created() { this .userCode = Cookie. get (process.env.VUE_APP_PROJECT_NAME + "userId" ); console.log( this .userCode); let operation = this .keyword; this .queryHeaderInfoFun( this .userCode, operation); }, mounted() {}, methods: { // RET smaer sampling //PIPE fix // async queryHeaderInfoFun(userId, operation) { let res = await queryHeaderInfo(userId, operation); console.log(res); if (res.data.success) { let { caseNo, applicant, company, createDate, organization } = res.data.data; this .basicInformationArr[0].val = caseNo; this .basicInformationArr[1].val = "draft" ; this .basicInformationArr[2].val = createDate; this .basicInformationArr[3].val = applicant; this .basicInformationArr[4].val = company; this .basicInformationArr[5].val = organization; } else { this .$message.error(res.data.message); } }, newSmaplingChange(e) {}, }, }; </script> <style lang= "less" scoped> @import "@/theme/formStyle.less" ; .buttonItem > ::v-deep.ant-col-16 { width: 100% !important; .ant-form-item-control { width: 100% !important; } } .gutter-example { .ant-row { .gutter-box { display: flex; padding: 5px 0; border: 0; } } } .smapling- select { display: flex; } </style> |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通