wangfukang 3 years ago
parent
commit
6c7251165b
  1. 38
      package1/other/logistics.vue
  2. 52
      package1/stock/addStock.vue
  3. 290
      package1/stock/addStockList.vue
  4. 239
      package1/stock/goodsStock.vue
  5. 2
      package1/stock/stockDetail.vue

38
package1/other/logistics.vue

@ -5,13 +5,12 @@
</view>
<view class="contentPadding">
<view class="title">
<i class="iconfont icon-huaban"> 今日订单
<i class="iconfont icon-huaban">
今日订单
<text style="color:red;text-decoration-line: underline;padding-left:30rpx;">({{waitUpDoorNum}}个待上门取货)</text>
<view class="btn" @tap="gotoSearchData">
历史订单 >
</view>
<!-- <view class="btn" @tap="gotoSearchData">
<text>3</text>待上门取货 >
</view> -->
</view>
</i>
</view>
</view>
@ -90,7 +89,8 @@
id:'',
type:'',
companyName:'',
current:0
current:0,
waitUpDoorNum:0
}
},
created() {
@ -121,8 +121,34 @@
this.endDate = date
this.transCompany = this.id
this.getList()
this.waitPickUp()
},
methods: {
//查询上门取件数量
waitPickUp(){
uni.request({
url: this.tui.interfaceUrl() + '/app/sale/getSaleByCompanyId',
data: {
companyId:this.id,
transportType:1,
status:8
},
header: {
'content-type': 'application/json',
'appWLToken': this.tui.getToken()
},
method: 'POST', //'GET','POST'
dataType: 'json',
success: (res) => {
if (res.data.code == 200){
this.waitUpDoorNum = res.result.orders.length
}
},
fail: (res) => {
this.tui.toast("网络不给力,请稍后再试~")
}
})
},
upOrDown(){
var url
if(this.type == 1){ //上线状态

52
package1/stock/addStock.vue

@ -61,7 +61,7 @@
<!-- 购物车弹出层 -->
<uni-popup ref="carPopup" background-color="#fff">
<view class="popup-content">
<view v-for="(item,index) in stockList" :key="index" style="position: relative;">
<view v-for="(item,index) in stockList" :key="index" style="position: relative;margin-top: 60rpx;">
<view class="popup-title">
<view class="popup-title-left">
<img class="img-radius" :src="item.productPicture" alt="" v-if="item.productPicture">
@ -340,22 +340,40 @@
},
//删除整条商品
delShop(item) {
var that = this;
uni.showModal({
title: "提示",
content: "确定删除此条商品吗?",
success: function(res) {
if (res.confirm) {
for (let i = 0; i < that.carList.length; i++) {
if (that.carList[i].id == item.id) {
that.carList.splice(i, 1)
}
}
that.carType = that.stockList.length
}
that.$forceUpdate()
}
})
var that = this;
let dataList = []
var itemData;
itemData = {
checkStockId:uni.getStorageSync('stockId'),
productId: item.id,
productName:item.productName,
productPicture:item.productPicture,
productSn:item.productSn,
checkStockAttributeVos:[]
}
dataList.push(itemData)
this.tui.request("/app/checkStockDetail/addCheckStockDetail", "POST", dataList, false, false).then((res) => {
if (res.code == 200) {
} else {
this.tui.toast(res.message)
}
}).catch((res) => {})
// uni.showModal({
// title: "提示",
// content: "确定删除此条商品吗?",
// success: function(res) {
// if (res.confirm) {
// for (let i = 0; i < that.carList.length; i++) {
// if (that.carList[i].id == item.id) {
// that.carList.splice(i, 1)
// }
// }
// that.carType = that.stockList.length
// }
// that.$forceUpdate()
// }
// })
}
}
}

290
package1/stock/addStockList.vue

@ -3,7 +3,7 @@
<view class="page1">
<view class="content">
<view class="content-box">
<view class="shop-box" style="position: fixed;top:0;z-index: 99;width:100%;border-bottom: 1px solid #eee;margin-bottom: 20rpx;">
<view class="shop-box" v-if="stock.delFlag == 0" style="width:100%;height:132rpx;border-bottom: 1px solid #eee;margin-bottom: 20rpx;">
<u-grid :col="2" border>
<u-grid-item index="add" @tap.stop="scanCodeAdd">
<u-icon name="scan" size="36"></u-icon>
@ -15,33 +15,34 @@
</u-grid-item>
</u-grid>
</view>
<view class="shop-box" style="border-top:5px solid #eee;margin-top: 132rpx;" v-for="(value,key) in Array.from(carList)"
:key="key">
<view class="shop-box" style="border-top:5px solid #eee;" v-for="(item,index) in stockList" :key="key">
<view class="shop-name">
<img class="img-radius" :src="value[1].productPicture" alt=""
<img class="img-radius" :src="item.productPicture" alt=""
style="width: 140rpx;height: 140rpx;margin: 30rpx 0 0 30rpx;">
<view class="shop-productName">
<view style="color:#FF5809;">品名:{{value[1].productName}} ({{value[1].productSn}})</view>
<view>单价:{{value[1].purchasePrice || 0}} 数量:{{value[1].productCount}}</view>
<view>总价:{{value[1].price}}</view>
<view style="color:#FF5809;">品名:{{item.productName}}</view>
<view style="color:#FF5809;">货号:{{item.productSn}}</view>
</view>
</view>
<view class="tui-order-content">
<u-collapse>
<u-collapse-item v-for="(item,index) in returnList" :key="index" :title="item.returnSale.createTime"
:name="item.returnSale.saleId">
<u-collapse-item :title="'点击查看商品盘点详情'">
<view style="display: flex;border-bottom: 1px solid #eee;height: 50rpx;line-height: 50rpx;">
<view style="width: 49%;text-align: center;border-right: 1px solid #eee;">商品规格</view>
<view style="width: 50%;text-align: center;">总数量</view>
<view style="width: 60%;text-align: center;border-right: 1px solid #eee;">商品规格</view>
<view style="width: 20%;text-align: center;">原数量</view>
<view style="width: 20%;text-align: center;">盘点数</view>
</view>
<view v-for="(items,index1) in item.purchaseDetails">
<view v-for="(data,index2) in items.stockLogList1" style='height: 50rpx;line-height: 50rpx;'>
<view style="width: 49%;text-align: center;border-right: 1px solid #eee;float: left;">
{{data.attributeList | sliceMsg}}
<view v-for="(item1,index1) in item.checkStockAttributeVos" :key="index1">
<view style='height: 50rpx;line-height: 50rpx;'>
<view style="width: 60%;text-align: center;border-right: 1px solid #eee;float: left;">
{{item1.attributeList | sliceMsg}}
</view>
<view style="width: 50%;text-align: center;float: left;">
{{data.productCount}}
<view style="width: 20%;text-align: center;float: left;">
{{item1.stockCount}}
</view>
<view style="width: 20%;text-align: center;float: left;">
{{item1.pdNum}}
</view>
</view>
</view>
@ -50,85 +51,30 @@
</view>
</view>
</view>
<view class="content-box" style="margin-bottom:110rpx;" :style="{'margin-top':(carList.size>0?0:132) + 'rpx' }">
<!-- 账号权限是否可以维护成本价格(主账号和被授权的账号可以维护),参数名:shop_admin_cost,维护在用户表中,存在前后端缓存里,把备注栏挪出来,谁都可以备注 -->
<view class="price-box-list">
<view class="content-box" style="margin-bottom:110rpx;">
<view class="content-list" v-if="stock.delFlag == 1">
<view class="list-name">备注:{{stock.remark == null ?'':stock.remark}}</view>
</view>
<view class="price-box-list" v-else>
<view class="content-list">
<view class="list-name">备注</view>
<view class="">
<textarea v-model="remark" />
<textarea v-model="remark" />
</view>
</view>
</view>
</view>
</view>
</view>
<view class="bottom-box">
<view class="bottom-left">
<text>合计:{{totalAmount}}</text>
<text style="color: #ffa200;">¥{{shouldPay}}</text>
<text>共盘点:{{stockList.length}}款</text>
</view>
<view class="bottom-right">
<button class="bottom-btn" @tap='inventorySubmit'>入库</button>
<view class="bottom-right" v-if="stock.delFlag == 0">
<button class="bottom-btn" @tap='inventorySubmit'>确认盘点</button>
</view>
</view>
<!-- 弹出层 -->
<view>
<uni-popup ref="shopPopup" background-color="#fff">
<view class="shop-popup-content">
<view class="shop-popup-title">
<view class="shop-popup-title-left">
<img class="img-radius" :src="goodsDetail.productPicture" alt="" v-if="goodsDetail.productPicture">
<view class="noPic" v-else>暂无图片</view>
</view>
<view class="shop-popup-title-right">
<view class="shop-popup-title-right-box" style="color: #088FEB;">{{goodsDetail.productName}}
</view>
<view class="shop-popup-title-right-box">{{goodsDetail.productSn}}</view>
</view>
</view>
<view class="shop-popup-container">
<ul style="border-top:20rpx;">
<li v-for="(items,index) in goodsDetail.attributeList" :key="index">
<view class="shop-title-fur">
<view class="shop-title-name">{{items.name}}</view>
</view>
<view class="shop-attrs">
<uni-data-checkbox v-model="value" :localdata="range"></uni-data-checkbox>
<text v-for="(itemTag, index1) in items.value" :key="index1"
@tap.stop="attrNameChange(index,index1) "
:class="itemTag.isChecked ? 'checkedText' : '' "> {{itemTag.value}}</text>
</view>
</li>
</ul>
<view style="padding-bottom: 100rpx;">
<view class="shop-checkList" v-for="(item,index) in temporaryList" :key="index">
<view @tap.stop="delCarData(index)" style="margin-right: 20rpx">
<uni-icons color="red" type="minus" size="26"></uni-icons>
</view>
<view class="shop-checkList-box">
<text style="width: 300rpx;display: inline-block;">{{item.name}}</text> <text style="color:#777;font-size: 12px;">库存:{{item.productNum}}</text>
</view>
<uni-number-box max='1000000' v-model="item.productCount" @change="temporaryChange" />
</view>
</view>
</view>
</view>
<view class="shop-popup-bottom" v-for="(item,index) in temporaryList" :key="index">
<view class="shop-popup-bottom-left">
<text>数量:{{zNum}} 件</text>
</view>
<view class="shop-popup-bottom-right">
<view class="bottom-btn" @tap="temporaryCheck">选好了</view>
</view>
</view>
</uni-popup>
</view>
<!-- 弹出输入框 -->
<uni-popup ref="inputDialog" type="dialog">
<uni-popup-dialog ref="inputClose" mode="input" title="采购价" placeholder="请输入采购价"
@confirm="changePrice"></uni-popup-dialog>
</uni-popup>
</view>
<!-- <u-loadmore :status="status" /> -->
</view>
</template>
@ -140,32 +86,13 @@
computed: mapState(['shopName']),
data() {
return {
// 表单数据
formData: {
name: '',
manufacturer: '',
price: '',
single: ''
},
khName: [],
carList: new Map(),
remark: '',
otherPay: '',
noPay: 0,
alreadyPay: '',
realAmount: 0,
shouldPay: '',
totalAmount: 0,
index: '',
index1: '',
goodsDetail: [],
columns: [],
keyList: [],
temporaryList: [],
zNum: 0,
storageType:'',
productNum:0,
productId:''
stockId:'',
stockList:[],
stock:[],
status: 'loadmore',
pages: 1,
totalPages: 0,
remark:''
}
},
filters: {
@ -180,81 +107,59 @@
return name;
}
},
onShow() {
let that = this;
this.khName = JSON.parse(JSON.stringify(this.khName)) || ''
if (this.carList.size == 0) { //当前页没有数据
for (let i = 0; i < this.carList1.length; i++) {
let obj = {
purchasePrice: "", //进货价
price: 0,
productCount: 0,
productId: this.carList1[i].id,
productName: this.carList1[i].productName,
productPicture: this.carList1[i].productPicture,
productSn: this.carList1[i].productSn,
stockLogList: new Map(),
stockLogList1: []
}
for (let m = 0; m < this.carList1[i].saleDetailQueryDTO.length; m++) {
obj.stockLogList.set(this.carList1[i].saleDetailQueryDTO[m].attributeList, this.carList1[i]
.saleDetailQueryDTO[m].productCount)
obj.productCount += this.carList1[i].saleDetailQueryDTO[m].productCount
}
this.carList.set(this.carList1[i].id, obj)
}
this.carList1 = []
} else { //当前页有数据
for (let i = 0; i < this.carList1.length; i++) {
if (this.carList.has(this.carList1[i].id) == true) { //商品相同
for (let m = 0; m < this.carList1[i].saleDetailQueryDTO.length; m++) {
if (this.carList.get(this.carList1[i].id).stockLogList.has(this.carList1[i].saleDetailQueryDTO[
m].attributeList) == true) { //规格相同
this.carList.get(this.carList1[i].id).stockLogList.set(this.carList1[i].saleDetailQueryDTO[
m].attributeList, this.carList.get(this.carList1[i].id).stockLogList.get(this
.carList1[i].saleDetailQueryDTO[m].attributeList) + this.carList1[i]
.saleDetailQueryDTO[m].productCount)
} else { //规格不同
this.carList.get(this.carList1[i].id).stockLogList.set(this.carList1[i].saleDetailQueryDTO[
m].attributeList, this.carList1[i].saleDetailQueryDTO[m].productCount)
}
this.carList.get(this.carList1[i].id).productCount += this.carList1[i].saleDetailQueryDTO[
m].productCount
}
} else { //商品不同
let obj = {
purchasePrice: "", //进货价
price: 0,
productCount: 0,
productId: this.carList1[i].id,
productName: this.carList1[i].productName,
productPicture: this.carList1[i].productPicture,
productSn: this.carList1[i].productSn,
stockLogList: new Map(),
stockLogList1: [],
name: ''
}
for (let m = 0; m < this.carList1[i].saleDetailQueryDTO.length; m++) {
obj.stockLogList.set(this.carList1[i].saleDetailQueryDTO[m].attributeList, this.carList1[i]
.saleDetailQueryDTO[m].productCount)
obj.name = this.carList1[i].saleDetailQueryDTO[m].name
obj.productCount += this.carList1[i].saleDetailQueryDTO[m].productCount
}
this.carList.set(this.carList1[i].id, obj)
}
this.carList.get(this.carList1[i].id).price = this.carList.get(this.carList1[i].id).purchasePrice * this.carList.get(this.carList1[i].id).productCount;
}
this.carList1 = []
}
this.getAllPrice()
onShow() {
this.getStockList();
},
onLoad() {
this.storageType = uni.getStorageSync('type')
},
this.stockId = uni.getStorageSync('stockId')
},
// onReachBottom() {
// if (this.pages >= this.totalPages) return;
// this.status = 'loading';
// this.pages = ++this.pages;
// this.getStockList();
// },
methods: {
// 获取
getStockList(){
this.stockList = []
this.tui.request("/app/checkStock/getCheckStock", "POST", {
checkStockId:this.stockId,
pageNum:this.pages,
pageSize:10
}, false, false).then((res) => {
if (res.code == 200) {
this.stock = res.result
if (this.pages == 1) {
this.stockList = res.result.checkStockDetailVoList.records
} else {
this.stockList = [...this.stockList, ...res.result.checkStockDetailVoList.records]
}
this.totalPages = res.result.pages
this.carType = this.stockList.length
} else {
this.tui.toast(res.message)
}
}).catch((res) => {})
},
//通过商品id查询商品详细信息
getById(id) {
this.tui.request("/app/product/getById/" + id, "POST", {}, false, true).then((res) => {
if (res.code == 200) {
if(res.result.delFlag ==0 || res.result.purchasePrice==null || res.result.inStorageStatus == 0){
this.tui.toast("请将商品上架或入库后再操作!")
return
}else{
uni.navigateTo({
url: '/package1/stock/stockDetail?item=' + JSON.stringify(res.result)
})
}
} else {
this.tui.toast(res.message)
}
}).catch((res) => {})
},
//扫一扫功能
scanCodeAdd() {
uni.scanCode({
@ -264,7 +169,7 @@
let shopId = res.result.split(',')[1]
if(shopId == uni.getStorageSync('shopId')){
this.productId = res.result.split(',')[0]
this.toggle('bottom', res.result.split(',')[0]);
this.getById(res.result.split(',')[0]);
if (item.saleDetailDTOList) {
for (let i = 0; i < item.saleDetailDTOList.length; i++) {
this.carList.push(item.saleDetailDTOList[i])
@ -282,7 +187,7 @@
if(res1.result == ''){
this.tui.toast('您的店铺中暂无该商品!')
}else{
this.toggle('bottom', res1.result[0].id);
this.getById(res1.result[0].id);
if (item.saleDetailDTOList) {
for (let i = 0; i < item.saleDetailDTOList.length; i++) {
this.carList.push(item.saleDetailDTOList[i])
@ -336,21 +241,25 @@
},
//确认盘点
inventorySubmit() {
let that = this;
uni.showModal({
title: "提示",
content: "请再次确认盘点信息是否正确。确认完成盘点吗?",
content: "请再次确认盘点信息是否正确,确认完成盘点吗?",
success: function(res) {
if(res.confirm){
that.tui.request("/app/checkStock/submitToStock", "post", {}, false, false).then((res) => {
that.tui.request("/app/checkStock/submitToStock", "post", {
id:uni.getStorageSync('stockId'),
remark:that.remark
}, false, true).then((res) => {
if (res.code == 200) {
uni.showToast({
title: "盘点成功",
icon: 'none'
})
setTimeout(res=> {
uni.navigateBack({
delta: 1
})
uni.switchTab({
url: '/pages/index/index'
});
},2000)
} else {
@ -693,7 +602,6 @@
}
.tui-order-content {
width: 100%;
padding: 24rpx 30rpx;
box-sizing: border-box;
background: #fff;
font-size: 24rpx;

239
package1/stock/goodsStock.vue

@ -6,17 +6,19 @@
</view>
<view class="formBox">
<u-alert description="点击可查看对应每笔盘点单" type="primary"></u-alert>
<view class="swipe-action">
<view class="swipe-action__content" @tap="onItemClick(item)" v-for="(item,index) in stockList" :key="index">
<view class="swipe-action__content__left">
<view class="swipe-action__content__text">{{ item.nickname == null ?'暂无':item.nickname}}</view>
<view class="pd-box">
<view class="pd-container" @tap="onItemClick(item)" v-for="(item,index) in stockList" :key="index">
<view class="pd-left">
<view class="">盘点时间:{{ item.creatTime == null ?'暂无':item.creatTime}}</view>
<view class="">盘点人:{{item.createByName}} <text v-if="item.delFlag == 0" style="color:red;">(盘点中)</text><text v-else>(已完成)</text></view>
</view>
<view class="swipe-action__content__right">
<view class="swipe-action__content__right__text">欠款总金额:</view>
<view class="swipe-action__content__right__money">{{ item.no_earn == null ?'暂无':item.no_earn }}
</view>
<view class="pd-right">
<view style="color: blue;text-align: right;padding-right: 30rpx;" @tap.stop="delStock(item.id)">删除此盘点</view>
<view class="pd-right-bottom" v-if="item.delFlag == 0">继续盘点 ></view>
<view class="pd-right-bottom" v-else>查看详情 ></view>
</view>
</view>
</view>
</view>
</view>
<u-loadmore :status="status" />
@ -24,28 +26,14 @@
</template>
<script>
import {
mapState
} from 'vuex';
export default {
name: 'upstream',
computed: mapState(['userId', 'shopIndex']),
data() {
return {
choose: '1',
options1: [{
text: '编辑金额',
style: {
backgroundColor: '#3c9cff'
}
}],
popupShow: false,
status: 'loadmore',
shopName: '',
list: [],
return {
status: 'loadmore',
pages: 1,
totalPages: 0,
range:[],
range:[],
stockList:[]
}
},
onShow() {
@ -55,7 +43,7 @@
if (this.pages >= this.totalPages) return;
this.status = 'loading';
this.pages = ++this.pages;
this.getOrderInfoList();
this.getList();
},
methods: {
getList() {
@ -78,7 +66,24 @@
this.tui.toast(res.message)
}
})
})
// this.tui.request("/purchaseOcrPicture/invoicingAi", "POST", {
// questionMsg:'货号87654321,S码黑色30件,M码儿,白色50件儿,XL码儿,天蓝色50件儿。\n" + "货号87654322,S码粉红色40件,M码儿,玫瑰色50件儿,XL码儿,天蓝色50件儿。\n" + "货号87654323,S码奶奶灰50件,M码儿,绿色50件儿,XL码儿,天蓝色50件儿。\n" + "货号87654324,S码卡其色60件,M码儿,王浩伟色50件儿,XL码儿,天蓝色50件儿。\n" + "货号87654325,S码天空蓝70件,M码儿,白色50件儿,XL码儿,天蓝色50件儿。\n" + "货号87654326,S码所有颜色80件,M码儿,白色50件儿,XL码儿,天蓝色50件儿。\n" + "货号87654327,S码黑色30件,M码儿,白色50件儿,XL码儿,天蓝色50件儿。\n" + "货号87654332,S码粉红色40件,M码儿,玫瑰色50件儿,XL码儿,天蓝色50件儿。\n" + "货号87654333,S码奶奶灰50件,M码儿,绿色50件儿,XL码儿,天蓝色50件儿。\n" + "货号87654334,S码卡其色60件,M码儿,王浩伟色50件儿,XL码儿,天蓝色50件儿。\n" + "货号87654335,S码天空蓝70件,M码儿,白色50件儿,XL码儿,天蓝色50件儿。\n" + "货号87654336,S码所有颜色80件,M码儿,白色50件儿,XL码儿,天蓝色50件儿。\n" + "货号87654337,S码黑色30件,M码儿,白色50件儿,XL码儿,天蓝色50件儿。\n" + "货号87654338,S码粉红色40件,M码儿,玫瑰色50件儿,XL码儿,天蓝色50件儿。\n" + "货号87654339,S码奶奶灰50件,M码儿,绿色50件儿,XL码儿,天蓝色50件儿。\n" + "货号87654340,S码卡其色60件,M码儿,王浩伟色50件儿,XL码儿,天蓝色50件儿。\n" + "货号87654341,S码天空蓝70件,M码儿,白色50件儿,XL码儿,天蓝色50件儿。\n" + "货号87654342,S码天空蓝70件,M码儿,白色50件儿,XL码儿,天蓝色50件儿。\n" + "货号87654343,S码天空蓝70件,M码儿,白色50件儿,XL码儿,天蓝色50件儿。\n" + "货号87654344,S码天空蓝70件,M码儿,白色50件儿,XL码儿,天蓝色50件儿。\n" + " 这是客户要货信息,请帮我把所有内容封装为json,必须一次性列出所有json数据,json格式为:[{ "productSn": "货号", "attributeList": "[{"颜色":"红色","尺码":"均码","productCount": "数量"}]" }]'
// }, false, true).then((res) => {
// this.status = 'nomore';
// if (res.code == 200) {
// if (this.pages == 1) {
// this.stockList = res.result.records
// } else {
// this.stockList = [...this.stockList, ...res.result.records]
// }
// this.totalPages = res.result.pages
// } else {
// this.tui.toast(res.message)
// }
// })
},
searchList(res) {
this.pages = 1;
@ -97,10 +102,42 @@
}
})
},
onItemClick(target) {
uni.navigateTo({
url: `/pages/index/downarrears?userId=${target.userId}&nickname=${target.nickname}`
onItemClick(target) {
uni.setStorageSync('stockId',target.id);
uni.navigateTo({
url: '/package1/stock/addStockList'
})
},
delStock(id){
let that = this;
uni.showModal({
title: "提示",
content: "确认要删除此条盘点信息吗?",
success: function(res) {
if(res.confirm){
that.tui.request("/app/checkStock/submitToStock", "post", {
id:id,
delFlag:2
}, false, true).then((res) => {
if (res.code == 200) {
uni.showToast({
title: "删除成功",
icon: 'none'
})
setTimeout(res=> {
this.getList();
},2000)
} else {
uni.showToast({
title: "盘点失败",
icon: 'none'
})
}
})
}
}
})
}
}
}
@ -108,132 +145,40 @@
<style lang="scss" scoped>
.formBox {
.uni-data-select {
width: 100%;
}
.tui-order-title {
position: relative;
font-size: 28upx;
line-height: 28upx;
padding-left: 16upx;
box-sizing: border-box;
}
.tui-order-title::before {
content: '';
position: absolute;
left: 0;
top: 0;
border-left: 8upx solid $u-primary;
height: 120%;
border-radius: 4upx;
}
}
.tui-tabbar {
width: 100%;
height: 98rpx;
background: #fff;
position: fixed;
left: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: flex-end;
font-size: 26rpx;
box-shadow: 0 0 1px rgba(0, 0, 0, .3);
padding-bottom: env(safe-area-inset-bottom);
z-index: 996;
}
.u-page {
padding: 0;
}
.u-demo-block__title {
padding: 10px 0 2px 15px;
}
.swipe-action {
&__content {
background-color: #fff;
margin-bottom: 25rpx;
padding: 25rpx;
display: flex;
align-items: center;
justify-content: space-between;
&__left {
display: flex;
flex-direction: column;
align-items: center;
}
&__right {
display: flex;
align-items: center;
flex-basis: 300rpx;
justify-content: space-between;
&__text {
color: firebrick;
}
&__money {
flex-basis: 100rpx;
color: red;
text-align: right;
}
}
&__text {
padding: 12rpx 0;
width: 100%;
}
&__time {
font-size: 22rpx;
color: #3a3a3a;
}
&__icon {
flex-basis: 20rpx;
}
}
}
.edit-info {
height: 450 rpx;
padding: 25rpx;
.title {
text-align: center;
font-size: 32rpx;
}
.info-name {
display: flex;
align-items: center;
margin: 35rpx 0;
}
margin-top: 226rpx;
}
button {
color: #ffffff;
background: #5fd9ee;
width: 100%;
margin-bottom: 20rpx;
// margin-top: 20upx;
}
</style>
<style>
.u-radio {
margin: 15 upx 0;
}
.search {
padding: 20upx;
background-color: #fff;
width: 100%;
background-color: #fff;
}
.pd-container{
width: 100%;
height: 150rpx;
background: #fff;
border-top: 10px solid #eee;
display: flex;
}
.pd-left{
width: 60%;
height: 140rpx;
line-height: 70rpx;
padding-left: 20rpx;
}
.pd-right{
width: 40%;
line-height: 70rpx;
}
.pd-right-bottom{
text-align: right;
padding-right: 30rpx;
color: red;
}
</style>

2
package1/stock/stockDetail.vue

@ -30,7 +30,7 @@
{{item.stockCount}}
</view>
<view style="width: 27%;font-size: 26rpx;padding-top: 5px;">
<uni-number-box max='1000000' v-model="item.pdNum" />
<uni-number-box :min="-1000000" max='1000000' v-model="item.pdNum" />
</view>
</view>
</view>

Loading…
Cancel
Save