|
|
@@ -1,22 +1,8 @@
|
|
|
<template>
|
|
|
<view class="ex-page">
|
|
|
<view class="main-view overscroll">
|
|
|
- <view class="space-view ex-info">
|
|
|
- <form>
|
|
|
- <view class="module-com input-line-wrap">
|
|
|
- <TuiListCell class="line-cell" :hover="false" :arrow="false">
|
|
|
- <view class="tui-title ">门店</view>{{ shopInfo.shopName||'' }}
|
|
|
- </TuiListCell>
|
|
|
- <TuiListCell class="line-cell" :hover="false" :arrow="false">
|
|
|
- <view class="tui-title ">备注</view>
|
|
|
- <input v-model="remark" placeholder-class="phcolor" class="tui-input" placeholder="选填" maxlength="50" type="text" />
|
|
|
- </TuiListCell>
|
|
|
- </view>
|
|
|
- </form>
|
|
|
- </view>
|
|
|
<view class="space-view ex-table">
|
|
|
<block v-if="!$util.isEmpty(selectList)">
|
|
|
-
|
|
|
<view class="table-view">
|
|
|
<view class="table-header" >
|
|
|
<view class="table-th" v-for="(item, index) in columns" :key="index" :style="{flex: item.width ? `0 0 ${item.width}upx` : '1', textAlign: item.align || 'left', }">
|
|
|
@@ -26,7 +12,7 @@
|
|
|
<view class="table-tr" v-for="(item, index) in selectList" :key="index">
|
|
|
<view class="table-td" v-for="(column, columnIndex) in columns" :key="columnIndex" :style="{flex: column.width ? `0 0 ${column.width}upx` : '1', textAlign: column.align || 'left', }">
|
|
|
<view v-if="column.custom == 'icon'" class="list-icon">
|
|
|
- <image class="icon-image" :src="item.cover" alt="商品图" />
|
|
|
+ <image class="icon-image" :src="item.cover" />
|
|
|
<view class="icon-info">
|
|
|
<view class="info-name">
|
|
|
{{ item.itemName }}
|
|
|
@@ -53,17 +39,29 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</block>
|
|
|
- <template v-if="selectList.length == 0">
|
|
|
- <view class="empty-view">
|
|
|
- <button class="admin-button-com blue big" @click="gotoSelectPage">选择花材</button>
|
|
|
+ <view class="empty-view">
|
|
|
+ <button class="admin-button-com blue middle"
|
|
|
+ style="margin:5upx 0 5upx 30upx;" @click="gotoSelectPage">返回修改</button>
|
|
|
+ <button class="admin-button-com blue middle"
|
|
|
+ style="margin:5upx 0 5upx 40upx;" @click="removeFromSave(0)">清空花材</button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="space-view ex-info">
|
|
|
+ <form>
|
|
|
+ <view class="module-com input-line-wrap">
|
|
|
+ <TuiListCell class="line-cell" :hover="false" :arrow="false">
|
|
|
+ <view class="tui-title ">门店</view>{{ shopInfo.shopName||'' }}
|
|
|
+ </TuiListCell>
|
|
|
+ <TuiListCell class="line-cell" :hover="false" :arrow="false">
|
|
|
+ <view class="tui-title ">备注</view>
|
|
|
+ <input v-model="remark" placeholder-class="phcolor" class="tui-input" placeholder="选填" maxlength="50" type="text" />
|
|
|
+ </TuiListCell>
|
|
|
</view>
|
|
|
- </template>
|
|
|
+ </form>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="bar-view" v-if="selectList.length>0">
|
|
|
<view class="btn-view">
|
|
|
- <button class="admin-button-com big default" @click="removeFromSave(0)" style="margin-right:40upx;">清空花材</button>
|
|
|
- <button :class="['admin-button-com', 'big']" @click="gotoSelectPage" style="margin-right:40upx;"> 修改花材 </button>
|
|
|
<button v-if="!orderSn" :class="['admin-button-com', 'big', { disabled: allCount == 0 }]" :disabled="allCount == 0" @click="confirmPop(1)"> 确认盘点 </button>
|
|
|
<button v-if="orderSn" :class="['admin-button-com', 'big', { disabled: allCount == 0 }]" :disabled="allCount == 0" @click="confirmPop(2)"> 确认盘点 </button>
|
|
|
</view>
|
|
|
@@ -89,8 +87,8 @@ export default {
|
|
|
selectJobType: "inventory",
|
|
|
columns: [
|
|
|
{ name: "名称", custom: "icon" },
|
|
|
- { name: "库存", custom: "stock", width: 120, align: "center" },
|
|
|
- { name: "盘点数", custom: "inventory", color: "warn", width: 120, align: "center" },
|
|
|
+ { name: "盘点前", custom: "stock", width: 120, align: "center" },
|
|
|
+ { name: "盘点后", custom: "inventory", color: "warn", width: 120, align: "center" },
|
|
|
{
|
|
|
name: "盈亏数",
|
|
|
color: "success",
|
|
|
@@ -138,7 +136,8 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
gotoSelectPage() {
|
|
|
- uni.navigateTo({ url: "/pagesStorehouse/inventory/select" })
|
|
|
+ let type = this.option.type ? this.option.type: ''
|
|
|
+ uni.navigateTo({ url:"/pagesStorehouse/inventory/select?type="+type,type:2})
|
|
|
},
|
|
|
getInfo(){
|
|
|
return currentShop().then(res => {
|
|
|
@@ -275,11 +274,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .empty-view {
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- margin: 120upx auto;
|
|
|
- }
|
|
|
}
|
|
|
.bar-view {
|
|
|
display: flex;
|