From ba921244b39cb1c65ca74a49447726767b69b24e Mon Sep 17 00:00:00 2001
From: leo <10200039@qq.com>
Date: Fri, 21 Apr 2023 23:45:47 +0800
Subject: [PATCH 1/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B0=83=E7=94=A8MDM?=
=?UTF-8?q?=E8=8E=B7=E5=8F=96=E7=89=A9=E6=96=99=E5=8F=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/materia/all.vue | 32 ++++++-------
src/views/materia/components/AddMateria.vue | 6 +--
src/views/materia/route.vue | 52 +++++++++++++--------
3 files changed, 51 insertions(+), 39 deletions(-)
diff --git a/src/views/materia/all.vue b/src/views/materia/all.vue
index 71808b0..aecdda8 100644
--- a/src/views/materia/all.vue
+++ b/src/views/materia/all.vue
@@ -10,8 +10,8 @@
-
+
@@ -165,7 +165,6 @@
current: 1
});
const dataList = ref([]);
- const typeList = ref([]);
const searchObj = ref({});
const postData = ref({});
const MaterialModel= ref({});
@@ -174,12 +173,19 @@
const objInfoObj = ref({});
const editType = ref(1);
const stateList = ref([{
- id: 1,
- name: "进行中"
- }, {
- id: 2,
- name: "已完成"
- }]);
+ id: 1,
+ name: "进行中"
+ }, {
+ id: 2,
+ name: "已完成"
+ }]);
+ const typeList = ref([{
+ id: 1,
+ name: "新增"
+ }, {
+ id: 2,
+ name: "修改"
+ }]);
const hasLoaded = ref(false);
const dataItem=ref([]);
return {
@@ -221,7 +227,6 @@
this.dataColumn[2].hide = true;
this.dataColumn[7].hide = false;
}
- this._getTypeList();
this._getPageList(true);
},
methods: {
@@ -239,13 +244,6 @@
this.showEditBox[i] = false;
}
},
- _getTypeList() {
- this.typeList = [{
- 0: "全部",
- 1: "新增",
- 2: "修改"
- }]
- },
//分页列表
async _getPageList(isFirst, showOk) {
this.pageInfo.total = 0;
diff --git a/src/views/materia/components/AddMateria.vue b/src/views/materia/components/AddMateria.vue
index 0237ce5..fb06ea8 100644
--- a/src/views/materia/components/AddMateria.vue
+++ b/src/views/materia/components/AddMateria.vue
@@ -26,10 +26,10 @@
{{ seletList[0].find(s => s.FValue == dataInfo.FWeightUnit).FName }}
-
+
-
+
@@ -283,7 +283,7 @@ export default {
postData.FState = isCreate ? 1 : 0;
for (let key in postData) {
- if (postData[key] == "") return false;
+ if (postData[key] == "" && key != "FTestCode") return false;
}
postData = JSON.parse(JSON.stringify(postData));
diff --git a/src/views/materia/route.vue b/src/views/materia/route.vue
index a4c6b8c..4c21e7b 100644
--- a/src/views/materia/route.vue
+++ b/src/views/materia/route.vue
@@ -6,19 +6,19 @@
-
-
+
+
-
+
+ :label="tv.name">
@@ -37,11 +37,10 @@
刷新
导出
-
-
- {{ data.FStateName }}
- {{ data.FStateName }}
+
+ 进行中
+ 已完成
操作
@@ -95,14 +94,14 @@
{
title: "物料号",
key: "FMaterialCode",
- width: "160px",
+ width: "120px",
align: 'center',
hide: false
},
{
title: "试验号",
key: "FTestCode",
- width: "160px",
+ width: "120px",
align: 'center',
hide: false
},
@@ -115,7 +114,7 @@
{
title: "产品分类",
key: "FMaterialTypeName",
- width: "200px",
+ width: "160px",
align: 'center'
},
{
@@ -137,6 +136,13 @@
align: 'center',
customSlot: '',
},
+ {
+ title: "状态",
+ key: "FState",
+ width: "100px",
+ align: 'center',
+ customSlot: 'FState',
+ },
{
title: "操作",
key: "operator",
@@ -155,7 +161,16 @@
current: 1
});
const dataList = ref([]);
- const typeList = ref([]);
+ const typeList = ref([{
+ id: 0,
+ name: "物料分类选择"
+ }, {
+ id: 1,
+ name: "物料视图编辑"
+ }, {
+ id: 2,
+ name: "物料视图确认"
+ }]);
const searchObj = ref({});
const postData = ref({});
const MaterialModel= ref({});
@@ -212,7 +227,6 @@
this.dataColumn[7].hide = false;
}
- this._getTypeList();
this._getPageList(true);
},
methods: {
@@ -230,9 +244,6 @@
this.showEditBox[i] = false;
}
},
- async _getTypeList() {
- this.typeList = await getBasicList(33) || [];
- },
//分页列表
async _getPageList(isFirst, showOk) {
//this.dataList = [];
@@ -240,6 +251,7 @@
if (isFirst) {
this.pageInfo.current = 1;
this.pageInfo.total = 0;
+ this.postData.FType = -1;
}
if (this.dataInfoObj && this.dataInfoObj.FID) {
this.postData.FTeamID = this.dataInfoObj.FID;
@@ -248,8 +260,10 @@
if (this.pageTypeObj && this.pageTypeObj == 2) {
this.postData.FState = 99;
}
+ if (!("FType" in this.postData)) this.postData.FType = -1;
this.postData.FPageIndex = this.pageInfo.current;
this.postData.FPageSize = this.pageInfo.limit;
+ console.log('this.postData', this.postData);
let result = await getPageList(this.postData, "MaterialTask");
result.Data.List = result.Data.List || [];
@@ -314,12 +328,12 @@
let val = this.searchObj[key];
if (val != null && val !== "") this.postData[key] = val;
}
- this._getPageList(true);
+ this._getPageList(false);
},
//检索-重置
_clickReset() {
this.searchObj = {};
- this._clickSearch();
+ this._getPageList(true);
}
}
}
From 61601e4df80c49ccf613b7dcbf80921b790b2f0d Mon Sep 17 00:00:00 2001
From: leo <10200039@qq.com>
Date: Sat, 22 Apr 2023 00:10:00 +0800
Subject: [PATCH 2/4] =?UTF-8?q?=E5=8C=85=E8=A7=84=E5=AD=98=E5=9C=A8?=
=?UTF-8?q?=E5=88=A4=E6=96=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/Order/components/EditPackage.vue | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/views/Order/components/EditPackage.vue b/src/views/Order/components/EditPackage.vue
index 585c406..c2273d4 100644
--- a/src/views/Order/components/EditPackage.vue
+++ b/src/views/Order/components/EditPackage.vue
@@ -271,6 +271,7 @@
postData.FOperateType = "1";
let result = await updatePackageData(postData) || -1;
if (result > 0) this.$emit('cancelClick', true);
+ if (result == -2) layer.msg("包规已存在", { icon : 2, time: 1000})
layer.close(idx);
},
async _getChildList() {
From 9ac7807abb903a4f99c08bbdc1300d4baf1bbc26 Mon Sep 17 00:00:00 2001
From: leo <10200039@qq.com>
Date: Sat, 22 Apr 2023 10:26:54 +0800
Subject: [PATCH 3/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9D=83=E9=99=90?=
=?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=A1=B5=E4=B8=AD=E6=8C=89=E9=92=AE=E4=BD=8D?=
=?UTF-8?q?=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/System/components/PowerRole.vue | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/views/System/components/PowerRole.vue b/src/views/System/components/PowerRole.vue
index 897f36f..4048136 100644
--- a/src/views/System/components/PowerRole.vue
+++ b/src/views/System/components/PowerRole.vue
@@ -46,7 +46,8 @@
-
+
+
保存
取消
@@ -71,6 +72,10 @@
position: absolute;
bottom: 38px;
}
+ .mb {
+ position: relative;
+ margin-top: 70px;
+ }
.mb4,
.mb5 {
From 7ba1358d41a21d189e8e306d4e0680e8c61ad71e Mon Sep 17 00:00:00 2001
From: leo <10200039@qq.com>
Date: Sat, 22 Apr 2023 10:58:41 +0800
Subject: [PATCH 4/4] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8D=8F=E5=90=8C?=
=?UTF-8?q?=E6=89=80=E9=80=89=E9=85=8D=E6=96=B9=E6=97=A0=E8=AF=95=E9=AA=8C?=
=?UTF-8?q?=E5=8F=B7=E6=97=B6=E7=BB=99=E4=B8=8E=E6=8F=90=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/Team/components/AddTerm.vue | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/views/Team/components/AddTerm.vue b/src/views/Team/components/AddTerm.vue
index 06d3a5c..e54bb6b 100644
--- a/src/views/Team/components/AddTerm.vue
+++ b/src/views/Team/components/AddTerm.vue
@@ -136,6 +136,7 @@ import {
import {
getFactoryList
} from "/src/api/api/factory";
+import { layer } from '@layui/layer-vue';
export default {
setup() {
@@ -305,6 +306,13 @@ export default {
postData.FWeightUnit = (postData.FWeightUnit || "").trim();
postData.FFormulaName = (postData.FFormulaName || "").trim();
postData.FCreateFactoryID=(postData.FCreateFactoryID==-1?"":postData.FCreateFactoryID);
+
+ // 没有试验号
+ if (!postData.FFormulaTestCode) {
+ layer.msg("所选配方无试验号", { icon : 2, time: 1000})
+ return false
+ }
+
for (let key in postData) {
if (postData[key] == "") return false;
}
@@ -313,12 +321,14 @@ export default {
// layer.msg('必须要输入包材代码')
// return false;
// }
+
postData.FState = isCreate ? 1 : 0;
postData = JSON.parse(JSON.stringify(postData));
if (postData.FTestCode != postData.FFormulaTestCode) {
this.sureTextCode(postData);
return false;
}
+
this._postTermData(postData);
},
//数据-确认