增加字段

This commit is contained in:
2026-06-25 11:10:36 +08:00
parent a3cd8f1277
commit 5adbbb8deb
3 changed files with 36 additions and 21 deletions

View File

@@ -131,7 +131,10 @@
<span class="filter_label">执行标准</span>
</view>
<view class="zd-col-18 filter_select">
<uni-data-select v-model="index3" :localdata="options3"></uni-data-select>
<!-- <uni-data-select v-model="index3" :localdata="options3"></uni-data-select> -->
<view class="filter_input filter_input_disabled" style="line-height: 80rpx;">
{{ materialData.execution_stand }}
</view>
</view>
</view>
<view class="zd-row border-bottom">
@@ -139,7 +142,10 @@
<span class="filter_label">是否压容</span>
</view>
<view class="zd-col-18 filter_select">
<uni-data-select v-model="index4" :localdata="options4"></uni-data-select>
<!-- <uni-data-select v-model="index4" :localdata="options4"></uni-data-select> -->
<view class="filter_input filter_input_disabled" style="line-height: 80rpx;">
{{ materialTypeText }}
</view>
</view>
</view>
</view>
@@ -196,10 +202,10 @@
index1: '',
options2: [],
index2: '',
options3: [],
index3: '',
options4: [{text:'压容', value: '0'}, {text:'非压容', value: '1'}],
index4: '',
// options3: [],
// index3: '',
// options4: [{text:'压容', value: '0'}, {text:'非压容', value: '1'}],
// index4: '',
boxType: null,
materialData: {},
suppData: {},
@@ -223,6 +229,12 @@
},
endDate() {
return getDate('end');
},
materialTypeText() {
const type = this.materialData.material_type;
if (type === '0') return '压容';
if (type === '1') return '非压容';
return '';
}
},
onLoad (options) {
@@ -230,7 +242,7 @@
this._queryGroupQuality()
this._queryPcsn()
this._queryDevice()
this._queryExecution()
// this._queryExecution()
},
onShow () {
if (this.$store.getters.publicObj !== '') {
@@ -325,18 +337,18 @@
}
},
/** 执行标准下拉框*/
async _queryExecution () {
try {
let res = await queryExecution()
if (res && res.data) {
this.options3 = [...res.data]
} else {
this.options3 = []
}
} catch (e) {
this.options3 = []
}
},
// async _queryExecution () {
// try {
// let res = await queryExecution()
// if (res && res.data) {
// this.options3 = [...res.data]
// } else {
// this.options3 = []
// }
// } catch (e) {
// this.options3 = []
// }
// },
toEmpty () {
this.vehicleCode = ''
this.date = currentDate
@@ -355,7 +367,7 @@
return
}
try {
let res = await confirmBox(this.vehicleCode, this.materialData.material_id, this.materialData.material_code, this.materialData.material_name, this.suppData.supp_code, this.suppData.supp_name, this.pcsn, this.date, this.qty, this.index1, this.boxType, this.num, this.index2, this.index3, this.index4)
let res = await confirmBox(this.vehicleCode, this.materialData.material_id, this.materialData.material_code, this.materialData.material_name, this.suppData.supp_code, this.suppData.supp_name, this.pcsn, this.date, this.qty, this.index1, this.boxType, this.num, this.index2, this.materialData.execution_stand, this.materialData.material_type)
if (res) {
uni.showToast({
title: res.message,