Showing
4 changed files
with
54 additions
and
55 deletions
| ... | @@ -64,10 +64,10 @@ const permission = { | ... | @@ -64,10 +64,10 @@ const permission = { |
| 64 | // 遍历后台传来的路由字符串,转换为组件对象 | 64 | // 遍历后台传来的路由字符串,转换为组件对象 |
| 65 | function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) { | 65 | function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) { |
| 66 | return asyncRouterMap.filter(route => { | 66 | return asyncRouterMap.filter(route => { |
| 67 | - // // 屏蔽包含 summary 的路由 | 67 | + // 屏蔽包含 summary 的路由 |
| 68 | - // if (route.path.includes('summary')) { | 68 | + if (route.path.includes('summary')) { |
| 69 | - // return false; | 69 | + return false; |
| 70 | - // } | 70 | + } |
| 71 | if (type && route.children) { | 71 | if (type && route.children) { |
| 72 | route.children = filterChildren(route.children) | 72 | route.children = filterChildren(route.children) |
| 73 | } | 73 | } | ... | ... |
| ... | @@ -91,7 +91,7 @@ | ... | @@ -91,7 +91,7 @@ |
| 91 | <el-checkbox v-model="formData.qdCheck" @change="changeQDCheckBox()"></el-checkbox>青岛 | 91 | <el-checkbox v-model="formData.qdCheck" @change="changeQDCheckBox()"></el-checkbox>青岛 |
| 92 | </div> | 92 | </div> |
| 93 | <el-row :gutter="5"> | 93 | <el-row :gutter="5"> |
| 94 | - <div v-if="isCipherMachine"> | 94 | +<!-- <div v-if="isCipherMachine">--> |
| 95 | <!-- 公服DXPID --> | 95 | <!-- 公服DXPID --> |
| 96 | <el-col :span="8"> | 96 | <el-col :span="8"> |
| 97 | <Formitem label="公服DXPID" prop="qingdaoUserDxpid" type="edit"> | 97 | <Formitem label="公服DXPID" prop="qingdaoUserDxpid" type="edit"> |
| ... | @@ -137,7 +137,7 @@ | ... | @@ -137,7 +137,7 @@ |
| 137 | ></el-input> | 137 | ></el-input> |
| 138 | </Formitem> | 138 | </Formitem> |
| 139 | </el-col> | 139 | </el-col> |
| 140 | - </div> | 140 | +<!-- </div>--> |
| 141 | <el-col :span="8"> | 141 | <el-col :span="8"> |
| 142 | <Formitem label="山电DXPID" prop="qingdaoDanyiUserDxpid" type="edit"> | 142 | <Formitem label="山电DXPID" prop="qingdaoDanyiUserDxpid" type="edit"> |
| 143 | <el-input | 143 | <el-input |
| ... | @@ -235,26 +235,26 @@ | ... | @@ -235,26 +235,26 @@ |
| 235 | </div> | 235 | </div> |
| 236 | </el-col> | 236 | </el-col> |
| 237 | <!-- 加密方式 --> | 237 | <!-- 加密方式 --> |
| 238 | - <el-col :span="8"> | 238 | +<!-- <el-col :span="8">--> |
| 239 | - <Formitem label="加密方式" prop="methodOfSignature" type="edit"> | 239 | +<!-- <Formitem label="加密方式" prop="methodOfSignature" type="edit">--> |
| 240 | - <el-select | 240 | +<!-- <el-select--> |
| 241 | - type="text" | 241 | +<!-- type="text"--> |
| 242 | - id="inputInner-edit-methodOfSignature" | 242 | +<!-- id="inputInner-edit-methodOfSignature"--> |
| 243 | - v-model="formData.methodOfSignature" | 243 | +<!-- v-model="formData.methodOfSignature"--> |
| 244 | - clearable | 244 | +<!-- clearable--> |
| 245 | - maxlength="4" | 245 | +<!-- maxlength="4"--> |
| 246 | - :disabled="!formData.qdCheck" | 246 | +<!-- :disabled="!formData.qdCheck"--> |
| 247 | - placeholder="" | 247 | +<!-- placeholder=""--> |
| 248 | - > | 248 | +<!-- >--> |
| 249 | - <el-option | 249 | +<!-- <el-option--> |
| 250 | - v-for="(item, index) in $store.getters.dict.METHOD_OF_SIGNATURE" | 250 | +<!-- v-for="(item, index) in $store.getters.dict.METHOD_OF_SIGNATURE"--> |
| 251 | - :key="index" | 251 | +<!-- :key="index"--> |
| 252 | - :label="item.itemChineseName" | 252 | +<!-- :label="item.itemChineseName"--> |
| 253 | - :value="item.itemValue" | 253 | +<!-- :value="item.itemValue"--> |
| 254 | - ></el-option> | 254 | +<!-- ></el-option>--> |
| 255 | - </el-select> | 255 | +<!-- </el-select>--> |
| 256 | - </Formitem> | 256 | +<!-- </Formitem>--> |
| 257 | - </el-col> | 257 | +<!-- </el-col>--> |
| 258 | </el-row> | 258 | </el-row> |
| 259 | <div class="checkTitle"> | 259 | <div class="checkTitle"> |
| 260 | <el-checkbox v-model="formData.bjCheck" @change="changeBJCheckBox()"></el-checkbox>北京 | 260 | <el-checkbox v-model="formData.bjCheck" @change="changeBJCheckBox()"></el-checkbox>北京 |
| ... | @@ -431,7 +431,7 @@ export default { | ... | @@ -431,7 +431,7 @@ export default { |
| 431 | ecomEntEmail: "", | 431 | ecomEntEmail: "", |
| 432 | ecomEntName: "", | 432 | ecomEntName: "", |
| 433 | orderRequester: "", | 433 | orderRequester: "", |
| 434 | - methodOfSignature: this.getDefaultMethodOfSignature(), // 设置默认值 | 434 | + //methodOfSignature: this.getDefaultMethodOfSignature(), // 设置默认值 |
| 435 | certificateSerialNumber: "", | 435 | certificateSerialNumber: "", |
| 436 | certificateIndexNumber: "", | 436 | certificateIndexNumber: "", |
| 437 | qingdaoKey: "", | 437 | qingdaoKey: "", |
| ... | @@ -467,13 +467,13 @@ export default { | ... | @@ -467,13 +467,13 @@ export default { |
| 467 | message: "订单申报方不能为空!", | 467 | message: "订单申报方不能为空!", |
| 468 | }, | 468 | }, |
| 469 | ], | 469 | ], |
| 470 | - methodOfSignature: [ | 470 | + // methodOfSignature: [ |
| 471 | - { | 471 | + // { |
| 472 | - required: true, | 472 | + // required: true, |
| 473 | - trigger: "change", | 473 | + // trigger: "change", |
| 474 | - message: "加密方式不能为空!", | 474 | + // message: "加密方式不能为空!", |
| 475 | - }, | 475 | + // }, |
| 476 | - ], | 476 | + // ], |
| 477 | // declarationUnit18: [ | 477 | // declarationUnit18: [ |
| 478 | // { | 478 | // { |
| 479 | // required: true, | 479 | // required: true, |
| ... | @@ -546,11 +546,11 @@ export default { | ... | @@ -546,11 +546,11 @@ export default { |
| 546 | } | 546 | } |
| 547 | }, | 547 | }, |
| 548 | }, | 548 | }, |
| 549 | - computed: { | 549 | + // computed: { |
| 550 | - isCipherMachine() { | 550 | + // isCipherMachine() { |
| 551 | - return this.formData.methodOfSignature === 'PUBLIC_SERVICE'; | 551 | + // return this.formData.methodOfSignature === 'PUBLIC_SERVICE'; |
| 552 | - } | 552 | + // } |
| 553 | - }, | 553 | + // }, |
| 554 | 554 | ||
| 555 | created() { | 555 | created() { |
| 556 | // 确保字典数据已加载 | 556 | // 确保字典数据已加载 |
| ... | @@ -859,7 +859,7 @@ export default { | ... | @@ -859,7 +859,7 @@ export default { |
| 859 | ecomEntEmail: "", | 859 | ecomEntEmail: "", |
| 860 | ecomEntName: "", | 860 | ecomEntName: "", |
| 861 | orderRequester: "", | 861 | orderRequester: "", |
| 862 | - methodOfSignature: this.getDefaultMethodOfSignature(), // 重置默认值 | 862 | + //methodOfSignature: this.getDefaultMethodOfSignature(), // 重置默认值 |
| 863 | certificateSerialNumber: "", | 863 | certificateSerialNumber: "", |
| 864 | certificateIndexNumber: "", | 864 | certificateIndexNumber: "", |
| 865 | qingdaoKey: "", | 865 | qingdaoKey: "", | ... | ... |
| ... | @@ -156,10 +156,10 @@ | ... | @@ -156,10 +156,10 @@ |
| 156 | <el-col :span="4"> | 156 | <el-col :span="4"> |
| 157 | <Formitem label="数量" prop="qty"> | 157 | <Formitem label="数量" prop="qty"> |
| 158 | <el-input | 158 | <el-input |
| 159 | + type="number" | ||
| 159 | class="inputShadow" | 160 | class="inputShadow" |
| 160 | id="inputInner--qty" | 161 | id="inputInner--qty" |
| 161 | resize="none" | 162 | resize="none" |
| 162 | - maxlength="14" | ||
| 163 | v-model.number="tableRowformData.qty" | 163 | v-model.number="tableRowformData.qty" |
| 164 | clearable | 164 | clearable |
| 165 | placeholder="" | 165 | placeholder="" |
| ... | @@ -297,9 +297,14 @@ | ... | @@ -297,9 +297,14 @@ |
| 297 | if (value < 0) { | 297 | if (value < 0) { |
| 298 | callback(new Error('数值不能为负')); | 298 | callback(new Error('数值不能为负')); |
| 299 | } else { | 299 | } else { |
| 300 | + const valueStr = value.toString(); | ||
| 301 | + if (valueStr.length > 14) { | ||
| 302 | + callback(new Error('最多14位')); | ||
| 303 | + } else { | ||
| 300 | callback(); | 304 | callback(); |
| 301 | } | 305 | } |
| 302 | } | 306 | } |
| 307 | + } | ||
| 303 | }; | 308 | }; |
| 304 | return { | 309 | return { |
| 305 | tableRowformData:{}, | 310 | tableRowformData:{}, | ... | ... |
| ... | @@ -94,6 +94,14 @@ export default { | ... | @@ -94,6 +94,14 @@ export default { |
| 94 | watch: { | 94 | watch: { |
| 95 | outerVisible(val) { | 95 | outerVisible(val) { |
| 96 | if (val) { | 96 | if (val) { |
| 97 | + this.loadings.dialogLoading = false; | ||
| 98 | + if (this.type == "update") { | ||
| 99 | + this.formData = this.active; | ||
| 100 | + } else if (this.type == "menuChange") { | ||
| 101 | + this.formData = this.active; | ||
| 102 | + this.searchTreeData(); | ||
| 103 | + this.loadCheckedKeys();//加载已绑定的菜单 | ||
| 104 | + } | ||
| 97 | } | 105 | } |
| 98 | }, | 106 | }, |
| 99 | }, | 107 | }, |
| ... | @@ -128,20 +136,6 @@ export default { | ... | @@ -128,20 +136,6 @@ export default { |
| 128 | loadingText: "", | 136 | loadingText: "", |
| 129 | }; | 137 | }; |
| 130 | }, | 138 | }, |
| 131 | - watch: { | ||
| 132 | - outerVisible(val) { | ||
| 133 | - if (val) { | ||
| 134 | - this.loadings.dialogLoading = false; | ||
| 135 | - if (this.type == "update") { | ||
| 136 | - this.formData = this.active; | ||
| 137 | - } else if (this.type == "menuChange") { | ||
| 138 | - this.formData = this.active; | ||
| 139 | - this.searchTreeData(); | ||
| 140 | - this.loadCheckedKeys();//加载已绑定的菜单 | ||
| 141 | - } | ||
| 142 | - } | ||
| 143 | - }, | ||
| 144 | - }, | ||
| 145 | methods: { | 139 | methods: { |
| 146 | //查询菜单数据 | 140 | //查询菜单数据 |
| 147 | searchTreeData() { | 141 | searchTreeData() { | ... | ... |
-
Please register or login to post a comment