|
@@ -0,0 +1,238 @@
|
|
|
|
|
+<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"
|
|
|
|
|
+ @click="openAddres"
|
|
|
|
|
+ >
|
|
|
|
|
+ <view class="tui-title ">仓库</view>
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-model="form.openTime"
|
|
|
|
|
+ placeholder-class="phcolor"
|
|
|
|
|
+ class="tui-input"
|
|
|
|
|
+ placeholder="请填写"
|
|
|
|
|
+ maxlength="50"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ />
|
|
|
|
|
+ </TuiListCell>
|
|
|
|
|
+ <TuiListCell
|
|
|
|
|
+ class="line-cell"
|
|
|
|
|
+ :hover="false"
|
|
|
|
|
+ :arrow="false"
|
|
|
|
|
+ @click="openAddres"
|
|
|
|
|
+ >
|
|
|
|
|
+ <view class="tui-title ">备注</view>
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-model="form.openTime"
|
|
|
|
|
+ placeholder-class="phcolor"
|
|
|
|
|
+ class="tui-input"
|
|
|
|
|
+ placeholder="请填写"
|
|
|
|
|
+ maxlength="50"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ />
|
|
|
|
|
+ </TuiListCell>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </form>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="space-view ex-table">
|
|
|
|
|
+ <Tabel :columns="columns" :dataList="dataList">
|
|
|
|
|
+ <template v-slot="{ row, column }">
|
|
|
|
|
+ <view v-if="column.custom == 'icon'" class="list-icon">
|
|
|
|
|
+ <image
|
|
|
|
|
+ class="icon-image"
|
|
|
|
|
+ src="https://img.huaml.com/uploads/12358/202005/29/de74c55596d304b85e79154958e8bf57_small.jpeg"
|
|
|
|
|
+ alt="商品图"
|
|
|
|
|
+ />
|
|
|
|
|
+ <view class="icon-info">
|
|
|
|
|
+ <view class="info-name">
|
|
|
|
|
+ 粉佳人
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="info-type">
|
|
|
|
|
+ B级
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </Tabel>
|
|
|
|
|
+ <template v-if="dataList.length == 0">
|
|
|
|
|
+ <view class="empty-view">
|
|
|
|
|
+ <button class="admin-button-com blue big" @click="">
|
|
|
|
|
+ 开始盘点
|
|
|
|
|
+ </button>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="bar-view">
|
|
|
|
|
+ <view class="btn-view">
|
|
|
|
|
+ <button :class="['admin-button-com', 'middle', 'default']" @click="">
|
|
|
|
|
+ 继续盘点
|
|
|
|
|
+ </button>
|
|
|
|
|
+ <button
|
|
|
|
|
+ :class="['admin-button-com', 'middle', 'default', 'disabled']"
|
|
|
|
|
+ disabled
|
|
|
|
|
+ @click=""
|
|
|
|
|
+ >
|
|
|
|
|
+ 保存导草稿
|
|
|
|
|
+ </button>
|
|
|
|
|
+ <button
|
|
|
|
|
+ :class="['admin-button-com', 'middle', 'disabled']"
|
|
|
|
|
+ disabled
|
|
|
|
|
+ @click=""
|
|
|
|
|
+ >
|
|
|
|
|
+ 确认
|
|
|
|
|
+ </button>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+</template>
|
|
|
|
|
+<script>
|
|
|
|
|
+import Tabel from "../components/table";
|
|
|
|
|
+import TuiListCell from "@/components/plugin/list-cell";
|
|
|
|
|
+export default {
|
|
|
|
|
+ components: { TuiListCell, Tabel },
|
|
|
|
|
+ data() {
|
|
|
|
|
+ return {
|
|
|
|
|
+ form: {},
|
|
|
|
|
+ columns: [
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "名称",
|
|
|
|
|
+ custom: "icon"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "库存",
|
|
|
|
|
+ dataIndex: "count",
|
|
|
|
|
+ // color: "success",
|
|
|
|
|
+ width: 120,
|
|
|
|
|
+ align: "center"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "盘点数",
|
|
|
|
|
+ dataIndex: "inventoryCount",
|
|
|
|
|
+ color: "warn",
|
|
|
|
|
+ width: 120,
|
|
|
|
|
+ align: "center"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "盈亏数",
|
|
|
|
|
+ dataIndex: "profitCount",
|
|
|
|
|
+ color: "success",
|
|
|
|
|
+ width: 120,
|
|
|
|
|
+ align: "center"
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
|
|
+ dataList: [
|
|
|
|
|
+ // {
|
|
|
|
|
+ // count: "1",
|
|
|
|
|
+ // inventoryCount: "2",
|
|
|
|
|
+ // profitCount: "3"
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // count: "1",
|
|
|
|
|
+ // inventoryCount: "2",
|
|
|
|
|
+ // profitCount: "3"
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // count: "1",
|
|
|
|
|
+ // inventoryCount: "2",
|
|
|
|
|
+ // profitCount: "3"
|
|
|
|
|
+ // }
|
|
|
|
|
+ ]
|
|
|
|
|
+ };
|
|
|
|
|
+ }
|
|
|
|
|
+};
|
|
|
|
|
+</script>
|
|
|
|
|
+<style lang="scss" scoped>
|
|
|
|
|
+.ex-page {
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: column;
|
|
|
|
|
+ .main-view {
|
|
|
|
|
+ flex: 1;
|
|
|
|
|
+ background-color: #f9fbfc;
|
|
|
|
|
+ .space-view {
|
|
|
|
|
+ margin-top: 15upx;
|
|
|
|
|
+ background-color: #fff;
|
|
|
|
|
+ }
|
|
|
|
|
+ .ex-info {
|
|
|
|
|
+ // padding: 0 30upx;
|
|
|
|
|
+ .module-com {
|
|
|
|
|
+ background-color: #fff;
|
|
|
|
|
+ margin-bottom: 20px;
|
|
|
|
|
+
|
|
|
|
|
+ border-radius: 10px;
|
|
|
|
|
+ overflow: hidden;
|
|
|
|
|
+ .member-wrap {
|
|
|
|
|
+ .member-det {
|
|
|
|
|
+ font-size: 24px;
|
|
|
|
|
+ margin-left: 20px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ .remark-wrap {
|
|
|
|
|
+ align-items: flex-start;
|
|
|
|
|
+ .remark {
|
|
|
|
|
+ height: 240px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ // .tui-placeholder,
|
|
|
|
|
+ // .tui-input {
|
|
|
|
|
+ // padding-right: 30px;
|
|
|
|
|
+ // width: 100%;
|
|
|
|
|
+ // text-align: right;
|
|
|
|
|
+ // }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ .ex-table {
|
|
|
|
|
+ /deep/.list-icon {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ .icon-image {
|
|
|
|
|
+ width: 80upx;
|
|
|
|
|
+ height: 80upx;
|
|
|
|
|
+ margin-right: 20upx;
|
|
|
|
|
+ }
|
|
|
|
|
+ .icon-info {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: column;
|
|
|
|
|
+ justify-content: space-around;
|
|
|
|
|
+ .info-name {
|
|
|
|
|
+ font-size: 28upx;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ color: #333333;
|
|
|
|
|
+ }
|
|
|
|
|
+ .info-type {
|
|
|
|
|
+ font-size: 24upx;
|
|
|
|
|
+ color: #666666;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ .empty-view {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ margin: 120upx auto;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ .bar-view {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: flex-end;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ padding: 0 30upx;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ height: 100upx;
|
|
|
|
|
+
|
|
|
|
|
+ box-shadow: 0px -1px 6px 0px rgba(4, 0, 0, 0.06);
|
|
|
|
|
+
|
|
|
|
|
+ .btn-view {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ .admin-button-com {
|
|
|
|
|
+ margin: 0 10upx;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+</style>
|