|
@@ -761,7 +761,7 @@
|
|
if (this.dataObj.weight) {
|
|
if (this.dataObj.weight) {
|
|
if (
|
|
if (
|
|
this.dataObj.weight < 0.1 || this.dataObj.weight > 10000000 || (
|
|
this.dataObj.weight < 0.1 || this.dataObj.weight > 10000000 || (
|
|
- String(this.dataObj.weight).indexOf('.') != -1 && String(tthis.dataObj.weight).length -
|
|
|
|
|
|
+ String(this.dataObj.weight).indexOf('.') != -1 && String(this.dataObj.weight).length -
|
|
(String(this.dataObj.weight).indexOf(
|
|
(String(this.dataObj.weight).indexOf(
|
|
'.') + 1) > 2)
|
|
'.') + 1) > 2)
|
|
) {
|
|
) {
|
|
@@ -807,7 +807,7 @@
|
|
if (this.dataObj.loadWeightSmall) {
|
|
if (this.dataObj.loadWeightSmall) {
|
|
if (
|
|
if (
|
|
this.dataObj.loadWeightSmall < 0.1 || this.dataObj.loadWeightSmall > 100 || (
|
|
this.dataObj.loadWeightSmall < 0.1 || this.dataObj.loadWeightSmall > 100 || (
|
|
- String(this.dataObj.loadWeightSmall).indexOf('.') != -1 && String(tthis.dataObj
|
|
|
|
|
|
+ String(this.dataObj.loadWeightSmall).indexOf('.') != -1 && String(this.dataObj
|
|
.loadWeightSmall).length -
|
|
.loadWeightSmall).length -
|
|
(String(this.dataObj.loadWeightSmall).indexOf(
|
|
(String(this.dataObj.loadWeightSmall).indexOf(
|
|
'.') + 1) > 3)
|
|
'.') + 1) > 3)
|
|
@@ -823,7 +823,7 @@
|
|
if (this.dataObj.loadWeight) {
|
|
if (this.dataObj.loadWeight) {
|
|
if (
|
|
if (
|
|
this.dataObj.loadWeight < 0.1 || this.dataObj.loadWeight > 100 || (
|
|
this.dataObj.loadWeight < 0.1 || this.dataObj.loadWeight > 100 || (
|
|
- String(this.dataObj.loadWeight).indexOf('.') != -1 && String(tthis.dataObj.loadWeight).length -
|
|
|
|
|
|
+ String(this.dataObj.loadWeight).indexOf('.') != -1 && String(this.dataObj.loadWeight).length -
|
|
(String(this.dataObj.loadWeight).indexOf(
|
|
(String(this.dataObj.loadWeight).indexOf(
|
|
'.') + 1) > 3)
|
|
'.') + 1) > 3)
|
|
) {
|
|
) {
|
|
@@ -900,111 +900,39 @@
|
|
}
|
|
}
|
|
this.dataObj.carModel = _list.toString()
|
|
this.dataObj.carModel = _list.toString()
|
|
this.dataObj.commonId = this.userInfo.id
|
|
this.dataObj.commonId = this.userInfo.id
|
|
- this.$request.baseRequest('post', '/publishTaskInfo/api/addTask', this.dataObj).then(res => {
|
|
|
|
|
|
+ uni.$u.route('/pages/order/signContract', {
|
|
|
|
+ obj: JSON.stringify(this.dataObj),
|
|
|
|
+ type:1
|
|
|
|
+ });
|
|
|
|
+ // this.$request.baseRequest('post', '/publishTaskInfo/api/addTask', this.dataObj).then(res => {
|
|
|
|
|
|
- if(res.code == 200){
|
|
|
|
- uni.removeStorage({
|
|
|
|
- key: 'storage_saddress'
|
|
|
|
- });
|
|
|
|
- uni.removeStorage({
|
|
|
|
- key: 'storage_faddress'
|
|
|
|
- });
|
|
|
|
- uni.removeStorage({
|
|
|
|
- key: 'releaseCargoOwner'
|
|
|
|
- });
|
|
|
|
- uni.removeStorage({
|
|
|
|
- key: 'releasecompId'
|
|
|
|
- });
|
|
|
|
- // uni.redirectTo({
|
|
|
|
- // url: "/pages/release/release"
|
|
|
|
- // })
|
|
|
|
|
|
+ // if(res.code == 200){
|
|
|
|
+ // uni.removeStorage({
|
|
|
|
+ // key: 'storage_saddress'
|
|
|
|
+ // });
|
|
|
|
+ // uni.removeStorage({
|
|
|
|
+ // key: 'storage_faddress'
|
|
|
|
+ // });
|
|
|
|
+ // uni.removeStorage({
|
|
|
|
+ // key: 'releaseCargoOwner'
|
|
|
|
+ // });
|
|
|
|
+ // uni.removeStorage({
|
|
|
|
+ // key: 'releasecompId'
|
|
|
|
+ // });
|
|
|
|
+ // // uni.redirectTo({
|
|
|
|
+ // // url: "/pages/release/release"
|
|
|
|
+ // // })
|
|
|
|
+ // this.dataObj.id = res.data
|
|
|
|
|
|
- uni.$u.route('/pages/order/signContract', {
|
|
|
|
- obj: JSON.stringify(this.dataObj)
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // this.$refs.uToast.show({
|
|
|
|
- // type: 'success',
|
|
|
|
- // message: "发布成功",
|
|
|
|
- // complete() {
|
|
|
|
- // // _this.dataObj = {
|
|
|
|
- // // commonId: '',
|
|
|
|
- // // cargoOwner: '',
|
|
|
|
- // // sendPrivate: '',
|
|
|
|
- // // sendCity: '',
|
|
|
|
- // // sendArea: '',
|
|
|
|
- // // sendDetailedAddress: '',
|
|
|
|
- // // unloadPrivate: '',
|
|
|
|
- // // unloadCity: '',
|
|
|
|
- // // unloadArea: '',
|
|
|
|
- // // unloadDetailedAddress: '',
|
|
|
|
- // // distance: '',
|
|
|
|
- // // goodsName: '',
|
|
|
|
- // // billingMethod: '元/吨',
|
|
|
|
- // // freightPrice: '',
|
|
|
|
- // // freightAdvance: true,
|
|
|
|
- // // sender: '',
|
|
|
|
- // // senderPhone: '',
|
|
|
|
- // // receiver: '',
|
|
|
|
- // // receiverPhone: '',
|
|
|
|
- // // weight: '',
|
|
|
|
- // // loadingDateStart: '',
|
|
|
|
- // // loadingDateEnd: '',
|
|
|
|
- // // carLengthSmall: '',
|
|
|
|
- // // carLength: '',
|
|
|
|
- // // loadWeightSmall: '',
|
|
|
|
- // // loadWeight: '',
|
|
|
|
- // // carModel: '',
|
|
|
|
- // // taskDescription: '',
|
|
|
|
- // // taskValidity: '',
|
|
|
|
- // // sendLongitude: '',
|
|
|
|
- // // receiverIdcard:'',
|
|
|
|
- // // sendLatitude: '',
|
|
|
|
- // // receiverCreditCode:'',
|
|
|
|
- // // unsendLongitude: '',
|
|
|
|
- // // unsendLatitude: '',
|
|
|
|
- // // }
|
|
|
|
- // // _this.checkboxValue1 = ['不限']
|
|
|
|
- // // _this.queryGoodsList() // 查询货物类别
|
|
|
|
- // // let goods = uni.getStorageSync("goodsType")
|
|
|
|
- // // if(goods){
|
|
|
|
- // // _this.dataObj.goodsType = goods.name
|
|
|
|
- // // _this.dataObj.goodsTypeKey = goods.key
|
|
|
|
- // // }
|
|
|
|
- // // const pages = getCurrentPages()
|
|
|
|
- // // console.log(pages)
|
|
|
|
- // // 声明一个pages使用getCurrentPages方法
|
|
|
|
- // // const curPage = pages[pages.length - 1]
|
|
|
|
- // // 声明一个当前页面
|
|
|
|
- // // curPage.$vm.$options.onLoad[1].bind(curPage.$vm); // 传入参数
|
|
|
|
- // // curPage.$vm.$options.onShow[1].bind(curPage.$vm); // curPage.onShow()
|
|
|
|
- // // curPage.$vm.$options.onReady[1].bind(curPage.$vm);
|
|
|
|
- // // curPage.onReady()
|
|
|
|
- // // uni.switchTab({
|
|
|
|
- // // url: '/pages/mine/index'
|
|
|
|
- // // })
|
|
|
|
- // // uni.switchTab({
|
|
|
|
- // // url: '/pages/mine/index'
|
|
|
|
- // // })
|
|
|
|
- // uni.redirectTo({
|
|
|
|
- // url: "/pages/release/release"
|
|
|
|
- // })
|
|
|
|
- // // uni.reLaunch({url:"/pages/release/release"})
|
|
|
|
- // // uni.redirectTo("/pages/release/record")
|
|
|
|
- // // uni.$u.route("/pages/release/record")
|
|
|
|
- // }
|
|
|
|
- // })
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- })
|
|
|
|
- .catch(res => {
|
|
|
|
- uni.showToast({
|
|
|
|
- title: res.message,
|
|
|
|
- icon: 'none',
|
|
|
|
- duration: 2000
|
|
|
|
- })
|
|
|
|
- });
|
|
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+ // .catch(res => {
|
|
|
|
+ // uni.showToast({
|
|
|
|
+ // title: res.message,
|
|
|
|
+ // icon: 'none',
|
|
|
|
+ // duration: 2000
|
|
|
|
+ // })
|
|
|
|
+ // });
|
|
},
|
|
},
|
|
cancelClick() {
|
|
cancelClick() {
|
|
this.isShowAlert = false
|
|
this.isShowAlert = false
|
|
@@ -1206,7 +1134,8 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- this.isShowAlert = true;
|
|
|
|
|
|
+ uni.$u.throttle(this.requestdata, 500)
|
|
|
|
+ // this.isShowAlert = true;
|
|
},
|
|
},
|
|
}
|
|
}
|
|
}
|
|
}
|