From 73bbb92f7a3316711191ef17c3c58ef1fd6f6bdb Mon Sep 17 00:00:00 2001
From: fengdong777 <1478994744@qq.com>
Date: Tue, 1 Aug 2023 15:27:15 +0800
Subject: [PATCH] 8.1
---
.../instorehouse/add/purchaseShow.vue | 302 ++++++++++++++++++
.../views/component/instorehouse/purchase.vue | 62 ++--
2 files changed, 345 insertions(+), 19 deletions(-)
create mode 100644 warehousing-system/project_web_ui/src/views/component/instorehouse/add/purchaseShow.vue
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
new file mode 100644
index 00000000..9ca93cdf
--- /dev/null
+++ b/warehousing-system/project_web_ui/src/views/component/instorehouse/add/purchaseShow.vue
@@ -0,0 +1,302 @@
+
+
+
+
+
+
+
+
+
+ 仓库名称
+
+
+
+
+ {{ temp.name }}
+
+
+
+
+ 仓库简称
+
+
+
+
+ {{ temp.simpleName }}
+
+
+
+
+
+
+ 仓库编码
+
+
+
+
+ {{ temp.code }}
+
+
+
+
+ 联系电话
+
+
+
+
+ {{ temp.linkerPhone }}
+
+
+
+
+
+
+ 联系人
+
+
+
+
+ {{ temp.linkerName }}
+
+
+
+
+ 省-市-县
+
+
+
+
+ {{ temp.provinceName }} - {{ temp.cityName }} -
+ {{ temp.countyName }}
+
+
+
+
+
+
+ 详细地址
+
+
+
+
+ {{ temp.address }}
+
+
+
+
+
+
+
+ 区域名称
+
+
+
+
+ {{ temp.regionName }}
+
+
+
+
+ 仓库经纬度
+
+
+
+
+ {{ temp.lon }} , {{ temp.lat }}
+
+
+
+
+
+
+
+ 房源
+
+
+
+
+ {{ temp.housingResource }}
+
+
+
+
+ 库房面积
+
+
+
+
+ {{ temp.acreage }}
+
+
+
+
+
+
+
+ 库房高度
+
+
+
+
+ {{ temp.storeyHeight }}
+
+
+
+
+ 月租金
+
+
+
+
+ {{ temp.monthlyPrice }}
+
+
+
+
+
+
+ 库房性质名称
+
+
+
+
+ {{ temp.attributeNames }}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
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 359eb51b..ff216a08 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
@@ -71,6 +71,13 @@
width="180"
align="center">
+
修改
删除
@@ -91,6 +98,7 @@
+
@@ -100,12 +108,14 @@ import ButtonBar from '@/components/ButtonBar'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import divadd from '@/views/component/instorehouse/add/purchaseAdd.vue'
+// import storeShow from '@/views/component/instorehouse/add/purchaseShow.vue'
export default {
components: {
ButtonBar,
Pagination,
pageye,
- divadd
+ divadd,
+ // storeShow
},
data () {
return {
@@ -217,28 +227,42 @@ export default {
}
},
async deletePurchase (purchase) {
- const sids = []
- sids.push(purchase.sid)
- const result = await this.$confirm('此操作将永久删除订单' + purchase.purchaseNo + ', 是否继续?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).catch(error => error)
- if (result !== 'confirm') return this.$message.info('用户取消操作')
- const { data: resultDB } = await this.$http.post('/purchasenew/delBySids', sids)
- if (resultDB.code == 200)
- this.$message.success('订单删除成功')
- this.getPurchaseList()
+ if(purchase.state=='已入库'){
+ this.$message.error('已经入库的采购订单不能编辑')
+ }else{
+ const sids = []
+ sids.push(purchase.sid)
+ const result = await this.$confirm('此操作将永久删除订单' + purchase.purchaseNo + ', 是否继续?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).catch(error => error)
+ if (result !== 'confirm') return this.$message.info('用户取消操作')
+ const { data: resultDB } = await this.$http.post('/purchasenew/delBySids', sids)
+ if (resultDB.code == 200)
+ this.$message.success('订单删除成功')
+ this.getPurchaseList()
+ }
},
async open (row) {
- this.viewState = 3
- this.$refs['divadd'].showEdit(row)
+ if(row.state=='已入库'){
+ this.$message({
+ message: '已经入库的采购订单不能编辑',
+ type: 'warning'
+ });
+ }else{
+ this.viewState = 3
+ this.$refs['divadd'].showEdit(row)
+ }
},
-
- toAdd() {
- this.viewState = 2
- this.$refs['divadd'].showAdd()
+ LookPurchase(row) {
+ this.viewState = 4
+ this.$refs['storeAdd'].showEdit(row)
+ },
+ toAdd() {
+ this.viewState = 2
+ this.$refs['divadd'].showAdd()
},
doClose() {
this.$store.dispatch('tagsView/delView', this.$route)