| | |
| | | <script setup> |
| | | import {defineEmits, onMounted, reactive, ref, watch} from "vue"; |
| | | import {changeFilterEvent, filterChanged} from "@/hook" |
| | | import {defineEmits, onMounted, reactive, ref, watch} from "vue" |
| | | import {useI18n} from "vue-i18n" |
| | | import request from "@/utils/request" |
| | | import {ElMessage} from "element-plus"; |
| | | import {ElMessage} from "element-plus" |
| | | import useOrderInfoStore from "@/stores/sd/order/orderInfo" |
| | | const { t } = useI18n() |
| | | const xGrid = ref() |
| | | const orderInfo = useOrderInfoStore() |
| | | const gridOptions = reactive({ |
| | | loading:false, |
| | | border: "full",//表格加边框 |
| | |
| | | ElMessage.error(t('basicData.msg.checkoutLose')) |
| | | return |
| | | } |
| | | // const $table = props.OrderDetail |
| | | // $table.getTableData().fullData.forEach((row)=>{ |
| | | // if()row.computeGrossArea |
| | | // }) |
| | | |
| | | |
| | | emit('getParent') |
| | | break |
| | | } |
| | |
| | | const emit = defineEmits(['getParent']) |
| | | |
| | | let props = defineProps({ |
| | | OrderDetail:null |
| | | OrderDetail:null, |
| | | orderId:null |
| | | }) |
| | | |
| | | |
| | | onMounted(()=>{ |
| | | const length = props.OrderDetail.getTableData().fullData.length |
| | | const $grid = xGrid.value |
| | | let list = [] |
| | | for (let i = 0; i < length; i++) { |
| | | if(props.orderId !== orderInfo.orderId){ |
| | | orderInfo.clearOrderInfo() |
| | | orderInfo.orderId=props.orderId |
| | | |
| | | list.push({}) |
| | | |
| | | for (let i = 0; i < length; i++) { |
| | | orderInfo.reviewList.push({}) |
| | | } |
| | | } |
| | | xGrid.value.reloadData(list) |
| | | |
| | | xGrid.value.reloadData(orderInfo.reviewList) |
| | | |
| | | }) |
| | | |
| | | const editClosedEvent = ({ row, column,rowIndex}) => { |
| | | const $table = props.OrderDetail |
| | | console.log($table.getTableData()) |
| | | let checkVal = row[column.property]*1 |
| | | const oldVal = $table.getTableData().fullData[rowIndex][column.property]*1 |
| | | if(checkVal!==oldVal){ |