| | |
| | | import footSum from "@/hook/footSum"; |
| | | import {addListener,destroyAreaBox} from "@/hook/mouseMoveHomePage"; |
| | | import {copyTableCellValue, copyTableCellValueShow} from "@/hook/copyTableCellValue"; |
| | | import {multiply,multiplyAuto,divideAuto} from '@/utils/decimal' |
| | | const { t } = useI18n() |
| | | const xGrid = ref() |
| | | const gridOptions = reactive({ |
| | |
| | | const getDetail = async ()=> { |
| | | await request.post(`/order/getOrderDetailById/${props.orderId}`).then(res=>{ |
| | | res.data.forEach(item => { |
| | | item.deliveryArea = item.deliveryNum *item.computeArea |
| | | item.deliveryArea = multiply(item.deliveryNum,item.computeArea) |
| | | item.otherColumns = JSON.parse(item.otherColumns) |
| | | }) |
| | | xGrid.value.reloadData(res.data) |
| | |
| | | { code: 'sizeCheck', name: t('basicData.sizeReview'), prefixIcon: 'vxe-icon-eye-fill', visible: true, disabled: false }, |
| | | { code: 'updateOrderId', name: t('searchOrder.updateOrderId'), prefixIcon: 'vxe-icon-eye-fill', visible: true, disabled: false }, |
| | | { code: 'reportingTransfer', name: t('searchOrder.reportingTransfer'), prefixIcon: 'vxe-icon-send', visible: true, disabled: true }, |
| | | { code: 'uploadPicture', name: t('order.graphic'),prefixIcon: 'vxe-icon-send', visible: true, } |
| | | { code: 'uploadPicture', name: t('order.graphic'),prefixIcon: 'vxe-icon-picture-fill', visible: true, } |
| | | ] |
| | | ] |
| | | } |
| | |
| | | if(history.state.type=='copy'){ |
| | | xGrid.value.reloadData(orderDetails) |
| | | gridOptions.menuConfig.body.options[0][11].disabled = true |
| | | titleUploadData.value['version'] = null |
| | | } |
| | | if(history.state.type=='copyTitle'){ |
| | | gridOptions.menuConfig.body.options[0][11].disabled = true |
| | | gridOptions.menuConfig.body.options[0][11].disabled = tru |
| | | titleUploadData.value['version'] = null |
| | | } |
| | | |
| | | gridOptions.loading = false |
| | |
| | | }).catch(()=>{ |
| | | if(titleUploadData.value.orderId.trim()!==""){ |
| | | ElMessageBox.alert(t('order.msg.updateOrderError'), 'Title', { |
| | | // if you want to disable its autofocus |
| | | // autofocus: false, |
| | | confirmButtonText: 'OK', |
| | | callback: (action: Action) => { |
| | | router.push({path:'/main/order/createOrder',query:{ |