|
@@ -903,12 +903,19 @@
|
|
|
:isEdit="isWorkBookEdit"
|
|
:isEdit="isWorkBookEdit"
|
|
|
@success="handleEditOperationReportList"
|
|
@success="handleEditOperationReportList"
|
|
|
/>
|
|
/>
|
|
|
-
|
|
|
|
|
|
|
+ <calcCheckItemFee
|
|
|
|
|
+ v-if="showCalcCheckItemFeeDialog"
|
|
|
|
|
+ v-model="showCalcCheckItemFeeDialog"
|
|
|
|
|
+ :equipmentId="calcEquipmentId"
|
|
|
|
|
+ :templateInfo="calcTemplateInfo"
|
|
|
|
|
+ @save="handleSaveCalcFee"
|
|
|
|
|
+ />
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="tsx">
|
|
<script setup lang="tsx">
|
|
|
import CustomDialog from '@/components/CustomDialog/index.vue'
|
|
import CustomDialog from '@/components/CustomDialog/index.vue'
|
|
|
import SmartTable from '@/components/SmartTable/SmartTable'
|
|
import SmartTable from '@/components/SmartTable/SmartTable'
|
|
|
|
|
+import calcCheckItemFee from './calcCheckItemFee.vue'
|
|
|
import SavetyCheckRecordList from './SavetyCheckRecordList.vue'
|
|
import SavetyCheckRecordList from './SavetyCheckRecordList.vue'
|
|
|
import AddOrEditCheckItemForEquipment from './AddOrEditCheckItemForEquipment.vue'
|
|
import AddOrEditCheckItemForEquipment from './AddOrEditCheckItemForEquipment.vue'
|
|
|
import { ref, watch, defineProps, defineEmits, reactive, computed, nextTick } from 'vue'
|
|
import { ref, watch, defineProps, defineEmits, reactive, computed, nextTick } from 'vue'
|
|
@@ -2066,14 +2073,23 @@ const calcTemplateInfo = ref({})
|
|
|
const showCalcCheckItemFeeDialog = ref(false)
|
|
const showCalcCheckItemFeeDialog = ref(false)
|
|
|
const handleInputCalcField = async (equipId, item) => {
|
|
const handleInputCalcField = async (equipId, item) => {
|
|
|
try {
|
|
try {
|
|
|
- showCalcCheckItemFeeDialog.value = true
|
|
|
|
|
calcTemplateInfo.value = item
|
|
calcTemplateInfo.value = item
|
|
|
calcEquipmentId.value = equipId
|
|
calcEquipmentId.value = equipId
|
|
|
|
|
+ showCalcCheckItemFeeDialog.value = true
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
ElMessage.error('录入费用出错啦!')
|
|
ElMessage.error('录入费用出错啦!')
|
|
|
console.error('录入费用出错啦!', error)
|
|
console.error('录入费用出错啦!', error)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+const handleSaveCalcFee = async (templateInfo) => {
|
|
|
|
|
+ // 更新检验项目的费用
|
|
|
|
|
+ const updateRes = await BoilerTaskOrderApi.updateCheckItemFee({id: templateInfo.id, fee: templateInfo.fee, feeCalculateJson: templateInfo.feeCalculateJson })
|
|
|
|
|
+ if(updateRes) {
|
|
|
|
|
+ emit('refresh')
|
|
|
|
|
+ ElMessage.success('费用已更新')
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
/***** 费用计算 end *****/
|
|
/***** 费用计算 end *****/
|
|
|
/*
|
|
/*
|
|
|
* 添加重大问题线索
|
|
* 添加重大问题线索
|