|
@@ -390,7 +390,7 @@
|
|
|
<template #delivery>
|
|
|
<div style="width: 100%">
|
|
|
<el-row style="margin-top: 20px; width: 100%">
|
|
|
- <el-col :span="6">
|
|
|
+ <el-col :span="6" v-show="showAllData">
|
|
|
<el-form-item label="报价有效期 (天)" prop="effective">
|
|
|
<el-input-number
|
|
|
onmousewheel="return false;"
|
|
@@ -537,7 +537,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="单价" width="140">
|
|
|
+ <el-table-column label="单价" width="140" v-if="showAllData">
|
|
|
<template #default="{ row, $index }">
|
|
|
<div style="width: 100%">
|
|
|
<el-form-item
|
|
@@ -560,7 +560,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="贸易方式" width="140">
|
|
|
+ <el-table-column label="贸易方式" width="140" v-if="showAllData">
|
|
|
<template #default="{ row, $index }">
|
|
|
<div style="width: 100%">
|
|
|
<el-form-item
|
|
@@ -590,6 +590,7 @@
|
|
|
prop="amount"
|
|
|
:label="'金额 ( ' + formData.data.currency + ' )'"
|
|
|
width="130"
|
|
|
+ v-if="showAllData"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
label="操作"
|
|
@@ -838,7 +839,9 @@ import CustomerProduct from "@/views/EHSD/productLibrary/customerProduct/index";
|
|
|
import { ElMessage } from "element-plus";
|
|
|
import selectCity from "@/components/selectCity/index.vue";
|
|
|
import { useRoute } from "vue-router";
|
|
|
-
|
|
|
+import useUserStore from "@/store/modules/user";
|
|
|
+const userInfo = useUserStore();
|
|
|
+const showAllData = ref(true);
|
|
|
const route = useRoute();
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
const innerMethod = ref([]);
|
|
@@ -899,6 +902,7 @@ const formConfig = computed(() => {
|
|
|
type: "title",
|
|
|
title: "合同模板",
|
|
|
label: "",
|
|
|
+ isShow: showAllData.value,
|
|
|
},
|
|
|
{
|
|
|
type: "select",
|
|
@@ -908,23 +912,27 @@ const formConfig = computed(() => {
|
|
|
fn: (val) => {
|
|
|
changeTemplate(val);
|
|
|
},
|
|
|
+ isShow: showAllData.value,
|
|
|
},
|
|
|
{
|
|
|
type: "slot",
|
|
|
slotName: "seller",
|
|
|
label: "卖方信息",
|
|
|
itemWidth: 50,
|
|
|
+ isShow: showAllData.value,
|
|
|
},
|
|
|
{
|
|
|
type: "slot",
|
|
|
slotName: "buyer",
|
|
|
label: "买方信息",
|
|
|
itemWidth: 50,
|
|
|
+ isShow: showAllData.value,
|
|
|
},
|
|
|
{
|
|
|
type: "slot",
|
|
|
slotName: "payment",
|
|
|
label: "付款信息",
|
|
|
+ isShow: showAllData.value,
|
|
|
},
|
|
|
{
|
|
|
type: "slot",
|
|
@@ -950,10 +958,12 @@ const formConfig = computed(() => {
|
|
|
type: "slot",
|
|
|
slotName: "otherCharge",
|
|
|
label: "其他收费项目",
|
|
|
+ isShow: showAllData.value,
|
|
|
},
|
|
|
{
|
|
|
type: "slot",
|
|
|
slotName: "offerMoney",
|
|
|
+ isShow: showAllData.value,
|
|
|
},
|
|
|
{
|
|
|
type: "slot",
|
|
@@ -1719,11 +1729,14 @@ watch(
|
|
|
);
|
|
|
|
|
|
onMounted(() => {
|
|
|
+ checkShow();
|
|
|
formOption.disabled = judgeStatus();
|
|
|
- console.log(route.query, "qqda");
|
|
|
if (route.query && route.query.businessId && route.query.processType) {
|
|
|
let businessId = route.query.businessId;
|
|
|
proxy.post("/contract/detail", { id: businessId }).then((res) => {
|
|
|
+ if (res && res.dataJson) {
|
|
|
+ res = { ...res, ...JSON.parse(res.dataJson) };
|
|
|
+ }
|
|
|
if (!res.fileList) {
|
|
|
res.fileList = [];
|
|
|
}
|
|
@@ -1795,6 +1808,9 @@ onMounted(() => {
|
|
|
) {
|
|
|
let businessId = route.query.businessId;
|
|
|
proxy.post("/contract/detail", { id: businessId }).then((res) => {
|
|
|
+ if (res && res.dataJson) {
|
|
|
+ res = { ...res, ...JSON.parse(res.dataJson) };
|
|
|
+ }
|
|
|
if (res && res.buyCorporationName) {
|
|
|
proxy
|
|
|
.post("/customer/selPage", { keyword: res.buyCorporationName })
|
|
@@ -1895,6 +1911,16 @@ onMounted(() => {
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+const checkShow = () => {
|
|
|
+ if (
|
|
|
+ userInfo.roles.includes("purchasingOfficer") &&
|
|
|
+ route.query.flowKey == "contract_update_flow" &&
|
|
|
+ route.query.processType
|
|
|
+ ) {
|
|
|
+ showAllData.value = false;
|
|
|
+ }
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|