物料入库加日期

This commit is contained in:
2025-03-21 10:44:13 +08:00
parent 7986de96ad
commit 3fe42736e3
2 changed files with 14 additions and 4 deletions

View File

@@ -39,6 +39,15 @@
<uni-data-select v-model="index2" :localdata="options1"></uni-data-select> <uni-data-select v-model="index2" :localdata="options1"></uni-data-select>
</view> </view>
</view> </view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label">交期时间</span>
</view>
<view class="zd-col-17 filter_select">
<uni-datetime-picker type="datetime" v-model="datetimesingle" :border="false" />
</view>
</view>
</view> </view>
<view class="zd_wrapper grid-wraper"> <view class="zd_wrapper grid-wraper">
<view class="slide_new"> <view class="slide_new">
@@ -100,7 +109,8 @@
index1: '', index1: '',
index2: '', index2: '',
disabled: false, disabled: false,
dataList: [{order_code: '', material_code: '', material_qty: 0}] dataList: [{order_code: '', material_code: '', material_qty: 0}],
datetimesingle: ''
}; };
}, },
onLoad (options) { onLoad (options) {
@@ -145,7 +155,7 @@
} }
}) })
try { try {
let res = await handheldBlanking(this.index, this.val1, this.index1, this.val2, arr, this.index2) let res = await handheldBlanking(this.index, this.val1, this.index1, this.val2, arr, this.index2, this.datetimesingle)
this.clearUp() this.clearUp()
uni.showToast({ uni.showToast({
title: res.message, title: res.message,

View File

@@ -60,9 +60,9 @@ export const handheldStorehouse = (code, type) => request({
// url:'api/handheld/getRegionCode', // url:'api/handheld/getRegionCode',
// data: {orderCode: code} // data: {orderCode: code}
// }) // })
export const handheldBlanking = (type, code, rcode, vcode, material, reg) => request({ export const handheldBlanking = (type, code, rcode, vcode, material, reg, date) => request({
url:'api/handheld/blanking', url:'api/handheld/blanking',
data: {type: type, device_code: code, region_code: rcode, vehicle_code: vcode, material: material, regionCode: reg} data: {type: type, device_code: code, region_code: rcode, vehicle_code: vcode, material: material, regionCode: reg, due_date: date}
}) })
// 修改订单工序 // 修改订单工序
export const fabOrders = (code) => request({ export const fabOrders = (code) => request({