wk
2024-11-22 f2dd92deb176ad39b18805d5d2721fad0974a278
pages/quality-inspection-page/toc-sampling/toc-sampling-form/toc-sampling-form.vue
@@ -27,6 +27,7 @@
      >
        <jp-select-plus
            :isLineFeed="false"
            isLoading
            isSearch
            color="#497bfb"
            placeholder="请选择"
@@ -158,9 +159,10 @@
        customerId:'',  //供应商
        customerName:'',  //供应商
        samplingTime: '', //采集日期
        bunkerId:'',
        // bunkerId:'',
        bunkerName:'',
        samplingPerson: '',
        samplingSignAddress:'',
        type: 7,  //1 EDC、2 聚氯乙烯树脂、3 硫酸、4 氢氧化钠 5 液氯 6、原盐钙镁 7、原盐TOC 8、原盐全检
      },
      filedId:'',
@@ -174,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,
@@ -209,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')
        }
@@ -224,6 +227,8 @@
    }else {  //没拿到数据调一遍接口
      this.$store.dispatch('getSamplingPerson')
    }
    // console.log(getStatus('roleType'),'roleType-----')
    // console.log(getStatus('customerId'),'customerId-----')
    // console.log(getStatus('userInfo'),'userInfo-----')
@@ -232,15 +237,16 @@
  },
  methods: {
    getClaimCustomerList() {  //供应商列表  type 类型 0/外部 1/内部(化验单的属于外部客户)
      this.$reqGet('getClaimCustomerPageList',{current: 1, size:999, personnelType:0}).then(res => {
      this.$reqGet('getClaimCustomerPageList',{personnelType:1,type:0,deptId:this.deptId}).then(res => {
        console.log(res,'供应商那个=====')
        if(res.code == 0) {
          this.customerIdList = res.data.records.map(item => {
          this.customerIdList = res.data.map(item => {
            return {
              code:item.id,
              name: item.name
            }
          })
          console.log(this.customerIdList,'this.customerIdList===')
        }
      })
    },
@@ -304,6 +310,9 @@
    font-size: 34rpx!important;
    top: 12rpx;
  }
  .inputs{
    width: 100%;
  }
}
@mixin commonBtn($h:62rpx){
  background-image: linear-gradient(to right,#497bfb,#2467fd);