This commit is contained in:
2025-08-21 16:23:49 +08:00
parent aae2809dec
commit c2a3d6a2d0
2 changed files with 11 additions and 5 deletions

View File

@@ -9,7 +9,8 @@
<span class="filter_label">日期</span> <span class="filter_label">日期</span>
</view> </view>
<view class="zd-col-24 filter_select"> <view class="zd-col-24 filter_select">
<uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select> <!-- <uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select> -->
<uni-datetime-picker type="date" :value="singleDate" @change="onSingleDateChange" />
</view> </view>
</view> </view>
<view class="zd-row border-bottom"> <view class="zd-row border-bottom">
@@ -131,6 +132,7 @@
}, },
data() { data() {
return { return {
singleDate: '',
title: '', title: '',
options: [], options: [],
index: '', index: '',
@@ -156,9 +158,13 @@
this._getFormDataList() this._getFormDataList()
}, },
methods: { methods: {
onSingleDateChange(e) {
this.singleDate = e
this._getFormDataList()
},
handleChange (e) { handleChange (e) {
if (e) { if (e) {
this.inCheck() this._inCheck()
} }
}, },
handleAdd () { handleAdd () {
@@ -194,7 +200,7 @@
}, },
async _getFormDataList () { async _getFormDataList () {
try { try {
let res = await getFormDataList() let res = await getFormDataList(this.singleDate)
if (res) { if (res) {
this.options = res.data this.options = res.data
} else { } else {

View File

@@ -218,9 +218,9 @@ export const zwConfirmIn = (fdcode, plist) => request({
data: {form_data_code: fdcode, param_list: plist} data: {form_data_code: fdcode, param_list: plist}
}) })
// 获取单据下拉清单 // 获取单据下拉清单
export const getFormDataList = (fdcode) => request({ export const getFormDataList = (date) => request({
url:'api/pda/iosIn/getFormDataList', url:'api/pda/iosIn/getFormDataList',
data: {form_data_code: fdcode} data: {date: date}
}) })
// 查询组盘明细 // 查询组盘明细
export const getPlate = (vcode) => request({ export const getPlate = (vcode) => request({