Browse Source

采购管理-详情不可修改任何数据

jingbb 1 month ago
parent
commit
217c45a099

+ 2 - 2
src/views/purchase/arrivedGoods/components/ArriveGoodsFormForm.vue

@@ -228,7 +228,7 @@
     <!-- 子表单区域 -->
     <a-tabs v-model:activeKey="activeKey" animated style="padding: 24px; padding-top: 0px">
       <a-tab-pane tab="到货单 - 到货明细(arrive details)" key="arriveDetailsFormProduct" :forceRender="true">
-        <a-button type="primary" style="margin-right: 1%; margin-bottom: 1%" @click="selectPurchaseOrderList">
+        <a-button type="primary" style="margin-right: 1%; margin-bottom: 1%" @click="selectPurchaseOrderList" :disabled="disabled">
           选择采购单(select purchase order)</a-button
         >
         <j-vxe-table
@@ -245,7 +245,7 @@
           asyncRemove
         >
           <template #action="props">
-            <a-popconfirm title="确定删除吗?" @confirm="handleDelete(props)">
+            <a-popconfirm title="确定删除吗?" @confirm="handleDelete(props)" v-if="!disabled">
               <a>删除(delete)</a>
             </a-popconfirm>
           </template>

+ 2 - 2
src/views/purchase/commissionPayRequest/components/commissionPayRequestForm.vue

@@ -73,7 +73,7 @@
 		<!-- 子表单区域 -->
     <a-tabs v-model:activeKey="activeKey" animated  style=" padding: 24px;padding-top: 0px;">
       <a-tab-pane tab="佣金付款申请 - 付款明细(payment details)" key="paymentDetails" :forceRender="true">
-        <a-button type="primary"  style="margin-right: 1%;margin-bottom: 1%;" @click="selectOrder"> 选择销售订单(select sale order)</a-button>
+        <a-button type="primary"  style="margin-right: 1%;margin-bottom: 1%;" @click="selectOrder" :disabled="disabled"> 选择销售订单(select sale order)</a-button>
         <j-vxe-table
           :keep-source="true"
           resizable
@@ -88,7 +88,7 @@
           asyncRemove
           >
             <template #action="props">
-                  <a-popconfirm title="确定删除吗?" @confirm="handleDelete1(props)">
+                  <a-popconfirm title="确定删除吗?" @confirm="handleDelete1(props)" v-if="!disabled">
                     <a>删除(delete)</a>
                   </a-popconfirm>
               </template>

+ 4 - 4
src/views/purchase/freightPurchaseOrder/components/FreightPurOrderForm.vue

@@ -37,7 +37,7 @@
 		<!-- 子表单区域 -->
     <a-tabs v-model:activeKey="activeKey" animated  style=" padding: 24px;padding-top: 0px;">
       <a-tab-pane tab="运费采购订单 - 运费产品明细(freight product details)" key="FreightProductDetails" :forceRender="true">
-        <a-button type="primary" style="margin-right: 1%;margin-bottom: 1%;" @click="selectVirtualProducts">  选择虚拟产品(select virtual products)</a-button>
+        <a-button type="primary" style="margin-right: 1%;margin-bottom: 1%;" @click="selectVirtualProducts" :disabled="disabled">  选择虚拟产品(select virtual products)</a-button>
         <j-vxe-table
           :keep-source="true"
           resizable
@@ -51,14 +51,14 @@
           :rowSelection="true"
           >
             <template #action="props">
-              <a-popconfirm title="确定删除吗?" @confirm="handleDelete(props)">
+              <a-popconfirm title="确定删除吗?" @confirm="handleDelete(props)" v-if="!disabled">
                 <a>删除(delete)</a>
               </a-popconfirm>
             </template>
           </j-vxe-table>
       </a-tab-pane>
       <a-tab-pane tab="运费采购订单 - 发货通知单(delivery notice)" key="DeliveryDotice" :forceRender="true">
-        <a-button type="primary" style="margin-right: 1%;margin-bottom: 1%;" @click="selectDelivery"> 选择发货通知单(select delivery)</a-button>
+        <a-button type="primary" style="margin-right: 1%;margin-bottom: 1%;" @click="selectDelivery"  :disabled="disabled"> 选择发货通知单(select delivery)</a-button>
         <j-vxe-table
           :keep-source="true"
           resizable
@@ -71,7 +71,7 @@
           :rowNumber="true"
           :rowSelection="true"
           >
-            <template #action="props" >
+            <template #action="props" v-if="!disabled">
               <a-popconfirm title="确定删除吗?" @confirm="handleDelete1(props)">
                 <a>删除(delete)</a>
               </a-popconfirm>

+ 2 - 2
src/views/purchase/purPaymentRequest/components/purPaymentRequestForm.vue

@@ -67,7 +67,7 @@
 		<!-- 子表单区域 -->
     <a-tabs v-model:activeKey="activeKey" animated  style=" padding: 24px;padding-top: 0px;">
       <a-tab-pane tab="采购付款申请 - 付款明细(payment details)" key="paymentDetails" :forceRender="true">
-        <a-button type="primary"  style="margin-right: 1%;margin-bottom: 1%;" @click="selectOrder"> 选择采购订单(select purchase order)</a-button>
+        <a-button type="primary"  style="margin-right: 1%;margin-bottom: 1%;" @click="selectOrder" :disabled="disabled"> 选择采购订单(select purchase order)</a-button>
         <j-vxe-table
           :keep-source="true"
           resizable
@@ -83,7 +83,7 @@
           @valueChange="changeValues"
           >
             <template #action="props">
-                  <a-popconfirm title="确定删除吗?" @confirm="handleDelete1(props)">
+                  <a-popconfirm title="确定删除吗?" @confirm="handleDelete1(props)" v-if="!disabled">
                     <a>删除(delete)</a>
                   </a-popconfirm>
               </template>

+ 3 - 3
src/views/purchase/purchaseInquiryForm/components/PurchaseInquiryFormForm.vue

@@ -224,10 +224,10 @@
     <!-- 子表单区域 -->
     <a-tabs v-model:activeKey="activeKey" animated style="padding: 24px; padding-top: 0px">
       <a-tab-pane tab="采购询价单 - 产品明细(product details)" key="PuechaseInquiryFormProduct" :forceRender="true">
-        <a-button type="primary" @click="SelectCustomerInquiry" style="margin-right: 1%; margin-bottom: 1%">
+        <a-button type="primary" @click="SelectCustomerInquiry" style="margin-right: 1%; margin-bottom: 1%" :disabled="disabled">
           选择客户询价单(select customer inquiry form)</a-button
         >
-        <a-button type="primary" @click="selectProducts" style="margin-right: 1%; margin-bottom: 1%"> 选择产品(select product)</a-button>
+        <a-button type="primary" @click="selectProducts" style="margin-right: 1%; margin-bottom: 1%" :disabled="disabled"> 选择产品(select product)</a-button>
         <j-vxe-table
           :keep-source="true"
           resizable
@@ -242,7 +242,7 @@
           asyncRemove
         >
           <template #action="props">
-            <a-popconfirm title="确定删除吗?" @confirm="handleDelete1(props)">
+            <a-popconfirm title="确定删除吗?" @confirm="handleDelete1(props)" v-if="!disabled">
               <a>删除(delete)</a>
             </a-popconfirm>
           </template>

+ 5 - 5
src/views/purchase/purchaseOrder/components/PurchaseOrderFormForm.vue

@@ -260,10 +260,10 @@
     <!-- 子表单区域 -->
     <a-tabs v-model:activeKey="activeKey" animated style="padding: 24px; padding-top: 0px">
       <a-tab-pane tab="采购订单 - 产品明细(product details)" key="purOrderFormShipFormProduct" :forceRender="true">
-        <a-button type="primary" style="margin-right: 1%; margin-bottom: 1%" @click="selectSaleOrderList" :disabled="formData.sourceCode !== ''">
+        <a-button type="primary" style="margin-right: 1%; margin-bottom: 1%" @click="selectSaleOrderList" :disabled="disabled||formData.sourceCode !== ''">
           选择销售订单(select saleorder)</a-button
         >
-        <a-button type="primary" style="margin-right: 1%; margin-bottom: 1%" @click="selectVirtualProducts">
+        <a-button type="primary" style="margin-right: 1%; margin-bottom: 1%" @click="selectVirtualProducts" :disabled="disabled">
           选择虚拟产品(select virtual products)</a-button
         >
         <a-button
@@ -271,7 +271,7 @@
           style="margin-right: 1%; margin-bottom: 1%"
           @click="SelectSupplierQuotationList"
           v-auth="'purCode:pur_order:selection'"
-          :disabled="formData.sourceCode2 !== ''"
+          :disabled="disabled||formData.sourceCode2 !== ''"
           >选择供应商报价选定(select supplier quotation selection)</a-button
         >
         <j-vxe-table
@@ -289,8 +289,8 @@
           @value-change="changeValues"
         >
           <template #action="props" >
-            <a-popconfirm title="确定删除吗?" @confirm="handleDelete(props)" v-if="!(formData.id!==''&&formData.submit == '1')">
-              <a v-if="!(formData.id!==''&&formData.submit == '1')">删除(delete)</a>
+            <a-popconfirm title="确定删除吗?" @confirm="handleDelete(props)" v-if="(!(formData.id!==''&&formData.submit == '1'))&&!disabled">
+              <a >删除(delete)</a>
             </a-popconfirm>
           </template>
         </j-vxe-table>

+ 4 - 4
src/views/purchase/purchaseQuotationFrm/components/PurchaseQuotationFormForm.vue

@@ -207,11 +207,11 @@
     <!-- 子表单区域 -->
     <a-tabs v-model:activeKey="activeKey" animated style="padding: 24px; padding-top: 0px">
       <a-tab-pane tab="采购报价单 - 产品明细(product details)" key="PuechaseQuotationFormProduct" :forceRender="true">
-        <a-button type="primary" @click="SelectSupplierInquiry" style="margin-right: 1%; margin-bottom: 1%">
+        <a-button type="primary" @click="SelectSupplierInquiry" style="margin-right: 1%; margin-bottom: 1%" :disabled="disabled">
           选择供应商询价单(select supplier inquiry form)</a-button
         >
-        <a-button type="primary" @click="selectProducts" style="margin-right: 1%; margin-bottom: 1%"> 选择产品(select product)</a-button>
-        <a-button type="primary" @click="setDiscountForSonList" style="margin-right: 1%; margin-bottom: 1%"> 设置折扣(set discount)</a-button>
+        <a-button type="primary" @click="selectProducts" style="margin-right: 1%; margin-bottom: 1%" :disabled="disabled"> 选择产品(select product)</a-button>
+        <a-button type="primary" @click="setDiscountForSonList" style="margin-right: 1%; margin-bottom: 1%" :disabled="disabled"> 设置折扣(set discount)</a-button>
         <j-vxe-table
           :keep-source="true"
           resizable
@@ -227,7 +227,7 @@
           @value-change="changeValues"
         >
           <template #action="props">
-            <a-popconfirm title="确定删除吗?" @confirm="handleDelete1(props)">
+            <a-popconfirm title="确定删除吗?" @confirm="handleDelete1(props)" v-if="!disabled">
               <a>删除(delete)</a>
             </a-popconfirm>
           </template>

+ 2 - 2
src/views/purchase/selectionQuotationForm/components/SelectQuotationFormForm.vue

@@ -92,12 +92,12 @@
           asyncRemove
           >
           <template #selectionSupplier="props">
-            <a-select v-model:value="props.row.selectionSupplier" style="width: 100%;" @change="selectSupplier(props.row,props.rowIndex,props)" allowClear>
+            <a-select v-model:value="props.row.selectionSupplier" style="width: 100%;" @change="selectSupplier(props.row,props.rowIndex,props)" allowClear  :disabled="disabled">
               <a-select-option v-for="item in supplierList" :key="item.value" >{{ item.label }}</a-select-option>
             </a-select>
           </template>
           <template #action="props">
-                <a-popconfirm title="确定删除吗?" @confirm="handleDelete1(props)">
+                <a-popconfirm title="确定删除吗?" @confirm="handleDelete1(props)" v-if="!disabled">
                   <a>删除(delete)</a>
                 </a-popconfirm>
             </template>