Merge branch 'master' of http://10.153.19.25:10105/r/ERP_override
| | |
| | | const user=userInfo() |
| | | const name1=ref("admin") |
| | | const name2=ref("admin") |
| | | let corporateName = ref("æ´é³åæ¹ç»çææ¯è¡ä»½æéå
¬å¸") |
| | | |
| | | const data = ref({ |
| | | printList: [] |
| | |
| | | <div style="width: 60px;height: 60px"><img id="img-pic" style="width:100%;height: 100%" src="@/assets/northGlass.ico" alt=""></div> |
| | | </td> |
| | | <td colspan="4" style="font-weight: bolder"> |
| | | <div style="font-size: 18px;font-weight: bold;line-height: 15px;">æ´é³åæ¹ç»çææ¯è¡ä»½æéå
¬å¸<br> |
| | | <div style="font-size: 18px;font-weight: bold;line-height: 15px;"><input class="contactNumber" style="width: 60%;font-size: 18px;font-weight: bold;line-height: 15px;" type="text" v-model="corporateName"/><br> |
| | | <span style="font-size: 8px;"> LUOYANGNORTHGLASSTECHNOLOGYCO.,LTD.</span> |
| | | </div> |
| | | </td> |
| | |
| | | let materialStore= ref([]) |
| | | const getData = () => { |
| | | console.log(props.materialOutboundId) |
| | | request.get(`/MaterialInventory/printCreateOutbound/${props.materialOutboundId}`).then(res => { |
| | | request.get(`/materialInventory/printCreateOutbound/${props.materialOutboundId}`).then(res => { |
| | | createOutbound.value=res.data.createOutbound |
| | | createOutboundDetail.value=res.data.createOutboundDetail |
| | | console.log(createOutbound.value) |
| | |
| | | flowCardMerge: 0,//æµç¨å¡åçæå°ï¼1åå¹¶ï¼å
¶ä»ä¸åå¹¶ |
| | | printBtn:0,//æå°çé¢ä¸ä¸ªæé®ä¸æ¯å¦æ¾ç¤ºæ ç¾æå°ç¸å
³æé®ï¼0æ¾ç¤ºï¼1å
¶å®ä¸æ¾ç¤º |
| | | printNumber:true,//å¤é订åæå°æµç¨å¡æ¯å¦æ¾ç¤ºå³ä¸è§åºå·ä¹ä¹false,å
¶å®true |
| | | materialOutboundColor:false,//åºåæ¥è¯¢å
¥åºè¶
è¿ä¸å®æ¶é´æ¹åé¢è²ï¼æ´é³trueï¼å
¶ä»false |
| | | //天津 |
| | | printLabel: { |
| | | custom: (item1) => { |
| | |
| | | flowCardMerge: 1,//æµç¨å¡åçæå°ï¼1åå¹¶ï¼å
¶ä»ä¸åå¹¶ |
| | | printBtn:0,//æå°çé¢ä¸ä¸ªæé®ä¸æ¯å¦æ¾ç¤ºæ ç¾æå°ç¸å
³æé®ï¼0æ¾ç¤ºå¸¸å·ï¼1天津å
¶å®ä¸æ¾ç¤º |
| | | printNumber:true,//å¤é订åæå°æµç¨å¡æ¯å¦æ¾ç¤ºå³ä¸è§åºå·ä¹ä¹false,å
¶å®true |
| | | materialOutboundColor:false,//åºåæ¥è¯¢å
¥åºè¶
è¿ä¸å®æ¶é´æ¹åé¢è²ï¼æ´é³trueï¼å
¶ä»false |
| | | //天津 |
| | | printLabel: { |
| | | custom: (item1) => { |
| | |
| | | flowCardMerge: 0,//æµç¨å¡åçæå°ï¼1åå¹¶ï¼å
¶ä»ä¸åå¹¶ |
| | | printBtn:1,//æå°çé¢ä¸ä¸ªæé®ä¸æ¯å¦æ¾ç¤ºæ ç¾æå°ç¸å
³æé®ï¼0æ¾ç¤ºå¸¸å·ï¼1天津å
¶å®ä¸æ¾ç¤º |
| | | printNumber:true,//å¤é订åæå°æµç¨å¡æ¯å¦æ¾ç¤ºå³ä¸è§åºå·ä¹ä¹false,å
¶å®true |
| | | materialOutboundColor:false,//åºåæ¥è¯¢å
¥åºè¶
è¿ä¸å®æ¶é´æ¹åé¢è²ï¼æ´é³trueï¼å
¶ä»false |
| | | //天津 |
| | | printLabel: { |
| | | custom: (item1) => { |
| | |
| | | deliveryOutbound: false,//åè´§é»è®¤åºåº |
| | | flowCardMerge: 0,//æµç¨å¡åçæå° |
| | | printBtn:1,//æå°çé¢ä¸ä¸ªæé®ä¸æ¯å¦æ¾ç¤ºæ ç¾æå°ç¸å
³æé®ï¼0æ¾ç¤ºå¸¸å·ï¼1天津å
¶å®ä¸æ¾ç¤º |
| | | materialOutboundColor:true,//åºåæ¥è¯¢å
¥åºè¶
è¿ä¸å®æ¶é´æ¹åé¢è²ï¼æ´é³trueï¼å
¶ä»false |
| | | //天津 |
| | | printLabel: { |
| | | custom: (item1) => { |
| | |
| | | flowCardMerge: 0,//æµç¨å¡åçæå°ï¼1åå¹¶ï¼å
¶ä»ä¸åå¹¶ |
| | | printBtn:1,//æå°çé¢ä¸ä¸ªæé®ä¸æ¯å¦æ¾ç¤ºæ ç¾æå°ç¸å
³æé®ï¼0æ¾ç¤ºå¸¸å·ï¼1天津å
¶å®ä¸æ¾ç¤º |
| | | printNumber:true,//å¤é订åæå°æµç¨å¡æ¯å¦æ¾ç¤ºå³ä¸è§åºå·ä¹ä¹false,å
¶å®true |
| | | materialOutboundColor:false,//åºåæ¥è¯¢å
¥åºè¶
è¿ä¸å®æ¶é´æ¹åé¢è²ï¼æ´é³trueï¼å
¶ä»false |
| | | //天津 |
| | | printLabel: { |
| | | custom: (item1) => { |
| | |
| | | materialRequisitionPersonnel:'', |
| | | materialRequisitionTeam:'', |
| | | orderId:'', |
| | | project:'', |
| | | batch:'', |
| | | materialRequisitionDate:'', |
| | | reviewedState:'', |
| | | reviewed:'', |
| | |
| | | }) |
| | | |
| | | |
| | | const getproject = () => { |
| | | if(titleUploadData.value.orderId!==''){ |
| | | request.post(`/order/getOrderById/` +titleUploadData.value.orderId ).then((res) => { |
| | | if (res.code == 200) { |
| | | if(res.data.order!=null){ |
| | | titleUploadData.value.project=res.data.order.project |
| | | titleUploadData.value.batch=res.data.order.batch |
| | | }else{ |
| | | titleUploadData.value.project='' |
| | | titleUploadData.value.batch='' |
| | | } |
| | | |
| | | } else { |
| | | ElMessage.warning(res.msg) |
| | | } |
| | | }) |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | </script> |
| | | |
| | |
| | | <el-col :span="3"><el-input v-model="titleUploadData.materialRequisitionPersonnel" /></el-col> |
| | | <el-col :span="2"><el-text>{{$t('ingredientsStock.materialRequisitionTeam')}}:</el-text></el-col> |
| | | <el-col :span="3"><el-input v-model="titleUploadData.materialRequisitionTeam" /></el-col> |
| | | |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="2"><el-text>{{$t('ingredientsStock.outboundType')}}ï¼</el-text></el-col> |
| | | <el-col :span="3"> |
| | | <el-select v-model="titleUploadData.outboundType" clearable placeholder="" > |
| | |
| | | /> |
| | | </el-select> |
| | | </el-col> |
| | | <el-col :span="2"><el-text>{{$t('order.orderId')}}:</el-text></el-col> |
| | | <el-col :span="3"><el-input v-model="titleUploadData.orderId" /></el-col> |
| | | |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="2"><el-text>{{$t('ingredientsStock.warehouseManager')}}:</el-text></el-col> |
| | | <el-col :span="3"><el-input v-model="titleUploadData.warehouseManager" :readonly="true" /></el-col> |
| | | |
| | | <el-col :span="2"><el-text>{{$t('order.orderId')}}:</el-text></el-col> |
| | | <el-col :span="3"><el-input @blur="getproject" v-model="titleUploadData.orderId" /></el-col> |
| | | <el-col :span="2"><el-text>{{$t('order.project')}}:</el-text></el-col> |
| | | <el-col :span="3"><el-input v-model="titleUploadData.project" /></el-col> |
| | | <el-col :span="2"><el-text>{{$t('order.batch')}}:</el-text></el-col> |
| | | <el-col :span="3"><el-input v-model="titleUploadData.batch" /></el-col> |
| | | </el-row> |
| | | </div> |
| | | |
| | |
| | | {field: 'outboundType', width: '100',title: t('ingredientsStock.outboundType'), sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'warehouseManager',width: '100', title: t('ingredientsStock.warehouseManager'), sortable: true,showOverflow:"ellipsis",filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'materialRequisitionDate', width: '80',title: t('ingredientsStock.materialRequisitionDate'), sortable: true}, |
| | | {field: 'project',width: '100', title: t('order.project'), sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'batch',width: '100', title: t('order.batch'), sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'reviewed',width: '100', title: t('ingredientsStock.reviewed'), sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'reviewedTime', width: '100',title: t('ingredientsStock.reviewedTime'), sortable: true}, |
| | | {field: 'createTime',width: '100', title: t('basicData.creationTime'), sortable: true}, |
| | |
| | | import {toolbarButtonClickEvent} from "@/hook/mouseMove"; |
| | | import {changeFilterEvent,filterChanged} from "@/hook" |
| | | import {divideAuto, multiply} from "@/utils/decimal"; |
| | | import companyInfo from "@/stores/sd/companyInfo"; |
| | | |
| | | //è¯è¨è·å |
| | | const { t } = useI18n() |
| | | const userStore = useUserInfoStore() |
| | | const company = companyInfo() |
| | | const router = useRouter() |
| | | let produceList = ref([]) |
| | | let produceLists = ref([]) |
| | |
| | | } |
| | | |
| | | |
| | | const rowStyle = ({ row,rowIndex }) => { |
| | | if(company.materialOutboundColor){ |
| | | let date = new Date(); |
| | | let date1=new Date(); |
| | | let date2=new Date(); |
| | | date1.setMonth(date.getMonth()-3); |
| | | date2.setMonth(date.getMonth()-6); |
| | | |
| | | const date3=new Date(row.createTime); |
| | | |
| | | const diff = date1.getTime() - date2.getTime(); |
| | | const diffInDays = diff / (1000 * 60 * 60 * 24); |
| | | if(date3>=date1){ |
| | | return { |
| | | backgroundColor: '#ffffff', |
| | | } |
| | | }else if(date3>=date2&&date1>date3){ |
| | | return { |
| | | backgroundColor: '#e0e7c8', |
| | | } |
| | | }else{ |
| | | return { |
| | | backgroundColor: '#afa7ab', |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | </script> |
| | | |
| | | <template> |
| | |
| | | ref="xGrid" |
| | | v-bind="gridOptions" |
| | | v-on="gridEvents" |
| | | :row-style="rowStyle" |
| | | |
| | | > |
| | | <!-- @toolbar-button-click="toolbarButtonClickEvent"--> |
| | |
| | | import {ElMessage} from "element-plus"; |
| | | import { useI18n } from 'vue-i18n' |
| | | import footSum from "@/hook/footSum"; |
| | | import companyInfo from "@/stores/sd/companyInfo"; |
| | | |
| | | //è¯è¨è·å |
| | | const { t } = useI18n() |
| | | |
| | | const company = companyInfo() |
| | | const userStore = useUserInfoStore() |
| | | const username = userStore.user.userName |
| | | const userid = userStore.user.userId |
| | |
| | | return |
| | | } |
| | | let flowData = ref({ |
| | | decValue:company.decValue, |
| | | userId: userid, |
| | | userName: username, |
| | | storageRegion: storageRegion.value, |
| | |
| | | /*import: false, |
| | | export: true, |
| | | print: true,*/ |
| | | export: true, |
| | | zoom: true, |
| | | custom: true |
| | | }, |
| | |
| | | import {Search} from "@element-plus/icons-vue"; |
| | | import { useI18n } from 'vue-i18n' |
| | | import footSum from "@/hook/footSum"; |
| | | import companyInfo from "@/stores/sd/companyInfo"; |
| | | |
| | | //è¯è¨è·å |
| | | const { t } = useI18n() |
| | | const router = useRouter() |
| | | const route = useRoute() |
| | | |
| | | const userStore = useUserInfoStore() |
| | | const username = userStore.user.userName |
| | | const userid = userStore.user.userId |
| | |
| | | {field: 'orderDetail.productName',width: '140', title: t('order.product'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'orderDetail.width', width: '100',title: t('order.width'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'orderDetail.height',width: '100', title: t('order.height'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'area',width: '100', title: t('order.trueArea'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'money',width: '100', title: t('order.grossAmount'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'order.project',width: '100', title: t('order.project'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'order.customerName',width: '100', title: t('order.customers'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'operator', width: '100',title: t('productStock.creator'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'operateTime', width:'140', title: t('productStock.productionDate'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'reviewed', width: '100',title: t('productStock.reviewed'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | |
| | | /*import: false, |
| | | export: true, |
| | | print: true,*/ |
| | | export: true, |
| | | zoom: true, |
| | | custom: true |
| | | }, |
| | |
| | | private String remarks; |
| | | private String processId; |
| | | |
| | | private Double area; |
| | | private Double money; |
| | | |
| | | private OrderDetail orderDetail; |
| | | |
| | | private Order order; |
| | |
| | | private LocalDate reviewedTime; |
| | | private Integer reviewedState; |
| | | private LocalDate createTime; |
| | | private String project; |
| | | private String batch; |
| | | |
| | | |
| | | |
| | |
| | | public interface FinishedOperateLogMapper extends CrudRepository<FinishedOperateLog,Long> { |
| | | FinishedOperateLog getselectFinishedOperateLog(); |
| | | |
| | | Boolean insertIntFinishedOperateLog(@Param("flowCard") FlowCard flowCard ,@Param("userName") String userName,@Param("oddNumber") String oddNumber,@Param("container") String container); |
| | | Boolean insertIntFinishedOperateLog(@Param("flowCard") FlowCard flowCard ,@Param("userName") String userName, |
| | | @Param("oddNumber") String oddNumber,@Param("container") String container, |
| | | @Param("deliveryDetailMoney") Double deliveryDetailMoney,@Param("deliveryDetailArea") Double deliveryDetailArea); |
| | | |
| | | Boolean insertOutFinishedOperateLog(@Param("orderDetail") OrderDetail orderDetail,@Param("userName") String userName,@Param("oddNumber") String oddNumber); |
| | | |
| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.transaction.interceptor.TransactionAspectSupport; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.math.RoundingMode; |
| | | import java.sql.SQLException; |
| | | import java.sql.Wrapper; |
| | | import java.text.SimpleDateFormat; |
| | |
| | | String storageRegion = ""; |
| | | String remark = ""; |
| | | String container = ""; |
| | | int decValue = 0; |
| | | if (object.get("remark") != null) { |
| | | remark = object.get("remark").toString(); |
| | | } |
| | |
| | | if (object.get("userId") != null) { |
| | | userId = object.get("userId").toString(); |
| | | } |
| | | if (object.get("decValue") != null) { |
| | | decValue = Integer.parseInt(object.get("decValue").toString()); |
| | | } |
| | | Log log = new Log(); |
| | | log.setOperator(userName); |
| | | log.setOperatorId(userId); |
| | |
| | | //è·ååå· |
| | | String oddNumber= orderNumberSetting("å
¥åº"); |
| | | for (FlowCard flowCard : flowCardlist) { |
| | | |
| | | Integer calculateType=flowCard.getOrder().getCalculateType(); |
| | | double deliveryDetailMoney = 0.0; |
| | | double deliveryDetailArea = 0.0; |
| | | BigDecimal getComputeArea= BigDecimal.valueOf(flowCard.getOrderDetail().getComputeArea()); |
| | | BigDecimal getQuantity= BigDecimal.valueOf(flowCard.getInventoryQuantity()); |
| | | BigDecimal getPrice= BigDecimal.valueOf(flowCard.getOrderDetail().getPrice()); |
| | | BigDecimal getWidth= BigDecimal.valueOf(flowCard.getOrderDetail().getWidth()); |
| | | BigDecimal getHeight= BigDecimal.valueOf(flowCard.getOrderDetail().getHeight()); |
| | | BigDecimal singlePieceArea =getComputeArea.multiply(getQuantity).setScale(decValue, RoundingMode.HALF_UP) |
| | | .multiply(getPrice).setScale(2, RoundingMode.HALF_UP); |
| | | //æ ¹æ®è®¢åè®¡ç®æ¹å¼è¿è¡éé¢è®¡ç® |
| | | if (calculateType==1){ |
| | | deliveryDetailMoney=singlePieceArea.doubleValue(); |
| | | deliveryDetailArea=getComputeArea.multiply(getQuantity).doubleValue(); |
| | | |
| | | }else if (calculateType==2){ |
| | | //夿å®é
åçé¢ç§¯è·ç»ç®åçé¢ç§¯æ¯å¦ç¸ç ç»ç®æ»é¢ç§¯è·å®é
æ»é¢ç§¯æ¯å¦ç¸ç |
| | | if(Objects.equals(flowCard.getOrderDetail().getArea(), flowCard.getOrderDetail().getComputeArea())&&Objects.equals(flowCard.getOrderDetail().getGrossArea(), flowCard.getOrderDetail().getComputeGrossArea())){ |
| | | deliveryDetailMoney=getWidth.multiply(getHeight).multiply(getQuantity).divide(BigDecimal.valueOf(1000000), decValue, RoundingMode.HALF_UP) |
| | | .multiply(getPrice).setScale(2, RoundingMode.HALF_UP).doubleValue(); |
| | | deliveryDetailArea=getWidth.multiply(getHeight).multiply(getQuantity).divide(BigDecimal.valueOf(1000000), decValue, RoundingMode.HALF_UP).doubleValue(); |
| | | }else{ |
| | | deliveryDetailMoney=singlePieceArea.doubleValue(); |
| | | deliveryDetailArea=getComputeArea.multiply(getQuantity).doubleValue(); |
| | | } |
| | | }else if (calculateType==3){ |
| | | deliveryDetailMoney=getQuantity.multiply(getPrice).setScale(2, RoundingMode.HALF_UP).doubleValue(); |
| | | deliveryDetailArea=getComputeArea.multiply(getQuantity).doubleValue(); |
| | | |
| | | }else if (calculateType==4){ |
| | | //夿å®é
åçé¢ç§¯è·ç»ç®åçé¢ç§¯æ¯å¦ç¸ç ç»ç®æ»é¢ç§¯è·å®é
æ»é¢ç§¯æ¯å¦ç¸ç |
| | | if(Objects.equals(flowCard.getOrderDetail().getArea(), flowCard.getOrderDetail().getComputeArea())&&Objects.equals(flowCard.getOrderDetail().getGrossArea(), flowCard.getOrderDetail().getComputeGrossArea())){ |
| | | deliveryDetailMoney=getWidth.multiply(getHeight).multiply(getQuantity).multiply(getPrice). |
| | | divide(BigDecimal.valueOf(1000000), 2, RoundingMode.HALF_UP).doubleValue(); |
| | | deliveryDetailArea=getWidth.multiply(getHeight).multiply(getQuantity).divide(BigDecimal.valueOf(1000000), decValue, RoundingMode.HALF_UP).doubleValue(); |
| | | }else{ |
| | | deliveryDetailMoney=getComputeArea.multiply(getQuantity).multiply(getPrice).setScale(decValue, RoundingMode.HALF_UP).doubleValue(); |
| | | deliveryDetailArea=getComputeArea.multiply(getQuantity).doubleValue(); |
| | | } |
| | | } |
| | | |
| | | |
| | | //æ·»å åºå
¥åºè®°å½ |
| | | finishedOperateLogMapper.insertIntFinishedOperateLog(flowCard,userName,oddNumber,container); |
| | | finishedOperateLogMapper.insertIntFinishedOperateLog(flowCard,userName,oddNumber,container,deliveryDetailMoney,deliveryDetailArea); |
| | | Integer finishedGoodsInventorycount = finishedGoodsInventoryMapper.findOrderNumberdcount(flowCard.getOrder().getOrderId(),flowCard.getOrderNumber()); |
| | | Integer ordersum = finishedGoodsInventoryMapper.findOrderQuantity(flowCard.getOrder().getOrderId()); |
| | | Integer ordernumbersum = finishedGoodsInventoryMapper.findOrderNumberdsum(flowCard.getOrder().getOrderId()); |
| | |
| | | <result column="area" property="order.area"/> |
| | | <result column="batch" property="order.batch"/> |
| | | <result column="order_quantity" property="order.quantity"/> |
| | | <result column="calculate_type" property="order.calculateType"/> |
| | | |
| | | <result column="building_number" property="orderDetail.buildingNumber"/> |
| | | <result column="width" property="orderDetail.width"/> |
| | |
| | | <result column="product_name" property="orderDetail.productName"/> |
| | | <result column="product_id" property="orderDetail.productId"/> |
| | | <result column="quantity" property="orderDetail.quantity"/> |
| | | |
| | | <result column="price" property="orderDetail.price"/> |
| | | <result column="areas" property="orderDetail.area"/> |
| | | <result column="gross_area" property="orderDetail.grossArea"/> |
| | | <result column="compute_area" property="orderDetail.computeArea"/> |
| | | <result column="compute_gross_area" property="orderDetail.computeGrossArea"/> |
| | | </resultMap> |
| | | |
| | | <!--æ å°æååºåº--> |
| | |
| | | o.area, |
| | | fc.process_id, |
| | | fc.received_quantity, |
| | | o.batch |
| | | o.batch, |
| | | o.calculate_type, |
| | | od.compute_area, |
| | | od.price, |
| | | od.area as areas, |
| | | od.gross_area, |
| | | od.compute_gross_area |
| | | from (select *,min(inventory_quantity) as min_inventory_quantity from pp.flow_card group by order_id,order_number,process_id) as fc |
| | | left join sd.order_detail od on fc.order_id=od.order_id and fc.order_number=od.order_number inner join sd.`order` o on |
| | | o.order_id=fc.order_id |
| | |
| | | <result column="remarks" property="remarks"/> |
| | | <result column="is_state" property="isState"/> |
| | | <result column="process_id" property="processId"/> |
| | | <result column="money" property="money"/> |
| | | <result column="area" property="area"/> |
| | | |
| | | <result column="width" property="orderDetail.width"/> |
| | | <result column="height" property="orderDetail.height"/> |
| | |
| | | <result column="project" property="order.project"/> |
| | | <result column="customer_name" property="order.customerName"/> |
| | | <result column="delivery_address" property="order.deliveryAddress"/> |
| | | <result column="project" property="order.project"/> |
| | | <result column="customer_name" property="order.customerName"/> |
| | | |
| | | </resultMap> |
| | | |
| | |
| | | fol.reviewed, |
| | | fol.reviewed_time, |
| | | fol.type, |
| | | fol.remarks |
| | | fol.remarks, |
| | | fol.area, |
| | | fol.money, |
| | | o.customer_name, |
| | | o.project |
| | | from (select * |
| | | from mm.finished_operate_log aa where aa.operate_type = #{type} and aa.status!='å·²ä½åº') fol |
| | | left join sd.order_detail od on fol.order_id = od.order_id and fol.operation_number = od.order_number |
| | |
| | | </if> |
| | | <if test="finishedOperateLog.remarks != null and finishedOperateLog.remarks != ''"> |
| | | and fol.remarks regexp #{finishedOperateLog.remarksr} |
| | | </if> |
| | | <if test="finishedOperateLog.area != null and finishedOperateLog.area != ''"> |
| | | and fol.area regexp #{finishedOperateLog.area} |
| | | </if> |
| | | <if test="finishedOperateLog.money != null and finishedOperateLog.money != ''"> |
| | | and fol.money regexp #{finishedOperateLog.money} |
| | | </if> |
| | | <if test="finishedOperateLog.order !=null and (finishedOperateLog.order.customerName != null and finishedOperateLog.order.customerName != '')"> |
| | | and o.customer_name regexp #{finishedOperateLog.order.customerName} |
| | | </if> |
| | | <if test="finishedOperateLog.order !=null and (finishedOperateLog.order.project != null and finishedOperateLog.order.project != '')"> |
| | | and o.project regexp #{finishedOperateLog.order.project} |
| | | </if> |
| | | </where> |
| | | order by fol.operate_time desc |
| | |
| | | </if> |
| | | <if test="finishedOperateLog.remarks != null and finishedOperateLog.remarks != ''"> |
| | | and fol.remarks regexp #{finishedOperateLog.remarksr} |
| | | </if> |
| | | <if test="finishedOperateLog.area != null and finishedOperateLog.area != ''"> |
| | | and fol.area regexp #{finishedOperateLog.area} |
| | | </if> |
| | | <if test="finishedOperateLog.money != null and finishedOperateLog.money != ''"> |
| | | and fol.money regexp #{finishedOperateLog.money} |
| | | </if> |
| | | <if test="finishedOperateLog.order !=null and (finishedOperateLog.order.customerName != null and finishedOperateLog.order.customerName != '')"> |
| | | and o.customer_name regexp #{finishedOperateLog.order.customerName} |
| | | </if> |
| | | <if test="finishedOperateLog.order !=null and (finishedOperateLog.order.project != null and finishedOperateLog.order.project != '')"> |
| | | and o.project regexp #{finishedOperateLog.order.project} |
| | | </if> |
| | | </where> |
| | | order by fol.`status` desc |
| | |
| | | quantity, |
| | | operate_time, |
| | | status, |
| | | remarks |
| | | remarks, |
| | | money, |
| | | area |
| | | ) |
| | | values ( |
| | | #{oddNumber} ,#{flowCard.order.orderId},#{flowCard.processId},#{flowCard.orderNumber},"å
¥åº",#{userName},#{flowCard.inventoryQuantity},now(),"æªå®¡æ ¸",#{container} |
| | | #{oddNumber} ,#{flowCard.order.orderId},#{flowCard.processId},#{flowCard.orderNumber},"å
¥åº",#{userName}, |
| | | #{flowCard.inventoryQuantity},now(),"æªå®¡æ ¸",#{container},#{deliveryDetailMoney},#{deliveryDetailArea} |
| | | ) |
| | | </insert> |
| | | |
| | |
| | | <if test="materialOutbound.reviewed != null and materialOutbound.reviewed != ''"> |
| | | and mo.reviewed regexp #{materialOutbound.reviewed} |
| | | </if> |
| | | <if test="materialOutbound.project != null and materialOutbound.project != ''"> |
| | | and mo.project regexp #{materialOutbound.project} |
| | | </if> |
| | | <if test="materialOutbound.batch != null and materialOutbound.batch != ''"> |
| | | and mo.batch regexp #{materialOutbound.batch} |
| | | </if> |
| | | </where> |
| | | order by mo.create_time desc |
| | | limit #{offset},#{pageSize}; |
| | |
| | | </if> |
| | | <if test="materialOutbound.reviewed != null and materialOutbound.reviewed != ''"> |
| | | and mo.reviewed regexp #{materialOutbound.reviewed} |
| | | </if> |
| | | <if test="materialOutbound.project != null and materialOutbound.project != ''"> |
| | | and mo.project regexp #{materialOutbound.project} |
| | | </if> |
| | | <if test="materialOutbound.batch != null and materialOutbound.batch != ''"> |
| | | and mo.batch regexp #{materialOutbound.batch} |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | |
| | | <insert id="insertMaterialOutbound" useGeneratedKeys="true" > |
| | | insert into mm.material_outbound(material_outbound_id,material_requisition_personnel,material_requisition_team,order_id,outbound_type, |
| | | warehouse_manager,material_requisition_date,reviewed_state,create_time) |
| | | warehouse_manager,material_requisition_date,reviewed_state,create_time,project,batch) |
| | | values ( |
| | | #{number} ,#{materialOutbound.materialRequisitionPersonnel},#{materialOutbound.materialRequisitionTeam}, |
| | | #{materialOutbound.orderId},#{materialOutbound.outboundType},#{materialOutbound.warehouseManager},#{materialOutbound.materialRequisitionDate}, |
| | | 0,now() |
| | | 0,now(),#{materialOutbound.project},#{materialOutbound.batch} |
| | | ) |
| | | </insert> |
| | | |
| | |
| | | order_id=#{materialOutbound.orderId}, |
| | | outbound_type=#{materialOutbound.outboundType}, |
| | | warehouse_manager=#{materialOutbound.warehouseManager}, |
| | | material_requisition_date=#{materialOutbound.materialRequisitionDate} |
| | | material_requisition_date=#{materialOutbound.materialRequisitionDate}, |
| | | project=#{materialOutbound.project}, |
| | | batch=#{materialOutbound.batch} |
| | | where material_outbound_id = #{number} |
| | | </insert> |
| | | |