| | |
| | | > |
| | | <jp-select-plus |
| | | :isLineFeed="false" |
| | | isLoading |
| | | isSearch |
| | | color="#497bfb" |
| | | placeholder="请选择" |
| | |
| | | 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, |
| | |
| | | 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') |
| | | } |
| | |
| | | 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-----') |
| | |
| | | }, |
| | | 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 |