|
@@ -42,7 +42,6 @@
|
|
|
@click="
|
|
|
() => {
|
|
|
switchMiopen = true;
|
|
|
- switchMiNum = 0;
|
|
|
}
|
|
|
"
|
|
|
>
|
|
@@ -68,6 +67,7 @@
|
|
|
shiftGroup: shiftPerformanceColumns[currentShift] ? shiftPerformanceColumns[currentShift].shiftGroup : '',
|
|
|
},
|
|
|
changeShiftId: shiftPerformanceColumns[currentShift] ? shiftPerformanceColumns[currentShift].id : '',
|
|
|
+ isShowAddHeatNo: false,
|
|
|
})
|
|
|
"
|
|
|
>
|
|
@@ -164,7 +164,7 @@
|
|
|
<!-- 切换米重 -->
|
|
|
<a-modal v-model:open="switchMiopen" title="切换米重" ok-text="确认" cancel-text="取消" @ok="switchMiSubmit">
|
|
|
<div style="margin: 20px">
|
|
|
- <a-input-number v-model:value="switchMiNum" placeholder="米重" :min="0" />
|
|
|
+ <a-input-number v-model:value="switchMiNum" placeholder="米重" :min="0" :precision="4" />
|
|
|
</div>
|
|
|
</a-modal>
|
|
|
</template>
|
|
@@ -291,13 +291,18 @@
|
|
|
const statisticsInfo = ref<any>({});
|
|
|
const getList = async () => {
|
|
|
try {
|
|
|
+ if (!shiftPerformanceColumns.value[currentShift.value]) {
|
|
|
+ setLoading(false);
|
|
|
+ return;
|
|
|
+ }
|
|
|
setLoading(true);
|
|
|
const res = await getQualityInspection({
|
|
|
ccmNo: ccmNo.value,
|
|
|
changeShiftId: shiftPerformanceColumns.value[currentShift.value].id,
|
|
|
});
|
|
|
|
|
|
- const { records, statistics } = res;
|
|
|
+ const { records, statistics, meterWeight } = res;
|
|
|
+ switchMiNum.value = meterWeight;
|
|
|
statisticsInfo.value = { ...statistics, orgRemark: statistics.remark };
|
|
|
|
|
|
let sizeArr: string[] = [];
|
|
@@ -362,7 +367,6 @@
|
|
|
...(records[index] || {}),
|
|
|
dayLength: dayLengthArr[index] || '',
|
|
|
workLength: workLengthArr[index] || '',
|
|
|
- deliveryTimeDate: dayjs(item.deliveryTime),
|
|
|
};
|
|
|
});
|
|
|
setColumns(oldColumns);
|