From eeb4364113ee085bc643c72260e39df2cc215e8c Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期一, 27 十一月 2023 18:48:37 +0800
Subject: [PATCH] 采购管理 确认的时候校验必填字段是否录入,没有则弹编辑弹框,否则 请求接口提交
---
src/views/productManage/product/DetailProduct.vue | 28 +++++++++++++++-------------
1 files changed, 15 insertions(+), 13 deletions(-)
diff --git a/src/views/productManage/product/DetailProduct.vue b/src/views/productManage/product/DetailProduct.vue
index 6a628ad..70d8732 100644
--- a/src/views/productManage/product/DetailProduct.vue
+++ b/src/views/productManage/product/DetailProduct.vue
@@ -1,6 +1,6 @@
<template>
<div class="detail-view">
- <el-drawer :visible.sync="detailConfig.visible" size="80%" :before-close="handleClose" :wrapperClosable="false">
+ <el-drawer :visible.sync="detailConfig.visible" size="80%" :before-close="handleClose">
<template slot="title">
<div class="header">
<span class="header-label">浜у搧璇︽儏</span>
@@ -35,16 +35,16 @@
</div>
</li>
</ul>
- <div class="business_scope">
+ <!-- <div class="business_scope">
<div class="content-title">{{ "鍥剧墖锛�" }}</div>
<div class="bigImg-div">
<i class="el-icon-picture-outline icon" v-if="!valueUrl"></i>
<img class="bigImg" :src="valueUrl" v-if="valueUrl" />
</div>
- </div>
+ </div> -->
<div class="business_scope">
<div class="content-title">{{ "澶囨敞淇℃伅锛�" }}</div>
- <div class="content-data">{{ record ? record : "--" }}</div>
+ <div class="content-data">{{ remark ? remark : "--" }}</div>
</div>
</div>
</div>
@@ -81,7 +81,8 @@
record: "", // 鏈�鏂拌繘灞�
noContactDays: 0,
newContactDays: "",
- valueUrl: ""
+ valueUrl: "",
+ remark: this.commonDetail.infomation.remark
}
},
created() {
@@ -113,27 +114,27 @@
},
{
leftStr: "浜у搧绫诲埆",
- leftValue: item.contact_name,
+ leftValue: item.productType,
rightStr: "渚涘簲鍟�",
- rightValue: item.contact_position
+ rightValue: item.supplier.name
},
{
leftStr: "瑙勬牸",
- leftValue: item.contact_phone,
+ leftValue: item.specifications,
rightStr: "鍨嬪彿",
- rightValue: "18513375588"
+ rightValue: item.modelNumber
},
{
leftStr: "鍗曚綅",
- leftValue: item.sales_resources,
+ leftValue: item.unit,
rightStr: "浠锋牸",
- rightValue: item.member_name
+ rightValue: item.purchasePrice
},
{
leftStr: "鏈�浣庡簱瀛�",
- leftValue: item.sales_resources,
+ leftValue: item.minimumStock,
rightStr: "鏈�楂樺簱瀛�",
- rightValue: ""
+ rightValue: item.maximumStock
}
]
},
@@ -171,6 +172,7 @@
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
.detail-view {
+ z-index: 9999;
.header {
height: 56px;
display: flex;
--
Gitblit v1.8.0