|
@@ -222,7 +222,10 @@
|
|
|
></image-upload>
|
|
></image-upload>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col :span="9" v-if="pageName == 'HaulSlag'||pageName == 'TransportAsh'">
|
|
|
|
|
|
|
+ <el-col
|
|
|
|
|
+ :span="9"
|
|
|
|
|
+ v-if="pageName == 'HaulSlag' || pageName == 'TransportAsh'"
|
|
|
|
|
+ >
|
|
|
<el-form-item label="照片" prop="vehiclePhotoUrl">
|
|
<el-form-item label="照片" prop="vehiclePhotoUrl">
|
|
|
<image-upload
|
|
<image-upload
|
|
|
v-model="addForm.vehiclePhotoUrl"
|
|
v-model="addForm.vehiclePhotoUrl"
|
|
@@ -734,6 +737,19 @@
|
|
|
try {
|
|
try {
|
|
|
const data = await getById(id);
|
|
const data = await getById(id);
|
|
|
console.log('data', data);
|
|
console.log('data', data);
|
|
|
|
|
+ if (data.type == 1) {
|
|
|
|
|
+ //班组报工默认单前登录人
|
|
|
|
|
+ data.executeUsers = [
|
|
|
|
|
+ {
|
|
|
|
|
+ groupId: this.$store.state.user.info.groupId,
|
|
|
|
|
+ groupName: this.$store.state.user.info.groupName,
|
|
|
|
|
+ teamId: null,
|
|
|
|
|
+ teamName: '',
|
|
|
|
|
+ userId: this.$store.state.user.info.userId,
|
|
|
|
|
+ userName: this.$store.state.user.info.name
|
|
|
|
|
+ }
|
|
|
|
|
+ ];
|
|
|
|
|
+ }
|
|
|
data.detailList = data.detailList.map((i) => {
|
|
data.detailList = data.detailList.map((i) => {
|
|
|
i.toolNames = i.tools.map((j) => j.toolName).join(',');
|
|
i.toolNames = i.tools.map((j) => j.toolName).join(',');
|
|
|
if (i.checkUsers && i.checkUsers.length > 0) {
|
|
if (i.checkUsers && i.checkUsers.length > 0) {
|
|
@@ -772,10 +788,7 @@
|
|
|
this.addForm.checkFinishTime =
|
|
this.addForm.checkFinishTime =
|
|
|
this.addForm.checkFinishTime ||
|
|
this.addForm.checkFinishTime ||
|
|
|
dayjs(new Date()).format('YYYY-M-D HH:mm:ss');
|
|
dayjs(new Date()).format('YYYY-M-D HH:mm:ss');
|
|
|
- console.log(
|
|
|
|
|
- this.addForm.checkStartTime,
|
|
|
|
|
- 'this.addForm.checkStartTime'
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ console.log(this.addForm, 'this.addForm.checkStartTime');
|
|
|
// 处理数据
|
|
// 处理数据
|
|
|
this.addForm.executeUsersIds = this.addForm.executeUsers
|
|
this.addForm.executeUsersIds = this.addForm.executeUsers
|
|
|
.map((i) => i.userId)
|
|
.map((i) => i.userId)
|