diff --git a/warehousing-system/project_web_ui/src/views/component/instorehouse/add/purchaseAdd.vue b/warehousing-system/project_web_ui/src/views/component/instorehouse/add/purchaseAdd.vue index 3dff2858..46b1ae1a 100644 --- a/warehousing-system/project_web_ui/src/views/component/instorehouse/add/purchaseAdd.vue +++ b/warehousing-system/project_web_ui/src/views/component/instorehouse/add/purchaseAdd.vue @@ -42,7 +42,7 @@ - + + + + 供货单位: + + + + + + + + + @@ -72,9 +89,9 @@ - + - 仓库名称: + 入库仓库: @@ -115,8 +132,8 @@ 商品信息添加货物 - + :row-style="{height: '40px'}" class="TableInput"> + - - + - + @@ -153,47 +160,22 @@ - - - - - - - - - - - + - - - - - - - - - - - - + - + - + - + - + 删除 @@ -528,5 +510,8 @@ .el-input__inner { height: 36px; } + .TableInput .el-input /deep/ .el-input__inner { + text-align: center; + } diff --git a/warehousing-system/project_web_ui/src/views/component/instorehouse/add/purchaseShow.vue b/warehousing-system/project_web_ui/src/views/component/instorehouse/add/purchaseShow.vue index 39b1a700..317884a7 100644 --- a/warehousing-system/project_web_ui/src/views/component/instorehouse/add/purchaseShow.vue +++ b/warehousing-system/project_web_ui/src/views/component/instorehouse/add/purchaseShow.vue @@ -37,15 +37,25 @@ - + + + + 供货单位: + + + + + {{purchaseForm.custName}} + @@ -60,7 +70,7 @@ - + - 仓库名称: + 入库仓库: @@ -91,33 +101,19 @@ - + - + - + - + - + - + - - - - - - - - - - - - - - - + @@ -137,22 +133,29 @@ purchaseId: '', product: '', barCode: '', + custId:'', + custName:'', purchaseDate:'', purchaseNo:'', supplier: '', storehouseName:'', - supplierName:'', + storehouseId:"", + supplierName:'', + supplierId:'', count: '', storehouse: '', status: '', products:[] }, activeNames: ['1'], + custList:[] } }, mounted() { }, - created() {}, + created() { + + }, methods: { handleReturn() { this.$emit("reloadlist"); @@ -163,8 +166,22 @@ const { data: result } = await this.$http.get(`/purchasenew/fetchDetailsBySid/${row.sid}`) if (result.code==200) { _this.purchaseForm=result.data + this.getcustListList() } - } + }, + async getcustListList () { + const { data: result } = await this.$http.get('/v1/shstorehouse/fetchEntList') + if (result.code == 200){ + this.custList = result.data + } + if(this.purchaseForm.custId){ + this.custList.forEach((v, i) => { + if(v.sid == this.purchaseForm.custId){ + this.purchaseForm.custName = v.enterpriseName + } + }) + } + }, }, }; diff --git a/warehousing-system/project_web_ui/src/views/component/instorehouse/purchase.vue b/warehousing-system/project_web_ui/src/views/component/instorehouse/purchase.vue index e0d56624..799cc18a 100644 --- a/warehousing-system/project_web_ui/src/views/component/instorehouse/purchase.vue +++ b/warehousing-system/project_web_ui/src/views/component/instorehouse/purchase.vue @@ -24,7 +24,7 @@ @@ -40,17 +40,17 @@ align="center" width="180"> - - + --> + width="140"> 出库商品明细添加货物 + :row-style="{height: '40px'}" class="TableInput"> @@ -287,17 +287,19 @@ }, clearList() { this.purchaseForm={ + sid:'', purchaseId: '', product: '', barCode: '', applicationDate:'', no:'', creatorName:'', - storeHouseName:'', + storeHouseName:'', storeHouseSid:"", custerName:'', custerSid:'', - list:[] + list:[], + outDate:"" } }, saveOrUpdate(){ @@ -517,5 +519,8 @@ .el-input__inner { height: 36px; } + .TableInput .el-input /deep/ .el-input__inner { + text-align: center; + } diff --git a/warehousing-system/project_web_ui/src/views/component/outStorehouseManagement/add/outListShow.vue b/warehousing-system/project_web_ui/src/views/component/outStorehouseManagement/add/outListShow.vue index c2bcde77..c28fdc5e 100644 --- a/warehousing-system/project_web_ui/src/views/component/outStorehouseManagement/add/outListShow.vue +++ b/warehousing-system/project_web_ui/src/views/component/outStorehouseManagement/add/outListShow.vue @@ -39,7 +39,7 @@ - 供货商名称: + 供货单位: @@ -63,23 +63,23 @@ - 客户名称: + 出库仓库: - {{purchaseForm.custName}} + {{purchaseForm.storeHouseName}} - 仓库名称: + 出库日期: - {{purchaseForm.storehouseName}} + {{purchaseForm.outDate}} @@ -94,18 +94,17 @@ - - + - + - + - + @@ -124,20 +123,22 @@ return { viewTitle: "出库信息", purchaseForm: { + sid:'', purchaseId: '', product: '', barCode: '', - purchaseDate:'', - purchaseNo:'', - supplier: '', - storehouseName:'', - supplierName:'', - count: '', - storehouse: '', - status: '', - products:[] + applicationDate:'', + no:'', + creatorName:'', + storeHouseName:'', + storeHouseSid:"", + custerName:'', + custerSid:'', + list:[], + outDate:"" }, activeNames: ['1'], + storehouseList:[] } }, mounted() { @@ -153,8 +154,22 @@ const { data: result } = await this.$http.get(`/output/getOutStorehouse/${row.sid}`) if (result.code==200) { _this.purchaseForm=result.data + this.getStorehouseList() } - } + }, + async getStorehouseList () { + const { data: result } = await this.$http.get("/v1/shstorehouse/listAll") + if (result.code == 200){ + this.storehouseList = result.data + } + if(this.purchaseForm.storeHouseSid){ + this.storehouseList.forEach((v, i) => { + if(v.sid == this.purchaseForm.storeHouseSid){ + this.purchaseForm.storeHouseName = v.name + } + }) + } + }, }, }; diff --git a/warehousing-system/project_web_ui/src/views/component/outStorehouseManagement/add/pickingShow.vue b/warehousing-system/project_web_ui/src/views/component/outStorehouseManagement/add/pickingShow.vue new file mode 100644 index 00000000..44c6fafa --- /dev/null +++ b/warehousing-system/project_web_ui/src/views/component/outStorehouseManagement/add/pickingShow.vue @@ -0,0 +1,243 @@ + + + + {{ viewTitle }} + + 返回 + + + + + + 主体信息 + + + + + 订单编号: + + + + + {{purchaseForm.no}} + + + + + 订单日期: + + + + + {{purchaseForm.applicationDate}} + + + + + + + + 供货单位: + + + + + {{purchaseForm.custerName}} + + + + + 采购申请人: + + + + + {{purchaseForm.creatorName}} + + + + + + + + + 出库仓库: + + + + + {{purchaseForm.storeHouseName}} + + + + + + 出库日期: + + + + + {{purchaseForm.outDate}} + + + + + + + + 商品信息 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/warehousing-system/project_web_ui/src/views/component/outStorehouseManagement/outList.vue b/warehousing-system/project_web_ui/src/views/component/outStorehouseManagement/outList.vue index 6c7c2929..913806ce 100644 --- a/warehousing-system/project_web_ui/src/views/component/outStorehouseManagement/outList.vue +++ b/warehousing-system/project_web_ui/src/views/component/outStorehouseManagement/outList.vue @@ -223,7 +223,7 @@ methods: { }, async deletePurchase (purchase) { if(purchase.state=='2'){ - this.$message.error('已经拣货的出库订单不能删除') + this.$message.error('已拣货的出库订单不能删除') }else{ const sids = [] sids.push(purchase.sid) @@ -233,7 +233,7 @@ methods: { type: 'warning' }).catch(error => error) if (result !== 'confirm') return this.$message.info('用户取消操作') - const { data: resultDB } = await this.$http.post('/purchasenew/delBySids', sids) + const { data: resultDB } = await this.$http.post('/output/delBySids', sids) if (resultDB.code == 200) this.$message.success('订单删除成功') this.getPurchaseList() @@ -252,7 +252,7 @@ methods: { console.log(row.state); if(row.state=='2'){ this.$message({ - message: '已经拣货的出库订单不能编辑', + message: '已拣货的出库订单不能编辑', type: 'warning' }); }else{ diff --git a/warehousing-system/project_web_ui/src/views/component/outStorehouseManagement/pickingManagement.vue b/warehousing-system/project_web_ui/src/views/component/outStorehouseManagement/pickingManagement.vue index 0233451d..98a78f65 100644 --- a/warehousing-system/project_web_ui/src/views/component/outStorehouseManagement/pickingManagement.vue +++ b/warehousing-system/project_web_ui/src/views/component/outStorehouseManagement/pickingManagement.vue @@ -1,6 +1,6 @@ - + @@ -64,6 +64,21 @@ align="center" width="120"> + + + 查看详情 + + @@ -78,7 +93,7 @@ - + @@ -86,14 +101,17 @@ import ButtonBar from '@/components/ButtonBar' import Pagination from '@/components/pagination' import pageye from '@/components/pagination/pageye' +import pickingShow from '@/views/component/outStorehouseManagement/add/pickingShow.vue' export default { components: { ButtonBar, Pagination, pageye, + pickingShow }, data () { return { + viewState: 1, btndisabled: false, isSearchShow: false, queryInfo: { @@ -139,6 +157,9 @@ export default { }, this.getPickingList() }, + resetState() { + this.viewState = 1 + }, indexMethod(index) { var pagestart = (this.queryInfo.current - 1) * this.queryInfo.size var pageindex = index + 1 + pagestart @@ -160,7 +181,11 @@ export default { } else{ return '' } - }, + }, + LookPurchase(row) { + this.viewState = 4 + this.$refs['storeAdd'].showEdit(row) + }, doClose() { this.$store.dispatch('tagsView/delView', this.$route) this.$router.go(-1)