物料组盘

This commit is contained in:
2025-09-04 14:41:03 +08:00
parent c24816b0d9
commit 40740964ab

View File

@@ -4,6 +4,14 @@
<nav-bar :title="title"></nav-bar>
<view class="zd_content">
<view class="zd_wrapper">
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label">日期</span>
</view>
<view class="zd-col-24 filter_select">
<uni-datetime-picker type="date" :value="singleDate" @change="onSingleDateChange" />
</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label">源单编码</span>
@@ -30,6 +38,14 @@
<input type="text" class="filter_input" v-model="currentData.material_name" @tap="toJump" disabled>
</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label filter_input_disabled">物料编码</span>
</view>
<view class="zd-col-17">
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_code" disabled>
</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label filter_input_disabled">物料名称</span>
@@ -48,15 +64,7 @@
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label filter_input_disabled">物料编码</span>
</view>
<view class="zd-col-17">
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_code" disabled>
</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label">物料数量</span>
<span class="filter_label">物料数量(kg)</span>
</view>
<view class="zd-col-17">
<NumberInput v-model="currentData.qty" />
@@ -92,6 +100,7 @@
},
data() {
return {
singleDate: '',
title: '',
val1: '',
currentData: {},
@@ -110,12 +119,16 @@
this._supplierdroplist()
},
methods: {
onSingleDateChange(e) {
this.singleDate = e
this._getFormDataList()
},
toJump () {
this._getFormMaterial()
},
async _getFormDataList () {
try {
let res = await getFormDataList()
let res = await getFormDataList(this.singleDate)
if (res) {
this.options = res.data
} else {