站台监控增加是否允许装载机、是否允许平地机。
This commit is contained in:
parent
02c3d6d7eb
commit
a698ec0e84
|
|
@ -1,6 +1,6 @@
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
axios.defaults.baseURL = 'https://login.microsoftonline.com/caterpillar.onmicrosoft.com'
|
axios.defaults.baseURL = 'https://login.microsoftonline.com/caterpillar.onmicrosoft.com'
|
||||||
axios.defaults.timeout = 5000;
|
axios.defaults.timeout = 50000;
|
||||||
// axios.defaults.withCredentials = true
|
// axios.defaults.withCredentials = true
|
||||||
|
|
||||||
const postToGetToken = (params) => {
|
const postToGetToken = (params) => {
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,10 @@
|
||||||
:suffix-icon="Search"/>
|
:suffix-icon="Search"/>
|
||||||
<el-select-v2 v-model="standTypeQuery" style="width: 158px; margin-right: 10px;"
|
<el-select-v2 v-model="standTypeQuery" style="width: 158px; margin-right: 10px;"
|
||||||
placeholder="请选择站台类型" :options="standTypeOptions" @change="search()"></el-select-v2>
|
placeholder="请选择站台类型" :options="standTypeOptions" @change="search()"></el-select-v2>
|
||||||
|
<el-select-v2 v-model="allowMwlQuery" style="width: 158px; margin-right: 10px;"
|
||||||
|
placeholder="是否允许装载机" :options="yesOrNoOptions" @change="search()"></el-select-v2>
|
||||||
|
<el-select-v2 v-model="allowMgQuery" style="width: 158px; margin-right: 10px;"
|
||||||
|
placeholder="是否允许平地机" :options="yesOrNoOptions" @change="search()"></el-select-v2>
|
||||||
<el-button type="primary" @click="search()">搜索</el-button>
|
<el-button type="primary" @click="search()">搜索</el-button>
|
||||||
<el-button type="warning" @click="reset()">重置</el-button>
|
<el-button type="warning" @click="reset()">重置</el-button>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
@ -21,8 +25,14 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="standId" label="id" fixed="left" min-width="120px" show-overflow-tooltip/>
|
<el-table-column prop="standId" label="id" fixed="left" min-width="120px" show-overflow-tooltip/>
|
||||||
<el-table-column prop="allowIn" label="允许入库" min-width="120px" show-overflow-tooltip />
|
<el-table-column prop="allowIn" label="允许入库" :formatter="yesOrNoFormat" min-width="120px"
|
||||||
<el-table-column prop="allowOut" label="允许出库" min-width="120px" show-overflow-tooltip />
|
show-overflow-tooltip/>
|
||||||
|
<el-table-column prop="allowOut" label="允许出库" :formatter="yesOrNoFormat" min-width="120px"
|
||||||
|
show-overflow-tooltip/>
|
||||||
|
<el-table-column prop="allowMwl" label="允许装载机" :formatter="yesOrNoFormat" min-width="120px"
|
||||||
|
show-overflow-tooltip/>
|
||||||
|
<el-table-column prop="allowMg" label="允许平地机" :formatter="yesOrNoFormat" min-width="120px"
|
||||||
|
show-overflow-tooltip/>
|
||||||
<el-table-column prop="isLock" label="锁定" :formatter="isLockFormat" min-width="120px"
|
<el-table-column prop="isLock" label="锁定" :formatter="isLockFormat" min-width="120px"
|
||||||
show-overflow-tooltip/>
|
show-overflow-tooltip/>
|
||||||
<el-table-column prop="standStatus" label="状态" :formatter="standStatusFormat" show-overflow-tooltip
|
<el-table-column prop="standStatus" label="状态" :formatter="standStatusFormat" show-overflow-tooltip
|
||||||
|
|
@ -83,6 +93,20 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
<el-row :gutter="16">
|
||||||
|
<el-col :span="12" :offset="0">
|
||||||
|
<el-form-item label="允许装载机" prop="allowMwl">
|
||||||
|
<el-select-v2 v-model="standFormEntity.allowMwl" placeholder="是否允许装载机"
|
||||||
|
:options="yesOrNoOptions" :disabled="standFormEntity.standType != 2"></el-select-v2>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="允许平地机" prop="allowMg">
|
||||||
|
<el-select-v2 v-model="standFormEntity.allowMg" placeholder="是否允许平地机"
|
||||||
|
:options="yesOrNoOptions" :disabled="standFormEntity.standType != 2"></el-select-v2>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
<el-row :gutter="16">
|
<el-row :gutter="16">
|
||||||
<el-col :span="12" :offset="0">
|
<el-col :span="12" :offset="0">
|
||||||
<el-form-item label="上次使用时间" prop="lastUseTime">
|
<el-form-item label="上次使用时间" prop="lastUseTime">
|
||||||
|
|
@ -142,6 +166,8 @@ export default {
|
||||||
total: 0,
|
total: 0,
|
||||||
standIdQuery: '',
|
standIdQuery: '',
|
||||||
standTypeQuery: -99,
|
standTypeQuery: -99,
|
||||||
|
allowMwlQuery: -99,
|
||||||
|
allowMgQuery: -99,
|
||||||
loading: true,
|
loading: true,
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
standId: '',
|
standId: '',
|
||||||
|
|
@ -177,6 +203,20 @@ export default {
|
||||||
label: '已锁定'
|
label: '已锁定'
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
yesOrNoOptions: [
|
||||||
|
{
|
||||||
|
value: -99,
|
||||||
|
label: '全部'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 0,
|
||||||
|
label: '否'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 1,
|
||||||
|
label: '是'
|
||||||
|
},
|
||||||
|
],
|
||||||
standStatusOptions: [
|
standStatusOptions: [
|
||||||
{
|
{
|
||||||
value: 0,
|
value: 0,
|
||||||
|
|
@ -209,7 +249,9 @@ export default {
|
||||||
pageNo: this.currentPage,
|
pageNo: this.currentPage,
|
||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
standId: this.standIdQuery.trim(),
|
standId: this.standIdQuery.trim(),
|
||||||
standType: this.standTypeQuery == -99 ? null : this.standTypeQuery,
|
standType: this.standTypeQuery === -99 ? null : this.standTypeQuery,
|
||||||
|
allowMwl: this.allowMwlQuery === -99 ? null : this.allowMwlQuery,
|
||||||
|
allowMg: this.allowMgQuery === -99 ? null : this.allowMgQuery,
|
||||||
userName: store.getters.getUserName
|
userName: store.getters.getUserName
|
||||||
}
|
}
|
||||||
getStandsByPage(request).then(res => {
|
getStandsByPage(request).then(res => {
|
||||||
|
|
@ -254,6 +296,16 @@ export default {
|
||||||
return '未知'
|
return '未知'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
yesOrNoFormat: (row, column, cellValue, index) => {
|
||||||
|
switch (cellValue) {
|
||||||
|
case 0:
|
||||||
|
return '否'
|
||||||
|
case 1:
|
||||||
|
return '是'
|
||||||
|
default:
|
||||||
|
return '未知'
|
||||||
|
}
|
||||||
|
},
|
||||||
standStatusFormat: (row, column, cellValue, index) => {
|
standStatusFormat: (row, column, cellValue, index) => {
|
||||||
switch (cellValue) {
|
switch (cellValue) {
|
||||||
case 0:
|
case 0:
|
||||||
|
|
@ -288,14 +340,19 @@ export default {
|
||||||
standStatus: row.standStatus,
|
standStatus: row.standStatus,
|
||||||
lastUseTime: row.lastUseTime,
|
lastUseTime: row.lastUseTime,
|
||||||
pickVehicleCount: row.pickVehicleCount,
|
pickVehicleCount: row.pickVehicleCount,
|
||||||
allowNoPlan: row.allowNoPlan
|
allowNoPlan: row.allowNoPlan,
|
||||||
|
allowMwl: row.allowMwl,
|
||||||
|
allowMg: row.allowMg,
|
||||||
}
|
}
|
||||||
this.dialogVisible = true
|
this.dialogVisible = true
|
||||||
},
|
},
|
||||||
submitInfo(formData) {
|
submitInfo(formData) {
|
||||||
if (formData.standType == 3) {
|
if (formData.standType == 3 && formData.allowNoPlan == 1) {
|
||||||
return errorBox('堆垛机不允许非计划。')
|
return errorBox('堆垛机不允许非计划。')
|
||||||
}
|
}
|
||||||
|
if (formData.allowMwl == -99 || formData.allowMg == -99) {
|
||||||
|
return errorBox('必须确定是否允许装载机与是否允许平地机。')
|
||||||
|
}
|
||||||
const params = {
|
const params = {
|
||||||
standId: formData.standId,
|
standId: formData.standId,
|
||||||
standType: formData.standType,
|
standType: formData.standType,
|
||||||
|
|
@ -304,6 +361,8 @@ export default {
|
||||||
lastUseTime: formData.lastUseTime,
|
lastUseTime: formData.lastUseTime,
|
||||||
pickVehicleCount: formData.pickVehicleCount,
|
pickVehicleCount: formData.pickVehicleCount,
|
||||||
allowNoPlan: formData.allowNoPlan,
|
allowNoPlan: formData.allowNoPlan,
|
||||||
|
allowMwl: formData.allowMwl,
|
||||||
|
allowMg: formData.allowMg,
|
||||||
userName: store.getters.getUserName
|
userName: store.getters.getUserName
|
||||||
}
|
}
|
||||||
updateStandInfo(params).then(res => {
|
updateStandInfo(params).then(res => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user