|
@@ -50,7 +50,7 @@
|
|
|
{{ detailData.orderReceivingVo.repairId }}
|
|
|
</DescriptionsItem>
|
|
|
<DescriptionsItem label="上次维修单号" :span="2">
|
|
|
- {{ detailData.orderReceivingVo.repairerId }}
|
|
|
+ {{ detailData.lastRepairId }}
|
|
|
</DescriptionsItem>
|
|
|
<DescriptionsItem label="故障描述" :span="3">
|
|
|
<div>
|
|
@@ -235,7 +235,7 @@
|
|
|
>
|
|
|
<div class="iamgeList">
|
|
|
<PreviewGroup>
|
|
|
- <Image
|
|
|
+ <Image style="overflow:hidden"
|
|
|
:width="80"
|
|
|
:height="80"
|
|
|
v-for="itemSrc in item.imagesInfo"
|
|
@@ -334,7 +334,9 @@ export default defineComponent({
|
|
|
repairPay: {},
|
|
|
RepairComment: {},
|
|
|
priceList: [],
|
|
|
+ lastRepairId: null,
|
|
|
});
|
|
|
+ const priceTotal = ref(0)
|
|
|
const stepList = ref<any>([]);
|
|
|
const butList = ref<any>([]);
|
|
|
onMounted(() => {
|
|
@@ -422,7 +424,7 @@ export default defineComponent({
|
|
|
total: ele.price * ele.count,
|
|
|
};
|
|
|
});
|
|
|
- console.log('id', dataSource);
|
|
|
+ priceTotal.value = countItem.total?.toFixed(2)
|
|
|
if (countItem.total) {
|
|
|
setTableData(cloneDeep([...dataSource, countItem]));
|
|
|
}
|
|
@@ -434,10 +436,15 @@ export default defineComponent({
|
|
|
console.log('handleBut', item, stepList.value[0].repairStatus);
|
|
|
let status = detailData.value.repairerVo.status;
|
|
|
let record = {
|
|
|
+ repairId:repairId || detailData.value.orderReceivingVo?.repairId,
|
|
|
cameraSnCode: detailData.value.repairerVo?.cameraSnCode,
|
|
|
cameraType: detailData.value.repairerVo?.cameraType,
|
|
|
- repairId: detailData.value.orderReceivingVo?.repairId,
|
|
|
+ status:status,
|
|
|
+ payAmount:0,
|
|
|
};
|
|
|
+ if(status == 9){
|
|
|
+ record.payAmount = priceTotal.value
|
|
|
+ }
|
|
|
let openList = {
|
|
|
0: openTakingOrders, //检测登记
|
|
|
1: openCheckModal, //检测登记
|
|
@@ -452,10 +459,17 @@ export default defineComponent({
|
|
|
61: openAddModal, //添加备件
|
|
|
62: openOutModal, //完成维修
|
|
|
};
|
|
|
- openList[status](true, {
|
|
|
+ if(status == 6){
|
|
|
+ openList[item == '添加备件'?61:62](true, {
|
|
|
+ ...record,
|
|
|
+ repairManName: detailData.value.repairRegisterVo?.sysUserName,
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ openList[status](true, {
|
|
|
...record,
|
|
|
repairManName: detailData.value.repairRegisterVo?.sysUserName,
|
|
|
});
|
|
|
+ }
|
|
|
}
|
|
|
function handleSubmit() {
|
|
|
createMessage.success(t('common.optSuccess'));
|
|
@@ -523,10 +537,16 @@ export default defineComponent({
|
|
|
width: 100%;
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
-
|
|
|
+
|
|
|
&_right {
|
|
|
width: 400px;
|
|
|
padding: 40px 20px;
|
|
|
+ .timeItem{
|
|
|
+ .ant-image-img{
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
&_left {
|
|
|
width: calc(100% - 400px);
|
|
@@ -549,5 +569,10 @@ export default defineComponent({
|
|
|
// text-overflow: ellipsis;
|
|
|
// }
|
|
|
}
|
|
|
+ .ant-image-img{
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ object-fit: cover;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|