|
@@ -31,6 +31,8 @@ import { areAllCheckersFilled } from '@/utils/objects'
|
|
import { C1GoodType } from '@/pages/A3_ledger/C1ledger/type'
|
|
import { C1GoodType } from '@/pages/A3_ledger/C1ledger/type'
|
|
import { BatchFillingModal } from '../components/BatchFillingModal'
|
|
import { BatchFillingModal } from '../components/BatchFillingModal'
|
|
import { EXPORT_WORD_ENUM } from '@/utils/exportTemplates'
|
|
import { EXPORT_WORD_ENUM } from '@/utils/exportTemplates'
|
|
|
|
+import classNames from 'classnames'
|
|
|
|
+import Y1cathet from '@/pages/Y_goodsDetails/Y1cathet'
|
|
|
|
|
|
export const pageTitTxtObj = {
|
|
export const pageTitTxtObj = {
|
|
1: '新增',
|
|
1: '新增',
|
|
@@ -114,6 +116,26 @@ function D7edit() {
|
|
return Reflect.get(pageTitTxtObj, key)
|
|
return Reflect.get(pageTitTxtObj, key)
|
|
}, [key])
|
|
}, [key])
|
|
|
|
|
|
|
|
+ // 打开侧边栏
|
|
|
|
+ const [cathet, setCathet] = useState(0)
|
|
|
|
+ const startBtn = useMemo(() => {
|
|
|
|
+ return [
|
|
|
|
+ {
|
|
|
|
+ title: '藏品编号',
|
|
|
|
+ render: (item: C1GoodType) => {
|
|
|
|
+ return (
|
|
|
|
+ <span
|
|
|
|
+ onClick={() => setCathet(item.id)}
|
|
|
|
+ className={classNames('D1GtNum', item.id === cathet ? 'D1GtNumAc' : '')}
|
|
|
|
+ >
|
|
|
|
+ {item.num}
|
|
|
|
+ </span>
|
|
|
|
+ )
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ }, [cathet])
|
|
|
|
+
|
|
const checkDataFu = useCallback(() => {
|
|
const checkDataFu = useCallback(() => {
|
|
if (!topInfo.date) {
|
|
if (!topInfo.date) {
|
|
MessageFu.warning('请选择盘点日期')
|
|
MessageFu.warning('请选择盘点日期')
|
|
@@ -488,6 +510,7 @@ function D7edit() {
|
|
widthSet={{ statusCheck: 200, remark: 200 }}
|
|
widthSet={{ statusCheck: 200, remark: 200 }}
|
|
yHeight={350}
|
|
yHeight={350}
|
|
list={collectionList}
|
|
list={collectionList}
|
|
|
|
+ startBtn={startBtn}
|
|
columnsTemp={D7CHECK_COLLECTION_COLUMNS}
|
|
columnsTemp={D7CHECK_COLLECTION_COLUMNS}
|
|
lastBtn={
|
|
lastBtn={
|
|
['3', '4'].includes(key)
|
|
['3', '4'].includes(key)
|
|
@@ -596,6 +619,9 @@ function D7edit() {
|
|
setVisible={setStocktakingVisible}
|
|
setVisible={setStocktakingVisible}
|
|
onOk={handleStocktakingOk}
|
|
onOk={handleStocktakingOk}
|
|
/>
|
|
/>
|
|
|
|
+
|
|
|
|
+ {/* 打开侧边栏 */}
|
|
|
|
+ <Y1cathet sId={cathet} menuId={470} orderId={id} closeFu={() => setCathet(0)} />
|
|
</div>
|
|
</div>
|
|
)
|
|
)
|
|
}
|
|
}
|