| | |
| | | placeholder="请输入内容" |
| | | clearable></u--input> |
| | | </u-form-item> |
| | | <u-form-item label="是否有车牌" |
| | | labelWidth="28%" |
| | | borderBottom |
| | | > |
| | | <u-radio-group |
| | | v-model="isCarNo" |
| | | @change="radioChange" |
| | | placement="row"> |
| | | <u-radio labelSize="26" iconSize="40" label="是" name="是" style="margin-right: 30rpx;"></u-radio> |
| | | <u-radio labelSize="26" iconSize="40" label="否" name="否"></u-radio> |
| | | </u-radio-group> |
| | | </u-form-item> |
| | | <u-form-item prop="carNo" |
| | | v-if="isCarNo == '是'" |
| | | label="车牌号" |
| | | labelWidth="20%" |
| | | borderBottom |
| | | > |
| | | <u--input v-model="registerFormModel.carNo" |
| | | placeholder="请输入内容" |
| | | clearable></u--input> |
| | | <xm-cell special label="车牌号" :value="registerFormModel.carNo" @show="showKeyboard('xmKeyboard')"></xm-cell> |
| | | <xm-keyboard-v2 ref="xmKeyboard" @confirm="(v) => registerFormModel.carNo = v"></xm-keyboard-v2> |
| | | </u-form-item> |
| | | <u-form-item prop="skin" |
| | | label="皮重" |
| | | labelWidth="20%" |
| | | borderBottom |
| | | required v-if="daydata.isWeighing==1"> |
| | | required v-if="(daydata.isWeighing==1&&daydata.productId=='1818237609508347905')||(daydata.isWeighing==1&&daydata.productId=='1818237832536268801')||(daydata.isWeighing==1&&daydata.productId=='1818211942485995521')"> |
| | | <u--input v-model="skin" |
| | | border="surround" |
| | | placeholder="请输入皮重" |
| | |
| | | label="毛重" |
| | | labelWidth="20%" |
| | | borderBottom |
| | | required v-if="daydata.isWeighing==1"> |
| | | required v-if="(daydata.isWeighing==1&&daydata.productId=='1818237609508347905')||(daydata.isWeighing==1&&daydata.productId=='1818237832536268801')||(daydata.isWeighing==1&&daydata.productId=='1818211942485995521')"> |
| | | <u--input v-model="hair" |
| | | border="surround" |
| | | placeholder="请输入毛重" |
| | |
| | | label="净重" |
| | | labelWidth="20%" |
| | | borderBottom |
| | | required v-if="daydata.isWeighing==1"> |
| | | required v-if="(daydata.isWeighing==1&&daydata.productId=='1818237609508347905')||(daydata.isWeighing==1&&daydata.productId=='1818237832536268801')||(daydata.isWeighing==1&&daydata.productId=='1818211942485995521')"> |
| | | <u--input v-model="clean" |
| | | border="surround" |
| | | disabled |
| | |
| | | </view></uni-td> |
| | | </uni-tr> |
| | | </uni-table> |
| | | <u-form-item prop='contactPicture'> |
| | | <!-- <u-form-item prop='contactPicture'> |
| | | <view class="label-text"> |
| | | 原发单据 |
| | | </view> |
| | |
| | | height="150" |
| | | :previewFullImage="true" |
| | | ></u-upload> |
| | | </u-form-item> |
| | | </u-form-item> --> |
| | | <!-- <u-form-item labelWidth="20%" |
| | | label="空车出厂" |
| | | borderBottom |
| | |
| | | if (params.id) { |
| | | this.id = params.id |
| | | } |
| | | this.fileList1 = [] |
| | | // this.fileList1 = [] |
| | | this.GetMyDelivery() |
| | | uni.getStorage({ |
| | | key: 'myDelivery', |
| | |
| | | scrollTop: 0, |
| | | id:"", |
| | | value: 0, |
| | | isCarNo:'是', |
| | | daydata:{}, |
| | | tmTaskCoalList:[], |
| | | range: [{"value": 0,"label": "否" },{"value": 1,"label": "是"}], |
| | | carNumShow: false, |
| | | yuYueData: [], |
| | | fileList1: [], //图片列表 |
| | | // fileList1: [], //图片列表 |
| | | contactPicture:"", |
| | | registerFormModel: { |
| | | phone: '', |
| | |
| | | trigger: ['blur', 'change'] |
| | | } |
| | | ], |
| | | // carNo: [{ |
| | | // type: 'string', |
| | | // required: true, |
| | | // message: '请输入车牌号', |
| | | // trigger: ['blur', 'change'] |
| | | // }, |
| | | // { |
| | | // transform(value) { |
| | | // return String(value); |
| | | // }, |
| | | // validator: (rule, value, callback) => { |
| | | // return uni.$u.test.carNo(value); |
| | | // }, |
| | | // message: '请输入正确的车牌号', |
| | | // trigger: ['change', 'blur'] |
| | | // } |
| | | // ], |
| | | carNo: [{ |
| | | type: 'string', |
| | | required: true, |
| | | message: '请输入车牌号', |
| | | trigger: ['blur', 'change'] |
| | | }, |
| | | { |
| | | transform(value) { |
| | | return String(value); |
| | | }, |
| | | validator: (rule, value, callback) => { |
| | | return uni.$u.test.carNo(value); |
| | | }, |
| | | message: '请输入正确的车牌号', |
| | | trigger: ['change', 'blur'] |
| | | } |
| | | ], |
| | | }, |
| | | }; |
| | | }, |
| | |
| | | }, |
| | | methods: { |
| | | ...mapMutations(['changeisUploadimg']), |
| | | showKeyboard(ref){ |
| | | this.$refs[ref].toShow(this.registerFormModel.carNo) |
| | | }, |
| | | // input聚焦 |
| | | inputFocus(v) { |
| | | if (v == 1) { |
| | |
| | | this.isInputOrigin = true; |
| | | } |
| | | }, |
| | | deletePic(event) { |
| | | this.changeisUploadimg(true); |
| | | this[`fileList${event.name}`].splice(event.index, 1); |
| | | }, |
| | | async afterRead(event) { |
| | | // 当设置 mutiple 为 true 时, file 为数组格式,否则为对象格式 |
| | | let lists = [].concat(event.file); |
| | | let fileListLen = this[`fileList${event.name}`].length; |
| | | lists.map(item => { |
| | | this[`fileList${event.name}`].push({ |
| | | ...item, |
| | | status: 'uploading', |
| | | message: '上传中' |
| | | }); |
| | | }); |
| | | for (let i = 0; i < lists.length; i++) { |
| | | const result = await this.uploadFilePromise(lists[i].url, event.name); |
| | | let item = this[`fileList${event.name}`][fileListLen]; |
| | | this[`fileList${event.name}`].splice( |
| | | fileListLen, |
| | | 1, |
| | | Object.assign(item, { |
| | | status: 'success', |
| | | message: '上传成功', |
| | | url: result |
| | | }) |
| | | ); |
| | | fileListLen++; |
| | | } |
| | | }, |
| | | uploadFilePromise(url, num) { |
| | | return new Promise((resolve, reject) => { |
| | | let a = uni.uploadFile({ |
| | | url: BaseUrl + '/admin/sys-file/uploadUnToken', |
| | | filePath: url, |
| | | name: 'file', |
| | | success: res => { |
| | | if (num == 1) { |
| | | this.contactPicture = JSON.parse(res.data) |
| | | .data.url; |
| | | resolve(`${BaseUrl}${JSON.parse(res.data).data.url}`); |
| | | } |
| | | } |
| | | }); |
| | | }); |
| | | }, |
| | | // deletePic(event) { |
| | | // this.changeisUploadimg(true); |
| | | // this[`fileList${event.name}`].splice(event.index, 1); |
| | | // }, |
| | | // async afterRead(event) { |
| | | // // 当设置 mutiple 为 true 时, file 为数组格式,否则为对象格式 |
| | | // let lists = [].concat(event.file); |
| | | // let fileListLen = this[`fileList${event.name}`].length; |
| | | // lists.map(item => { |
| | | // this[`fileList${event.name}`].push({ |
| | | // ...item, |
| | | // status: 'uploading', |
| | | // message: '上传中' |
| | | // }); |
| | | // }); |
| | | // for (let i = 0; i < lists.length; i++) { |
| | | // const result = await this.uploadFilePromise(lists[i].url, event.name); |
| | | // let item = this[`fileList${event.name}`][fileListLen]; |
| | | // this[`fileList${event.name}`].splice( |
| | | // fileListLen, |
| | | // 1, |
| | | // Object.assign(item, { |
| | | // status: 'success', |
| | | // message: '上传成功', |
| | | // url: result |
| | | // }) |
| | | // ); |
| | | // fileListLen++; |
| | | // } |
| | | // }, |
| | | // uploadFilePromise(url, num) { |
| | | // return new Promise((resolve, reject) => { |
| | | // let a = uni.uploadFile({ |
| | | // url: BaseUrl + '/admin/sys-file/uploadUnToken', |
| | | // filePath: url, |
| | | // name: 'file', |
| | | // success: res => { |
| | | // if (num == 1) { |
| | | // this.contactPicture = JSON.parse(res.data) |
| | | // .data.url; |
| | | // resolve(`${BaseUrl}${JSON.parse(res.data).data.url}`); |
| | | // } |
| | | // } |
| | | // }); |
| | | // }); |
| | | // }, |
| | | lohOutLogin(){ |
| | | this.$refs.regesterFormRef.validate().then(res => { |
| | | if(this.daydata.orderType=='外购'){ |
| | |
| | | ...this.registerFormModel, |
| | | tmTaskCoalContact:{ |
| | | coalName:this.daydata.productName, |
| | | contactPicture:this.contactPicture, |
| | | // contactPicture:this.contactPicture, |
| | | skin:this.skin, |
| | | hair:this.hair, |
| | | clean:this.clean |
| | |
| | | yyId:this.ids.id, |
| | | ...this.registerFormModel, |
| | | tmTaskCoalContact:{ |
| | | contactPicture:this.contactPicture, |
| | | // contactPicture:this.contactPicture, |
| | | numDtoList:numDtoList |
| | | } |
| | | }, 'json').then(res => { |
| | |
| | | }) |
| | | }, |
| | | logoutConfirm() { |
| | | |
| | | //原发净重限制 |
| | | if(this.clean && this.clean > 200){ |
| | | this.$u.toast('当前净重超过正常值,请检查皮毛重') |
| | | return |
| | | |
| | | } |
| | | if(this.registerFormModel.carNo==""){ |
| | | this.lohOutLogin() |
| | | }else{ |
| | |
| | | this.logoutShow = true; |
| | | this.ids=item |
| | | }else{ |
| | | this.ids=item |
| | | this.logoutConfirm(); |
| | | } |
| | | }) |
| | |
| | | this.tmTaskCoalList=res.data.jhOrderPlanList |
| | | } |
| | | }); |
| | | }, |
| | | // |
| | | radioChange(name){ |
| | | console.log(name,'name'); |
| | | if(name === '是'){ |
| | | this.registerFormModel.carNo = ''; |
| | | }else{ |
| | | this.registerFormModel.carNo = ''; |
| | | |
| | | } |
| | | |
| | | } |
| | | } |
| | | }; |