| | |
| | | <template> |
| | | <view class="pt-2"> |
| | | <ProductCard :data="cardData" /> |
| | | <ProductCard |
| | | :data="cardData" |
| | | :map="{ |
| | | deviceModel: 'deviceModel', |
| | | model: 'model', |
| | | totalAmount: 'totalAmount', |
| | | amount: 'amount', |
| | | unAmount: 'unAmount', |
| | | }" |
| | | /> |
| | | <view class="mx-3"> |
| | | <wd-grid class="rounded-lg" clickable> |
| | | <wd-grid-item |
| | | icon="computer" |
| | | link-type="navigateTo" |
| | | :url="`/pages/production/wire/report/wire?id=${paramsId}`" |
| | | :url="`/pages/production/wire/report/wire?id=${paramsId}&model=${cardData.model}&oneLength=${cardData.oneLength}`" |
| | | text="报工" |
| | | /> |
| | | <!-- <wd-grid-item |
| | |
| | | <wd-grid-item |
| | | icon="tips" |
| | | link-type="navigateTo" |
| | | url="/pages/production/wire/backman/index" |
| | | :url="`/pages/production/wire/backman/index?id=${paramsId}`" |
| | | text="杂工" |
| | | /> |
| | | <wd-grid-item |
| | | <!-- <wd-grid-item |
| | | icon="wallet" |
| | | link-type="navigateTo" |
| | | url="/pages/production/wire/receive/index" |
| | | text="材料领用" |
| | | /> |
| | | /> --> |
| | | </wd-grid> |
| | | </view> |
| | | </view> |
| | |
| | | totalAmount: undefined, |
| | | amount: undefined, |
| | | unAmount: undefined, |
| | | oneLength: undefined, |
| | | }); |
| | | |
| | | const getDetailData = async (id: string) => { |
| | |
| | | cardData.totalAmount = data.totalAmount; |
| | | cardData.amount = data.amount; |
| | | cardData.unAmount = data.unAmount; |
| | | cardData.oneLength = data.oneLength; |
| | | }; |
| | | |
| | | onLoad((options: any) => { |