Parcourir la source

销售管理-详情不可更改任何信息

jingbb il y a 1 mois
Parent
commit
3e413b71c9

+ 3 - 3
src/views/saleCode/deliveryNotice/components/deliveryNoticeForm.vue

@@ -290,8 +290,8 @@
     <!-- 子表单区域 -->
     <a-tabs v-model:activeKey="activeKey" animated style="padding: 24px; padding-top: 0px">
       <a-tab-pane tab="发货通知单 - 发货明细(delivery details)" key="deliveryDetailFormProduct" :forceRender="true">
-        <a-button type="primary" @click="selectSaleOrderList" style="margin-right: 1%; margin-bottom: 1%"> 选择销售订单(selete saleOrder)</a-button>
-        <a-button type="primary" style="margin-right: 1%; margin-bottom: 1%" @click="selectVirtualProducts">
+        <a-button type="primary" @click="selectSaleOrderList" style="margin-right: 1%; margin-bottom: 1%" :disabled="disabled"> 选择销售订单(selete saleOrder)</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
@@ -309,7 +309,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>

+ 9 - 9
src/views/saleCode/quotation/components/quotationFormForm.vue

@@ -295,10 +295,10 @@
     <!-- 子表单区域 -->
     <a-tabs v-model:activeKey="activeKey" animated style="padding: 24px; padding-top: 0px">
       <a-tab-pane tab="销售报价单 - 产品明细(product details)" key="saleQuotationFormProduct" :forceRender="true">
-        <a-button type="primary" @click="selectProducts" style="margin-right: 1%; margin-bottom: 1%"> 选择产品(select product)</a-button>
-        <a-button type="primary" @click="chooseSupplier"> 选择供应商报价选定(select supplier quotation selection)</a-button>
-        <a-button type="primary" @click="setSonList" style="margin-left: 1%; margin-bottom: 1%"> 配置毛利率(Configure gross margin)</a-button>
-        <a-button type="primary" @click="setSonListDiscount" style="margin-left: 1%; margin-bottom: 1%"> 配置折扣(Configure 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="chooseSupplier" :disabled="disabled"> 选择供应商报价选定(select supplier quotation selection)</a-button>
+        <a-button type="primary" @click="setSonList" style="margin-left: 1%; margin-bottom: 1%" :disabled="disabled"> 配置毛利率(Configure gross margin)</a-button>
+        <a-button type="primary" @click="setSonListDiscount" style="margin-left: 1%; margin-bottom: 1%" :disabled="disabled"> 配置折扣(Configure discount)</a-button>
         <j-vxe-table
           :keep-source="true"
           resizable
@@ -317,14 +317,14 @@
             <a @click="viewHistory">{{ props.row.lastPrice }}</a>
           </template>
           <template #action="props">
-            <a-popconfirm title="确定删除吗?" @confirm="handleDelete1(props)" v-if="!(formData.id!==''&&formData.status == '1')">
-              <a v-if="!(formData.id!==''&&formData.status == '1')">删除(delete)</a>
+            <a-popconfirm title="确定删除吗?" @confirm="handleDelete1(props)" v-if="(!(formData.id!==''&&formData.status == '1'))&&!disabled">
+              <a >删除(delete)</a>
             </a-popconfirm>
           </template>
         </j-vxe-table>
       </a-tab-pane>
       <a-tab-pane tab="销售报价单 - 船明细(ship details)" key="saleQuotationFormShip" :forceRender="true">
-        <a-button type="primary" @click="selectShip"> 选择船(select ship)</a-button>
+        <a-button type="primary" @click="selectShip" :disabled="disabled"> 选择船(select ship)</a-button>
         <j-vxe-table
           :keep-source="true"
           resizable
@@ -340,8 +340,8 @@
           <template #action="props">
             <a @click="viewAccessory(props)">查看配件信息(view accessory information)</a>
             <a-divider type="vertical" />
-            <a-popconfirm title="确定删除吗?" @confirm="handleDelete(props)">
-              <a>删除(delete)</a>
+            <a-popconfirm title="确定删除吗?" @confirm="handleDelete(props)" v-if="!disabled">
+              <a >删除(delete)</a>
             </a-popconfirm>
           </template>
         </j-vxe-table>

+ 6 - 6
src/views/saleCode/saleContract/components/SaleContractModal.vue

@@ -16,10 +16,10 @@
     <!-- 子表单区域 -->
     <a-tabs v-model:activeKey="activeKey" animated @change="handleChangeTabs" style="padding: 24px; padding-top: 0px">
       <a-tab-pane tab="销售合同-产品明细" key="saleContractProduct" :forceRender="true">
-        <a-button type="primary" @click="seleteQuotation" style="margin-top: 10px; margin-bottom: 5px; margin-right: 1%">
+        <a-button type="primary" @click="seleteQuotation" style="margin-top: 10px; margin-bottom: 5px; margin-right: 1%" :disabled="formDisabled">
           选择报价单(selete quotation)</a-button
         >
-        <a-button type="primary" @click="selectProducts" style="margin-top: 10px; margin-bottom: 5px"> 选择产品(select product)</a-button>
+        <a-button type="primary" @click="selectProducts" style="margin-top: 10px; margin-bottom: 5px" :disabled="formDisabled"> 选择产品(select product)</a-button>
         <JVxeTable
           keep-source
           resizable
@@ -35,8 +35,8 @@
           <template #action="props">
             <!-- <a>关闭(close)</a>
               <a-divider type="vertical"/> -->
-            <a-popconfirm title="确定删除吗?" @confirm="handleDelete1(props)" v-if="!( title == '修订(Revise)')">
-              <a v-if="!( title == '修订(Revise)')">删除(delete)</a>
+            <a-popconfirm title="确定删除吗?" @confirm="handleDelete1(props)" v-if="!( title == '修订(Revise)'||title=='详情')">
+              <a >删除(delete)</a>
             </a-popconfirm>
           </template>
         </JVxeTable>
@@ -57,8 +57,8 @@
           <template #action="props">
             <a @click="viewAccessory(props)">查看配件信息(view accessory information)</a>
             <a-divider type="vertical" />
-            <a-popconfirm title="确定删除吗?" @confirm="handleDelete(props)">
-              <a>删除(delete)</a>
+            <a-popconfirm title="确定删除吗?" @confirm="handleDelete(props)" v-if="!(title=='详情')">
+              <a >删除(delete)</a>
             </a-popconfirm>
           </template>
         </JVxeTable>

+ 7 - 7
src/views/saleCode/saleInquiryForm/components/SaleInquiryFormForm.vue

@@ -111,9 +111,9 @@
 		<!-- 子表单区域 -->
     <a-tabs v-model:activeKey="activeKey" animated  style=" padding: 24px;padding-top: 0px;">
       <a-tab-pane tab="销售询价单 - 产品明细(product details)" key="saleInquiryFormProduct" :forceRender="true">
-        <a-button type="primary" @click="selectProducts" style="margin-right: 1%;margin-bottom: 1%;"> 选择产品(select product)</a-button>
-        <a-button type="primary" @click="setNeed" style="margin-right: 1%;"> 设置需要船检证书(set need ship inspection certificate)</a-button>
-        <a-button type="primary" @click="setNotNeed"> 设置不需要船检证书(set need not ship inspection certificate)</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="setNeed" style="margin-right: 1%;" :disabled="disabled"> 设置需要船检证书(set need ship inspection certificate)</a-button>
+        <a-button type="primary" @click="setNotNeed" :disabled="disabled"> 设置不需要船检证书(set need not ship inspection certificate)</a-button>
         <j-vxe-table
           :keep-source="true"
           resizable
@@ -128,14 +128,14 @@
           :maxHeight="340"
           >
           <template #action="props">
-                <a-popconfirm title="确定删除吗?" @confirm="handleDelete1(props)">
-                  <a>删除(delete)</a>
+                <a-popconfirm title="确定删除吗?" @confirm="handleDelete1(props)" v-if="!disabled">
+                  <a >删除(delete)</a>
                 </a-popconfirm>
             </template>
           </j-vxe-table>
       </a-tab-pane>
       <a-tab-pane tab="销售询价单 - 船明细(ship details)" key="saleInquiryFormShip" :forceRender="true">
-        <a-button type="primary" @click="selectShip"> 选择船(select ship)</a-button>
+        <a-button type="primary" @click="selectShip" :disabled="disabled"> 选择船(select ship)</a-button>
         <j-vxe-table
           :keep-source="true"
           resizable
@@ -151,7 +151,7 @@
             <template #action="props" >
               <a @click="viewAccessory(props)" >查看配件信息(view accessory information)</a>
               <a-divider type="vertical"/>
-                <a-popconfirm title="确定删除吗?" @confirm="handleDelete(props)">
+                <a-popconfirm title="确定删除吗?" @confirm="handleDelete(props)" v-if="!disabled">
                   <a>删除(delete)</a>
                 </a-popconfirm>
             </template>

+ 3 - 3
src/views/saleCode/salesInvoice/components/saleInvoiceForm.vue

@@ -237,10 +237,10 @@
     <!-- 子表单区域 -->
     <a-tabs v-model:activeKey="activeKey" animated style="padding: 24px; padding-top: 0px">
       <a-tab-pane tab="销售发票 - 发票明细(invoice details)" key="saleInvoiceDetails" :forceRender="true">
-        <a-button type="primary" style="margin-right: 1%; margin-bottom: 1%" @click="selectDeliveryList">
+        <a-button type="primary" style="margin-right: 1%; margin-bottom: 1%" @click="selectDeliveryList" :disabled="disabled">
           选择发货通知单(select delevery notice)</a-button
         >
-        <a-button type="primary" @click="selectCommissionList"> 选择佣金订单(selete commission order)</a-button>
+        <a-button type="primary" @click="selectCommissionList" :disabled="disabled"> 选择佣金订单(selete commission order)</a-button>
         <j-vxe-table
           :keep-source="true"
           resizable
@@ -256,7 +256,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>

+ 4 - 4
src/views/saleCode/salesOrder/components/SlaeOrderFormForm.vue

@@ -338,9 +338,9 @@
     <!-- 子表单区域 -->
     <a-tabs v-model:activeKey="activeKey" animated style="padding: 24px; padding-top: 0px">
       <a-tab-pane tab="销售订单 - 产品明细(product details)" key="SaleOrderFormShipFormProduct" :forceRender="true">
-        <a-button type="primary" style="margin-right: 1%; margin-bottom: 1%" @click="selectProductList"> 选择产品(select product)</a-button>
-        <a-button type="primary" style="margin-right: 1%; margin-bottom: 1%" @click="selectContractList" :disabled="formData.sourceCode !== ''"> 选择合同(select contract)</a-button>
-        <a-button type="primary" style="margin-right: 1%; margin-bottom: 1%" @click="selectQuotationList" :disabled="formData.sourceCode2 !== ''"> 选择报价单(select quotation)</a-button>
+        <a-button type="primary" style="margin-right: 1%; margin-bottom: 1%" @click="selectProductList" :disabled="disabled"> 选择产品(select product)</a-button>
+        <a-button type="primary" style="margin-right: 1%; margin-bottom: 1%" @click="selectContractList" :disabled="disabled||formData.sourceCode !== ''"> 选择合同(select contract)</a-button>
+        <a-button type="primary" style="margin-right: 1%; margin-bottom: 1%" @click="selectQuotationList" :disabled="disabled||formData.sourceCode2 !== ''"> 选择报价单(select quotation)</a-button>
         <j-vxe-table
           :keep-source="true"
           resizable
@@ -356,7 +356,7 @@
           @value-change="changeValues"
         >
           <template #action="props" v-if="!(formData.id!==''&&formData.submit == '1')">
-            <a-popconfirm title="确定删除吗?" @confirm="handleDelete(props)" v-if="!(formData.id!==''&&formData.submit == '1')">
+            <a-popconfirm title="确定删除吗?" @confirm="handleDelete(props)" v-if="(!(formData.id!==''&&formData.submit == '1'))&&!disabled">
               <a>删除(delete)</a>
             </a-popconfirm>
           </template>