yangan
2 天以前 5c63b1fccedfcd208f3434edb79926c206c3d26f
pages/quality-inspection-page/toc-sampling/toc-sampling-form/toc-sampling-form.vue
@@ -159,9 +159,10 @@
        customerId:'',  //供应商
        customerName:'',  //供应商
        samplingTime: '', //采集日期
        bunkerId:'',
        // bunkerId:'',
        bunkerName:'',
        samplingPerson: '',
        samplingSignAddress:'',
        type: 7,  //1 EDC、2 聚氯乙烯树脂、3 硫酸、4 氢氧化钠 5 液氯 6、原盐钙镁 7、原盐TOC 8、原盐全检
      },
      filedId:'',
@@ -175,12 +176,12 @@
          message: '请填写批号',
          trigger: ['blur', 'change']
        }],
        // customerId:[{
        //   type: 'string',
        //   required: true,
        //   message: '请选择供应商',
        //   trigger: ['blur', 'change']
        // }],
        customerId:[{
          type: 'string',
          required: true,
          message: '请选择供应商',
          trigger: ['blur', 'change']
        }],
        bunkerName:[{
          type: 'string',
          required: true,
@@ -210,6 +211,7 @@
      this.submitShow = false
      this.$nextTick(() => {
        this.modelForm = Object.assign({},JSON.parse(opt.params))
        console.log(this.modelForm,'this.modelForm----------上个页面传过来的数据----')
        if(this.modelForm.samplingTime) {
          this.modelForm.samplingTime = dayjs(this.modelForm.samplingTime).format('YYYY-MM-DD HH:mm')
        }
@@ -225,6 +227,8 @@
    }else {  //没拿到数据调一遍接口
      this.$store.dispatch('getSamplingPerson')
    }
    // console.log(getStatus('roleType'),'roleType-----')
    // console.log(getStatus('customerId'),'customerId-----')
    // console.log(getStatus('userInfo'),'userInfo-----')
@@ -242,6 +246,7 @@
              name: item.name
            }
          })
          console.log(this.customerIdList,'this.customerIdList===')
        }
      })
    },
@@ -305,6 +310,9 @@
    font-size: 34rpx!important;
    top: 12rpx;
  }
  .inputs{
    width: 100%;
  }
}
@mixin commonBtn($h:62rpx){
  background-image: linear-gradient(to right,#497bfb,#2467fd);