|
@@ -99,6 +99,110 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <div class="material" :key="'not' + $index">
|
|
|
|
|
+ <div class="btn_end">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-if="!isDetails"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ @click="handAddListPL4($index)"
|
|
|
|
|
+ style="margin-bottom: 4px"
|
|
|
|
|
+ >分批</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+
|
|
|
|
|
+ <div class="content_table2">
|
|
|
|
|
+ <div class="head row rx-sc">
|
|
|
|
|
+ <div class="item ww30">不合格品数量</div>
|
|
|
|
|
+ <div class="item ww30"
|
|
|
|
|
+ >类型
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="item ww30">处置/原因</div>
|
|
|
|
|
+ <div class="item ww10">操作</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="table">
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="tr row rx-sc"
|
|
|
|
|
+ v-for="(it, yyIdx) in row.extInfo.notBatchReportInfo"
|
|
|
|
|
+ :key="'not'+ $index + yyIdx"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div class="item ww30">
|
|
|
|
|
+ <div v-if="isDetails">{{ it.allFeedQuantity }}</div>
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-else
|
|
|
|
|
+ class="content_num"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ v-model="it.allFeedQuantity"
|
|
|
|
|
+ @input="blurNum2(it, $index, yyIdx)"
|
|
|
|
|
+ type="number"
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="item ww30">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ class="content_num"
|
|
|
|
|
+ filterable
|
|
|
|
|
+ v-model="it.notType"
|
|
|
|
|
+ placeholder="请选择"
|
|
|
|
|
+ @change="handLoad()"
|
|
|
|
|
+ :disabled="isDetails"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in notTypeList"
|
|
|
|
|
+ :label="item.name"
|
|
|
|
|
+ :value="item.code"
|
|
|
|
|
+ :key="item.code"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <div class="item ww30" v-if="it.notType != 5">
|
|
|
|
|
+ <div v-if="isDetails">{{ it.notReason }}</div>
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-else
|
|
|
|
|
+ class="content_num"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ v-model="it.notReason"
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="item ww30" v-if="it.notType == 5">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ class="content_num"
|
|
|
|
|
+ filterable
|
|
|
|
|
+ v-model="it.taskId"
|
|
|
|
|
+ placeholder="请选择"
|
|
|
|
|
+ :disabled="isDetails"
|
|
|
|
|
+ @change="(e) => selectName(e, $index, yyIdx)"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in stepsList"
|
|
|
|
|
+ :label="item.taskTypeName"
|
|
|
|
|
+ :value="item.taskId"
|
|
|
|
|
+ :key="item.taskId"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="item ww10 rx-cc"
|
|
|
|
|
+ @click="handDel4($index, yyIdx)"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-link type="danger">删除</el-link>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
|
@@ -277,7 +381,32 @@
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
deviceList: [],
|
|
deviceList: [],
|
|
|
- stepsList: []
|
|
|
|
|
|
|
+ stepsList: [],
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ notTypeList: [{
|
|
|
|
|
+ code: "1",
|
|
|
|
|
+ name: '返工'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ code: "2",
|
|
|
|
|
+ name: '返修'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ code: "3",
|
|
|
|
|
+ name: '报废'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ code: '4',
|
|
|
|
|
+ name: '降级使用'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ code: "5",
|
|
|
|
|
+ name: '让步接收'
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -333,7 +462,14 @@
|
|
|
count = count + Number(m.allFeedQuantity || 0);
|
|
count = count + Number(m.allFeedQuantity || 0);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- if (count > this.list[idx].feedQuantity) {
|
|
|
|
|
|
|
+ let count2 = 0
|
|
|
|
|
+ this.list[idx].extInfo.notBatchReportInfo.forEach(m => {
|
|
|
|
|
+ count2 = count2 + Number(m.allFeedQuantity || 0)
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ if (Number(count + count2) > this.list[idx].feedQuantity) {
|
|
|
this.$set(
|
|
this.$set(
|
|
|
this.list[idx].extInfo.batchReportInfo[yyIdx],
|
|
this.list[idx].extInfo.batchReportInfo[yyIdx],
|
|
|
'allFeedQuantity',
|
|
'allFeedQuantity',
|
|
@@ -341,7 +477,40 @@
|
|
|
);
|
|
);
|
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
|
|
|
|
|
|
- this.$message.info('投料合格品数不能大于投料数量');
|
|
|
|
|
|
|
+ this.$message.info('投料数不能大于投料数量');
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ blurNum2(it, idx, yyIdx) {
|
|
|
|
|
+ let value = it.allFeedQuantity;
|
|
|
|
|
+ value = value.replace(/\./g, '');
|
|
|
|
|
+ this.$set(
|
|
|
|
|
+ this.list[idx].extInfo.notBatchReportInfo[yyIdx],
|
|
|
|
|
+ 'allFeedQuantity',
|
|
|
|
|
+ value
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
|
|
+ let count = 0;
|
|
|
|
|
+ this.list[idx].extInfo.batchReportInfo.forEach((m) => {
|
|
|
|
|
+ count = count + Number(m.allFeedQuantity || 0);
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ let count2 = 0
|
|
|
|
|
+ this.list[idx].extInfo.notBatchReportInfo.forEach(m => {
|
|
|
|
|
+ count2 = count2 + Number(m.allFeedQuantity || 0)
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ if (Number(count + count2) > this.list[idx].feedQuantity) {
|
|
|
|
|
+ this.$set(
|
|
|
|
|
+ this.list[idx].extInfo.notBatchReportInfo[yyIdx],
|
|
|
|
|
+ 'allFeedQuantity',
|
|
|
|
|
+ 0
|
|
|
|
|
+ );
|
|
|
|
|
+ this.$forceUpdate();
|
|
|
|
|
+
|
|
|
|
|
+ this.$message.info('投料数不能大于投料数量');
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -357,7 +526,32 @@
|
|
|
taskObj.taskTypeName
|
|
taskObj.taskTypeName
|
|
|
);
|
|
);
|
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ handAddListPL4(idx) {
|
|
|
|
|
+ this.list[idx].extInfo.notBatchReportInfo.push({
|
|
|
|
|
+ allFeedQuantity: '',
|
|
|
|
|
+ notType: '',
|
|
|
|
|
+ taskId: '',
|
|
|
|
|
+ taskName: '',
|
|
|
|
|
+ notReason: ''
|
|
|
|
|
+ });
|
|
|
|
|
+ this.$forceUpdate();
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ handDel4(idx, yyIdx) {
|
|
|
|
|
+ this.list[idx].extInfo.notBatchReportInfo.splice(yyIdx, 1);
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ handLoad() {
|
|
|
|
|
+ this.$forceUpdate()
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
created() {
|
|
created() {
|