现场调试更改
This commit is contained in:
@@ -14,8 +14,34 @@
|
||||
</view>
|
||||
<uni-icons type="right" size="18" color="#ccc"></uni-icons>
|
||||
</view>
|
||||
|
||||
<view class="menu-card" @click="navigateTo('/pages/warehouse/inbound/cancelBindTray')">
|
||||
<view class="card-left">
|
||||
<view class="card-icon orange">
|
||||
<uni-icons type="scan" size="24" color="#fff"></uni-icons>
|
||||
</view>
|
||||
<view class="card-info">
|
||||
<text class="card-title">入库绑盘作废</text>
|
||||
<text class="card-desc">扫描物料条码进行绑盘作废操作</text>
|
||||
</view>
|
||||
</view>
|
||||
<uni-icons type="right" size="18" color="#ccc"></uni-icons>
|
||||
</view>
|
||||
|
||||
<view class="menu-card" @click="navigateTo('/pages/warehouse/inbound/supply')">
|
||||
<view class="menu-card" @click="navigateTo('/pages/warehouse/inbound/emptyTray')">
|
||||
<view class="card-left">
|
||||
<view class="card-icon green">
|
||||
<uni-icons type="plus" size="24" color="#fff"></uni-icons>
|
||||
</view>
|
||||
<view class="card-info">
|
||||
<text class="card-title">空托入库</text>
|
||||
<text class="card-desc">空托盘无物料直接入库</text>
|
||||
</view>
|
||||
</view>
|
||||
<uni-icons type="right" size="18" color="#ccc"></uni-icons>
|
||||
</view>
|
||||
|
||||
<!-- <view class="menu-card" @click="navigateTo('/pages/warehouse/inbound/supply')">
|
||||
<view class="card-left">
|
||||
<view class="card-icon green">
|
||||
<uni-icons type="plus" size="24" color="#fff"></uni-icons>
|
||||
@@ -26,7 +52,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<uni-icons type="right" size="18" color="#ccc"></uni-icons>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
|
||||
<!-- 待处理单据 -->
|
||||
@@ -41,7 +67,21 @@
|
||||
<view v-else>
|
||||
<view class="task-card" v-for="(item, index) in taskList" :key="index"
|
||||
@click="handleTask(item)">
|
||||
<view class="task-header">
|
||||
<view class="task-header">
|
||||
<text class="task-type">{{ item.typeName }}</text>
|
||||
<text class="task-no">{{ item.instockinId }}</text>
|
||||
</view>
|
||||
<view class="task-body">
|
||||
<view class="task-info-item">
|
||||
<text class="info-label">单据编号</text>
|
||||
<text class="info-value">{{ item.stockinId }}</text>
|
||||
</view>
|
||||
<view class="task-info-item">
|
||||
<text class="info-label">单据状态</text>
|
||||
<!-- <text class="info-value">{{ item.status }}</text> -->
|
||||
<text class="info-value">{{ stockStatusMap[item.status] || '未知状态' }}</text>
|
||||
</view>
|
||||
<!-- <view class="task-header">
|
||||
<text class="task-type">{{ item.typeName }}</text>
|
||||
<text class="task-no">{{ item.taskNo }}</text>
|
||||
</view>
|
||||
@@ -57,7 +97,7 @@
|
||||
<view class="task-info-item">
|
||||
<text class="info-label">数量</text>
|
||||
<text class="info-value">{{ item.quantity - item.assignNum }}</text>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="task-footer">
|
||||
<text class="task-time">{{ item.createTime }}</text>
|
||||
@@ -70,14 +110,22 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getInboundTaskList } from '@/api/warehouse/inbound'
|
||||
import { getInboundTaskList, getInboundStockList } from '@/api/warehouse/inbound'
|
||||
import UniIcons from "../../../uni_modules/uni-icons/components/uni-icons/uni-icons.vue";
|
||||
|
||||
export default {
|
||||
components: {UniIcons},
|
||||
dicts: ['in_stockin_status'],
|
||||
data() {
|
||||
return {
|
||||
taskList: []
|
||||
taskList: [],
|
||||
stockStatusMap: {
|
||||
1: '创建',
|
||||
2: '已审核',
|
||||
3: '执行中',
|
||||
4: '已完成',
|
||||
5: '已作废'
|
||||
},
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
@@ -91,7 +139,8 @@
|
||||
this.$tab.navigateTo(url)
|
||||
},
|
||||
loadTasks() {
|
||||
getInboundTaskList().then(res => {
|
||||
// getInboundTaskList().then(res => {
|
||||
getInboundStockList().then(res => {
|
||||
this.taskList = res.rows || []
|
||||
}).catch(() => {
|
||||
this.taskList = []
|
||||
@@ -161,6 +210,10 @@
|
||||
background: linear-gradient(135deg, #52c41a, #73d13d);
|
||||
}
|
||||
|
||||
.card-icon.orange {
|
||||
background: linear-gradient(135deg, #f8b12e, #f5eb69);
|
||||
}
|
||||
|
||||
.card-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
Reference in New Issue
Block a user