|
@@ -241,11 +241,30 @@
|
|
|
|
|
|
//结束报工按钮
|
|
|
function endWork() {
|
|
|
+ let unf = unfitInfos.value;
|
|
|
+ for (var i = 0; i < unfitInfos.length; i++) {
|
|
|
+ if (!unf.checkStandard && !unf.checkResult && !unf.rejectNum) {
|
|
|
+ uni.showToast({
|
|
|
+ icon: 'none',
|
|
|
+ title: "废品信息不能为空",
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ save();
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ function save() {
|
|
|
processInspecion.value.dayworkItemConsults = consultations.value;
|
|
|
processInspecion.value.dayworkItemRejects = unfitInfos.value;
|
|
|
processInspecion.value.user = store.userInfo;
|
|
|
|
|
|
- console.log("结束报工保存", processInspecion.value);
|
|
|
saveProcessInspecion(processInspecion.value).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
uni.navigateTo({
|
|
@@ -264,7 +283,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
//咨询样式
|
|
|
function selectType(item) {
|
|
|
for (var i = 0; i < consul.length; i++) {
|