wk
2024-08-09 f8ef4a612205b6f5210d873a102b2248dfba4ead
pages/quality-inspection-page/salt-total-sampling/salt-total-sampling-form/salt-total-sampling-form.vue
@@ -27,6 +27,7 @@
      >
        <jp-select-plus
            :isLineFeed="false"
            isLoading
            isSearch
            color="#497bfb"
            placeholder="请选择"
@@ -176,12 +177,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,7 +211,6 @@
      this.$nextTick(() => {
        this.modelForm = Object.assign({},JSON.parse(opt.params))
        console.log(this.modelForm,'接收到上个页面传过来的参数===')
        if(this.modelForm.samplingTime) {
          this.modelForm.samplingTime = dayjs(this.modelForm.samplingTime).format('YYYY-MM-DD HH:mm')
        }
@@ -221,6 +221,8 @@
    this.deptId = uni.getStorageSync('userInfo').deptIds
    this.getClaimCustomerList()
    this.$store.dispatch('getSamplingPerson')
    // console.log(getStatus('roleType'),'roleType-----')
    // console.log(getStatus('customerId'),'customerId-----')
    // console.log(getStatus('userInfo'),'userInfo-----')
@@ -229,10 +231,10 @@
  },
  methods: {
    getClaimCustomerList() {  //供应商列表  type 类型 0/外部 1/内部(化验单的属于外部客户)  personnelType 0/客户 1/供应商
      this.$reqGet('getClaimCustomerPageList',{current: 1, size:999, personnelType:1, type: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