|
|
@@ -381,7 +381,7 @@ export default {
|
|
|
console.log(selection, '勾选列表');
|
|
|
if (this.form.qualityMode === 2) {
|
|
|
this.selectedList = selection;
|
|
|
-
|
|
|
+
|
|
|
if (this.schemeList.length == 0) {
|
|
|
for (let i = 0; i < selection.length; i++) {
|
|
|
console.log(selection[i], 'selection[i]')
|
|
|
@@ -510,6 +510,11 @@ export default {
|
|
|
this.loading = true;
|
|
|
let URL =
|
|
|
this.type == 'add' ? save : this.type == 'edit' ? update : '';
|
|
|
+
|
|
|
+ this.form.qualityTimeStart = new Date(this.qualityTimeStart)
|
|
|
+
|
|
|
+ delete this.form['qualityTimeEnd']
|
|
|
+
|
|
|
let params = {
|
|
|
...this.form,
|
|
|
sampleList: this.sampleList,
|
|
|
@@ -581,15 +586,15 @@ export default {
|
|
|
}
|
|
|
|
|
|
for (let i = 0; i < this.sampleList.length; i++) {
|
|
|
-
|
|
|
- const qualityStatus = this.sampleList[i].qualityStatus;
|
|
|
-
|
|
|
- if (qualityStatus == '2') {
|
|
|
- this.$message.error('请完成以下样品质检!')
|
|
|
- this.loading = false;
|
|
|
- return
|
|
|
+
|
|
|
+ const qualityStatus = this.sampleList[i].qualityStatus;
|
|
|
+
|
|
|
+ if (qualityStatus == '2') {
|
|
|
+ this.$message.error('请完成以下样品质检!')
|
|
|
+ this.loading = false;
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
this.form.qualityTimeEnd = new Date(this.getNowTime())
|
|
|
this.form.qualityTimeStart = new Date(this.qualityTimeStart)
|