diff --git a/.env.dev b/.env.dev
index 962b91c1..3497fe49 100644
--- a/.env.dev
+++ b/.env.dev
@@ -16,7 +16,7 @@ VUE_APP_TITLE = MES系统
VUE_APP_BASE_API = 'http://192.168.0.33:48082'
# VUE_APP_BASE_API = 'http://192.168.4.173:48080'
# VUE_APP_BASE_API = 'http://192.168.2.173:48080'
-# VUE_APP_BASE_API = 'http://192.168.1.49:48080'
+# VUE_APP_BASE_API = 'http://192.168.1.49:48082'
# VUE_APP_BASE_API = 'http://192.168.1.8:48082'
# VUE_APP_BASE_API = 'http://192.168.4.159:48080'
# VUE_APP_BASE_API = 'http://192.168.1.56:48082'
diff --git a/src/api/base/delivery.js b/src/api/base/delivery.js
index 82c371c3..d04fd210 100644
--- a/src/api/base/delivery.js
+++ b/src/api/base/delivery.js
@@ -18,6 +18,15 @@ export function deliveryProgressPage(data) {
})
}
+// 获取订单列表
+export function listOrderList(query) {
+ return request({
+ url: '/extend/delivery-log/listOrderList',
+ method: 'get',
+ params: query
+ })
+}
+
// 获取发货进度分页
export function deliveryLogDetPage(data) {
return request({
diff --git a/src/api/quality/processTraceability.js b/src/api/quality/processTraceability.js
index d2152584..5faac726 100644
--- a/src/api/quality/processTraceability.js
+++ b/src/api/quality/processTraceability.js
@@ -1,7 +1,7 @@
/*
* @Author: zhp
* @Date: 2023-10-31 15:05:06
- * @LastEditTime: 2023-11-03 09:05:50
+ * @LastEditTime: 2023-11-28 09:28:05
* @LastEditors: zhp
* @Description:
*/
@@ -24,6 +24,14 @@ export function getWorkOrderList(query) {
params: query,
})
}
+
+export function getCoreProduct(id) {
+ return request({
+ url: '/base/core-product/get?id=' + id,
+ method: 'get'
+ })
+}
+
// 导出物料信息
// export function exportEnergyPlcExcel(query) {
// return request({
diff --git a/src/styles/index.scss b/src/styles/index.scss
index 6b3ebaee..d162abed 100644
--- a/src/styles/index.scss
+++ b/src/styles/index.scss
@@ -196,4 +196,8 @@ input, textarea{
margin-right: 8px;
vertical-align: middle;
}
-// 抽屉head区域---end
\ No newline at end of file
+// 抽屉head区域---end
+// 弹出框,上下分布,去掉label的padding-bottom
+.el-form--label-top .el-form-item__label {
+ padding: 0;
+}
\ No newline at end of file
diff --git a/src/views/base/mixins/basic-page.js b/src/views/base/mixins/basic-page.js
index b3b14aaa..06c2b851 100644
--- a/src/views/base/mixins/basic-page.js
+++ b/src/views/base/mixins/basic-page.js
@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2022-08-24 11:19:43
* @LastEditors: zhp
- * @LastEditTime: 2023-11-01 10:30:12
+ * @LastEditTime: 2023-11-24 09:29:36
* @Description:
*/
export default {
@@ -85,6 +85,7 @@ export default {
},
//tableBtn点击
handleClick(val) {
+ console.log(val.data.packagingCode);
if (val.type === "edit") {
this.addOrUpdateVisible = true;
this.addOrEditTitle = "编辑";
@@ -92,7 +93,7 @@ export default {
this.$refs.addOrUpdate.init(val.data.id);
});
} else if (val.type === "delete") {
- this.deleteHandle(val.data.id, val.data.name, val.data._pageIndex)
+ this.deleteHandle(val.data.id, val.data.name, val.data._pageIndex,val.data.packagingCode )
} else if (val.type === "change") {
this.changeStatus(val.data.id)
} else {
@@ -101,7 +102,7 @@ export default {
},
// 删除
deleteHandle(id, name, index) {
- this.$confirm(`是否确认删除${name ? '[' + name + ']' : '[' + index + ']'}数据项?`, "提示", {
+ this.$confirm(`是否确认删除${name ? ' 名称为'+ name : '[' + index + ']'}数据项?`, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
diff --git a/src/views/base/packagingPrintLog/index.vue b/src/views/base/packagingPrintLog/index.vue
index 06918805..3e4ec4ea 100644
--- a/src/views/base/packagingPrintLog/index.vue
+++ b/src/views/base/packagingPrintLog/index.vue
@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2023-08-01 14:55:51
* @LastEditors: zhp
- * @LastEditTime: 2023-11-22 14:40:59
+ * @LastEditTime: 2023-11-24 09:13:50
* @Description:
-->
@@ -122,7 +122,8 @@ export default {
selectOptions: [],
labelField: 'name',
valueField: 'id',
- param: 'workOrderId'
+ param: 'workOrderId',
+ filterable: true,
},
{
// parent: 'dateFilterType',
@@ -214,6 +215,26 @@ export default {
// this.listQuery.total = response.data.total;
})
},
+ deleteHandle(id, name, index, packagingCode) {
+ this.$confirm(`是否确认删除${'[' + packagingCode + ']'}数据项?`, "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.urlOptions.deleteURL(id).then(({ data }) => {
+ this.$message({
+ message: "操作成功",
+ type: "success",
+ duration: 1500,
+ onClose: () => {
+ this.getDataList();
+ },
+ });
+ });
+ })
+ .catch(() => { });
+ },
handlePrint(id) {
if (id) {
getPackingModel(id).then(res => {
diff --git a/src/views/core/analysis/balanceAnalysis/index copy.vue b/src/views/core/analysis/balanceAnalysis/index copy.vue
new file mode 100644
index 00000000..7d5fca73
--- /dev/null
+++ b/src/views/core/analysis/balanceAnalysis/index copy.vue
@@ -0,0 +1,270 @@
+
+
+
+
+
diff --git a/src/views/core/analysis/balanceAnalysis/index.vue b/src/views/core/analysis/balanceAnalysis/index.vue
index 7adceb4a..8ce3b630 100644
--- a/src/views/core/analysis/balanceAnalysis/index.vue
+++ b/src/views/core/analysis/balanceAnalysis/index.vue
@@ -1,137 +1,235 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/delivery/deliveryLog/components/addOrUpdate.vue b/src/views/delivery/deliveryLog/components/addOrUpdate.vue
index 45f3f48f..15c43943 100644
--- a/src/views/delivery/deliveryLog/components/addOrUpdate.vue
+++ b/src/views/delivery/deliveryLog/components/addOrUpdate.vue
@@ -3,7 +3,7 @@
-
+
-
+
diff --git a/src/views/extend/processTraceability/index.vue b/src/views/extend/processTraceability/index.vue
index c11054a0..d3b9f026 100644
--- a/src/views/extend/processTraceability/index.vue
+++ b/src/views/extend/processTraceability/index.vue
@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2023-08-01 14:55:51
* @LastEditors: zhp
- * @LastEditTime: 2023-11-22 14:23:40
+ * @LastEditTime: 2023-11-28 10:34:24
* @Description:
-->
@@ -26,9 +26,10 @@ import { parseTime } from '../../core/mixins/code-filter';
import {
getProcessTraceabilityPage,
getWorkOrderList,
+ getCoreProduct
// exportEnergyPlcExcel
} from '@/api/quality/processTraceability';
-
+import { publicFormatter } from '@/utils/dict';
const tableProps = [
{
prop: 'name',
@@ -44,7 +45,8 @@ const tableProps = [
},
{
prop: 'status',
- label: '状态'
+ label: '状态',
+ filter: (val) => val == 1 ? '等待' : val == 2 ? '激活' : val == 3 ? '暂停' : val == 4 ? '完成' : '作废',
},
{
prop: 'startProduceTime',
@@ -61,8 +63,9 @@ const tableProps = [
label: '生产数量'
},
{
- prop: 'unit',
- label: '单位'
+ prop: 'planProductUnit',
+ label: '单位',
+ filter: publicFormatter('unit_dict')
},
{
prop: 'processFlowName',
@@ -113,7 +116,8 @@ export default {
selectOptions: [],
labelField: 'name',
valueField: 'id',
- param: 'orderName'
+ param: 'orderName',
+ filterable: true,
},
{
type: 'datePicker',
@@ -182,17 +186,25 @@ export default {
handleClick(val) {
if (val.type === "processDetail") {
console.log(val);
- this.$router.push({
- name: 'process-traceability-detail',
- params: {
- id: '1715180991838887938',
- orderId: val.data.id,
- name: val.data.name,
- productName: val.data.planProductName,
- processFlowName: val.data.processFlowName
- // equipmentName,
- },
- });
+ let specificationsData =''
+ getCoreProduct(val.data.planProductId).then((res) => {
+ console.log(res)
+
+ this.$router.push({
+ path: 'process-traceability-detail',
+ query: {
+ id: val.data.processFlowId,
+ orderId: val.data.id,
+ name: val.data.name,
+ specifications: res.data.specifications,
+ productName: val.data.planProductName,
+ processFlowName: val.data.processFlowName,
+ // planProductId: val.data.planProductId
+ // equipmentName,
+ },
+ });
+ })
+
// this.deleteHandle(val.data.id, val.data.name, val.data._pageIndex)
}
},
diff --git a/src/views/extend/processTraceabilityDetail/components/ProcessBomList.vue b/src/views/extend/processTraceabilityDetail/components/ProcessBomList.vue
index 2e2eb1eb..c1da0893 100644
--- a/src/views/extend/processTraceabilityDetail/components/ProcessBomList.vue
+++ b/src/views/extend/processTraceabilityDetail/components/ProcessBomList.vue
@@ -117,11 +117,11 @@ export default {
// },
{ prop: 'name', label: '参数名' },
{
- prop: 'name', label: '设定范围最小- 最大 / 标准',
+ prop: 'status', label: '设定范围最小- 最大 / 标准',
subcomponent: StatusBtn
},
{
- prop: 'code', label: '最小值',
+ prop: '', label: '最小值',
children: [
{
prop: 'minValueSet',
@@ -134,7 +134,7 @@ export default {
]
},
{
- prop: 'code', label: '最大值',
+ prop: '', label: '最大值',
children: [
{
prop: 'maxValueSet',
@@ -184,9 +184,9 @@ export default {
getDetMaterial({
pageNo: 1,
pageSize: 10,
- orderId: this.$route.params.orderId,
+ orderId: this.$route.query.orderId,
flowDetId: [this.detId],
- // orderId: this.$route.params.orderId,
+ // orderId: this.$route.query.orderId,
},).then((res) => {
console.log(res);
@@ -231,25 +231,29 @@ export default {
getDetMaterial({
pageNo: 1,
pageSize: 10,
- orderId: this.$route.params.orderId,
+ orderId: this.$route.query.orderId,
flowDetId: [this.detId],
- // orderId: this.$route.params.orderId,
+ // orderId: this.$route.query.orderId,
},).then((res) => {
- this.materialList = res.data[0].data
- this.name = res.data[0].name
+ if (res.data.length != []) {
+ this.materialList = res.data[0].data
+ this.name = res.data[0].name
+ }
})
} else {
getDetValue({
pageNo: 1,
pageSize: 10,
- orderId: this.$route.params.orderId,
+ orderId: this.$route.query.orderId,
flowDetId: [this.detId],
- // orderId: this.$route.params.orderId,
+ // orderId: this.$route.query.orderId,
}).then((res) => {
- this.valueList = res.data[0].data
- this.name = res.data[0].name
+ if (res.data.length != []) {
+ this.valueList = res.data[0].data
+ this.name = res.data[0].name
+ }
})
}
},
@@ -258,12 +262,14 @@ export default {
getDetMaterial({
pageNo: 1,
pageSize: 10,
- orderId: this.$route.params.orderId,
+ orderId: this.$route.query.orderId,
flowDetId: [this.detId],
}).then((res) => {
console.log(res);
- this.materialList = res.data[0].data
- this.name = res.data[0].name
+ if (res.data.length != []) {
+ this.materialList = res.data[0].data
+ this.name = res.data[0].name
+ }
})
},
clearList() {
diff --git a/src/views/extend/processTraceabilityDetail/components/ProcessDetail.vue b/src/views/extend/processTraceabilityDetail/components/ProcessDetail.vue
index 0a4fa84f..88af88ed 100644
--- a/src/views/extend/processTraceabilityDetail/components/ProcessDetail.vue
+++ b/src/views/extend/processTraceabilityDetail/components/ProcessDetail.vue
@@ -123,7 +123,7 @@ export default {
}
},
mounted() {
- console.log(this.$route.params.id)
+ console.log(this.$route.query.id)
this.loadLayout().then(json => {
this.initGraph(json)
})
@@ -260,7 +260,7 @@ export default {
},
async loadLayout() {
- const flowId = this.$route.params.id;
+ const flowId = this.$route.query.id;
console.log(flowId)
if (!flowId) return { cells: [] }
const { code, data } = await this.info({ id: flowId });
@@ -288,12 +288,12 @@ export default {
async handleUpdateLayout() {
this.layout.content = JSON.stringify(this.graph.toJSON());
let code, data;
- console.table([this.layout, this.$route.params.id])
+ console.table([this.layout, this.$route.query.id])
// 手动刷新布局
if (this.layout.id) {
({ code, data } = await this.http('/extend/process-flow-view/update', 'put', this.layout));
} else {
- this.layout.flowId = this.$route.params.id;
+ this.layout.flowId = this.$route.query.id;
({ code, data } = await this.http('/extend/process-flow-view/create', 'post', this.layout));
}
@@ -410,7 +410,7 @@ export default {
},
createProcess() {
- // const flowId = this.$route.params.id;
+ // const flowId = this.$route.query.id;
const flowId = this.getFlowId(); // it also works
if (!flowId) {
this.$modal.msgError('工艺ID不能为空');
diff --git a/src/views/extend/processTraceabilityDetail/components/ProcessInfo.vue b/src/views/extend/processTraceabilityDetail/components/ProcessInfo.vue
index e2c7240c..6fc7073c 100644
--- a/src/views/extend/processTraceabilityDetail/components/ProcessInfo.vue
+++ b/src/views/extend/processTraceabilityDetail/components/ProcessInfo.vue
@@ -20,14 +20,13 @@
-
+