add 当前窑车位置“
This commit is contained in:
parent
c9bc75560e
commit
b54aa84b1c
@ -38,9 +38,9 @@
|
|||||||
<% if (process.env.VUE_APP_NODE_ENV === 'dev') { %>
|
<% if (process.env.VUE_APP_NODE_ENV === 'dev') { %>
|
||||||
<script>
|
<script>
|
||||||
// window.SITE_CONFIG['apiURL'] = 'http://192.168.1.103:8080/pms-am';
|
// window.SITE_CONFIG['apiURL'] = 'http://192.168.1.103:8080/pms-am';
|
||||||
window.SITE_CONFIG['apiURL'] = 'http://192.168.1.49:8080/pms-am'; // tengyun
|
// window.SITE_CONFIG['apiURL'] = 'http://192.168.1.49:8080/pms-am'; // tengyun
|
||||||
// window.SITE_CONFIG['apiURL'] = 'http://192.168.1.62:8080/pms-am'; // tao
|
// window.SITE_CONFIG['apiURL'] = 'http://192.168.1.62:8080/pms-am'; // tao
|
||||||
// window.SITE_CONFIG['apiURL'] = 'http://192.168.1.21:8080/pms-am'; // xv
|
window.SITE_CONFIG['apiURL'] = 'http://192.168.1.21:8080/pms-am'; // xv
|
||||||
</script>
|
</script>
|
||||||
<% } %>
|
<% } %>
|
||||||
<!-- 集成测试环境 -->
|
<!-- 集成测试环境 -->
|
||||||
|
122
src/views/modules/pms/currentCarLocation/config.js
Normal file
122
src/views/modules/pms/currentCarLocation/config.js
Normal file
@ -0,0 +1,122 @@
|
|||||||
|
import TableOperaionComponent from "@/components/noTemplateComponents/operationComponent";
|
||||||
|
// import switchBtn from "@/components/noTemplateComponents/switchBtn";
|
||||||
|
import QuillRichInput from "@/components/noTemplateComponents/richInput";
|
||||||
|
import request from "@/utils/request";
|
||||||
|
import { timeFilter } from '@/utils/filters'
|
||||||
|
|
||||||
|
export default function () {
|
||||||
|
const tableProps = [
|
||||||
|
{ type: 'index', label: '序号' },
|
||||||
|
{ prop: "createTime", label: "添加时间", filter: timeFilter },
|
||||||
|
{ prop: "code", label: "窑车号" },
|
||||||
|
{ prop: "stateDictValue", label: "状态", filter: () => '需要子组件' }, // subcomponent
|
||||||
|
{ prop: "orderCode", label: "订单号" },
|
||||||
|
{ prop: "posCode", label: "位置" },
|
||||||
|
{ prop: "startTime", label: "开始时间" },
|
||||||
|
{ prop: "endTime", label: "结束时间" },
|
||||||
|
// { prop: "remark", label: "备注" },
|
||||||
|
{
|
||||||
|
prop: "operations",
|
||||||
|
name: "操作",
|
||||||
|
fixed: "right",
|
||||||
|
width: 90,
|
||||||
|
subcomponent: TableOperaionComponent,
|
||||||
|
options: [
|
||||||
|
{ name: "to-car-payload", label: "装载详情" },
|
||||||
|
{ name: "to-car-history", label: "查看历史", emitFull: true }
|
||||||
|
// { name: "edit", label: "编辑", icon: "edit-outline" },
|
||||||
|
// { name: "delete", icon: "delete", label: "删除", emitFull: true, permission: "pms:car:delete" }
|
||||||
|
],
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
const headFormFields = [
|
||||||
|
{
|
||||||
|
prop: 'code',
|
||||||
|
label: "窑车号",
|
||||||
|
input: true,
|
||||||
|
default: { value: "" },
|
||||||
|
bind: {
|
||||||
|
// placeholder: '请输入产线名称或编码'
|
||||||
|
placeholder: '请输入窑车号'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
button: {
|
||||||
|
type: "primary",
|
||||||
|
name: "查询",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
// {
|
||||||
|
// button: {
|
||||||
|
// type: "primary",
|
||||||
|
// name: "新增",
|
||||||
|
// permission: "pms:materialStorage:save"
|
||||||
|
// },
|
||||||
|
// bind: {
|
||||||
|
// plain: true,
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* dialog config 有两个版本,一个适用于 DialogWithMenu 组件,另一个适用于 DialogJustForm 组件
|
||||||
|
* 适用于 DialogWithMenu 组件的配置示例详见 blenderStep/config.js
|
||||||
|
* 此为后者的配置:
|
||||||
|
*/
|
||||||
|
const dialogJustFormConfigs = {
|
||||||
|
clickModalToClose: true,
|
||||||
|
form: {
|
||||||
|
rows: [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
input: true,
|
||||||
|
label: "窑车号",
|
||||||
|
prop: "code",
|
||||||
|
rules: { required: true, message: "必填项不能为空", trigger: "blur" },
|
||||||
|
elparams: { placeholder: "请输入窑车号" },
|
||||||
|
},
|
||||||
|
// {
|
||||||
|
// input: true,
|
||||||
|
// label: "编码",
|
||||||
|
// prop: "code",
|
||||||
|
// rules: { required: true, message: "必填项不能为空", trigger: "blur" },
|
||||||
|
// elparams: { placeholder: "请输入料仓编码" },
|
||||||
|
// },
|
||||||
|
],
|
||||||
|
// [{ component: QuillRichInput, label: "描述信息", prop: "description" }],
|
||||||
|
[{
|
||||||
|
richInput: true, label: "描述信息", prop: "description"
|
||||||
|
}],
|
||||||
|
[{ input: true, label: "备注", prop: "remark", elparams: { placeholder: "备注" } }],
|
||||||
|
],
|
||||||
|
operations: [
|
||||||
|
{ name: "add", label: "保存", type: "primary", permission: "pms:car:save", showOnEdit: false },
|
||||||
|
{ name: "update", label: "更新", type: "primary", permission: "pms:car:update", showOnEdit: true },
|
||||||
|
{ name: "reset", label: "重置", type: "warning", showAlways: true },
|
||||||
|
// { name: 'cancel', label: '取消', showAlways: true },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
// 备注:弹窗弹出的时间和网速有关......
|
||||||
|
|
||||||
|
return {
|
||||||
|
dialogConfigs: dialogJustFormConfigs,
|
||||||
|
tableConfig: {
|
||||||
|
table: null, // 此处可省略,el-table 上的配置项
|
||||||
|
column: tableProps, // el-column-item 上的配置项
|
||||||
|
},
|
||||||
|
headFormConfigs: {
|
||||||
|
rules: null, // 名称是由 BaseSearchForm.vue 组件固定的
|
||||||
|
fields: headFormFields, // 名称是由 BaseSearchForm.vue 组件固定的
|
||||||
|
},
|
||||||
|
urls: {
|
||||||
|
// base: "/pms/carHandle/pageView",
|
||||||
|
page: "/pms/carHandle/pageView",
|
||||||
|
pageIsPostApi: true
|
||||||
|
// subase: '/pms/blenderStepParam',
|
||||||
|
// subpage: '/pms/blenderStepParam/page',
|
||||||
|
// more...
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
32
src/views/modules/pms/currentCarLocation/index.vue
Normal file
32
src/views/modules/pms/currentCarLocation/index.vue
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<template>
|
||||||
|
<ListViewWithHead :table-config="tableConfig" :head-config="headFormConfigs" :dialog-configs="dialogConfigs" :list-query-extra="[/** { pos: [] } **/]" />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import initConfig from "./config";
|
||||||
|
import ListViewWithHead from "@/views/atomViews/ListViewWithHead.vue";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "CarView",
|
||||||
|
components: { ListViewWithHead },
|
||||||
|
provide() {
|
||||||
|
return {
|
||||||
|
urls: this.allUrls,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
const { tableConfig, headFormConfigs, urls, dialogConfigs } = initConfig.call(this);
|
||||||
|
return {
|
||||||
|
tableConfig,
|
||||||
|
headFormConfigs,
|
||||||
|
allUrls: urls,
|
||||||
|
dialogConfigs,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {},
|
||||||
|
mounted() {},
|
||||||
|
methods: {},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped></style>
|
Loading…
Reference in New Issue
Block a user