Browse Source

可修改供应商和客户,修改底部菜单顺序

master
tianyi@bogon 3 years ago
parent
commit
f299c3d1e5
  1. 24
      pages/index/peopleList.vue
  2. 10
      pages/inventory/addGoods.vue
  3. 6
      pages/inventory/addinventory.vue

24
pages/index/peopleList.vue

@ -8,12 +8,19 @@
</view> </view>
<view class="list-1" v-for="item in popleList" :key="item" @tap="clickList(item)" <view class="list-1" v-for="item in popleList" :key="item" @tap="clickList(item)"
style="display: flex;flex-direction: column;height: 150rpx;"> style="display: flex;flex-direction: column;height: 150rpx;">
<view class="name-tel" style="width: 100%;"> <view class="name-tel" style="width: 100%;" v-if="popleType=='gysName'">
<text style="line-height: 75rpx;">{{item.name}}</text> <text style="line-height: 75rpx;">{{item.consigneeName}}</text>
<text>{{item.phone}}</text> <text>{{item.consigneeMobile}}</text>
</view>
<view class="name-tel" style="width: 100%;" v-else>
<text style="line-height: 75rpx;">{{item.name}}</text>
<text>{{item.phone}}</text>
</view> </view>
<view class="name-tel" style="width: 100%;"> <view class="name-tel" style="width: 100%;">
<text>{{item.province + item.city + item.area + item.address}}</text> <text>{{item.province + item.city + item.area + item.address}}</text>
</view>
<view class="name-edit">
<u-icon name="edit-pen-fill" size="28"></u-icon>
</view> </view>
</view> </view>
</view> </view>
@ -195,7 +202,8 @@
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
background: #fff; background: #fff;
font-size: 32rpx; font-size: 32rpx;
margin-top: 20rpx; margin-top: 20rpx;
position: relative;
} }
.name-tel { .name-tel {
@ -204,7 +212,13 @@
line-height: 75rpx; line-height: 75rpx;
padding-left: 40rpx; padding-left: 40rpx;
} }
.name-edit{
width: 80rpx;
height: 80rpx;
position: absolute;
top: 0;
right: 0;
}
.standard-box { .standard-box {
color: #088FEB; color: #088FEB;
line-height: 75rpx; line-height: 75rpx;

10
pages/inventory/addGoods.vue

@ -7,7 +7,7 @@
<uni-easyinput type="text" v-model="formData.productName" placeholder="请输入商品名称" trim="all" /> <uni-easyinput type="text" v-model="formData.productName" placeholder="请输入商品名称" trim="all" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="商品图片" name="productPicture"> <uni-forms-item label="商品图片" name="productPicture">
<u-upload :fileList="fileList1" @afterRead="afterRead" @delete="deletePic" name="1" multiple <u-upload :fileList="formData.productPicture" @afterRead="afterRead" @delete="deletePic" name="1" multiple
:maxCount="10"></u-upload> :maxCount="10"></u-upload>
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="货号" name="productSn" required> <uni-forms-item label="货号" name="productSn" required>
@ -24,7 +24,7 @@
<uni-datetime-picker type="date" :clear-icon="false" v-model="formData.salesWeek" /> <uni-datetime-picker type="date" :clear-icon="false" v-model="formData.salesWeek" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="库存预警" name="tailWarn" required> <uni-forms-item label="库存预警" name="tailWarn" required>
<uni-easyinput type="digit" v-model="formData.tailWarn" placeholder="请设置库存预警天数" trim="all" /> <uni-easyinput type="digit" v-model="formData.tailWarn" placeholder="请设置库存预警最低天数" trim="all" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="分类" name="categoryId" required> <uni-forms-item label="分类" name="categoryId" required>
<uni-data-select class="uni-data-select" :localdata="categoryList" v-model="formData.categoryId" <uni-data-select class="uni-data-select" :localdata="categoryList" v-model="formData.categoryId"
@ -58,7 +58,7 @@
productSn: '', productSn: '',
wholesalePrice: '', wholesalePrice: '',
// classification: '', // classification: '',
productPicture: '', productPicture: [],
productIntro: '', productIntro: '',
categoryId: '', categoryId: '',
salesWeek: '', salesWeek: '',
@ -149,7 +149,7 @@
console.log(event); console.log(event);
// 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式 // 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式
let lists = [].concat(event.file) let lists = [].concat(event.file)
if (this.fileList1 == undefined) this.fileList1 = []; if (this.formData.productPicture == undefined) this.formData.productPicture = [];
let fileListLen = this[`fileList${event.name}`].length let fileListLen = this[`fileList${event.name}`].length
console.log(lists, 'lists'); console.log(lists, 'lists');
lists.map((item) => { lists.map((item) => {
@ -159,7 +159,7 @@
message: '上传中' message: '上传中'
}) })
}) })
console.log(this.fileList1); console.log(this.formData.productPicture);
for (let i = 0; i < lists.length; i++) { for (let i = 0; i < lists.length; i++) {
const result = await this.uploadFilePromise(lists[i].url) const result = await this.uploadFilePromise(lists[i].url)
let item = this[`fileList${event.name}`][fileListLen] let item = this[`fileList${event.name}`][fileListLen]

6
pages/inventory/addinventory.vue

@ -7,7 +7,7 @@
<view class="list-name">供应商</view> <view class="list-name">供应商</view>
<view class="list-val"> <view class="list-val">
<input type="text" placeholder="请选择供应商" disabled <input type="text" placeholder="请选择供应商" disabled
style="border-bottom: 1px solid #fff;text-align: center;" :value="khName.name" @tap="goPopleList('gysName')"> style="border-bottom: 1px solid #fff;text-align: center;" :value="khName.consigneeName" @tap="goPopleList('gysName')">
<uni-icons type="right" size="16" style="margin-left: 80rpx;line-height: 80rpx;"></uni-icons> <uni-icons type="right" size="16" style="margin-left: 80rpx;line-height: 80rpx;"></uni-icons>
</view> </view>
</view> </view>
@ -172,7 +172,9 @@
noPay:this.noPay, //欠款 noPay:this.noPay, //欠款
shouldPay:this.shouldPay, //应付金额 shouldPay:this.shouldPay, //应付金额
totalAmount:this.totalAmount, //总数量 totalAmount:this.totalAmount, //总数量
remask:this.remask remask:this.remask,
supplierId:this.khName.id, //供应商id和姓名
supplierName:this.khName.consigneeName
} }
let purchaseDetails = [] let purchaseDetails = []
for (let i = 0;i<this.carList.length;i++) { for (let i = 0;i<this.carList.length;i++) {

Loading…
Cancel
Save