Commit c9e9aa83 authored by hubaoshan's avatar hubaoshan

删除console.log和忽略大小写

parent 0c1a3d25
......@@ -118,14 +118,12 @@
<div class="mb12 font-small-bold">入库记录表</div>
<el-table v-loading="loading" border :data="incomeInoutWmsLogList">
<el-table-column type="index" label="序号" min-width="55" align="center" />
<el-table-column label="wh_id" prop="whId" :show-overflow-tooltip="true" min-width="120">
<template slot-scope="scope">
<span v-if="scope.row.whId ">{{ getDataDictLabel(scope.row.whId) }}</span>
<span v-else>-</span>
</template>
</el-table-column>
<el-table-column label="cj" prop="cj" :show-overflow-tooltip="true" min-width="120">
<template slot-scope="scope">
<span v-if="scope.row.cj">{{ getManufacturerLabel(scope.row.cj) || '-' }}</span>
......@@ -182,7 +180,6 @@
{{ scope.row.location || '-' }}
</template>
</el-table-column>
<el-table-column label="创建人" prop="updateBy" :show-overflow-tooltip="true" min-width="100">
<template slot-scope="scope">
{{ scope.row.createName || '-' }}
......@@ -299,9 +296,6 @@
</el-form-item>
</el-col>
<el-col :span="12">
<!-- <el-form-item v-show="isShow" label="bz:" prop="cheBz">-->
<!-- <span>{{ singleDetails.cheBz|| '-' }}</span>-->
<!-- </el-form-item>-->
<el-form-item v-show="isShow" label="unit:" prop="cheUnit">
<span>{{ singleDetails.cheUnit|| '-' }}</span>
</el-form-item>
......@@ -360,8 +354,6 @@ import {
import commonField from '@/utils/commonField'
import { getDicts } from '@/api/system/dict/data'
import { exportIncomeInoutWmsLog, getIncomeInoutWmsLog, listIncomeInoutWmsLog } from '@/api/incomeInoutWmsLog'
// import manufacturer from "@/api/outcomeWmsJbapplyTemp";
export default {
name: 'EnterboundTwo',
data() {
......@@ -395,7 +387,6 @@ export default {
affirmBy: '',
affirmDate: ''
},
// 是否显示弹出层(数据详情)
openDetails: false,
// 弹出层标题
......
......@@ -305,9 +305,6 @@
</el-form-item>
</el-col>
<el-col :span="12">
<!-- <el-form-item v-show="isShow" label="bz:" prop="cheBz">-->
<!-- <span>{{ singleDetails.cheBz|| '-' }}</span>-->
<!-- </el-form-item>-->
<el-form-item v-show="isShow" label="cjName:" prop="cheCjName">
<span>{{ singleDetails.cheCjName|| '-' }}</span>
</el-form-item>
......@@ -490,7 +487,6 @@ export default {
methods: {
getwareHouse() {
getDicts('WAREHOUSE').then(res => {
console.log(res)
this.warehouseList = res.data
const whId = res.data[0].dictValue
this.form.whId = whId
......@@ -510,7 +506,6 @@ export default {
listIncomeWmsBox(this.queryParams).then(
response => {
this.incomeWmsBoxList = response.rows
console.log('this.cheCjName', this.cheCjName)
this.total = response.total
this.loading = false
}
......
......@@ -753,13 +753,16 @@ export default {
this.openGain = true
this.title = '添加领用申请'
},
customUpperCase(sourceStr) {
return sourceStr && sourceStr !== '' ? sourceStr.toUpperCase() : sourceStr
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset()
const id = row.businessId
findOutcomeWmsApply(id).then(response => {
if (response.data.ptype === '30') {
if (response.data.pn === 'Na3PO4') {
if (this.customUpperCase(response.data.pn) === this.customUpperCase('Na3PO4')) {
this.disabled2 = true
this.disabled3 = true
this.disabled4 = true
......@@ -768,7 +771,7 @@ export default {
this.$set(this.formPn, 'qty1', response.data.qty / 10)
this.openGain = true
this.title = '修改领用申请'
} else if (response.data.pn === 'NB-Y') {
} else if (this.customUpperCase(response.data.pn) === this.customUpperCase('NB-Y')) {
this.disabled1 = true
this.disabled3 = true
this.disabled4 = true
......@@ -777,7 +780,7 @@ export default {
this.$set(this.formPn, 'qty2', response.data.qty / 15)
this.openGain = true
this.title = '修改领用申请'
} else if (response.data.pn === 'NB-Z') {
} else if (this.customUpperCase(response.data.pn) === this.customUpperCase('NB-Z')) {
this.disabled1 = true
this.disabled2 = true
this.disabled4 = true
......@@ -786,7 +789,7 @@ export default {
this.$set(this.formPn, 'qty3', response.data.qty / 18)
this.openGain = true
this.title = '修改领用申请'
} else if (response.data.pn === 'NB-C') {
} else if (this.customUpperCase(response.data.pn) === this.customUpperCase('NB-C')) {
this.disabled1 = true
this.disabled2 = true
this.disabled3 = true
......
......@@ -755,7 +755,6 @@ export default {
methods: {
// 搜索栏的时间范围
handleChange() {
console.log('dateRange', this.dateRange)
if (this.dateRange !== null) {
this.queryParams.beginTime = this.dateRange[0] + ' 00:00:00'
this.queryParams.endTime = this.dateRange[1] + ' 23:59:59'
......@@ -763,7 +762,6 @@ export default {
this.queryParams.beginTime = ''
this.queryParams.endTime = ''
}
console.log('queryParams', this.queryParams)
},
// 输入值发生变化时触发查询操作
handleInputChange() {
......@@ -905,7 +903,6 @@ export default {
}
})
this.singleDetails = row
console.log(row)
this.title = '详情信息'
this.openDetails = !this.openDetails
this.isShow = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment