Merge branch 'master' of http://115.159.85.185:8098/r/HuaYiZhongHeng/BaiBuLiKu
| | |
| | | this.$refs.gridBody.open(); |
| | | }; |
| | | } |
| | | this.buttons.unshift({ |
| | | //ä¹å¯ä»¥ç¨pushæè
spliceæ¹æ³æ¥ä¿®æ¹buttonsæ°ç» |
| | | name: "å¼å¯æå¡", //æé®åç§° |
| | | icon: "el-icon-document", //æé®å¾æ vue2çæ¬è§iviewææ¡£iconï¼vue3çæ¬è§element uiææ¡£icon(注æä¸æ¯element pulsææ¡£) |
| | | type: "primary", //æé®æ ·å¼vue2çæ¬è§iviewææ¡£buttonï¼vue3çæ¬è§element uiææ¡£button |
| | | onClick: function () { |
| | | this.$Message.success("å¼å¯æå¡"); |
| | | }, |
| | | }); |
| | | // this.buttons.unshift({ |
| | | // //ä¹å¯ä»¥ç¨pushæè
spliceæ¹æ³æ¥ä¿®æ¹buttonsæ°ç» |
| | | // name: "å¼å¯æå¡", //æé®åç§° |
| | | // icon: "el-icon-document", //æé®å¾æ vue2çæ¬è§iviewææ¡£iconï¼vue3çæ¬è§element uiææ¡£icon(注æä¸æ¯element pulsææ¡£) |
| | | // type: "primary", //æé®æ ·å¼vue2çæ¬è§iviewææ¡£buttonï¼vue3çæ¬è§element uiææ¡£button |
| | | // onClick: function () { |
| | | // this.$Message.success("å¼å¯æå¡"); |
| | | // }, |
| | | // }); |
| | | }, |
| | | onInited() { |
| | | //æ¡æ¶åå§åé
ç½®å |
| | |
| | | field: "palletCode", |
| | | title: "æçç¼å·", |
| | | type: "string", |
| | | width: 200, |
| | | width: 160, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | field: "currentAddress", |
| | | title: "å½åä½ç½®", |
| | | type: "string", |
| | | width: 120, |
| | | width: 110, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "nextAddress", |
| | | title: "ä¸ä¸ä½ç½®", |
| | | type: "string", |
| | | width: 120, |
| | | width: 110, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | field: "dispatchertime", |
| | | title: "ä»»å¡ä¸åæ¶é´", |
| | | type: "datetime", |
| | | width: 150, |
| | | width: 110, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | field: "modifier", |
| | | title: "ä¿®æ¹äºº", |
| | | type: "string", |
| | | width: 100, |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | { |
| | | path: '/DtBoxing', |
| | | name: 'DtBoxing', |
| | | component: () => import('@/views/widesea_wms/stock/DtBoxing.vue'), |
| | | component: () => import('@/views/widesea_wms/stock/DtBoxingInfo.vue'), |
| | | meta: { |
| | | keepAlive: false |
| | | } |
| | |
| | | { field: 'createDate', title: 'å建æ¶é´', type: 'int', sort: true, width: 100, hidden: true, align: 'left' }, |
| | | ], |
| | | detailColumns: [ |
| | | { title: "çµè¯åºåå·", field: "serialNumber", type: "text" }, |
| | | { title: "ç©æç¼å·", field: "materielCode", type: "text" }, |
| | | { title: "ç©æåç§°", field: "materielName", type: "text" }, |
| | | { title: "åºåç¶æ", field: "status", type: "text" }, |
| | |
| | | } |
| | | }; |
| | | }, |
| | | |
| | | methods: { |
| | | onInit() { |
| | | // this.dropdownItems.unshift({ |
| | | // name: 'æé®', //æé®åç§° |
| | | // icon: 'el-icon-document', //æé®å¾æ vue2çæ¬è§iviewææ¡£iconï¼vue3çæ¬è§element uiææ¡£icon(注æä¸æ¯element pulsææ¡£) |
| | | // type: 'primary', //æé®æ ·å¼vue2çæ¬è§iviewææ¡£buttonï¼vue3çæ¬è§element uiææ¡£button |
| | | // value: '321', //æé®å¼ |
| | | // onClick: function () { |
| | | // this.$Message.success('ç¹å»äºæé®'); |
| | | // } |
| | | // }); |
| | | this.dropdownItems.unshift({ |
| | | name: 'å é¤', //æé®åç§° |
| | | icon: 'el-icon-document', //æé®å¾æ vue2çæ¬è§iviewææ¡£iconï¼vue3çæ¬è§element uiææ¡£icon(注æä¸æ¯element pulsææ¡£) |
| | | type: 'primary', //æé®æ ·å¼vue2çæ¬è§iviewææ¡£buttonï¼vue3çæ¬è§element uiææ¡£button |
| | | value: '321', //æé®å¼ |
| | | onClick: function () { |
| | | let rows = this.table.columns; |
| | | if (rows.length == 0) return this.$error("è¯·éæ©æ°æ®!"); |
| | | if (rows.length > 1) return this.$error("åªè½éæ©ä¸æ¡æ°æ®!"); |
| | | this.http |
| | | .post("api/DtBoxing/Delete?locationID=" + rows[0].palletCode, "", "æ°æ®å¤çä¸...") |
| | | .then((x) => { |
| | | if (x.status) { |
| | | this.$Message.success('æå.'); |
| | | this.refresh(); |
| | | } else { |
| | | return this.$error(x.message); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | }, |
| | | }, |
| | | created() { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | *Authorï¼jxx |
| | | *Contactï¼283591387@qq.com |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *ä¸å¡è¯·å¨@/extension/widesea_wms/invoices/Dt_InboundOrder.jsæ¤å¤ç¼å |
| | | --> |
| | | <template> |
| | | <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields" |
| | | :editFormOptions="editFormOptions" :searchFormFields="searchFormFields" :searchFormOptions="searchFormOptions" |
| | | :table="table" :extend="extend"> |
| | | </view-grid> |
| | | </template> |
| | | <script> |
| | | import extend from "@/extension/widesea_wms/stock/DtBoxingInfo.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: 'id', |
| | | footer: "Foots", |
| | | cnName: 'ç»çä¿¡æ¯', |
| | | name: 'stock/DtBoxingInfo', |
| | | url: "/BoxingInfo/", |
| | | sortName: "id" |
| | | }); |
| | | const editFormFields = ref({ |
| | | |
| | | }); |
| | | const editFormOptions = ref([ |
| | | |
| | | ]); |
| | | const searchFormFields = ref({}); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { "title": "æçæ¡ç ", "field": "palletCode", type: "text" }, |
| | | { "title": "ç©æç¼å·", "field": "materielCode", type: "text" }, |
| | | { "title": "åºåç¶æ", "field": "status", type: "select", dataKey: "StockState", data: [] }, |
| | | { "title": "ç»çç±»å", "field": "groupType", type: "select", dataKey: "GroupType", data: [] }, |
| | | ] |
| | | ]); |
| | | const columns = ref([ |
| | | { field: 'id', title: 'åºåID', type: 'int', width: 110, readonly: true, hidden: true, require: true, align: 'left' }, |
| | | { field: 'palletCode', title: 'æçæ¡ç ', type: 'string', width: 110, align: 'left', sort: true, link: true, }, |
| | | { field: 'locationCode', title: 'åºä½', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'isFull', title: 'æ¯å¦æ»¡ç', type: 'bool', width: 110, align: 'left' }, |
| | | // { field: 'state', title: 'åºåç¶æ', type: 'int', width: 110, align: 'left', bind: { key: "StockState", data: [] } }, |
| | | { field: 'remark', title: '夿³¨', type: 'string', width: 120, align: 'left' }, |
| | | { field: 'createDate', title: 'å建æ¶é´', type: 'int', sort: true, width: 100, align: 'left' }, |
| | | ]); |
| | | |
| | | const detail = ref({ |
| | | cnName: "ç»çæç»ä¿¡æ¯", |
| | | table: "DtBoxingInfoDetail", |
| | | columns: [ |
| | | { title: "çµè¯åºåå·", field: "serialNumber", type: "text" }, |
| | | { title: "ç©æç¼å·", field: "materielCode", type: "text" }, |
| | | { title: "ç©æåç§°", field: "materielName", type: "text" }, |
| | | { title: "åºåç¶æ", field: "status", type: "text" }, |
| | | { title: "ç»çæ°é", field: "stockQuantity", type: "text" }, |
| | | { title: "å建æ¶é´", field: "createDate", type: "text" }, |
| | | ], |
| | | sortName: "id", |
| | | key: "BoxingInfoId" |
| | | }); |
| | | return { |
| | | table, |
| | | extend, |
| | | editFormFields, |
| | | editFormOptions, |
| | | searchFormFields, |
| | | searchFormOptions, |
| | | columns, |
| | | detail, |
| | | }; |
| | | }, |
| | | }); |
| | | </script> |
| | |
| | | { "title": "åºåç±»å", "field": "isFull", type: "select", dataKey: "isFull", data: [] }, |
| | | ],[ |
| | | { "title": "åºä½å·", "field": "locationCode", type: "text" }, |
| | | // { "title": "å··é", "field": "roadwayNo", type: "text" }, |
| | | ] |
| | | ]); |
| | | const columns = ref( |
| | |
| | | |
| | | var result = JsonConvert.DeserializeObject<RequsetCellInfo>(json.ToString()); |
| | | |
| | | var area = _areaInfoRepository.QueryFirst(x => x.AreaID == result.LocationArea); |
| | | //var area = _areaInfoRepository.QueryFirst(x => x.AreaID == result.LocationArea); |
| | | |
| | | var info = _stockInfoRepository.QueryFirst(x => x.LocationCode == result.LocationID && x.AreaCode == area.AreaCode); |
| | | var location = _locationRepository.QueryFirst(x => x.LocationCode == result.LocationID && x.AreaId == result.LocationArea); |
| | | |
| | | if (location != null) |
| | | { |
| | | throw new Exception("请æ±å¼å¸¸ï¼æªç¥åºä½"); |
| | | } |
| | | |
| | | var info = _stockInfoRepository.QueryFirst(x => x.LocationCode == result.LocationID && x.LocationId == location.Id); |
| | | |
| | | //todo |
| | | if (info != null) |
| | |
| | | { |
| | | string[] chineseNumbers = new string[] { "é¶", "ä¸", "äº", "ä¸", "å", "äº", "å
", "ä¸", "å
«", "ä¹" }; |
| | | var locationList = new List<DtLocationInfo>(); |
| | | for (int line = 7; line <= x; line++) |
| | | for (int line = 3; line <= x; line++) |
| | | { |
| | | for (int column = 1; column <= y; column++) |
| | | { |
| | |
| | | LocationType = locType, |
| | | Remark = "", |
| | | Depth = locType > 1 ? (((line - 1) % 4) + 1) == 2 || (((line - 1) % 4) + 1) == 3 ? 1 : 2 : 1, |
| | | RoadwayNo = locType > 1 ? $"JZSC{((line - 1) / 4) + 1}" : $"JZSC{((line - 1) / 2) + 1}", |
| | | RoadwayNo = locType > 1 ? $"GWSC{((line - 1) / 4) + 1}" : $"GWSC{((line - 1) / 2) + 1}", |
| | | LocationStatus = LocationEnum.Free.ObjToInt(), |
| | | AreaId = areaId, |
| | | Creater = "systeam", |