|
|
@@ -271,50 +271,10 @@
|
|
|
title="配件回收清单"
|
|
|
v-if="visibleDialog"
|
|
|
/>
|
|
|
- <!-- <headerTitle title="配件回收清单" style="margin-top: 10px"></headerTitle>
|
|
|
- <spareParts
|
|
|
- ref="spareCycleRef"
|
|
|
- :type="type"
|
|
|
- :source="type =='report' ? '配件回收':''"
|
|
|
- :state="type=='report'?'可操作':''"
|
|
|
- v-if="visibleDialog"
|
|
|
- ></spareParts>-->
|
|
|
</el-col>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</div>
|
|
|
- <!-- <el-col :span="24">
|
|
|
- <info ref="infoRef" type="view" :isPurchaseNeed="false"></info>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24">
|
|
|
- <header-title title="方案" style="margin-top: 10px"></header-title>
|
|
|
- <spareParts ref="sparePartsRef" :type="type == 'edit' ? 'edit' : 'view'"></spareParts>
|
|
|
- </el-col>-->
|
|
|
- <!-- <el-col :span="8" v-if="type=='view'">
|
|
|
- <el-form-item label="报工时间" prop="acceptTime">
|
|
|
- <el-input v-model="addForm.acceptTime" :disabled="true"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8" v-if="type=='view'">
|
|
|
- <el-form-item label="报工人" prop="executeUserName">
|
|
|
- <el-input v-model="addForm.executeUserName" :disabled="true"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8" v-if="type=='view'">
|
|
|
- <el-form-item label="验收人" prop="accepterUserName">
|
|
|
- <el-input v-model="addForm.accepterUserName" :disabled="true"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8" v-if="type=='view'">
|
|
|
- <el-form-item label="验收时间" prop="accepterTime">
|
|
|
- <el-input v-model="addForm.accepterTime" :disabled="true"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8" v-if="type=='view'">
|
|
|
- <el-form-item label="验收意见" prop="accepterRemark">
|
|
|
- <el-input v-model="addForm.accepterRemark" :disabled="true" type="textarea"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>-->
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
|
|
|
@@ -430,16 +390,8 @@
|
|
|
dispatchTime: res.afterSalesPlanVO.dispatchTime || '',
|
|
|
name: res.afterSalesPlanVO.name || ''
|
|
|
};
|
|
|
- // if (this.addForm.acceptTime) {
|
|
|
- // this.$set(this.addForm, 'time', [
|
|
|
- // this.addForm.acceptTime,
|
|
|
- // this.addForm.finishTime
|
|
|
- // ]);
|
|
|
- // }
|
|
|
// ***
|
|
|
this.$nextTick(() => {
|
|
|
- // this.$refs.infoRef.init(res.afterSalesDemandVO);
|
|
|
- // this.$refs.sparePartsRef.setTableValue(res?.costListVOS || []);
|
|
|
// *** 报工信息的
|
|
|
if (this.infoShow) {
|
|
|
this.detailList = res.accessoryApply?.detailList;
|
|
|
@@ -455,7 +407,6 @@
|
|
|
this.$refs.sparePartsRef2.setTableValue(res?.costListVOS || []);
|
|
|
}
|
|
|
this.$refs.plan.init(res.afterSalesPlanVO);
|
|
|
- // afterSalesPlanVO
|
|
|
});
|
|
|
},
|
|
|
|
|
|
@@ -524,9 +475,6 @@
|
|
|
let spare = this.type == 'edit' ? 'sparePartsRef2' : 'sparePartsRef';
|
|
|
let validInfo = await this.$refs[info].getValidate();
|
|
|
let validSpare = await this.$refs[spare].getValidate();
|
|
|
- // if (this.type == 'report') {
|
|
|
- // let validCycle = await this.$refs.spareCycleRef.getValidate();
|
|
|
- // }
|
|
|
let dataA = this.$refs[info].getValue();
|
|
|
let obj = this.infoData(dataA);
|
|
|
this.finalSubmit(spare, this.type, obj);
|
|
|
@@ -658,31 +606,6 @@
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
- // calculateTimeDifference(totalMinutes) {
|
|
|
- // if (!totalMinutes) {
|
|
|
- // this.hours = 0;
|
|
|
- // this.minutes = 0;
|
|
|
- // return;
|
|
|
- // }
|
|
|
- // const hours = Math.floor(totalMinutes / 60);
|
|
|
- // const minutes = totalMinutes % 60;
|
|
|
- // this.hours = hours;
|
|
|
- // this.minutes = minutes;
|
|
|
- // },
|
|
|
- // getTime() {
|
|
|
- // if (this.addForm.time?.length) {
|
|
|
- // this.$set(
|
|
|
- // this.addForm,
|
|
|
- // 'inFactDuration',
|
|
|
- // parseInt(
|
|
|
- // (new Date(this.addForm.time[1]).getTime() -
|
|
|
- // new Date(this.addForm.time[0]).getTime()) /
|
|
|
- // 60000
|
|
|
- // )
|
|
|
- // );
|
|
|
- // }
|
|
|
- // },
|
|
|
handleClose() {
|
|
|
this.visibleDialog = false;
|
|
|
}
|
|
|
@@ -725,9 +648,6 @@
|
|
|
.ele-body-custom {
|
|
|
width: 100%;
|
|
|
margin-bottom: 24px;
|
|
|
- // :deep(.divider){
|
|
|
- // display: none;
|
|
|
- // }
|
|
|
}
|
|
|
|
|
|
.ele-body-customA {
|