Sfoglia il codice sorgente

修改留样数量字段

hezhanp 8 mesi fa
parent
commit
6c1abc3650

+ 5 - 5
src/views/sample/samplemanagement/detailList.vue

@@ -95,11 +95,11 @@
             <el-col :span="24">
               <el-form-item
                 label="留样数量:"
-                prop="measureQuantity"
+                prop="keepSampleQuantity"
                 align="center"
               >
                 <el-input
-                  v-model="disposeForm.measureQuantity"
+                  v-model="disposeForm.keepSampleQuantity"
                   placeholder="请输入"
                   style="width: 100%"
                 >
@@ -263,7 +263,7 @@ export default {
         producerManufacturer: '',
         depotId: '',
         depotName: '',
-        measureQuantity: ''
+        keepSampleQuantity: ''
       },
       id: '',
       ids: [],
@@ -290,7 +290,7 @@ export default {
         ],
         depotId: [{ required: true, message: '请选择仓库', trigger: 'change' }],
         // 新增:留样数量的校验规则
-        measureQuantity: [
+        keepSampleQuantity: [
           {
             validator: (rule, value, callback) => {
               if (
@@ -553,7 +553,7 @@ export default {
     disposeTypeChange() {
       console.log(this.disposeForm.disposeType);
       if (this.disposeForm.disposeType == 6) {
-        this.disposeForm.measureQuantity = this.current?.measureQuantity || '';
+        this.disposeForm.keepSampleQuantity = this.current?.measureQuantity || '';
       }
     },
     kk() {

+ 5 - 5
src/views/unqualifiedProduct/unqualifiedList/detailList.vue

@@ -117,11 +117,11 @@
             <el-col :span="24">
               <el-form-item
                 label="留样数量:"
-                prop="measureQuantity"
+                prop="keepSampleQuantity"
                 align="center"
               >
                 <el-input
-                  v-model="disposeForm.measureQuantity"
+                  v-model="disposeForm.keepSampleQuantity"
                   placeholder="请输入"
                   style="width: 100%"
                 >
@@ -284,7 +284,7 @@ export default {
           { required: true, message: '请选择处置方式', trigger: 'change' }
         ],
         depotId: [{ required: true, message: '请选择仓库', trigger: 'change' }],
-        measureQuantity: [
+        keepSampleQuantity: [
           {
             validator: (rule, value, callback) => {
               if (
@@ -315,7 +315,7 @@ export default {
         depotId: '',
         depotName: '',
         taskId: '',
-        measureQuantity:'',
+        keepSampleQuantity:'',
       },
       loading: false,
       selection: [],
@@ -608,7 +608,7 @@ export default {
     disposeTypeChange(){
       console.log(this.disposeForm.disposeType)
        if (this.disposeForm.disposeType == 6) {
-        this.disposeForm.measureQuantity = this.current?.measureQuantity || '';
+        this.disposeForm.keepSampleQuantity = this.current?.measureQuantity || '';
       }
     },
     // /* 表格数据源 */