| | |
| | | { |
| | | 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( |