This commit is contained in:
aihe 2024-04-29 00:24:04 +08:00
parent 4b200163d7
commit 4b73b5f28c
3 changed files with 39 additions and 11 deletions

View File

@ -23,7 +23,7 @@ export default {
submitOrder: `/emis/emisWaybill/realSubmitOrder`, // 提交订单 submitOrder: `/emis/emisWaybill/realSubmitOrder`, // 提交订单
getCustomerUserList: `/emis/emisCustomerUser/listSimple`, // 获取网点客户列表 getCustomerUserList: `/emis/emisCustomerUser/listSimple`, // 获取网点客户列表
getPickStaffList: `/emis/emisStaff/getStaffList`, // 获取操作、收派 员用户列表 getPickStaffList: `/emis/emisStaff/getStaffList`, // 获取操作、收派 员用户列表
getGoodsList: `/emis/emisGoods/listSimple`, // 获取货物列表 getGoodsList: `/emis/emisGoods/listSimple`, // 获取历史--货物列表
getMonthpayAccountList: `/emis/emisMonthpayAccount/listSimple`, // 月结账号列表 getMonthpayAccountList: `/emis/emisMonthpayAccount/listSimple`, // 月结账号列表
getDestPositionList: `/emis/emisDestination/listSimple`, // 目的地 列表 getDestPositionList: `/emis/emisDestination/listSimple`, // 目的地 列表
getCaculteDestSite: `/emis/emisDestination/getDestSite`, // 自动计算目的地 getCaculteDestSite: `/emis/emisDestination/getDestSite`, // 自动计算目的地

View File

@ -3,23 +3,36 @@
<view style="position: relative;height: calc(70vh);"> <view style="position: relative;height: calc(70vh);">
<tpx-layout> <tpx-layout>
<template v-slot:body> <template v-slot:body>
<view class="dt-block"> <view class="dt-block">
<view class="dt-tle">
<view class="com-section">热门物品</view>
</view>
<view class="dt-cont">
<view class="dt-block mt-10">
<tpx-tags v-model:value="checkedGoodId" type="single" :list="hotGoods"></tpx-tags>
</view>
</view>
</view>
<view class="dt-block" style="margin-top: 50rpx;">
<view class="dt-tle"> <view class="dt-tle">
<view class="com-section">物品信息</view> <view class="com-section">物品信息</view>
<view> <view>
<u-button custom-style="font-size: 28rpx;height: 56rpx;border-radius: 16rpx;" plain="true" type="primary">选择历史</u-button> <!-- <u-button custom-style="font-size: 28rpx;height: 56rpx;border-radius: 16rpx;" plain="true" type="primary">选择历史</u-button> -->
</view> </view>
</view> </view>
<view class="dt-cont"> <view class="dt-cont">
<view class="edm-input-item"> <view class="edm-input-item">
<tpx-text-item label="物品名称"> <tpx-select v-model:value="checkedGoodId" v-model:resObject="goodsRes" :getListFun="getGoodsList" :transKeyVal="{valKey: 'goodsCode',titleKey: 'goodsName'}"
<template v-slot:right> :customInput="true" mode="drop"
<u-input placeholder="请填写" v-model="modelInfo.goodsName" inputAlign="right" font-size="26" :searchParam="goodsSearchParam" @onChange="handleWayChange"
custom-style="border:0;border-radius: 10rpx;padding: 14rpx 20rpx;" >
<u-input placeholder="物品名称" v-model="modelInfo.goodsName" font-size="26"
custom-style="border-radius: 30rpx;padding: 10rpx 20rpx;"
placeholder-style="color: #999; " placeholder-style="color: #999; "
></u-input> ></u-input>
</template> </tpx-select>
</tpx-text-item>
</view> </view>
<view class="edm-input-item"> <view class="edm-input-item">
@ -151,10 +164,14 @@
</template> </template>
<script> <script>
import * as apiService from "@/common/api"
export default { export default {
computed: { computed: {
dicData() { dicData() {
return this.$store.getters.dicData return this.$store.getters.dicData
},
goodsSearchParam() {
return { goodsName: this.modelInfo.goodsName }
} }
}, },
watch: { watch: {
@ -162,6 +179,7 @@
handler: function(cval, oval) { handler: function(cval, oval) {
if(cval) { if(cval) {
this.modelInfo = JSON.parse(JSON.stringify(this.value || {})) this.modelInfo = JSON.parse(JSON.stringify(this.value || {}))
this.checkedGoodId = ''
} }
} }
} }
@ -180,7 +198,13 @@
}, },
data() { data() {
return { return {
modelInfo: {} modelInfo: {},
goodsRes: { list: [] },
checkedGoodId: '',
hotGoods: [
{ title: '热门1', val: 1 },
{ title: '热门2', val: 2 },
]
} }
}, },
created() { created() {
@ -192,6 +216,8 @@
unmounted() {}, unmounted() {},
methods: { methods: {
getGoodsList: apiService.getGoodsList,
handleCloseModal() { handleCloseModal() {
this.$emit('update:show', false) this.$emit('update:show', false)
}, },
@ -213,6 +239,7 @@
position: relative; position: relative;
} }
.dt-tle { .dt-tle {
padding-bottom: 10rpx;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;

View File

@ -175,6 +175,7 @@
left: 0; left: 0;
right: 0; right: 0;
max-height: 600rpx; max-height: 600rpx;
overflow: auto;
z-index: 10; z-index: 10;
padding: 20rpx; padding: 20rpx;
box-sizing: border-box; box-sizing: border-box;