增加字段
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
<th>物料编码</th>
|
<th>物料编码</th>
|
||||||
<th>物料名称</th>
|
<th>物料名称</th>
|
||||||
<th>物料规格</th>
|
<th>物料规格</th>
|
||||||
|
<th>是否压容</th>
|
||||||
<th>型号</th>
|
<th>型号</th>
|
||||||
<th>有效期(天)</th>
|
<th>有效期(天)</th>
|
||||||
<th>执行标准</th>
|
<th>执行标准</th>
|
||||||
@@ -32,6 +33,7 @@
|
|||||||
<td>{{e.material_code}}</td>
|
<td>{{e.material_code}}</td>
|
||||||
<td>{{e.material_name}}</td>
|
<td>{{e.material_name}}</td>
|
||||||
<td>{{e.material_spec}}</td>
|
<td>{{e.material_spec}}</td>
|
||||||
|
<td>{{e.material_type ? ['压容', '非压容'][Number(e.material_type)] : ''}}</td>
|
||||||
<td>{{e.material_model}}</td>
|
<td>{{e.material_model}}</td>
|
||||||
<td>{{e.quality_time}}</td>
|
<td>{{e.quality_time}}</td>
|
||||||
<td>{{e.execution_stand}}</td>
|
<td>{{e.execution_stand}}</td>
|
||||||
|
|||||||
@@ -131,7 +131,10 @@
|
|||||||
<span class="filter_label">执行标准</span>
|
<span class="filter_label">执行标准</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-18 filter_select">
|
<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>
|
</view>
|
||||||
<view class="zd-row border-bottom">
|
<view class="zd-row border-bottom">
|
||||||
@@ -139,7 +142,10 @@
|
|||||||
<span class="filter_label">是否压容</span>
|
<span class="filter_label">是否压容</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-18 filter_select">
|
<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>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -196,10 +202,10 @@
|
|||||||
index1: '',
|
index1: '',
|
||||||
options2: [],
|
options2: [],
|
||||||
index2: '',
|
index2: '',
|
||||||
options3: [],
|
// options3: [],
|
||||||
index3: '',
|
// index3: '',
|
||||||
options4: [{text:'压容', value: '0'}, {text:'非压容', value: '1'}],
|
// options4: [{text:'压容', value: '0'}, {text:'非压容', value: '1'}],
|
||||||
index4: '',
|
// index4: '',
|
||||||
boxType: null,
|
boxType: null,
|
||||||
materialData: {},
|
materialData: {},
|
||||||
suppData: {},
|
suppData: {},
|
||||||
@@ -223,6 +229,12 @@
|
|||||||
},
|
},
|
||||||
endDate() {
|
endDate() {
|
||||||
return getDate('end');
|
return getDate('end');
|
||||||
|
},
|
||||||
|
materialTypeText() {
|
||||||
|
const type = this.materialData.material_type;
|
||||||
|
if (type === '0') return '压容';
|
||||||
|
if (type === '1') return '非压容';
|
||||||
|
return '';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad (options) {
|
onLoad (options) {
|
||||||
@@ -230,7 +242,7 @@
|
|||||||
this._queryGroupQuality()
|
this._queryGroupQuality()
|
||||||
this._queryPcsn()
|
this._queryPcsn()
|
||||||
this._queryDevice()
|
this._queryDevice()
|
||||||
this._queryExecution()
|
// this._queryExecution()
|
||||||
},
|
},
|
||||||
onShow () {
|
onShow () {
|
||||||
if (this.$store.getters.publicObj !== '') {
|
if (this.$store.getters.publicObj !== '') {
|
||||||
@@ -325,18 +337,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/** 执行标准下拉框*/
|
/** 执行标准下拉框*/
|
||||||
async _queryExecution () {
|
// async _queryExecution () {
|
||||||
try {
|
// try {
|
||||||
let res = await queryExecution()
|
// let res = await queryExecution()
|
||||||
if (res && res.data) {
|
// if (res && res.data) {
|
||||||
this.options3 = [...res.data]
|
// this.options3 = [...res.data]
|
||||||
} else {
|
// } else {
|
||||||
this.options3 = []
|
// this.options3 = []
|
||||||
}
|
// }
|
||||||
} catch (e) {
|
// } catch (e) {
|
||||||
this.options3 = []
|
// this.options3 = []
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
toEmpty () {
|
toEmpty () {
|
||||||
this.vehicleCode = ''
|
this.vehicleCode = ''
|
||||||
this.date = currentDate
|
this.date = currentDate
|
||||||
@@ -355,7 +367,7 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
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) {
|
if (res) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
|
|||||||
@@ -61,7 +61,8 @@ export const queryMaterial = (code) => {
|
|||||||
material_spec: 'material_spec',
|
material_spec: 'material_spec',
|
||||||
material_model: 'material_model',
|
material_model: 'material_model',
|
||||||
execution_stand: 'execution_stand',
|
execution_stand: 'execution_stand',
|
||||||
quality_time: 'quality_time'
|
quality_time: 'quality_time',
|
||||||
|
material_type: '0'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user