lisenzhou 2 år sedan
förälder
incheckning
5543ed4441
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. 3
    1
      src/pages/purchase/plan/list/index.jsx

+ 3
- 1
src/pages/purchase/plan/list/index.jsx Visa fil

@@ -91,6 +91,7 @@ const StockList = (props) => {
91 91
             key={4}
92 92
             style={{ padding: 0 }}
93 93
             type="link"
94
+            disabled={record?.isCompleted}
94 95
             onClick={() => {
95 96
               navigate(`/purchase/bill/edit?id=${record.id}`);
96 97
             }}
@@ -104,6 +105,7 @@ const StockList = (props) => {
104 105
             key={5}
105 106
             style={{ padding: 0 }}
106 107
             type="link"
108
+            disabled={record?.isInStore}
107 109
             onClick={() => {
108 110
               navigate(`/purchase/inStore/edit?id=${record.id}`);
109 111
             }}
@@ -135,7 +137,7 @@ const StockList = (props) => {
135 137
       <ProTable
136 138
         actionRef={actionRef}
137 139
         rowKey="id"
138
-        params={type === "inStore"? {isCompleted:true}:{}}
140
+        params={type === "inStore" ? { isCompleted: true } : {}}
139 141
         toolBarRender={() => [
140 142
           type === "plan" ? (
141 143
             <Button