| | |
| | | import footSum from "@/hook/footSum"; |
| | | import {changeFilterEvent,filterChanged} from "@/hook" |
| | | import companyInfo from "@/stores/sd/companyInfo"; |
| | | import {multiply} from "@/utils/decimal"; |
| | | |
| | | //语言获取 |
| | | const { t } = useI18n() |
| | |
| | | pageTotal.value=res.data.total |
| | | titleUploadData.value=deepClone(res.data.delivery) |
| | | titleUploadData.value.deliveryId=str |
| | | console.log(titleUploadData.value) |
| | | |
| | | //根据审核状态显示审核按钮或者是反审按钮 |
| | | |
| | |
| | | customConfig: { |
| | | storage: true |
| | | }, |
| | | checkboxConfig:{checkAll:true}, |
| | | mouseConfig:{selected: true},//鼠标选中 |
| | | keyboardConfig:{isArrow: true, isDel: true, isEnter: true, isTab: true, isEdit: true, isChecked: true}, |
| | | editConfig: { |
| | |
| | | } |
| | | dataList.forEach((item,index) =>{ |
| | | if(index>=result.start && index<=result.end){ |
| | | //取消选中 |
| | | if(parseInt(firstVal)<=0){ |
| | | xGrid.value.setCheckboxRow(item, false); |
| | | } |
| | | if(result.cell.indexOf('.')>-1){ |
| | | const columnArr = result.cell.split('.') |
| | | item[columnArr[0]][columnArr[1]] = firstVal |
| | |
| | | return new Error(t('delivery.theShipmentQuantityCannotBeGreaterThanTheInventoryQuantity')) |
| | | }else if (e.row.deliveryDetail.quantity ==="") { |
| | | return new Error(t('delivery.theShipmentQuantityCannotBeEmptyOr0')) |
| | | } |
| | | } |
| | | const regex = /^[1-9]\d*$/g |
| | | if ( !regex.test(e.row.deliveryDetail.quantity) ) { |
| | | return new Error(t('productStock.pleaseEnterAPositiveInteger')) |
| | |
| | | ], |
| | | |
| | | }) |
| | | |
| | | const editClosedEvent = ({ row, column }) => { |
| | | |
| | | if (['deliveryDetail.quantity'].includes(column.property)) { |
| | | if(parseInt(row.deliveryDetail.quantity)===0){ |
| | | xGrid.value.setCheckboxRow(row, false); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | </script> |
| | |
| | | v-bind="gridOptions" |
| | | v-on="gridEvents" |
| | | :edit-rules="validRules" |
| | | @edit-closed="editClosedEvent" |
| | | |
| | | > |
| | | <template #num1_filter="{ column, $panel }"> |