李红攀:V2.6.975,添加采购询比、采购统计
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<view class="yd-page-container">
|
||||
<template>
|
||||
<view class="yd-page-container erp-page">
|
||||
<wd-navbar
|
||||
:title="getTitle"
|
||||
left-arrow
|
||||
@@ -9,7 +9,7 @@
|
||||
@click-left="handleBack"
|
||||
/>
|
||||
|
||||
<view class="pb-180rpx">
|
||||
<view class="erp-form-body">
|
||||
<wd-form ref="formRef" :model="formData" :rules="formRules">
|
||||
<wd-cell-group title="基本信息" border>
|
||||
<wd-picker
|
||||
@@ -69,18 +69,18 @@
|
||||
</wd-cell-group>
|
||||
|
||||
<wd-cell-group title="订单产品" border>
|
||||
<view class="p-24rpx">
|
||||
<view class="erp-form-item-list">
|
||||
<view
|
||||
v-for="(item, index) in formData.items"
|
||||
:key="index"
|
||||
class="mb-16rpx rounded-8rpx bg-gray-50 p-24rpx"
|
||||
class="erp-form-item-card erp-form-item-card--padded"
|
||||
>
|
||||
<view class="mb-12rpx flex items-center justify-between">
|
||||
<text class="text-28rpx font-semibold">{{ item.productName || `产品${index + 1}` }}</text>
|
||||
<text class="erp-card-title">{{ item.productName || `产品${index + 1}` }}</text>
|
||||
<wd-button size="small" type="error" plain @click="removeItem(index)">删除</wd-button>
|
||||
</view>
|
||||
<view class="mb-12rpx flex items-center">
|
||||
<text class="w-140rpx text-24rpx text-gray-500">数量</text>
|
||||
<view class="erp-form-input-row">
|
||||
<text class="erp-form-input-label">数量</text>
|
||||
<wd-input
|
||||
v-model="item.count"
|
||||
type="number"
|
||||
@@ -89,8 +89,8 @@
|
||||
@change="calculateTotal"
|
||||
/>
|
||||
</view>
|
||||
<view class="mb-12rpx flex items-center">
|
||||
<text class="w-140rpx text-24rpx text-gray-500">单价</text>
|
||||
<view class="erp-form-input-row">
|
||||
<text class="erp-form-input-label">单价</text>
|
||||
<wd-input
|
||||
v-model="item.unitPrice"
|
||||
type="number"
|
||||
@@ -99,9 +99,9 @@
|
||||
@change="calculateTotal"
|
||||
/>
|
||||
</view>
|
||||
<view class="flex items-center">
|
||||
<text class="w-140rpx text-24rpx text-gray-500">小计</text>
|
||||
<text class="text-28rpx text-[#409eff]">{{ formatPrice(calculateItemTotal(item)) }}</text>
|
||||
<view class="erp-form-total-row">
|
||||
<text class="erp-form-input-label">小计</text>
|
||||
<text class="text-28rpx text-[#409eff] font-semibold">{{ formatPrice(calculateItemTotal(item)) }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<wd-button type="primary" plain block @click="showProductPicker = true">添加产品</wd-button>
|
||||
@@ -155,7 +155,7 @@
|
||||
</view>
|
||||
|
||||
<wd-popup v-model="showProductPicker" position="bottom" custom-style="height: 60%">
|
||||
<view class="p-24rpx">
|
||||
<view class="erp-form-item-list">
|
||||
<view class="mb-24rpx flex items-center justify-between">
|
||||
<text class="text-32rpx font-semibold">选择产品</text>
|
||||
<wd-button size="small" @click="showProductPicker = false">关闭</wd-button>
|
||||
|
||||
Reference in New Issue
Block a user