diff --git a/.prettierrc b/.prettierrc
index 3e7e729..a2658aa 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -1,5 +1,5 @@
{
- "printWidth": 120,
+ "printWidth": 108,
"bracketSameLine": true,
"htmlWhitespaceSensitivity": "ignore",
"semi": true,
diff --git a/public/importTemplates/orderImport.xlsx b/public/importTemplates/orderImport.xlsx
index 4b6a312..79ba14f 100644
Binary files a/public/importTemplates/orderImport.xlsx and b/public/importTemplates/orderImport.xlsx differ
diff --git a/src/components/DialogJustForm.vue b/src/components/DialogJustForm.vue
index 13b98f3..314c9a4 100644
--- a/src/components/DialogJustForm.vue
+++ b/src/components/DialogJustForm.vue
@@ -78,6 +78,14 @@
{{ opt[col.customLabel] || "无描述" }}
+
+
+ {{ opt[label] || " - " }}
+
+
{
- console.log("getData: ", col.prop, "/", param ?? "no param!");
+ // console.log("getData: ", col.prop, "/", param ?? "no param!");
// 获取数据 - 不需要等待前置条件时
promiseHistory[col.prop] = col.fetchData(param).then(({ data: res }) => {
if (res.code === 0) {
if ("list" in res.data) {
- console.log(
- "SdASD ",
- res.data.list.map((i) => ({
+ let options = [];
+ if (col.customLabel) {
+ options = res.data.list.map((i) => ({
label: col.optionLabel ? i[col.optionLabel] : i.name,
value: col.optionValue ? i[col.optionValue] : i.id,
[col.customLabel]: i[col.customLabel],
- }))
- );
+ }));
+ } else if (col.customLabels) {
+ options = res.data.list.map((i) => {
+ let extraOptions = {};
+ col.customLabels.forEach((label) => {
+ extraOptions[label] = i[label];
+ });
+ return {
+ label: col.optionLabel ? i[col.optionLabel] : i.name,
+ value: col.optionValue ? i[col.optionValue] : i.id,
+ ...extraOptions,
+ };
+ });
+ } else {
+ options = res.data.list.map((i) => ({
+ label: col.optionLabel ? i[col.optionLabel] : i.name,
+ value: col.optionValue ? i[col.optionValue] : i.id,
+ }));
+ }
// 填充 options
- this.$set(
- col,
- "options",
- col.customLabel
- ? res.data.list.map((i) => ({
- label: col.optionLabel ? i[col.optionLabel] : i.name,
- value: col.optionValue ? i[col.optionValue] : i.id,
- [col.customLabel]: i[col.customLabel],
- }))
- : res.data.list.map((i) => ({
- label: col.optionLabel ? i[col.optionLabel] : i.name,
- value: col.optionValue ? i[col.optionValue] : i.id,
- }))
- );
+ this.$set(col, "options", options);
// 是否需要缓存数据列表
if ("injectTo" in col || col.cached) {
diff --git a/src/views/modules/pms/blenderOrder/components/edit-dialog.vue b/src/views/modules/pms/blenderOrder/components/edit-dialog.vue
index 73e0153..427a845 100644
--- a/src/views/modules/pms/blenderOrder/components/edit-dialog.vue
+++ b/src/views/modules/pms/blenderOrder/components/edit-dialog.vue
@@ -279,12 +279,12 @@ export default {
},
handleSwitchChange(val) {
- console.log("[dialog] switch change: ", val, this.dataForm);
+ // console.log("[dialog] switch change: ", val, this.dataForm);
},
handleComponentModelUpdate(propName, { subject, payload: { data } }) {
this.dataForm[propName] = JSON.stringify(data);
- console.log("[DialogJustForm] handleComponentModelUpdate", this.dataForm[propName]);
+ // console.log("[DialogJustForm] handleComponentModelUpdate", this.dataForm[propName]);
},
addOrUpdate(method = "POST") {
diff --git a/src/views/modules/pms/blenderOrder/config.js b/src/views/modules/pms/blenderOrder/config.js
index 08d0d18..941ea1c 100644
--- a/src/views/modules/pms/blenderOrder/config.js
+++ b/src/views/modules/pms/blenderOrder/config.js
@@ -305,7 +305,13 @@ export default function () {
return {
dialogConfigs,
tableConfig: {
- table: null, // 此处可省略,el-table 上的配置项
+ table: {
+ "cell-class-name": ({ row, column, rowIndex, columnIndex }) => {
+ if ("statusDictValue" in row && row.statusDictValue == "2") {
+ return "cell-in-production";
+ }
+ },
+ },
column: tableProps, // el-column-item 上的配置项
},
headFormConfigs: {
diff --git a/src/views/modules/pms/blenderOrder/index.vue b/src/views/modules/pms/blenderOrder/index.vue
index de8ab96..83d9b95 100644
--- a/src/views/modules/pms/blenderOrder/index.vue
+++ b/src/views/modules/pms/blenderOrder/index.vue
@@ -1,5 +1,6 @@
-
+
diff --git a/src/views/modules/pms/blenderPress/components/ListViewWithHead.vue b/src/views/modules/pms/blenderPress/components/ListViewWithHead.vue
index 0b2a7c0..3dee129 100644
--- a/src/views/modules/pms/blenderPress/components/ListViewWithHead.vue
+++ b/src/views/modules/pms/blenderPress/components/ListViewWithHead.vue
@@ -220,8 +220,11 @@ export default {
}).then(() => {
this.overlayVisible = true;
return this.$http
- .post(this.urls.pressDetach, data /* { id: data } */, { headers: { "Content-Type": "application/json" } })
+ .post(this.urls.pressDetach, data /* { id: data } */, {
+ headers: { "Content-Type": "application/json" },
+ })
.then(({ data: res }) => {
+ this.overlayVisible = false;
if (res.code === 0) {
this.$message({
message: `下发成功`,
@@ -238,7 +241,6 @@ export default {
duration: 1500,
});
}
- this.overlayVisible = false;
});
});
}
@@ -329,7 +331,9 @@ export default {
.then(({ data: res }) => {
if (res.code === 0) {
this.$message({
- message: `${type === "detach" ? "下发" : type === "pause-blender" ? "暂停" : "开始"}成功`,
+ message: `${
+ type === "detach" ? "下发" : type === "pause-blender" ? "暂停" : "开始"
+ }成功`,
type: "success",
duration: 1500,
onClose: () => {
diff --git a/src/views/modules/pms/blenderPress/config.js b/src/views/modules/pms/blenderPress/config.js
index a0b628b..e2ef1c8 100644
--- a/src/views/modules/pms/blenderPress/config.js
+++ b/src/views/modules/pms/blenderPress/config.js
@@ -9,11 +9,19 @@ export default function () {
{ width: 160, prop: "orderCode", label: "主订单号" },
{ width: 60, prop: "orderCate", label: "子号" },
{ width: 160, prop: "code", label: "混料订单号" },
- { width: 60, prop: "percent", label: "进度", filter: (val) => (val !== null && val !== undefined ? val + " %" : "-") },
+ {
+ width: 60,
+ prop: "percent",
+ label: "进度",
+ filter: (val) => (val !== null && val !== undefined ? val + " %" : "-"),
+ },
{
prop: "statusDictValue",
label: "订单状态",
- filter: (val) => (val !== null && val !== undefined ? ["等待", "确认", "生产", "暂停", "结束", "接受", "拒绝", "已下发"][val] : "-"),
+ filter: (val) =>
+ val !== null && val !== undefined
+ ? ["等待", "确认", "生产", "暂停", "结束", "接受", "拒绝", "已下发"][val]
+ : "-",
},
{ prop: "bomCode", label: "配方" },
{ width: 120, prop: "qty", label: "混料总量 [kg]" },
@@ -25,20 +33,30 @@ export default function () {
prop: "operations",
name: "操作",
fixed: "right",
- width: 180,
+ width: 188,
subcomponent: TableOperaionComponent,
options: [
{
- name: "edit", label: "编辑", emitFull: true, icon: 'edit-outline', enable: injectData => {
- const v = injectData.statusDictValue
- if (v && +v === 1) return true
- return false
- }
+ name: "edit",
+ label: "编辑",
+ emitFull: true,
+ icon: "edit-outline",
+ enable: (injectData) => {
+ const v = injectData.statusDictValue;
+ if (v && +v === 1) return true;
+ return false;
+ },
},
- { name: "view-batch", label: "查看批次", color: "#ff8000", toRouter: 'pms-blenderBatch', icon: 'document-copy' }, // 路由跳转至 pms-blenderBatch
- { name: "pause-blender", label: "暂停", color: "#f10000", icon: 'video-pause' },
- { name: "start-blender", label: "开始", color: "#0b58ff", icon: 'video-play' },
- { name: "detach", label: "下发", color: "#099", icon: 'bottom-right' },
+ {
+ name: "view-batch",
+ label: "查看批次",
+ color: "#ff8000",
+ toRouter: "pms-blenderBatch",
+ icon: "document-copy",
+ }, // 路由跳转至 pms-blenderBatch
+ { name: "pause-blender", label: "暂停", color: "#f10000", icon: "video-pause" },
+ { name: "start-blender", label: "开始", color: "#0b58ff", icon: "video-play" },
+ { name: "detach", label: "下发", color: "#099", icon: "bottom-right" },
],
},
];
@@ -48,8 +66,20 @@ export default function () {
{ width: 160, prop: "orderCode", label: "主订单号" },
{ width: 60, prop: "orderCate", label: "子号" },
{ width: 160, prop: "code", label: "压制订单号" },
- { width: 60, prop: "percent", label: "进度", filter: (val) => (val !== null && val !== undefined ? val + " %" : "-") },
- { prop: "statusDictValue", label: "订单状态", filter: (val) => (val !== null && val !== undefined ? ["等待", "确认", "生产", "暂停", "结束", "接受", "拒绝", "已下发"][val] : "-"), },
+ {
+ width: 60,
+ prop: "percent",
+ label: "进度",
+ filter: (val) => (val !== null && val !== undefined ? val + " %" : "-"),
+ },
+ {
+ prop: "statusDictValue",
+ label: "订单状态",
+ filter: (val) =>
+ val !== null && val !== undefined
+ ? ["等待", "确认", "生产", "暂停", "结束", "接受", "拒绝", "已下发"][val]
+ : "-",
+ },
{ prop: "startTime", label: "开始时间" },
{ width: 100, prop: "shapeCode", label: "砖型" },
{ prop: "pressCode", label: "压机" },
@@ -64,11 +94,10 @@ export default function () {
fixed: "right",
width: 80,
subcomponent: TableOperaionComponent,
- options: [{ name: 'detach', label: '下发', icon: 'bottom-right' }]
+ options: [{ name: "detach", label: "下发", icon: "bottom-right" }],
},
];
-
const headFormFields = [
{
prop: "code",
@@ -109,8 +138,8 @@ export default function () {
[
{
forceDisabled: true,
- prop: 'code',
- label: '混料订单号'
+ prop: "code",
+ label: "混料订单号",
},
],
[
@@ -119,10 +148,11 @@ export default function () {
label: "配方",
prop: "bomId",
options: [],
- optionLabelProp: 'code',
+ optionLabelProp: "code",
/** ====== */
- fetchData: (bomCode) => this.$http.get('/pms/bom/pageVersion', { params: { key: bomCode, limit: 999, page: 1 } }),
- fetchDataParam: 'bomCode',
+ fetchData: (bomCode) =>
+ this.$http.get("/pms/bom/pageVersion", { params: { key: bomCode, limit: 999, page: 1 } }),
+ fetchDataParam: "bomCode",
delayRequest: true,
/** ====== */
rules: { required: true, message: "必填项不能为空", trigger: "blur" },
@@ -135,8 +165,9 @@ export default function () {
label: "混料机",
prop: "blender",
options: [],
- optionLabelProp: 'code',
- fetchData: () => this.$http.get('/pms/equipment/list', { params: { workSequenceName: '混料工序' } }),
+ optionLabelProp: "code",
+ fetchData: () =>
+ this.$http.get("/pms/equipment/list", { params: { workSequenceName: "混料工序" } }),
rules: { required: true, message: "必填项不能为空", trigger: "blur" },
elparams: { clearable: true, filterable: true, placeholder: "请选择混料机" },
},
@@ -146,18 +177,30 @@ export default function () {
{ name: "add", label: "保存", type: "primary", permission: "", showOnEdit: false },
{ name: "update", label: "更新", type: "primary", permission: "", showOnEdit: true },
// { name: "reset", label: "重置", type: "warning", showAlways: true },
- ]
+ ],
},
};
return {
dialogConfigs,
tableConfig: {
- table: null,
+ table: {
+ "cell-class-name": ({ row, column, rowIndex, columnIndex }) => {
+ if ("statusDictValue" in row && row.statusDictValue == "2") {
+ return "cell-in-production";
+ }
+ },
+ },
column: tableProps,
},
pressTableConfig: {
- table: null,
+ table: {
+ "cell-class-name": ({ row, column, rowIndex, columnIndex }) => {
+ if ("statusDictValue" in row && row.statusDictValue == "2") {
+ return "cell-in-production";
+ }
+ },
+ },
column: pressTableProps,
},
headFormConfigs: {
@@ -171,7 +214,7 @@ export default function () {
pauseBlender: "/pms/trans/blenderPause",
startBlender: "/pms/trans/blenderStart",
pageIsPostApi: true, // 使用post接口来获取page数据,极少用,目前基本上只有工艺管理模块里在用
- changeBlender: '/pms/order/changeBlender',
+ changeBlender: "/pms/order/changeBlender",
pressPage: "/pms/pressOrder/pageView",
pressDetach: "/pms/trans/pressDeli",
},
diff --git a/src/views/modules/pms/blenderPress/index.vue b/src/views/modules/pms/blenderPress/index.vue
index ba7bd0e..295e755 100644
--- a/src/views/modules/pms/blenderPress/index.vue
+++ b/src/views/modules/pms/blenderPress/index.vue
@@ -1,12 +1,12 @@
+ :list-query-extra="[]" />
-
+
diff --git a/src/views/modules/pms/bom/config.js b/src/views/modules/pms/bom/config.js
index a18128b..0f36d8a 100644
--- a/src/views/modules/pms/bom/config.js
+++ b/src/views/modules/pms/bom/config.js
@@ -12,9 +12,9 @@ export default function () {
{ prop: "name", label: "牌号" },
{ prop: "syncTime", label: "同步时间", filter: timeFilter },
{ width: 120, prop: "techCode", label: "烧制曲线", subcomponent: techBox },
- { prop: "upweight", label: "建议混料上限" },
- { prop: "downweight", label: "建议混料下限" },
- // { prop: "externalCode", label: "版本号" },
+ { width: 110, prop: "upweight", label: "建议混料上限" },
+ { width: 110, prop: "downweight", label: "建议混料下限" },
+ { prop: "shortDesc", label: "喷码描述" },
// { prop: "specifications", label: "程序号" },
// { prop: "unitDictValue", label: "砖型", filter: dictFilter("unit") },
// { prop: "unitDictValue", label: "物料号", filter: dictFilter("unit") },
@@ -256,7 +256,7 @@ export default function () {
rows: [
[
{
- input: true,
+ forceDisabled: true,
label: "配方号",
prop: "code",
rules: { required: true, message: "必填项不能为空", trigger: "blur" },
@@ -264,7 +264,7 @@ export default function () {
elparams: { disabled: true },
},
{
- input: true,
+ forceDisabled: true,
label: "牌号",
prop: "name",
rules: { required: true, message: "必填项不能为空", trigger: "blur" },
@@ -286,7 +286,17 @@ export default function () {
rules: [{ type: "number", trigger: "blur", message: "请输入数字类型", transform: (val) => Number(val) }],
elparams: { placeholder: "请输入建议混料上限" },
},
- ]
+ ],
+ [
+ {
+ input: true,
+ label: "喷码描述",
+ prop: "shortDesc",
+ // rules: { required: true, message: "必填项不能为空", trigger: "blur" },
+ // elparams: { disabled: true },
+ },
+ null
+ ],
],
operations: [
{ name: "add-bom", label: "保存", type: "primary", permission: "", showOnEdit: false },
diff --git a/src/views/modules/pms/bomDetails/config.js b/src/views/modules/pms/bomDetails/config.js
index 9af60d8..15a8a9f 100644
--- a/src/views/modules/pms/bomDetails/config.js
+++ b/src/views/modules/pms/bomDetails/config.js
@@ -37,8 +37,8 @@ export default function () {
{ prop: "name", label: "牌号" },
{ prop: "version", label: "版本" },
{ prop: "sumqty", label: "总重量" },
- { prop: "description", label: "物料销售文本" },
- { width: 150, prop: "shortDesc", label: "物料销售文本短描述" },
+ // { prop: "description", label: "物料销售文本" },
+ // { width: 150, prop: "shortDesc", label: "物料销售文本短描述" },
{ prop: "remark", label: "备注" },
{ prop: "createTime", label: "添加时间", filter: timeFilter },
{
diff --git a/src/views/modules/pms/brokeLog/config.js b/src/views/modules/pms/brokeLog/config.js
index e2b5c3d..aa4eef7 100644
--- a/src/views/modules/pms/brokeLog/config.js
+++ b/src/views/modules/pms/brokeLog/config.js
@@ -60,6 +60,7 @@ export default function () {
}
};
+ const now = new Date().getTime();
const headFormFields = [
{
prop: "material",
@@ -95,6 +96,7 @@ export default function () {
"start-placeholder": "开始时间",
"end-placeholder": "结束时间",
},
+ default: { value: [now - 3600 * 24 * 7 * 1000, now] },
},
{
button: {
diff --git a/src/views/modules/pms/brokeLogHand/config.js b/src/views/modules/pms/brokeLogHand/config.js
index a8589a4..bac96f4 100644
--- a/src/views/modules/pms/brokeLogHand/config.js
+++ b/src/views/modules/pms/brokeLogHand/config.js
@@ -60,6 +60,7 @@ export default function () {
}
};
+ const now = new Date().getTime();
const headFormFields = [
{
prop: "material",
@@ -95,6 +96,7 @@ export default function () {
"start-placeholder": "开始时间",
"end-placeholder": "结束时间",
},
+ default: { value: [now - 3600 * 24 * 7 * 1000, now] },
},
{
button: {
diff --git a/src/views/modules/pms/carHistory/config.js b/src/views/modules/pms/carHistory/config.js
index 71ea583..4ba710d 100644
--- a/src/views/modules/pms/carHistory/config.js
+++ b/src/views/modules/pms/carHistory/config.js
@@ -1,7 +1,7 @@
import TableOperaionComponent from "@/components/noTemplateComponents/operationComponent";
-import StateSelect from '@/components/StateSelect.vue';
+import StateSelect from "@/components/StateSelect.vue";
import request from "@/utils/request";
-import { timeFilter } from '@/utils/filters'
+import { timeFilter } from "@/utils/filters";
export default function () {
const tableProps = [
@@ -21,31 +21,32 @@ export default function () {
width: 180,
subcomponent: TableOperaionComponent,
options: [
- { name: "temperature", label: "烧制温度", },
- { name: "to-car-payload", label: "装载详情", icon: 'document' },
- { name: "delete", label: "删除", icon: 'delete', emitFull: true, promptField: 'code' }
+ { name: "temperature", label: "烧制温度" },
+ { name: "to-car-payload", label: "装载详情", icon: "document" },
+ { name: "delete", label: "删除", icon: "delete", emitFull: true, promptField: "code" },
],
},
];
+ const now = new Date().getTime();
const headFormFields = [
{
input: true,
- prop: 'code',
+ prop: "code",
label: "窑车号",
default: { value: "" },
bind: {
- placeholder: '请输入窑车号'
- }
+ placeholder: "请输入窑车号",
+ },
},
{
input: true,
- prop: 'orderCode',
+ prop: "orderCode",
label: "订单号",
default: { value: "" },
bind: {
- placeholder: '请输入订单号'
- }
+ placeholder: "请输入订单号",
+ },
},
{
timerange: true,
@@ -57,6 +58,7 @@ export default function () {
"start-placeholder": "开始时间",
"end-placeholder": "结束时间",
},
+ default: { value: [now - 3600 * 24 * 7 * 1000, now] },
},
{
button: {
@@ -79,7 +81,7 @@ export default function () {
const dialogJustFormConfigs = null;
const carPayloadDialogConfigs = {
- dialogWidth: '70%',
+ dialogWidth: "70%",
carPayloadDialog: true,
clickModalToClose: false,
tableConfig: {
@@ -102,7 +104,6 @@ export default function () {
},
};
-
return {
carPayloadDialogConfigs,
dialogConfigs: dialogJustFormConfigs,
@@ -117,7 +118,7 @@ export default function () {
urls: {
base: "/pms/carHandle",
page: "/pms/carHandle/pageHis",
- pageIsPostApi: true
+ pageIsPostApi: true,
// subase: '/pms/blenderStepParam',
// subpage: '/pms/blenderStepParam/page',
// more...
diff --git a/src/views/modules/pms/finishedOrder/components/tabs/orderDetail.vue b/src/views/modules/pms/finishedOrder/components/tabs/orderDetail.vue
index d6c33a3..044fb78 100644
--- a/src/views/modules/pms/finishedOrder/components/tabs/orderDetail.vue
+++ b/src/views/modules/pms/finishedOrder/components/tabs/orderDetail.vue
@@ -266,7 +266,7 @@
-
-
+ -->
-
-
+ -->
@@ -377,8 +377,8 @@
+ prop="saleNo">
+
+ prop="deliveryTime">
+
-
+
{{ dataForm.shortDesc }}
diff --git a/src/views/modules/pms/finishedOrder/config.js b/src/views/modules/pms/finishedOrder/config.js
index d670492..cb2f37b 100644
--- a/src/views/modules/pms/finishedOrder/config.js
+++ b/src/views/modules/pms/finishedOrder/config.js
@@ -11,33 +11,33 @@ export default function () {
{ width: 60, type: "index", label: "序号", fixed: true },
{ width: 120, prop: "code", label: "订单号", fixed: "left" },
{ width: 60, prop: "cate", label: "子号" },
- { width: 60, prop: "statusDictValue", label: "状态", filter: dictFilter("order_status") },
- { width: 120, prop: "planStartTime", label: "计划开始时间", filter: timeFilter },
- { width: 120, prop: "startTime", label: "开始时间", filter: timeFilter },
- { width: 60, prop: "prodqty", label: "数量" },
{ width: 100, prop: "productCode", label: "物料" },
{ width: 100, prop: "shapeCode", label: "砖型" },
- { width: 120, prop: "brand", label: "牌号" },
- { width: 60, prop: "ai", label: "版本" },
- { width: 65, prop: "sapParam1", label: "addon" },
- { width: 200, prop: "shortDesc", label: "物料号销售文本" },
+ { width: 160, prop: "brand", label: "牌号" },
{ width: 100, prop: "bomCode", label: "配方编码" },
- { width: 80, prop: "pressCode", label: "压机号" },
+ { width: 60, prop: "ai", label: "版本" },
+ { width: 60, prop: "prodqty", label: "数量" },
{ width: 80, prop: "blenderCode", label: "混料机号" },
+ { width: 80, prop: "pressCode", label: "压机号" },
{ width: 80, prop: "kilnCode", label: "隧道窑号" },
+ { width: 120, prop: "planStartTime", label: "计划开始时间", filter: timeFilter },
+ { width: 120, prop: "startTime", label: "开始时间", filter: timeFilter },
{ width: 120, prop: "sapParam6", label: "烧成温度" },
{ width: 120, prop: "sapParam7", label: "烧成时间(h)" },
- { width: 120, prop: "yieldqty", label: "已生产数量" },
- { width: 120, prop: "soqty", label: "销售订单数" },
+ { width: 200, prop: "packTechCode", label: "包装工艺代码" },
+ { width: 120, prop: "pcsKilnCar", label: "托盘码放砖数" },
+ { width: 120, prop: "customerCode", label: "客户" },
+ { width: 120, prop: "specifications", label: "生产订单类型" },
+ { width: 60, prop: "statusDictValue", label: "状态", filter: dictFilter("order_status") },
{ width: 200, prop: "saleNo", label: "销售订单号" },
{ width: 200, prop: "saleOrderItem", label: "销售订单item号" },
- { width: 200, prop: "packTechCode", label: "包装工艺代码" },
- { width: 120, prop: "specifications", label: "生产订单类型" },
+ { width: 120, prop: "soqty", label: "销售订单数" },
{ width: 120, prop: "deliveryTime", label: "销售时间", filter: timeFilter },
- { width: 120, prop: "customerCode", label: "客户" },
- { width: 120, prop: "pcsKilnCar", label: "托盘码放砖数" },
+ { width: 65, prop: "sapParam1", label: "addon" },
+ { width: 200, prop: "shortDesc", label: "喷码描述" },
+ { width: 120, prop: "yieldqty", label: "已生产数量" },
{ width: 120, prop: "remark", label: "备注" },
- { width: 120, prop: "createTime", label: "添加时间", filter: timeFilter },
+ // { width: 120, prop: "createTime", label: "添加时间", filter: timeFilter },
{
prop: "operations",
name: "操作",
diff --git a/src/views/modules/pms/materialBase/config.js b/src/views/modules/pms/materialBase/config.js
index 885bc95..ac8de78 100644
--- a/src/views/modules/pms/materialBase/config.js
+++ b/src/views/modules/pms/materialBase/config.js
@@ -4,11 +4,11 @@ import { timeFilter } from "@/utils/filters";
export default function () {
const tableProps = [
{ type: "index", label: "序号" },
- { prop: "name", label: "名称" },
{ prop: "code", label: "编码" },
// { prop: "enName", label: "英文名称" },
// { prop: "enAb", label: "缩写" },
{ prop: "description", label: "描述" },
+ { prop: "name", label: "名称" },
{ prop: "remark", label: "备注" },
{ prop: "createTime", label: "添加时间", filter: timeFilter },
{
diff --git a/src/views/modules/pms/materialStorageDynamic/config.js b/src/views/modules/pms/materialStorageDynamic/config.js
index a83005d..8b2beab 100644
--- a/src/views/modules/pms/materialStorageDynamic/config.js
+++ b/src/views/modules/pms/materialStorageDynamic/config.js
@@ -7,20 +7,21 @@ import { timeFilter } from "@/utils/filters";
export default function () {
const tableProps = [
{ type: "index", label: "序号" },
- { prop: "name", label: "料仓名称" },
- { prop: "code", label: "料仓编码" },
- { prop: "typeDictValue", label: "料仓类型", filter: dictFilter("liaocang") },
+ { width: 90, prop: "name", label: "料仓名称" },
+ { width: 90, prop: "code", label: "料仓编码" },
+ { width: 90, prop: "typeDictValue", label: "料仓类型", filter: dictFilter("liaocang") },
// { prop: "enabled", label: "状态", subcomponent: switchBtn }, // subcomponent
- { prop: "materialDescription", label: "原料" },
- { prop: "qty", label: "料位" },
+ { width: 220, prop: "materialDescription", label: "原料" },
+ { prop: "qty", label: "料位[kg]" },
// { prop: "unitDictValue", label: "单位", filter: dictFilter('unit') },
- { prop: "materialTypeDictValue", label: "原料类型", filter: dictFilter("material_category") },
- { prop: "density", label: "原料堆积密度" },
- { prop: "dosLow", label: "加料下限" },
- { prop: "dosHigh", label: "加料上限" },
- { prop: "description", label: "描述" },
+ { width: 128, prop: "materialTypeDictValue", label: "原料类型", filter: dictFilter("material_category") },
+ { width: 128, prop: "density", label: "原料堆积密度" },
+ { width: 90, prop: "dosLow", label: "加料下限" },
+ { width: 90, prop: "dosHigh", label: "加料上限" },
+ { width: 128, prop: "description", label: "描述" },
+ { width: 128, prop: "materialName", label: "中文描述" },
// { prop: "remark", label: "备注" },
- { prop: "createTime", label: "添加时间", filter: timeFilter },
+ { width: 128, prop: "createTime", label: "添加时间", filter: timeFilter },
{
prop: "operations",
name: "操作",
@@ -123,7 +124,8 @@ export default function () {
fetchData: () => this.$http.get("/pms/material/page", { params: { key: "", limit: 999, page: 1 } }),
options: [],
optionLabel: "code",
- customLabel: "description",
+ // customLabel: "description+name",
+ customLabels: ["description", "name"],
rules: { required: true, message: "必填项不能为空", trigger: "change" },
elparams: { filterable: true, placeholder: "请选择原料" },
},
diff --git a/src/views/modules/pms/order/components/ListSectionWithHead.vue b/src/views/modules/pms/order/components/ListSectionWithHead.vue
index dc978fa..ef680c9 100644
--- a/src/views/modules/pms/order/components/ListSectionWithHead.vue
+++ b/src/views/modules/pms/order/components/ListSectionWithHead.vue
@@ -66,7 +66,7 @@
+
+
diff --git a/src/views/modules/pms/order/components/tabs/subOrderDetail.vue b/src/views/modules/pms/order/components/tabs/subOrderDetail.vue
index 1b93082..7430eac 100644
--- a/src/views/modules/pms/order/components/tabs/subOrderDetail.vue
+++ b/src/views/modules/pms/order/components/tabs/subOrderDetail.vue
@@ -3,16 +3,24 @@
-
-
@@ -22,16 +30,24 @@
-
-
@@ -43,39 +59,37 @@
@@ -138,4 +143,10 @@ export default {
/* margin-left: 144px; */
flex-grow: 1;
}
+.list-section-with-head >>> .cell-in-production {
+ background: rgba(33, 207, 134, 0.35);
+}
+.list-section-with-head >>> .hover-row .cell-in-production {
+ background: rgba(33, 207, 134, 0.7);
+}
diff --git a/src/views/modules/pms/pressOrder/config.js b/src/views/modules/pms/pressOrder/config.js
index 7b1f39d..6d02609 100644
--- a/src/views/modules/pms/pressOrder/config.js
+++ b/src/views/modules/pms/pressOrder/config.js
@@ -10,8 +10,20 @@ export default function () {
{ width: 160, prop: "orderCode", label: "主订单号" },
{ width: 60, prop: "orderCate", label: "子号" },
{ width: 160, prop: "code", label: "压制订单号" },
- { width: 90, prop: "percent", label: "进度", filter: (val) => (val !== null && val !== undefined ? val + " %" : "-") },
- { prop: "statusDictValue", label: "订单状态", filter: (val) => (val !== null && val !== undefined ? ["等待", "确认", "生产", "暂停", "结束", "接受", "拒绝", "已下发"][val] : "-"), },
+ {
+ width: 90,
+ prop: "percent",
+ label: "进度",
+ filter: (val) => (val !== null && val !== undefined ? val + " %" : "-"),
+ },
+ {
+ prop: "statusDictValue",
+ label: "订单状态",
+ filter: (val) =>
+ val !== null && val !== undefined
+ ? ["等待", "确认", "生产", "暂停", "结束", "接受", "拒绝", "已下发"][val]
+ : "-",
+ },
{ width: 160, prop: "startTime", label: "开始时间", filter: timeFilter },
{ width: 100, prop: "shapeCode", label: "砖型" },
{ prop: "pressCode", label: "压机" },
@@ -30,7 +42,7 @@ export default function () {
fixed: "right",
width: 80,
subcomponent: TableOperaionComponent,
- options: [{ name: 'detach', label: '下发', icon: 'bottom-right' }] // , url: '/pms/trans/pressDeli' }]
+ options: [{ name: "detach", label: "下发", icon: "bottom-right" }], // , url: '/pms/trans/pressDeli' }]
// options: ["copy", { name: "edit", label: "编辑", icon: "edit-outline" }, { name: "delete", icon: "delete", label: "删除", emitFull: true, permission: "pms:blenderStep:delete" }],
},
];
@@ -233,7 +245,13 @@ export default function () {
return {
// dialogConfigs,
tableConfig: {
- table: null, // 此处可省略,el-table 上的配置项
+ table: {
+ "cell-class-name": ({ row, column, rowIndex, columnIndex }) => {
+ if ("statusDictValue" in row && row.statusDictValue == "2") {
+ return "cell-in-production";
+ }
+ },
+ },
column: tableProps, // el-column-item 上的配置项
},
headFormConfigs: {
diff --git a/src/views/modules/pms/pressOrder/index.vue b/src/views/modules/pms/pressOrder/index.vue
index 96cac28..b13bb99 100644
--- a/src/views/modules/pms/pressOrder/index.vue
+++ b/src/views/modules/pms/pressOrder/index.vue
@@ -1,5 +1,6 @@
-
+
diff --git a/src/views/modules/pms/shape/config.js b/src/views/modules/pms/shape/config.js
index 906ab25..14cdb82 100644
--- a/src/views/modules/pms/shape/config.js
+++ b/src/views/modules/pms/shape/config.js
@@ -14,8 +14,8 @@ export default function () {
{ prop: "line", label: "中心线颜色", filter: dictFilter("line") },
{ prop: "tequipmentTechCode1", label: "压制工艺", subcomponent: techBox },
{ prop: "tequipmentTechCode2", label: "检测工艺", subcomponent: techBox },
- { prop: "description", label: "长描述" },
- { prop: "shortDesc", label: "短描述" },
+ // { prop: "description", label: "长描述" },
+ { prop: "shortDesc", label: "喷码描述" },
{ prop: "remark", label: "备注" },
{
prop: "toggle-attachment-dialog",
diff --git a/src/views/pages/login.vue b/src/views/pages/login.vue
index d7adaee..b54a771 100644
--- a/src/views/pages/login.vue
+++ b/src/views/pages/login.vue
@@ -132,8 +132,8 @@ export default {
baseImg: require("../../assets/img/login-back.png"),
coverImgUrl: "",
dataForm: {
- username: "admin",
- password: "admin",
+ username: "",
+ password: "",
uuid: "string",
captcha: "",
},