|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <div v-if="type === 'view'" class="switch_left">
|
|
|
+ <div v-if="type === 'view'&&isSwitch&&form.aftertype==3" class="switch_left">
|
|
|
<ul>
|
|
|
<li
|
|
|
v-for="item in tabOptions"
|
|
|
@@ -1423,6 +1423,10 @@ export default {
|
|
|
demandList: {
|
|
|
type: Array,
|
|
|
default: () => []
|
|
|
+ },
|
|
|
+ isSwitch: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -1666,6 +1670,7 @@ export default {
|
|
|
return [];
|
|
|
},
|
|
|
async init(res) {
|
|
|
+ this.activeComp='main'
|
|
|
let productDetail = res.productDetail ? res.productDetail : [];
|
|
|
this.$set(this.form, 'tableList', productDetail);
|
|
|
this.$set(this.form, 'orderCode', res.orderCode);
|
|
|
@@ -2010,42 +2015,7 @@ export default {
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
// 选项卡样式
|
|
|
-.switch_left {
|
|
|
- margin-bottom: 16px;
|
|
|
-
|
|
|
- ul {
|
|
|
- display: flex;
|
|
|
- list-style: none;
|
|
|
- padding: 0;
|
|
|
- margin: 0;
|
|
|
- border-bottom: 1px solid #e4e7ed;
|
|
|
-
|
|
|
- li {
|
|
|
- cursor: pointer;
|
|
|
- margin-right: 2px;
|
|
|
- position: relative;
|
|
|
-
|
|
|
- &.active {
|
|
|
- color: #fff;
|
|
|
- font-weight: 500;
|
|
|
-
|
|
|
- background-color: #1890ff;
|
|
|
- &::after {
|
|
|
- content: '';
|
|
|
- position: absolute;
|
|
|
- left: 0;
|
|
|
- bottom: -1px;
|
|
|
- width: 100%;
|
|
|
- height: 2px;
|
|
|
- background-color: #1890ff;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- &:hover {
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
+
|
|
|
|
|
|
:deep(.el-table__body .el-form-item__content) {
|
|
|
margin-left: 0px !important;
|