Merge branch 'master' of http://10.153.19.25:10105/r/ERP_override
| | |
| | | |
| | | mergeState:'Merge State', |
| | | merge:'Merge', |
| | | printQuantity:'Print Quantity', |
| | | printWarn1:'The print quantity cannot be greater than the order quantity' |
| | | }, |
| | | reportingWorks:{ |
| | | page:{ |
| | |
| | | pleaseNumber7:'The quantity cannot be greater than the quantity of the previous process', |
| | | pleaseNumber8:'Please enter serial number', |
| | | pleaseNumber9:'Correct number of completions or breakdowns', |
| | | pleaseNumber10:'The number of completions cannot be greater than the number of process cards', |
| | | |
| | | }, |
| | | productStock:{ |
| | |
| | | pleaseSelectProject:'è¯·éæ©å·¥ç¨', |
| | | mergeState:'åå¹¶ç¶æ', |
| | | merge:'åå¹¶', |
| | | printQuantity:'æå°æ°', |
| | | printWarn1:'æå°æ°éä¸è½å¤§äºè®¢åæ°é' |
| | | }, |
| | | reportingWorks:{ |
| | | page:{ |
| | |
| | | pleaseNumber7:'*колиÑеÑÑво не Ð¼Ð¾Ð¶ÐµÑ Ð¿ÑевÑÑаÑÑ ÐºÐ¾Ð»Ð¸ÑеÑÑво пÑоÑеÑÑов.', |
| | | pleaseNumber8:'ÐведиÑе ÑеÑийнÑй номеÑ.', |
| | | pleaseNumber9:'ÐÑавилÑное завеÑÑение и колиÑеÑÑво повÑежденнÑÑ
', |
| | | pleaseNumber10:'å®å·¥æ°ä¸è½å¤§äºæµç¨å¡æ°é', |
| | | }, |
| | | productStock:{ |
| | | page:{ |
| | |
| | | pleaseSelectProject:'è¯·éæ©å·¥ç¨', |
| | | mergeState:'åå¹¶ç¶æ', |
| | | merge:'åå¹¶', |
| | | |
| | | printQuantity:'æå°æ°', |
| | | printWarn1:'æå°æ°éä¸è½å¤§äºè®¢åæ°é' |
| | | |
| | | }, |
| | | reportingWorks:{ |
| | |
| | | pleaseNumber7:'çæ°éä¸è½å¤§äºä¸å·¥åºæ°é', |
| | | pleaseNumber8:'请è¾å
¥åºå·', |
| | | pleaseNumber9:'æ£ç¡®çå®å·¥ææ¬¡ç ´æ°é', |
| | | pleaseNumber10:'å®å·¥æ°ä¸è½å¤§äºæµç¨å¡æ°é', |
| | | }, |
| | | productStock:{ |
| | | page:{ |
| File was renamed from north-glass-erp/northglass-erp/src/stores/sd/companySet/½ð»ªÀÖ¶¯.js |
| | |
| | | export default defineStore('companyInfo', { |
| | | |
| | | state: () => ({ |
| | | companyName: 'éåå¸ä¹å¨æºè½ç§ææéå
¬å¸', |
| | | companyName: 'éåç¦å天æç»çæéå
¬å¸', |
| | | address:'æµæ±çéåå¸éä¸åºæ¹å®
éå·¥ä¸åè½åºé¹¤å²©è¡28å·2å·', |
| | | telephone:'189 3119 1362 èµåé¿', |
| | | fax:'', |
| | |
| | | <el-button @click="getTableRow(row,'edit')" |
| | | v-if="userStore.user.permissions.indexOf('materialOutbound.edit') > -1" |
| | | link type="primary" size="small">{{$t('basicData.edit')}}</el-button> |
| | | <!-- <el-button @click="getTableRow(row,'delete')" link type="primary" size="small">å é¤</el-button>--> |
| | | <el-popconfirm @confirm="getTableRow(row,'delete')" :title="$t('searchOrder.deleteConfirm')"> |
| | | <template #reference> |
| | | <el-button :disabled="row.reviewedState===1" link type="primary" size="small">{{ $t('basicData.delete') }}</el-button> |
| | | </template> |
| | | </el-popconfirm> |
| | | </template> |
| | | |
| | | <template #num1_filter="{ column, $panel }"> |
| | |
| | | router.push({path: '/main/ingredientsStock/ReturnToStorageCreate', query: { returningId: row.returningId }}) |
| | | break |
| | | } |
| | | case 'delete':{ |
| | | let flowData = ref({ |
| | | returningId:row.returningId, |
| | | userName:userStore.user.userName, |
| | | userId:userStore.user.userId |
| | | }) |
| | | request.post("/materialInventory/deleteReturnToStorage",flowData.value).then((res) => { |
| | | if(res.code==200 && res.data===true){ |
| | | ElMessage.success(t('searchOrder.msgDeleteSuccess')) |
| | | router.push({path:'/main/ingredientsStock/ReturnToStorage', query:{random:Math.random()}}) |
| | | }else{ |
| | | ElMessage.warning(t('basicData.msg.deleteSuccess')) |
| | | } |
| | | }).catch((err)=>{ |
| | | ElMessage.error(t('basicData.msg.ServerConnectionError')) |
| | | router.push("/login") |
| | | }) |
| | | |
| | | return |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | <el-button @click="getTableRow(row,'edit')" |
| | | v-if="userStore.user.permissions.indexOf('returnToStorage.edit') > -1" |
| | | link type="primary" size="small">{{$t('basicData.edit')}}</el-button> |
| | | <!-- <el-button @click="getTableRow(row,'delete')" link type="primary" size="small">å é¤</el-button>--> |
| | | <el-popconfirm @confirm="getTableRow(row,'delete')" :title="$t('searchOrder.deleteConfirm')"> |
| | | <template #reference> |
| | | <el-button :disabled="row.reviewedState===1" link type="primary" size="small">{{ $t('basicData.delete') }}</el-button> |
| | | </template> |
| | | </el-popconfirm> |
| | | </template> |
| | | |
| | | <template #num1_filter="{ column, $panel }"> |
| | |
| | | import { useI18n } from 'vue-i18n' |
| | | import {toolbarButtonClickEvent} from "@/hook/mouseMove"; |
| | | import {changeFilterEvent,filterChanged} from "@/hook" |
| | | import {divideAuto, multiply} from "@/utils/decimal"; |
| | | |
| | | //è¯è¨è·å |
| | | const { t } = useI18n() |
| | |
| | | |
| | | |
| | | let flowData = ref({ |
| | | totalArea: selectRecords.height*selectRecords.width/100000*titleUploadData.value.inventoryQuantity, |
| | | singlePieceArea: selectRecords.height*selectRecords.width/100000, |
| | | totalArea: parseFloat(divideAuto(multiply(selectRecords.height,selectRecords.width),1000000,2))*titleUploadData.value.inventoryQuantity, |
| | | singlePieceArea: parseFloat(divideAuto(multiply(selectRecords.height,selectRecords.width),1000000,2)), |
| | | title: titleUploadData.value, |
| | | materialCode: selectRecords.id, |
| | | userName:userStore.user.userName, |
| | | userId:userStore.user.userId |
| | | |
| | | }) |
| | | console.log(flowData.value) |
| | | |
| | | request.post("/materialInventory/saveMaterialInventory", flowData.value).then((res) => { |
| | | if(res.code==200){ |
| | | console.log(res) |
| | | if(res.code==200 && res.data==="true"){ |
| | | ElMessage.success(t('basicData.msg.saveSuccess')) |
| | | router.push({path: '/main/ingredientsStock/SelectIngredientsStock', query:{random:Math.random()}}) |
| | | }else if(res.data==="false1") { |
| | | ElMessage.warning("åºååå¨å¤æ¡") |
| | | }else{ |
| | | ElMessage.warning(res.msg) |
| | | router.push("/login") |
| | | ElMessage.warning(t('basicData.msg.ServerConnectionError')) |
| | | } |
| | | }) |
| | | break |
| | |
| | | filterMethod: filterChanged, width: 100 |
| | | }, |
| | | {field: 'quantity', title: t('order.quantity'), width: 90}, |
| | | {field: 'printQuantity', title: t('processCard.printQuantity'), width: 90, |
| | | editRender: {name: 'input', attrs: {placeholder: ''}}, |
| | | }, |
| | | {field: 'total_area', title: t('order.area'), width: 90}, |
| | | { |
| | | field: 'product_name', title: t('order.product'), width: 120, |
| | |
| | | filterMethod: filterChanged, width: 120 |
| | | }, |
| | | ],//表头æé® |
| | | |
| | | //表åéªè¯ |
| | | editRules: { |
| | | printQuantity: [ |
| | | { |
| | | validator ({ row }) { |
| | | const regex = /^[0-9]\d*$/ |
| | | const printQuantity = |
| | | (row.printQuantity === undefined || row.printQuantity===null || row.printQuantity==='') ? 0 : row.printQuantity |
| | | if(!regex.test(printQuantity)){ |
| | | return new Error(t('reportingWorks.enterIntegerGreaterThanEqualTo')) |
| | | } |
| | | else if(row.quantity<printQuantity){ |
| | | return new Error(t('processCard.printWarn1')) |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | }, |
| | | toolbarConfig: { |
| | | buttons: [ |
| | | {code: 'print', name: t('processCard.print'), status: 'primary'}, |
| | |
| | | }) |
| | | |
| | | const gridEvents = { |
| | | toolbarButtonClick({code}) { |
| | | async toolbarButtonClick({code}) { |
| | | const $grid = xGrid.value |
| | | selectRecords = $grid.getCheckboxRecords() |
| | | // selectRecords.forEach(obj => { |
| | |
| | | break |
| | | } |
| | | case 'printTest': { |
| | | const errMap = await $grid.validate(true) |
| | | if (errMap) { |
| | | ElMessage.error(t('basicData.msg.checkoutLose')) |
| | | return |
| | | } |
| | | if (selectRecords === null || selectRecords === '' || selectRecords.length === 0) { |
| | | ElMessage.warning(t('searchOrder.msgList.checkOrder')) |
| | | return |
| | |
| | | }) |
| | | |
| | | //å·¥åº |
| | | const value = ref(t('machine.edgeGrinding')) |
| | | const value = ref() |
| | | |
| | | //æ ¹æ®ä»¥ä¸åæ®µæ±æ»æ¥è¯¢ |
| | | const stateValue = ref('') |
| | |
| | | total.dataTotal = res.data.total.total * 1 |
| | | total.pageTotal = res.data.total.pageTotal |
| | | pageTotal.value = res.data.total |
| | | xGrid.value.loadData(res.data.data) |
| | | xGrid.value.reloadData(res.data.data) |
| | | gridOptions.loading = false |
| | | } else { |
| | | ElMessage.warning(res.msg) |
| | |
| | | } |
| | | |
| | | function filterChanged(column){ |
| | | //gridOptions.loading=true |
| | | gridOptions.loading = true |
| | | //ç鿡件åçå忡件åçåå |
| | | let value = column.datas[0]!=undefined?column.datas[0]:'' |
| | | value = value.trim() |
| | |
| | | }else{ |
| | | filterData.value[column.property] = value |
| | | } |
| | | gridOptions.loading = true |
| | | |
| | | let startTime = form.date1[0] |
| | | let endTime = form.date1[1] |
| | | let optionVal=stateValue.value |
| | | if (optionVal == '') { |
| | | optionVal = null |
| | | } |
| | | request.post(`/report/workInProgress/1/${total.pageSize}/${inputVal}/${inputProject}/${selectProcesses}/${optionVal}`, filterData.value).then((res) => { |
| | | |
| | | if (res.code == 200) { |
| | | total.dataTotal = res.data.total.total*1 |
| | | total.pageTotal=parseInt(res.data.total) |
| | | pageNum.value=1 |
| | | produceList = deepClone(res.data.data) |
| | | xGrid.value.reloadData(produceList) |
| | | gridOptions.loading=false |
| | | } else { |
| | | ElMessage.warning(res.msg) |
| | | } |
| | | //handleUpdateData(produceList) |
| | | }) |
| | | getWorkOrder() |
| | | // let selectProcesses = value.value |
| | | // let optionVal=stateValue.value |
| | | // if (optionVal == '') { |
| | | // optionVal = null |
| | | // } |
| | | // request.post(`/report/workInProgress/1/${total.pageSize}/${inputVal}/${inputProject}/${selectProcesses}/${optionVal}`, filterData.value).then((res) => { |
| | | // |
| | | // if (res.code == 200) { |
| | | // total.dataTotal = res.data.total.total*1 |
| | | // total.pageTotal=parseInt(res.data.total) |
| | | // pageNum.value=1 |
| | | // produceList = deepClone(res.data.data) |
| | | // console.log(res.data.data) |
| | | // xGrid.value.reloadData(produceList) |
| | | // gridOptions.loading=false |
| | | // } else { |
| | | // ElMessage.warning(res.msg) |
| | | // } |
| | | // //handleUpdateData(produceList) |
| | | // }) |
| | | |
| | | } |
| | | |
| | |
| | | /> |
| | | </el-select> |
| | | |
| | | <el-select v-model="value" clearable default-value="default_city" style="width: 120px"> |
| | | <el-select v-model="value" clearable :placeholder="$t('reportingWorks.selectProcess')" default-value="default_city" style="width: 120px"> |
| | | <el-option |
| | | v-for="item in titleSelectJson['processType']" |
| | | :key="item.id" |
| | |
| | | }else if((row.completedQuantity*1+brokenNum*1)>row.quantity*1){ |
| | | return new Error((`${row.completedQuantity}+${brokenNum}>${row.quantity}`)) |
| | | }else if(row.quantity_card<row.completedQuantity){ |
| | | return new Error("å®å·¥æ°ä¸è½å¤§äºæµç¨å¡æ°é") |
| | | return new Error(t('reportingWorks.pleaseNumber10')) |
| | | } |
| | | const completedNum = |
| | | (row.completedQuantity === undefined || row.completedQuantity===null || row.completedQuantity==='') ? 0 : row.completedQuantity |
| | |
| | | @SaCheckPermission("selectIngredientsStock.add") |
| | | @PostMapping("/saveMaterialInventory") |
| | | public Result saveMaterialInventory( @RequestBody Map<String,Object> object){ |
| | | if(materialInventoryService.saveMaterialInventory(object)){ |
| | | return Result.seccess(); |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"ä¿å失败"); |
| | | |
| | | } |
| | | return Result.seccess(materialInventoryService.saveMaterialInventory(object)); |
| | | } |
| | | |
| | | @ApiOperation("ç©æåºåå æ¶é´æ¥è¯¢æ¥å£") |
| | |
| | | return Result.seccess(materialInventoryService.getSelectReturningWarehouse(pageNum,pageSize,returningWarehouseDetail)); |
| | | } |
| | | |
| | | @ApiOperation("ç©æè¿åºå 餿¥å£") |
| | | @SaCheckPermission("returnToStorageCreate.delete") |
| | | @PostMapping("/deleteReturnToStorage") |
| | | public Result deleteReturnToStorage( @RequestBody Map<String,Object> object){ |
| | | return Result.seccess(materialInventoryService.deleteReturnToStorage(object)); |
| | | } |
| | | |
| | | @ApiOperation("ç©æè¿åºå®¡æ ¸æ¥å£") |
| | | @SaCheckPermission("returnToStorageCreate.review") |
| | | @PostMapping("/updateReturningWarehouseToExamine") |
| | |
| | | private LocalDate updateTime; |
| | | |
| | | //æ¥è¯¢ç¨ |
| | | //æ ç¾æå°æ°é |
| | | @TableField(select = false,exist = false) |
| | | private Integer printQuantity; |
| | | //æ¥å·¥ç¼å· |
| | | @TableField(select = false,exist = false) |
| | | private String reportingWorkId; |
| | |
| | | |
| | | Boolean deleteMaterialOutbound(@Param("materialOutboundId") String materialOutboundId); |
| | | |
| | | Boolean deleteMaterialLog(@Param("materialOutboundId") String materialOutboundId); |
| | | |
| | | Integer getMaximum(@Param("type") String type); |
| | | |
| | | Integer getMaximums(@Param("type") String type); |
| | |
| | | |
| | | Boolean deleteReturningWarehouseDetail(@Param("returningId") String returningId); |
| | | |
| | | Boolean deleteReturningWarehouse(@Param("returningId") String returningId); |
| | | |
| | | List<MaterialOutbound> getSelectMaterialOutboundDate(@Param("offset") Integer offset, |
| | | @Param("pageSize") Integer pageSize,String startDate, String endDate, |
| | | @Param("materialOutbound") MaterialOutbound materialOutbound); |
| | |
| | | @Param("totalArea") Double totalArea, |
| | | @Param("materialInventory") MaterialInventory materialInventory); |
| | | |
| | | Boolean updateMaterialInventoryNull(@Param("materialCode") Long materialCode,@Param("singlePieceArea") Double singlePieceArea, |
| | | @Param("totalArea") Double totalArea, |
| | | @Param("materialInventory") MaterialInventory materialInventory); |
| | | |
| | | Boolean insertMaterialInventory(@Param("materialCode") Long materialCode,@Param("singlePieceArea") Double singlePieceArea, |
| | | @Param("totalArea") Double totalArea, |
| | | @Param("materialInventory") MaterialInventory materialInventory); |
| | |
| | | |
| | | List<Map<String, String>> selectPrintDetailsMp1(String orderId); |
| | | |
| | | List<Map<String, Object>> getPrintCustomDataDetails(String processId, Integer orderNumber); |
| | | List<Map<String, Object>> getPrintCustomDataDetails(String processId, Integer orderNumber, Integer printQuantity); |
| | | |
| | | List<Map<String, Object>> getPrintCustomDataProjectNo(String projectNo); |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | public Boolean saveMaterialInventory(Map<String,Object> object) { |
| | | boolean saveState = true; |
| | | public String saveMaterialInventory(Map<String,Object> object) { |
| | | String saveState = "true"; |
| | | //è®¾ç½®åæ»ç¹ |
| | | Object savePoint = TransactionAspectSupport.currentTransactionStatus().createSavepoint(); |
| | | try { |
| | |
| | | |
| | | MaterialInventory materialInventory = JSONObject.parseObject(JSONObject.toJSONString(object.get("title")), MaterialInventory.class); |
| | | |
| | | //æ¥è¯¢ç©ææ¯å¦åå¨ |
| | | Integer MaterialInventoryCount = materialInventoryMapper.getMaterialInventoryCount(materialCode,materialInventory.getDateOfManufacture()); |
| | | |
| | | if(MaterialInventoryCount>0){ |
| | | materialInventoryMapper.updateMaterialInventory(materialCode,singlePieceArea,totalArea,materialInventory); |
| | | log.setFunction("saveMaterialInventoryä¿®æ¹"); |
| | | //æ¥è¯¢ç©ææ¯å¦åå¨ |
| | | Integer MaterialInventoryCount=0; |
| | | if (materialInventory.getDateOfManufacture()!=null){ |
| | | MaterialInventoryCount = materialInventoryMapper.getMaterialInventoryCount(materialCode,materialInventory.getDateOfManufacture()); |
| | | }else { |
| | | MaterialInventoryCount = materialInventoryMapper.getMaterialInventoryCountNull(materialCode); |
| | | } |
| | | |
| | | if(MaterialInventoryCount==1){ |
| | | if (materialInventory.getDateOfManufacture()!=null){ |
| | | materialInventoryMapper.updateMaterialInventory(materialCode,singlePieceArea,totalArea,materialInventory); |
| | | }else{ |
| | | materialInventoryMapper.updateMaterialInventoryNull(materialCode,singlePieceArea,totalArea,materialInventory); |
| | | } |
| | | log.setFunction("saveMaterialInventoryä¿®æ¹"); |
| | | }else if(MaterialInventoryCount==0) { |
| | | materialInventoryMapper.insertMaterialInventory(materialCode,singlePieceArea,totalArea,materialInventory); |
| | | log.setFunction("saveMaterialInventoryæ°å¢"); |
| | | }else { |
| | | return "false1"; |
| | | } |
| | | |
| | | String json=""; |
| | |
| | | sysError.setError(e+Arrays.toString(e.getStackTrace())); |
| | | sysError.setFunc("saveMaterialInventory"); |
| | | sysErrorService.insert(sysError); |
| | | saveState = false; |
| | | saveState = "false"; |
| | | |
| | | } |
| | | return saveState; |
| | |
| | | if(materialOutboundId!=null){ |
| | | materialInventoryMapper.deleteMaterialOutboundDetail(materialOutboundId); |
| | | materialInventoryMapper.deleteMaterialOutbound(materialOutboundId); |
| | | materialInventoryMapper.deleteMaterialLog(materialOutboundId); |
| | | } |
| | | Log log = new Log(); |
| | | log.setContent(object.toString()); |
| | |
| | | |
| | | } |
| | | |
| | | public Boolean deleteReturnToStorage(Map<String,Object> object) { |
| | | boolean saveState = true; |
| | | //è®¾ç½®åæ»ç¹ |
| | | Object savePoint = TransactionAspectSupport.currentTransactionStatus().createSavepoint(); |
| | | try { |
| | | String returningId = ""; |
| | | if (object.get("returningId") != null) { |
| | | returningId = object.get("returningId").toString(); |
| | | } |
| | | if(returningId!=null){ |
| | | materialInventoryMapper.deleteReturningWarehouseDetail(returningId); |
| | | materialInventoryMapper.deleteReturningWarehouse(returningId); |
| | | materialInventoryMapper.deleteMaterialLog(returningId); |
| | | } |
| | | Log log = new Log(); |
| | | log.setContent(object.toString()); |
| | | log.setOperatorId(object.get("userId").toString()); |
| | | log.setOperator(object.get("userName").toString()); |
| | | log.setFunction("deleteReturnToStorage:"+returningId); |
| | | logService.saveLog(log); |
| | | |
| | | |
| | | } catch (Exception e) { |
| | | TransactionAspectSupport.currentTransactionStatus().rollbackToSavepoint(savePoint); |
| | | //å°å¼å¸¸ä¼ å
¥æ°æ®åº |
| | | SysError sysError = new SysError(); |
| | | sysError.setError(e+Arrays.toString(e.getStackTrace())); |
| | | sysError.setFunc("deleteMaterialOutbound"); |
| | | sysErrorService.insert(sysError); |
| | | saveState = false; |
| | | |
| | | } |
| | | return saveState; |
| | | |
| | | } |
| | | |
| | | public Map<String, Object> getSelectMaterialOutboundDate(Integer pageNum, Integer pageSize, List<String> selectDate, MaterialOutbound materialOutbound) { |
| | | Integer offset = (pageNum - 1) * pageSize; |
| | | String endDate = LocalDate.now().toString(); |
| | |
| | | continue; |
| | | } |
| | | Map<String, Object> itemmap = new HashMap<>(); |
| | | itemmap.put("data", flowCardMapper.getPrintCustomDataDetails(flowCard.getProcessId(),flowCard.getOrderNumber())); |
| | | itemmap.put("data", flowCardMapper.getPrintCustomDataDetails(flowCard.getProcessId(),flowCard.getOrderNumber(),flowCard.getPrintQuantity())); |
| | | list.add(itemmap); |
| | | |
| | | // å°è¯¥ processId å å
¥å·²å¤çéå |
| | |
| | | delete from mm.material_outbound_detail where material_outbound_id=#{materialOutboundId} |
| | | </delete> |
| | | |
| | | <delete id="deleteMaterialLog" > |
| | | delete from mm.material_log where operation_order_number=#{materialOutboundId} |
| | | </delete> |
| | | |
| | | <delete id="deleteReturningWarehouseDetail" > |
| | | delete from mm.returning_warehouse_detail where returning_id=#{returningId} |
| | | </delete> |
| | | |
| | | <delete id="deleteReturningWarehouse" > |
| | | delete from mm.returning_warehouse where returning_id=#{returningId} |
| | | </delete> |
| | | |
| | | <select id="getMaximum" > |
| | |
| | | <update id="updateMaterialInventory" > |
| | | update mm.material_inventory set inventory_quantity=inventory_quantity+#{materialInventory.inventoryQuantity}, |
| | | available_quantity=available_quantity+#{materialInventory.inventoryQuantity}, |
| | | total_area=total_area+#{totalArea} |
| | | total_area=single_piece_area*inventory_quantity |
| | | where material_code=#{materialCode} and date_of_manufacture=#{materialInventory.dateOfManufacture} |
| | | </update> |
| | | |
| | | <update id="updateMaterialInventoryNull" > |
| | | update mm.material_inventory set inventory_quantity=inventory_quantity+#{materialInventory.inventoryQuantity}, |
| | | available_quantity=available_quantity+#{materialInventory.inventoryQuantity}, |
| | | total_area=single_piece_area*inventory_quantity |
| | | where material_code=#{materialCode} |
| | | </update> |
| | | |
| | | <update id="updateMaterialInventoryReturning" > |
| | | update mm.material_inventory set available_quantity=available_quantity+#{returningWarehouseDetail.returnQuantity}, |
| | | total_area=total_area+#{totalArea} |
| | | update mm.material_inventory set available_quantity=available_quantity+#{returningWarehouseDetail.returnQuantity} |
| | | where material_code=#{materialCode} and |
| | | date_of_manufacture=#{returningWarehouseDetail.dateOfManufacture} |
| | | |
| | |
| | | </update> |
| | | |
| | | <update id="updateMaterialInventoryReturningNull" > |
| | | update mm.material_inventory set available_quantity=available_quantity+#{returningWarehouseDetail.returnQuantity}, |
| | | total_area=total_area+#{totalArea} |
| | | update mm.material_inventory set available_quantity=available_quantity+#{returningWarehouseDetail.returnQuantity} |
| | | where material_code=#{materialCode} and |
| | | date_of_manufacture is null |
| | | |
| | |
| | | /*ogd.technology_number,*/ |
| | | ogd.glass_address, |
| | | (fc.quantity) as quantity, |
| | | (fc.quantity) as printQuantity, |
| | | round((ogd.child_width * ogd.child_height * fc.quantity / 1000000), 2) as total_area, |
| | | od.product_name, |
| | | ogd.glass_child, |
| | |
| | | ogd.technology_number, |
| | | ogd.glass_address, |
| | | (fc.quantity) as quantity, |
| | | (fc.quantity) as printQuantity, |
| | | round((ogd.child_width * ogd.child_height * fc.quantity / 1000000), 2) as total_area, |
| | | od.product_name, |
| | | ogd.glass_child, |
| | |
| | | od.processing_note as processingNote, |
| | | width, |
| | | height, |
| | | fc.quantity, |
| | | #{printQuantity} as quantity, |
| | | od.order_number as orderNumber, |
| | | fc.technology_number as technologyNumber, |
| | | od.building_number as buildingNumber, |