|
@@ -210,133 +210,135 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="作业类型" prop="fBusinessType">
|
|
|
- <el-select
|
|
|
- style="width: 80%"
|
|
|
- v-model="form.fBusinessType"
|
|
|
- filterable
|
|
|
- @change="educationChange"
|
|
|
- :disabled="
|
|
|
- contrOl ||
|
|
|
- browseStatus ||
|
|
|
- warehouseDrList.length > 0 ||
|
|
|
- warehouseCrList.length > 0
|
|
|
- "
|
|
|
+ <div v-if="detailsHidden2">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="作业类型" prop="fBusinessType">
|
|
|
+ <el-select
|
|
|
+ style="width: 80%"
|
|
|
+ v-model="form.fBusinessType"
|
|
|
+ filterable
|
|
|
+ @change="educationChange"
|
|
|
+ :disabled="
|
|
|
+ contrOl ||
|
|
|
+ browseStatus ||
|
|
|
+ warehouseDrList.length > 0 ||
|
|
|
+ warehouseCrList.length > 0
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in businessTypeOption"
|
|
|
+ :key="index.dictValue"
|
|
|
+ :label="item.dictLabel"
|
|
|
+ :value="item.dictValue"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="劳务公司" prop="fLabour">
|
|
|
+ <el-select
|
|
|
+ style="width: 80%"
|
|
|
+ v-model="form.fLabour"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ placeholder="请输入关键词"
|
|
|
+ :disabled="contrOl || browseStatus"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in fCompanyOptIons"
|
|
|
+ :key="index.fId"
|
|
|
+ :label="item.fName"
|
|
|
+ :value="item.fId"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item
|
|
|
+ label="车队"
|
|
|
+ prop="fFleet"
|
|
|
+ :rules="{
|
|
|
+ required: isrequired === 1 ? true : false,
|
|
|
+ message: '请选择',
|
|
|
+ trigger: ['blur', 'change'],
|
|
|
+ }"
|
|
|
>
|
|
|
- <el-option
|
|
|
- v-for="(item, index) in businessTypeOption"
|
|
|
- :key="index.dictValue"
|
|
|
- :label="item.dictLabel"
|
|
|
- :value="item.dictValue"
|
|
|
- ></el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="劳务公司" prop="fLabour">
|
|
|
- <el-select
|
|
|
- style="width: 80%"
|
|
|
- v-model="form.fLabour"
|
|
|
- clearable
|
|
|
- filterable
|
|
|
- placeholder="请输入关键词"
|
|
|
- :disabled="contrOl || browseStatus"
|
|
|
+ <el-select
|
|
|
+ style="width: 80%"
|
|
|
+ v-model="form.fFleet"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ placeholder="请输入关键词"
|
|
|
+ :disabled="contrOl || browseStatus"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in fleetOptions"
|
|
|
+ :key="index.fId"
|
|
|
+ :label="item.fName"
|
|
|
+ :value="item.fId"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item
|
|
|
+ label="车号"
|
|
|
+ prop="fTruckno"
|
|
|
+ :rules="{
|
|
|
+ required: isrequired2 === 1 ? true : false,
|
|
|
+ message: '请选择',
|
|
|
+ trigger: ['blur', 'change'],
|
|
|
+ }"
|
|
|
>
|
|
|
- <el-option
|
|
|
- v-for="(item, index) in fCompanyOptIons"
|
|
|
- :key="index.fId"
|
|
|
- :label="item.fName"
|
|
|
- :value="item.fId"
|
|
|
- ></el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item
|
|
|
- label="车队"
|
|
|
- prop="fFleet"
|
|
|
- :rules="{
|
|
|
- required: isrequired === 1 ? true : false,
|
|
|
- message: '请选择',
|
|
|
- trigger: ['blur', 'change'],
|
|
|
- }"
|
|
|
- >
|
|
|
- <el-select
|
|
|
- style="width: 80%"
|
|
|
- v-model="form.fFleet"
|
|
|
- clearable
|
|
|
- filterable
|
|
|
- placeholder="请输入关键词"
|
|
|
- :disabled="contrOl || browseStatus"
|
|
|
+ <el-input
|
|
|
+ v-model="form.fTruckno"
|
|
|
+ style="width: 80%"
|
|
|
+ :disabled="browseStatus"
|
|
|
+ placeholder="车号"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item
|
|
|
+ label="司机姓名"
|
|
|
+ prop="fDriverName"
|
|
|
+ :rules="{
|
|
|
+ required: isrequired2 === 1 ? true : false,
|
|
|
+ message: '请选择',
|
|
|
+ trigger: ['blur', 'change'],
|
|
|
+ }"
|
|
|
>
|
|
|
- <el-option
|
|
|
- v-for="(item, index) in fleetOptions"
|
|
|
- :key="index.fId"
|
|
|
- :label="item.fName"
|
|
|
- :value="item.fId"
|
|
|
- ></el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item
|
|
|
- label="车号"
|
|
|
- prop="fTruckno"
|
|
|
- :rules="{
|
|
|
- required: isrequired2 === 1 ? true : false,
|
|
|
- message: '请选择',
|
|
|
- trigger: ['blur', 'change'],
|
|
|
- }"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- v-model="form.fTruckno"
|
|
|
- style="width: 80%"
|
|
|
- :disabled="browseStatus"
|
|
|
- placeholder="车号"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item
|
|
|
- label="司机姓名"
|
|
|
- prop="fDriverName"
|
|
|
- :rules="{
|
|
|
- required: isrequired2 === 1 ? true : false,
|
|
|
- message: '请选择',
|
|
|
- trigger: ['blur', 'change'],
|
|
|
- }"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- v-model="form.fDriverName"
|
|
|
- style="width: 80%"
|
|
|
- :disabled="browseStatus"
|
|
|
- placeholder="司机姓名"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item
|
|
|
- label="司机电话"
|
|
|
- prop="fDriverTel"
|
|
|
- :rules="{
|
|
|
- required: isrequired2 === 1 ? true : false,
|
|
|
- message: '请选择',
|
|
|
- trigger: ['blur', 'change'],
|
|
|
- }"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- v-model="form.fDriverTel"
|
|
|
- style="width: 80%"
|
|
|
- :disabled="browseStatus"
|
|
|
- placeholder="司机电话"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ <el-input
|
|
|
+ v-model="form.fDriverName"
|
|
|
+ style="width: 80%"
|
|
|
+ :disabled="browseStatus"
|
|
|
+ placeholder="司机姓名"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item
|
|
|
+ label="司机电话"
|
|
|
+ prop="fDriverTel"
|
|
|
+ :rules="{
|
|
|
+ required: isrequired2 === 1 ? true : false,
|
|
|
+ message: '请选择',
|
|
|
+ trigger: ['blur', 'change'],
|
|
|
+ }"
|
|
|
+ >
|
|
|
+ <el-input
|
|
|
+ v-model="form.fDriverTel"
|
|
|
+ style="width: 80%"
|
|
|
+ :disabled="browseStatus"
|
|
|
+ placeholder="司机电话"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
<el-row>
|
|
|
<el-col :span="16">
|
|
|
<el-row>
|
|
@@ -373,17 +375,23 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
- <el-col :offset="16" :span="2">
|
|
|
- <el-form-item>
|
|
|
- <el-button
|
|
|
- @click="
|
|
|
- detailsHidden
|
|
|
- ? (detailsHidden = false)
|
|
|
- : (detailsHidden = true)
|
|
|
- "
|
|
|
- >{{ detailsHidden ? "隐藏" : "展开" }}
|
|
|
- </el-button>
|
|
|
- </el-form-item>
|
|
|
+ <el-col :offset="16" :span="6">
|
|
|
+ <el-button
|
|
|
+ @click="
|
|
|
+ detailsHidden2
|
|
|
+ ? (detailsHidden2 = false)
|
|
|
+ : (detailsHidden2 = true)
|
|
|
+ "
|
|
|
+ >{{ detailsHidden2 ? "隐藏" : "更多" }}
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ @click="
|
|
|
+ detailsHidden
|
|
|
+ ? (detailsHidden = false)
|
|
|
+ : (detailsHidden = true)
|
|
|
+ "
|
|
|
+ >{{ detailsHidden ? "隐藏" : "展开" }}
|
|
|
+ </el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-col>
|
|
@@ -456,6 +464,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+
|
|
|
<div v-if="detailsHidden">
|
|
|
<el-row style="margin-top: 30px">
|
|
|
<el-col :span="8">
|
|
@@ -3118,6 +3127,7 @@ export default {
|
|
|
getRowList2: [],
|
|
|
allCheck2: false,
|
|
|
showSetting2: false,
|
|
|
+ detailsHidden2: true,
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -3125,6 +3135,13 @@ export default {
|
|
|
this.getRowList = this.tableDate;
|
|
|
this.setRowList2 = this.tableDate2;
|
|
|
this.getRowList2 = this.tableDate2;
|
|
|
+ this.getConfigKey("data_showcar").then((response) => {
|
|
|
+ this.dataShowcar = response.msg;
|
|
|
+ if (this.dataShowcar == "1") {
|
|
|
+ this.detailsHidden2 = false;
|
|
|
+ this.form.fBusinessType = "5";
|
|
|
+ }
|
|
|
+ });
|
|
|
this.getDicts("data_stltype_type").then((response) => {
|
|
|
this.fStltypeOptions = response.data;
|
|
|
});
|