|
@@ -59,7 +59,30 @@
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<el-row>
|
|
<el-row>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="检查完成时间" required prop="checkFinishTime">
|
|
|
|
|
|
|
+ <el-form-item label="当前工序">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="addForm.produceTaskName"
|
|
|
|
|
+ placeholder="当前工序"
|
|
|
|
|
+ disabled
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="8">
|
|
|
|
|
+ <el-form-item label="检查开始时间" required prop="checkStartTime">
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ v-model="addForm.checkStartTime"
|
|
|
|
|
+ type="datetime"
|
|
|
|
|
+ format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
+ placeholder="选择日期"
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ @change="computedDuration"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-date-picker>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="8">
|
|
|
|
|
+ <el-form-item label="检查结束时间" required prop="checkFinishTime">
|
|
|
<el-date-picker
|
|
<el-date-picker
|
|
|
v-model="addForm.checkFinishTime"
|
|
v-model="addForm.checkFinishTime"
|
|
|
type="datetime"
|
|
type="datetime"
|
|
@@ -67,10 +90,68 @@
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
placeholder="选择日期"
|
|
placeholder="选择日期"
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
|
|
+ @change="computedDuration"
|
|
|
>
|
|
>
|
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="8">
|
|
|
|
|
+ <el-form-item label="执行人" required prop="teamId">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="addForm.teamId"
|
|
|
|
|
+ placeholder="请选择班组"
|
|
|
|
|
+ filterable
|
|
|
|
|
+ style="width: 120px"
|
|
|
|
|
+ @change="checkTeamList(addForm.teamId)"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in teamList"
|
|
|
|
|
+ :label="item.name"
|
|
|
|
|
+ :value="item.id"
|
|
|
|
|
+ :key="item.id"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="addForm.executeUsersIds"
|
|
|
|
|
+ placeholder="请选择执行人"
|
|
|
|
|
+ filterable
|
|
|
|
|
+ multiple
|
|
|
|
|
+ @change="changeId"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div class="checkboxWrapper">
|
|
|
|
|
+ <el-checkbox v-model="checked" @change="checkChange">
|
|
|
|
|
+ 全选
|
|
|
|
|
+ </el-checkbox>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in teamUserList"
|
|
|
|
|
+ :label="item.name"
|
|
|
|
|
+ :value="item.id"
|
|
|
|
|
+ :key="item.id"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="8">
|
|
|
|
|
+ <el-form-item label="工时" required prop="duration">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ v-model="addForm.duration"
|
|
|
|
|
+ type="number"
|
|
|
|
|
+ min="0"
|
|
|
|
|
+ step="0.1"
|
|
|
|
|
+ @change="durationChagne"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template slot="append">
|
|
|
|
|
+ <div style="width: 40px; box-sizing: border-box">小时</div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item label="检查有效期" required prop="checkValidity">
|
|
<el-form-item label="检查有效期" required prop="checkValidity">
|
|
|
<el-input
|
|
<el-input
|
|
@@ -95,6 +176,8 @@
|
|
|
</el-input>
|
|
</el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item label="结论" required prop="conclution">
|
|
<el-form-item label="结论" required prop="conclution">
|
|
|
<el-radio-group v-model="addForm.conclution">
|
|
<el-radio-group v-model="addForm.conclution">
|
|
@@ -251,7 +334,6 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
- import { submit } from '@/api/entrust';
|
|
|
|
|
import {
|
|
import {
|
|
|
recordRulesDetailPage,
|
|
recordRulesDetailPage,
|
|
|
getRecordRulesDetail
|
|
getRecordRulesDetail
|
|
@@ -265,6 +347,7 @@
|
|
|
getById
|
|
getById
|
|
|
} from '@/api/producetaskrecordrulesrecord/index';
|
|
} from '@/api/producetaskrecordrulesrecord/index';
|
|
|
import toolModal from '@/views/batchRecord/components/toolModal.vue';
|
|
import toolModal from '@/views/batchRecord/components/toolModal.vue';
|
|
|
|
|
+ import { getTeam } from '@/api/produce/job.js';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
components: { SelectUser, toolModal },
|
|
components: { SelectUser, toolModal },
|
|
@@ -280,6 +363,7 @@
|
|
|
id: null,
|
|
id: null,
|
|
|
workshopArea: '',
|
|
workshopArea: '',
|
|
|
checkFinishTime: '',
|
|
checkFinishTime: '',
|
|
|
|
|
+ checkStartTime: '',
|
|
|
checkValidity: null,
|
|
checkValidity: null,
|
|
|
checkValidityUnit: '',
|
|
checkValidityUnit: '',
|
|
|
conclution: null,
|
|
conclution: null,
|
|
@@ -307,7 +391,20 @@
|
|
|
workOrderCode: '',
|
|
workOrderCode: '',
|
|
|
workOrderId: 0,
|
|
workOrderId: 0,
|
|
|
itemTaskName: '',
|
|
itemTaskName: '',
|
|
|
- brandNo: ''
|
|
|
|
|
|
|
+ brandNo: '',
|
|
|
|
|
+ duration: null,
|
|
|
|
|
+ // 执行人
|
|
|
|
|
+ executeUsersIds: [],
|
|
|
|
|
+ executeUsers: [
|
|
|
|
|
+ // {
|
|
|
|
|
+ // teamId: 0,
|
|
|
|
|
+ // teamName: '',
|
|
|
|
|
+ // userId: 0,
|
|
|
|
|
+ // userName: ''
|
|
|
|
|
+ // }
|
|
|
|
|
+ ],
|
|
|
|
|
+ // 班组id
|
|
|
|
|
+ teamId: ''
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
@@ -315,9 +412,47 @@
|
|
|
formDate,
|
|
formDate,
|
|
|
addForm: JSON.parse(JSON.stringify(formDate)),
|
|
addForm: JSON.parse(JSON.stringify(formDate)),
|
|
|
formRules: {
|
|
formRules: {
|
|
|
|
|
+ checkStartTime: [
|
|
|
|
|
+ { required: true, message: '请选择检查开始时间', trigger: 'blur' },
|
|
|
|
|
+ {
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ message: '请选择检查开始时间',
|
|
|
|
|
+ trigger: 'change'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ validator: (rule, value, callback) => {
|
|
|
|
|
+ if (!value) return callback();
|
|
|
|
|
+ const now = new Date();
|
|
|
|
|
+ const start = new Date(value);
|
|
|
|
|
+ if (start < now) {
|
|
|
|
|
+ callback(new Error('开始时间不能小于当前时间'));
|
|
|
|
|
+ } else {
|
|
|
|
|
+ callback();
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ trigger: 'blur'
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
checkFinishTime: [
|
|
checkFinishTime: [
|
|
|
{ required: true, message: '请选择检查完成时间', trigger: 'blur' },
|
|
{ required: true, message: '请选择检查完成时间', trigger: 'blur' },
|
|
|
- { required: true, message: '请选择检查完成时间', trigger: 'change' }
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ message: '请选择检查完成时间',
|
|
|
|
|
+ trigger: 'change'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ validator: (rule, value, callback) => {
|
|
|
|
|
+ if (!value) return callback();
|
|
|
|
|
+ const start = new Date(this.addForm.checkStartTime);
|
|
|
|
|
+ const finish = new Date(value);
|
|
|
|
|
+ if (finish <= start) {
|
|
|
|
|
+ callback(new Error('结束时间必须大于开始时间'));
|
|
|
|
|
+ } else {
|
|
|
|
|
+ callback();
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ trigger: 'blur'
|
|
|
|
|
+ }
|
|
|
],
|
|
],
|
|
|
conclution: [
|
|
conclution: [
|
|
|
{ required: true, message: '请选择结论', trigger: 'blur' },
|
|
{ required: true, message: '请选择结论', trigger: 'blur' },
|
|
@@ -338,6 +473,26 @@
|
|
|
message: '请选择检查有效期单位',
|
|
message: '请选择检查有效期单位',
|
|
|
trigger: 'change'
|
|
trigger: 'change'
|
|
|
}
|
|
}
|
|
|
|
|
+ ],
|
|
|
|
|
+ duration: [
|
|
|
|
|
+ { required: true, message: '请输入工时', trigger: 'blur' },
|
|
|
|
|
+ { required: true, message: '请输入工时', trigger: 'change' },
|
|
|
|
|
+ {
|
|
|
|
|
+ validator: (rule, value, callback) => {
|
|
|
|
|
+ if (value === '' || value === null) {
|
|
|
|
|
+ callback();
|
|
|
|
|
+ } else if (Number(value) <= 0) {
|
|
|
|
|
+ callback(new Error('工时必须大于0'));
|
|
|
|
|
+ } else {
|
|
|
|
|
+ callback();
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ trigger: 'blur'
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
|
|
+ teamId: [
|
|
|
|
|
+ { required: true, message: '请选择班组', trigger: 'blur' },
|
|
|
|
|
+ { required: true, message: '请选择班组', trigger: 'change' }
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
productionInfo: null,
|
|
productionInfo: null,
|
|
@@ -349,7 +504,11 @@
|
|
|
// 工艺路线
|
|
// 工艺路线
|
|
|
workOrderInfo: null,
|
|
workOrderInfo: null,
|
|
|
// 加载中 loading
|
|
// 加载中 loading
|
|
|
- loading: false
|
|
|
|
|
|
|
+ loading: false,
|
|
|
|
|
+ checked: false,
|
|
|
|
|
+ teamUserList: [],
|
|
|
|
|
+ teamList: [],
|
|
|
|
|
+ teamAllList: []
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -368,6 +527,14 @@
|
|
|
return '类记录表';
|
|
return '类记录表';
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ mounted() {
|
|
|
|
|
+ if (localStorage.getItem('singleUserInfo') == '1') {
|
|
|
|
|
+ const data = JSON.parse(localStorage.getItem('chooseUserInfo'));
|
|
|
|
|
+ this.getTeamList(data.teamId);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.getTeamList(this.$store.state.user.info.teamId);
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
methods: {
|
|
methods: {
|
|
|
open(productionInfo, workOrderInfo) {
|
|
open(productionInfo, workOrderInfo) {
|
|
|
console.log(
|
|
console.log(
|
|
@@ -432,10 +599,25 @@
|
|
|
return i;
|
|
return i;
|
|
|
});
|
|
});
|
|
|
this.$util.assignObject(this.addForm, data);
|
|
this.$util.assignObject(this.addForm, data);
|
|
|
|
|
+ // 工时毫秒转小时
|
|
|
|
|
+ this.addForm.duration = (
|
|
|
|
|
+ this.addForm.duration /
|
|
|
|
|
+ (1000 * 60 * 60)
|
|
|
|
|
+ ).toFixed(2);
|
|
|
this.addForm.recordRulesClassify += '';
|
|
this.addForm.recordRulesClassify += '';
|
|
|
if (this.addForm.details?.length == 0) {
|
|
if (this.addForm.details?.length == 0) {
|
|
|
this.getRuleList();
|
|
this.getRuleList();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ this.addForm.executeUsersIds = this.addForm.executeUsers.map(
|
|
|
|
|
+ (i) => i.userId
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
|
|
+ this.addForm.teamId =
|
|
|
|
|
+ this.addForm.executeUsers.length > 0
|
|
|
|
|
+ ? this.addForm.executeUsers[0].teamId
|
|
|
|
|
+ : '';
|
|
|
|
|
+
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
@@ -453,6 +635,8 @@
|
|
|
this.addForm.ruleName = this.ruleInfo.name;
|
|
this.addForm.ruleName = this.ruleInfo.name;
|
|
|
this.addForm.deviceId = this.ruleInfo.deviceId;
|
|
this.addForm.deviceId = this.ruleInfo.deviceId;
|
|
|
this.addForm.deviceName = this.ruleInfo.deviceName;
|
|
this.addForm.deviceName = this.ruleInfo.deviceName;
|
|
|
|
|
+ this.addForm.produceTaskName =
|
|
|
|
|
+ this.ruleInfo.produceTaskConfigs[0]?.produceTaskName;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
// 查询记录规则 事项列表
|
|
// 查询记录规则 事项列表
|
|
@@ -516,6 +700,16 @@
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (this.addForm.executeUsersIds.length == 0) {
|
|
|
|
|
+ this.$message.warning('请选择执行人!');
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (this.addForm.duration <= 0) {
|
|
|
|
|
+ this.$message.warning('工时必须大于0!');
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// 报工需要验证 缓存不验证
|
|
// 报工需要验证 缓存不验证
|
|
|
if (type == 'submit') {
|
|
if (type == 'submit') {
|
|
|
// 验证检查项目
|
|
// 验证检查项目
|
|
@@ -537,16 +731,22 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- console.log('this.addForm', this.addForm);
|
|
|
|
|
|
|
+ const body = JSON.parse(JSON.stringify(this.addForm));
|
|
|
|
|
+
|
|
|
|
|
+ // 工时小时转毫秒
|
|
|
|
|
+ body.duration = Number(body.duration);
|
|
|
|
|
+ body.duration = body.duration * 60 * 60 * 1000;
|
|
|
|
|
+
|
|
|
|
|
+ // 处理执行人
|
|
|
|
|
|
|
|
// 提交
|
|
// 提交
|
|
|
this.butLoading = true;
|
|
this.butLoading = true;
|
|
|
try {
|
|
try {
|
|
|
if (type == 'submit') {
|
|
if (type == 'submit') {
|
|
|
- await saveOrUpdateAndSubmit(this.addForm);
|
|
|
|
|
|
|
+ await saveOrUpdateAndSubmit(body);
|
|
|
this.$message.success('报工成功!');
|
|
this.$message.success('报工成功!');
|
|
|
} else {
|
|
} else {
|
|
|
- const id = await saveOrUpdate(this.addForm);
|
|
|
|
|
|
|
+ const id = await saveOrUpdate(body);
|
|
|
this.addForm.id = id;
|
|
this.addForm.id = id;
|
|
|
this.$message.success('缓存成功!');
|
|
this.$message.success('缓存成功!');
|
|
|
}
|
|
}
|
|
@@ -569,6 +769,7 @@
|
|
|
this.productionInfo.recordId == null;
|
|
this.productionInfo.recordId == null;
|
|
|
this.addForm.workshopArea = '';
|
|
this.addForm.workshopArea = '';
|
|
|
this.addForm.checkFinishTime = null;
|
|
this.addForm.checkFinishTime = null;
|
|
|
|
|
+ this.addForm.checkStartTime = null;
|
|
|
this.addForm.checkValidity = null;
|
|
this.addForm.checkValidity = null;
|
|
|
this.addForm.checkValidityUnit = null;
|
|
this.addForm.checkValidityUnit = null;
|
|
|
this.addForm.conclution = null;
|
|
this.addForm.conclution = null;
|
|
@@ -605,6 +806,95 @@
|
|
|
clearTool(row) {
|
|
clearTool(row) {
|
|
|
row.tools = [];
|
|
row.tools = [];
|
|
|
row.toolNames = '';
|
|
row.toolNames = '';
|
|
|
|
|
+ },
|
|
|
|
|
+ checkTeamList(id) {
|
|
|
|
|
+ this.addForm.executeUsersIds = [];
|
|
|
|
|
+ const index = this.teamList.findIndex((item) => item.id == id);
|
|
|
|
|
+ this.teamUserList = this.teamAllList[index];
|
|
|
|
|
+ console.log('this.teamUserList', this.teamUserList);
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ async getTeamList(id) {
|
|
|
|
|
+ const ids = id.split(',');
|
|
|
|
|
+ this.teamList = [];
|
|
|
|
|
+ this.teamUserList = [];
|
|
|
|
|
+ const list = ids.map((item) => getTeam(item));
|
|
|
|
|
+
|
|
|
|
|
+ const dataList = await Promise.all(list);
|
|
|
|
|
+
|
|
|
|
|
+ dataList.forEach((item) => {
|
|
|
|
|
+ this.teamList.push({
|
|
|
|
|
+ name: item.name,
|
|
|
|
|
+ id: item.id
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ this.teamAllList.push(item.userVOList);
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ changeId() {
|
|
|
|
|
+ if (this.addForm.executeUsersIds.length == this.teamUserList.length) {
|
|
|
|
|
+ this.checked = true;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.checked = false;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 同步 executeUsers
|
|
|
|
|
+ this.addForm.executeUsers = this.addForm.executeUsersIds
|
|
|
|
|
+ .map((id) => {
|
|
|
|
|
+ const user = this.teamUserList.find((item) => item.id === id);
|
|
|
|
|
+ console.log('user', user);
|
|
|
|
|
+ if (user) {
|
|
|
|
|
+ return {
|
|
|
|
|
+ teamId: this.addForm.teamId,
|
|
|
|
|
+ teamName: this.teamList.find(
|
|
|
|
|
+ (team) => team.id == this.addForm.teamId
|
|
|
|
|
+ )?.name,
|
|
|
|
|
+ userId: user.id,
|
|
|
|
|
+ userName: user.name
|
|
|
|
|
+ };
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ .filter((item) => item !== null);
|
|
|
|
|
+
|
|
|
|
|
+ console.log('this.addForm.executeUsers', this.addForm.executeUsers);
|
|
|
|
|
+
|
|
|
|
|
+ this.computedDuration();
|
|
|
|
|
+ },
|
|
|
|
|
+ checkChange() {
|
|
|
|
|
+ this.addForm.executeUsersIds = [];
|
|
|
|
|
+ if (this.checked) {
|
|
|
|
|
+ this.addForm.executeUsersIds = this.teamUserList.map(
|
|
|
|
|
+ (item) => item.id
|
|
|
|
|
+ );
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.addForm.executeUsersIds = [];
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ // 计算工时
|
|
|
|
|
+ computedDuration() {
|
|
|
|
|
+ if (
|
|
|
|
|
+ this.addForm.checkStartTime &&
|
|
|
|
|
+ this.addForm.checkFinishTime &&
|
|
|
|
|
+ this.addForm.executeUsersIds.length > 0
|
|
|
|
|
+ ) {
|
|
|
|
|
+ const start = new Date(this.addForm.checkStartTime);
|
|
|
|
|
+ const finish = new Date(this.addForm.checkFinishTime);
|
|
|
|
|
+ const diff = finish - start; // 毫秒差值
|
|
|
|
|
+ const hours = diff / (1000 * 60 * 60); // 转换为小时
|
|
|
|
|
+ const totalDuration = hours * this.addForm.executeUsersIds.length;
|
|
|
|
|
+ this.addForm.duration = totalDuration.toFixed(1);
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ durationChagne() {
|
|
|
|
|
+ // 保留小数后一位
|
|
|
|
|
+ if (
|
|
|
|
|
+ this.addForm.duration &&
|
|
|
|
|
+ this.addForm.duration.toString().includes('.')
|
|
|
|
|
+ ) {
|
|
|
|
|
+ this.addForm.duration = Number(this.addForm.duration).toFixed(1);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
@@ -625,4 +915,24 @@
|
|
|
.el-form-item .el-form-item {
|
|
.el-form-item .el-form-item {
|
|
|
margin-bottom: -5px;
|
|
margin-bottom: -5px;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ .checkboxWrapper {
|
|
|
|
|
+ padding: 8px 20px;
|
|
|
|
|
+ border-bottom: 1px solid #ccc;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ ::v-deep .el-select__tags {
|
|
|
|
|
+ flex-wrap: nowrap;
|
|
|
|
|
+ overflow: auto;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /* 输入框最大宽度*/
|
|
|
|
|
+ ::v-deep .el-select__tags-text {
|
|
|
|
|
+ max-width: 90px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /* 底部滚动条的高度*/
|
|
|
|
|
+ ::v-deep .el-select__tags::-webkit-scrollbar {
|
|
|
|
|
+ height: 2px !important;
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|