Przeglądaj źródła

库存管理-详情不允许修改任何数据

jingbb 2 miesięcy temu
rodzic
commit
98bb20f5dd

+ 2 - 2
src/views/inventiry/inventoryCheck/components/inventoryCheckForm.vue

@@ -60,7 +60,7 @@
     <!-- 子表单区域 -->
     <a-tabs v-model:activeKey="activeKey" animated style="padding: 24px; padding-top: 0px">
       <a-tab-pane tab="盘盈盘亏 - 库存明细(stock details)" key="stockDetails" :forceRender="true">
-        <a-button type="primary" style="margin-right: 1%; margin-bottom: 1%" @click="selectStandingStock">选择现存量(select standing stock)</a-button>
+        <a-button type="primary" style="margin-right: 1%; margin-bottom: 1%" @click="selectStandingStock" :disabled="disabled">选择现存量(select standing stock)</a-button>
         <j-vxe-table
           :keep-source="true"
           resizable
@@ -76,7 +76,7 @@
           @value-change="changeValues"
         >
           <template #action="props">
-            <a-popconfirm title="确定删除吗?" @confirm="handleDelete(props)">
+            <a-popconfirm title="确定删除吗?" @confirm="handleDelete(props)" v-if="!disabled">
               <a>删除(delete)</a>
             </a-popconfirm>
             <!-- 逻辑不通暂时取消次功能 -->

+ 3 - 3
src/views/inventiry/otherIn/components/otherInForm.vue

@@ -78,7 +78,7 @@
 		<!-- 子表单区域 -->
     <a-tabs v-model:activeKey="activeKey" animated  style=" padding: 24px;padding-top: 0px;">
       <a-tab-pane tab="其他入库 - 船明细(ship details)" key="otherInShip" :forceRender="true">
-        <a-button type="primary" style="margin-right: 1%;margin-bottom: 1%;" @click="selectShip"> 选择船(select ship)</a-button>
+        <a-button type="primary" style="margin-right: 1%;margin-bottom: 1%;" @click="selectShip" :disabled="disabled"> 选择船(select ship)</a-button>
         <j-vxe-table
           :keep-source="true"
           resizable
@@ -97,7 +97,7 @@
           </j-vxe-table>
       </a-tab-pane>
       <a-tab-pane tab="其他入库 - 入库明细(arrive details)" key="stockIn" :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="selectProductList" :disabled="disabled"> 选择产品(select product)</a-button>
         <j-vxe-table
           :keep-source="true"
           resizable
@@ -112,7 +112,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>
               <!-- 逻辑不通暂时取消次功能 -->

+ 2 - 2
src/views/inventiry/otherOut/components/otherOutForm.vue

@@ -58,7 +58,7 @@
     <!-- 子表单区域 -->
     <a-tabs v-model:activeKey="activeKey" animated style="padding: 24px; padding-top: 0px">
       <a-tab-pane tab="其他出库 - 出库明细(stock out details)" key="otherOut" :forceRender="true">
-        <a-button type="primary" style="margin-right: 1%; margin-bottom: 1%" @click="selectStandingStock">选择现存量(select standing stock)</a-button>
+        <a-button type="primary" style="margin-right: 1%; margin-bottom: 1%" @click="selectStandingStock" :disabled="disabled">选择现存量(select standing stock)</a-button>
         <j-vxe-table
           :keep-source="true"
           resizable
@@ -73,7 +73,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>
             <!-- 逻辑不通暂时取消次功能 -->

+ 2 - 2
src/views/inventiry/purchaseIn/components/purchaseInForm.vue

@@ -113,7 +113,7 @@
     <!-- 子表单区域 -->
     <a-tabs v-model:activeKey="activeKey" animated style="padding: 24px; padding-top: 0px">
       <a-tab-pane tab="采购入库 - 入库明细(stock in details)" key="stockIn" :forceRender="true">
-        <a-button type="primary" style="margin-right: 1%; margin-bottom: 1%" @click="selectArrivalList"> 选择到货单(select arrival)</a-button>
+        <a-button type="primary" style="margin-right: 1%; margin-bottom: 1%" @click="selectArrivalList" :disabled="disabled"> 选择到货单(select arrival)</a-button>
         <j-vxe-table
           :keep-source="true"
           resizable
@@ -128,7 +128,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>
             <!-- 逻辑不通暂时取消次功能 -->

+ 2 - 2
src/views/inventiry/salesOutbound/components/salesOutForm.vue

@@ -86,7 +86,7 @@
     <!-- 子表单区域 -->
     <a-tabs v-model:activeKey="activeKey" animated style="padding: 24px; padding-top: 0px">
       <a-tab-pane tab="销售出库 - 出库明细(stock out details)" key="stockOut" :forceRender="true">
-        <a-button type="primary" style="margin-right: 1%; margin-bottom: 1%" @click="selectDelivery" :disabled="notAllowEdit"> 选择发货单(select delivery)</a-button>
+        <a-button type="primary" style="margin-right: 1%; margin-bottom: 1%" @click="selectDelivery" :disabled="disabled||notAllowEdit" >选择发货单(select delivery)</a-button>
         <j-vxe-table
           :keep-source="true"
           resizable
@@ -101,7 +101,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>
             <!-- 逻辑不通暂时取消次功能 -->