部署
This commit is contained in:
@@ -0,0 +1,118 @@
|
||||
<script lang="tsx">
|
||||
//表格
|
||||
import { defineComponent, ref } from "vue";
|
||||
import { ElMessage } from "element-plus";
|
||||
import { useRouter } from 'vue-router';
|
||||
export default defineComponent({
|
||||
setup() {
|
||||
const tableRef = ref();
|
||||
const router = useRouter();
|
||||
//列
|
||||
const columns = ref([
|
||||
{ prop: "districtName", label: "内部订单号",hideInSearchForm: true },
|
||||
{ label: "物料编码", prop: "name",hideInSearchForm: true },
|
||||
{ label: "物料信息", prop: "date123",hideInSearchForm: true },
|
||||
{ prop: "createTime", label: "成本中心代码" ,hideInSearchForm: true },
|
||||
|
||||
{ prop: "districtName", label: "成本中心名称",hideInSearchForm: true },
|
||||
{ label: "基于成品结构用量(版本1)", prop: "name",hideInSearchForm: true },
|
||||
{ label: "单个零件报工工时(版本1)", prop: "date123",hideInSearchForm: true },
|
||||
{ prop: "createTime", label: "人工工时(版本1)" ,hideInSearchForm: true },
|
||||
|
||||
{ prop: "districtName", label: "人工费率(版本1)",hideInSearchForm: true },
|
||||
{ label: "基于成品结构用量(版本2)", prop: "name",hideInSearchForm: true },
|
||||
{ label: "单个零件报工工时(版本2)", prop: "date123",hideInSearchForm: true },
|
||||
{ prop: "createTime", label: "人工工时(版本2)" ,hideInSearchForm: true },
|
||||
|
||||
{ prop: "districtName", label: "人工费率(版本2)",hideInSearchForm: true },
|
||||
{ label: "人工差价", prop: "name",hideInSearchForm: true },
|
||||
{ label: "人工量差", prop: "date123",hideInSearchForm: true },
|
||||
{ prop: "createTime", label: "人工总差" ,hideInSearchForm: true },
|
||||
|
||||
{ prop: "districtName", label: "基于成品结构用量(版本1)",hideInSearchForm: true },
|
||||
{ label: "单个零件报工工时(版本1)", prop: "name",hideInSearchForm: true },
|
||||
{ label: "燃动力工时(版本1)", prop: "date123",hideInSearchForm: true },
|
||||
{ prop: "createTime", label: "燃动力费率(版本1)" ,hideInSearchForm: true },
|
||||
|
||||
{ prop: "districtName", label: "基于成品结构用量(版本2)",hideInSearchForm: true },
|
||||
{ label: "单个零件报工工时(版本2)", prop: "name",hideInSearchForm: true },
|
||||
{ label: "燃动力工时(版本2)", prop: "date123",hideInSearchForm: true },
|
||||
{ prop: "createTime", label: "燃动力费率(版本2)" ,hideInSearchForm: true },
|
||||
|
||||
{ prop: "districtName", label: "燃动力价差",hideInSearchForm: true },
|
||||
{ label: "燃动力量差", prop: "name",hideInSearchForm: true },
|
||||
{ label: "燃动力总差", prop: "date123",hideInSearchForm: true },
|
||||
{ prop: "createTime", label: "基于成品结构用量(版本1)" ,hideInSearchForm: true },
|
||||
|
||||
{ prop: "districtName", label: "单个零件报工工时(版本1)",hideInSearchForm: true },
|
||||
{ label: "辅料工时(版本1)", prop: "name",hideInSearchForm: true },
|
||||
{ label: "辅料费率(版本1)", prop: "date123",hideInSearchForm: true },
|
||||
{ prop: "createTime", label: "基于成品结构用量(版本2)" ,hideInSearchForm: true },
|
||||
|
||||
{ prop: "districtName", label: "单个零件报工工时(版本2)",hideInSearchForm: true },
|
||||
{ label: "辅料工时(版本2)", prop: "name",hideInSearchForm: true },
|
||||
{ label: "辅料费率(版本2)", prop: "date123",hideInSearchForm: true },
|
||||
{ prop: "createTime", label: "辅料价差" ,hideInSearchForm: true },
|
||||
|
||||
{ prop: "districtName", label: "辅料量差",hideInSearchForm: true },
|
||||
{ label: "辅料总差", prop: "name",hideInSearchForm: true },
|
||||
{ label: "基于成品结构用量(版本1)", prop: "date123",hideInSearchForm: true },
|
||||
{ prop: "createTime", label: "单个零件报工工时(版本1)" ,hideInSearchForm: true },
|
||||
|
||||
{ prop: "districtName", label: "其他工时(版本1)",hideInSearchForm: true },
|
||||
{ label: "其他费率(版本1)", prop: "name",hideInSearchForm: true },
|
||||
{ label: "基于成品结构用量(版本2)", prop: "date123",hideInSearchForm: true },
|
||||
{ prop: "createTime", label: "单个零件报工工时(版本2)" ,hideInSearchForm: true },
|
||||
|
||||
{ prop: "districtName", label: "其他工时(版本2)",hideInSearchForm: true },
|
||||
{ label: "其他费率(版本2)", prop: "name",hideInSearchForm: true },
|
||||
{ label: "其他价差", prop: "date123",hideInSearchForm: true },
|
||||
{ prop: "createTime", label: "其他量差" ,hideInSearchForm: true },
|
||||
|
||||
{ prop: "districtName", label: "其他总差",hideInSearchForm: true },
|
||||
]);
|
||||
|
||||
const render = () => {
|
||||
return (
|
||||
<BaseTable
|
||||
columns={columns.value}
|
||||
queryParamsToUrl
|
||||
ref={tableRef}
|
||||
request={async ({ pageSize = 10, current = 1, ...otherSearchParams }) => {
|
||||
await new Promise((resolve) => setTimeout(resolve, Math.random() * 1111));
|
||||
return {
|
||||
data: Array(pageSize)
|
||||
.fill(0)
|
||||
.map((item, index) => ({
|
||||
id: Math.random(),
|
||||
name: "Tom" + current,
|
||||
date123: "date123" + current,
|
||||
createTime: new Date().getTime(),
|
||||
districtName: "区划" + index,
|
||||
districtName1: "区划1" + index,
|
||||
})),
|
||||
current,
|
||||
// pages: 500 / pageSize,
|
||||
total: 500,
|
||||
};
|
||||
}}
|
||||
curdConfig={{
|
||||
}}
|
||||
v-slots={{
|
||||
toolbar: ({ doAddOrEdit }) => (
|
||||
<el-space>
|
||||
<el-button type="danger" onClick={toBack}>返回</el-button>
|
||||
</el-space>
|
||||
),
|
||||
}}
|
||||
/>
|
||||
);
|
||||
};
|
||||
const toBack = ()=>{
|
||||
router.go(-1);
|
||||
}
|
||||
return render;
|
||||
},
|
||||
});
|
||||
</script>
|
||||
<style lang="scss" scoped></style>
|
||||
@@ -0,0 +1,73 @@
|
||||
<script lang="tsx">
|
||||
//表格
|
||||
import { defineComponent, ref } from "vue";
|
||||
import { ElMessage } from "element-plus";
|
||||
import { useRouter } from 'vue-router';
|
||||
export default defineComponent({
|
||||
setup() {
|
||||
const tableRef = ref();
|
||||
const router = useRouter();
|
||||
//列
|
||||
const columns = ref([
|
||||
{ prop: "districtName", label: "成本中心代码",hideInSearchForm: true },
|
||||
{ label: "成本中心代码名称", prop: "name",hideInSearchForm: true },
|
||||
{ label: "基于成品结构用量(版本1)", prop: "date123",hideInSearchForm: true },
|
||||
{ prop: "createTime", label: "单个零件报工工时(版本1)" ,hideInSearchForm: true },
|
||||
{ prop: "districtName", label: "人工工时(版本1)",hideInSearchForm: true },
|
||||
{ label: "基于成品结构用量(版本2)", prop: "name",hideInSearchForm: true },
|
||||
{ label: "单个零件报工工时(版本2)", prop: "date123",hideInSearchForm: true },
|
||||
{ prop: "createTime", label: "人工工时(版本2)" ,hideInSearchForm: true },
|
||||
{ prop: "districtName", label: "人工工时总差",hideInSearchForm: true },
|
||||
{ label: "基于成品结构用量(版本1)", prop: "name",hideInSearchForm: true },
|
||||
{ label: "单个零件报工工时(版本1)", prop: "date123",hideInSearchForm: true },
|
||||
{ prop: "createTime", label: "机器工时(版本1)" ,hideInSearchForm: true },
|
||||
{ prop: "districtName", label: "基于成品结构用量(版本2)",hideInSearchForm: true },
|
||||
{ label: "单个零件报工工时(版本2)", prop: "name",hideInSearchForm: true },
|
||||
{ label: "机器工时(版本2)", prop: "date123",hideInSearchForm: true },
|
||||
{ prop: "createTime", label: "机器工时总差" ,hideInSearchForm: true },
|
||||
]);
|
||||
|
||||
const render = () => {
|
||||
return (
|
||||
<BaseTable
|
||||
columns={columns.value}
|
||||
queryParamsToUrl
|
||||
ref={tableRef}
|
||||
request={async ({ pageSize = 10, current = 1, ...otherSearchParams }) => {
|
||||
await new Promise((resolve) => setTimeout(resolve, Math.random() * 1111));
|
||||
return {
|
||||
data: Array(pageSize)
|
||||
.fill(0)
|
||||
.map((item, index) => ({
|
||||
id: Math.random(),
|
||||
name: "Tom" + current,
|
||||
date123: "date123" + current,
|
||||
createTime: new Date().getTime(),
|
||||
districtName: "区划" + index,
|
||||
districtName1: "区划1" + index,
|
||||
})),
|
||||
current,
|
||||
// pages: 500 / pageSize,
|
||||
total: 500,
|
||||
};
|
||||
}}
|
||||
curdConfig={{
|
||||
}}
|
||||
v-slots={{
|
||||
toolbar: ({ doAddOrEdit }) => (
|
||||
<el-space>
|
||||
<el-button type="danger" onClick={toBack}>返回</el-button>
|
||||
</el-space>
|
||||
),
|
||||
}}
|
||||
/>
|
||||
);
|
||||
};
|
||||
const toBack = ()=>{
|
||||
router.go(-1);
|
||||
}
|
||||
return render;
|
||||
},
|
||||
});
|
||||
</script>
|
||||
<style lang="scss" scoped></style>
|
||||
@@ -0,0 +1,75 @@
|
||||
<script lang="tsx">
|
||||
//表格
|
||||
import { defineComponent, ref } from "vue";
|
||||
import { ElMessage } from "element-plus";
|
||||
import { useRouter } from 'vue-router';
|
||||
export default defineComponent({
|
||||
setup() {
|
||||
const tableRef = ref();
|
||||
const router = useRouter();
|
||||
//列
|
||||
const columns = ref([
|
||||
{ prop: "districtName", label: "单位",hideInSearchForm: true },
|
||||
{ label: "采购类型", prop: "name",hideInSearchForm: true },
|
||||
{ label: "特殊采购类型", prop: "date123",hideInSearchForm: true },
|
||||
{ prop: "createTime", label: "结构用量" ,hideInSearchForm: true },
|
||||
|
||||
{ prop: "districtName", label: "单位材料价格",hideInSearchForm: true },
|
||||
{ label: "单位总成本", prop: "name",hideInSearchForm: true },
|
||||
{ label: "版本1", prop: "date123",hideInSearchForm: true },
|
||||
{ prop: "createTime", label: "结构用量" ,hideInSearchForm: true },
|
||||
|
||||
{ prop: "districtName", label: "单位材料价格",hideInSearchForm: true },
|
||||
{ label: "单位总成本", prop: "name",hideInSearchForm: true },
|
||||
{ label: "版本2", prop: "date123",hideInSearchForm: true },
|
||||
{ prop: "createTime", label: "结构用量量差" ,hideInSearchForm: true },
|
||||
|
||||
{ prop: "districtName", label: "材料价格价差",hideInSearchForm: true },
|
||||
{ label: "单位成本差异", prop: "name",hideInSearchForm: true },
|
||||
{ label: "备注", prop: "date123",hideInSearchForm: true },
|
||||
]);
|
||||
|
||||
const render = () => {
|
||||
return (
|
||||
<BaseTable
|
||||
columns={columns.value}
|
||||
queryParamsToUrl
|
||||
ref={tableRef}
|
||||
request={async ({ pageSize = 10, current = 1, ...otherSearchParams }) => {
|
||||
await new Promise((resolve) => setTimeout(resolve, Math.random() * 1111));
|
||||
return {
|
||||
data: Array(pageSize)
|
||||
.fill(0)
|
||||
.map((item, index) => ({
|
||||
id: Math.random(),
|
||||
name: "Tom" + current,
|
||||
date123: "date123" + current,
|
||||
createTime: new Date().getTime(),
|
||||
districtName: "区划" + index,
|
||||
districtName1: "区划1" + index,
|
||||
})),
|
||||
current,
|
||||
// pages: 500 / pageSize,
|
||||
total: 500,
|
||||
};
|
||||
}}
|
||||
curdConfig={{
|
||||
}}
|
||||
v-slots={{
|
||||
toolbar: ({ doAddOrEdit }) => (
|
||||
<el-space>
|
||||
<el-button type="danger" onClick={toBack}>返回</el-button>
|
||||
</el-space>
|
||||
),
|
||||
}}
|
||||
/>
|
||||
);
|
||||
};
|
||||
const toBack = ()=>{
|
||||
router.go(-1);
|
||||
}
|
||||
return render;
|
||||
},
|
||||
});
|
||||
</script>
|
||||
<style lang="scss" scoped></style>
|
||||
Reference in New Issue
Block a user