Compare commits
No commits in common. "5e88f7afe668b260c2069f1cdc06808485413092" and "02c3d6d7ebd44b89853b113467e67a67dc6171ff" have entirely different histories.
5e88f7afe6
...
02c3d6d7eb
|
|
@ -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 = 50000;
|
axios.defaults.timeout = 5000;
|
||||||
// axios.defaults.withCredentials = true
|
// axios.defaults.withCredentials = true
|
||||||
|
|
||||||
const postToGetToken = (params) => {
|
const postToGetToken = (params) => {
|
||||||
|
|
|
||||||
|
|
@ -7,10 +7,6 @@
|
||||||
: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>
|
||||||
|
|
@ -25,14 +21,8 @@
|
||||||
</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="允许入库" :formatter="yesOrNoFormat" min-width="120px"
|
<el-table-column prop="allowIn" label="允许入库" min-width="120px" show-overflow-tooltip />
|
||||||
show-overflow-tooltip/>
|
<el-table-column prop="allowOut" label="允许出库" min-width="120px" 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
|
||||||
|
|
@ -93,20 +83,6 @@
|
||||||
</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">
|
||||||
|
|
@ -166,8 +142,6 @@ 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: '',
|
||||||
|
|
@ -203,20 +177,6 @@ export default {
|
||||||
label: '已锁定'
|
label: '已锁定'
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
yesOrNoOptions: [
|
|
||||||
{
|
|
||||||
value: -99,
|
|
||||||
label: '全部'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: 0,
|
|
||||||
label: '否'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: 1,
|
|
||||||
label: '是'
|
|
||||||
},
|
|
||||||
],
|
|
||||||
standStatusOptions: [
|
standStatusOptions: [
|
||||||
{
|
{
|
||||||
value: 0,
|
value: 0,
|
||||||
|
|
@ -249,9 +209,7 @@ 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 => {
|
||||||
|
|
@ -296,16 +254,6 @@ 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:
|
||||||
|
|
@ -340,19 +288,14 @@ 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 && formData.allowNoPlan == 1) {
|
if (formData.standType == 3) {
|
||||||
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,
|
||||||
|
|
@ -361,8 +304,6 @@ 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