Browse Source

优化代码

dev-xx
马远东 11 months ago
parent
commit
033417abc2
  1. 114
      src/views/aftersales/aftersalesWorkOrderAddTemp.vue

114
src/views/aftersales/aftersalesWorkOrderAddTemp.vue

@ -47,6 +47,7 @@
placeholder="请选择发现节点" placeholder="请选择发现节点"
style="width: 100%" style="width: 100%"
@change="DiscoveringNodesChange" @change="DiscoveringNodesChange"
clearable
> >
<el-option <el-option
v-for="item in Discoveringoptions" v-for="item in Discoveringoptions"
@ -288,6 +289,7 @@
label="调查经过" label="调查经过"
prop="investigationPocess" prop="investigationPocess"
class="el_Investigation" class="el_Investigation"
clearable
v-if="displaySettings.investigationPocess" v-if="displaySettings.investigationPocess"
> >
<el-input <el-input
@ -305,13 +307,83 @@
<!-- 内部责任划分 --> <!-- 内部责任划分 -->
<el-tabs <el-tabs
v-model="form.responsibilities" v-model="form.responsibilities"
class="demo-tabs Packagebox" class="demo-tabs responsibilities"
@tab-click="handleClick" @tab-click="handleClick"
v-loading="form.Packageloading" v-loading="form.Packageloading"
> >
<el-tab-pane label="内部责任划分" name="0"> <el-tab-pane label="内部责任划分" name="0">
<div class="el_responsibilities">
<div class="el_responsibilities_box">
<el-form-item label="责任方" prop="processor" class="el_Processing">
<el-select
v-model="form.processor"
placeholder="请选择责任方"
style="width: 100%"
multiple
filterable
clearable
>
<el-option
v-for="item in Processingoptions"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<el-form-item label="责任人" prop="processor" class="el_Processing">
<el-select
v-model="form.processor"
placeholder="请选择责任人"
style="width: 100%"
multiple
filterable
clearable
>
<el-option
v-for="item in Processingoptions"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<el-form-item label="占比" prop="waybillMall">
<el-input-number
v-model="form.a"
:min="0"
:max="100"
:controls="false"
:value-on-clear="0"
@change="handleChange"
/>
</el-form-item>
<el-form-item label="三方责任人" prop="waybillMall">
<el-input v-model="form.vehicleRoute" placeholder="请输入三方责任人" clearable />
</el-form-item>
<el-form-item
label="说明"
prop="investigationPocess"
class="el_Investigation"
clearable
v-if="displaySettings.investigationPocess"
>
<el-input
v-model="form.investigationPocess"
placeholder="请输入说明"
type="textarea"
:autosize="{ minRows: 1, maxRows: 4 }"
clearable
/>
</el-form-item>
</div>
<div>
<el-button type="primary" @click="onSubmit">移除</el-button>
</div>
</div>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</el-form> </el-form>
@ -362,7 +434,7 @@ import { deepClone } from '@/utils/util';
const form = ref({ const form = ref({
TabactiveName: '0', // TabactiveName: '0', //
activPackage: '0', // activPackage: '0', //
responsibilities:'0',// responsibilities: '0', //
Pageloading: false, // Pageloading: false, //
Packageloading: false, // Packageloading: false, //
historydialog: false, // historydialog: false, //
@ -381,10 +453,8 @@ const form = ref({
}, },
], // ], //
Historicalpackage: [], Historicalpackage: [],
// //
responsibilitiesList:[ responsibilitiesList: [],
],
}); });
const ruleForm = reactive({ const ruleForm = reactive({
workOrderType: [{ required: true, message: '请选择异常类型', trigger: 'bulr' }], workOrderType: [{ required: true, message: '请选择异常类型', trigger: 'bulr' }],
@ -670,9 +740,41 @@ const TabactiveClick = (a, b) => {
.el_Processing { .el_Processing {
width: 39.6%; width: 39.6%;
} }
:deep(.el_Investigation) {
flex: 1;
}
:deep(.is-error) {
.el-input--suffix {
.el-textarea__inner:focus {
box-shadow: 0 0 0 1px #ff0000 inset !important;
}
}
}
}
}
.responsibilities {
.el_responsibilities {
display: flex;
align-items: center;
.el-form-item {
width: 12.8%;
margin-right: 10px;
.el-input-number {
width: 100%;
}
}
:deep(.el_responsibilities_box) {
display: flex;
width: 80%;
.el-form-item {
.el-form-item__label {
margin-bottom: 0;
}
}
.el_Investigation { .el_Investigation {
flex: 1; flex: 1;
} }
} }
}
} }
</style> </style>

Loading…
Cancel
Save