|
@@ -46,19 +46,10 @@
|
|
|
</u-form-item>
|
|
|
</u-form>
|
|
|
</view>
|
|
|
- <!-- 审核意见弹窗 -->
|
|
|
- <!-- <u-popup v-model="show1" mode="center">
|
|
|
- <view style="width: 300px;padding: 30rpx 10rpx;border-radius: 20rpx;">
|
|
|
- <view class="rejectText">审核意见</view>
|
|
|
- <u-input v-model="rejectInfo" type="textarea" :border="border" :height="height" :auto-height="autoHeight" class="rejectInfoCss"
|
|
|
- placeholder="请输入审核意见" />
|
|
|
- <view class="flex">
|
|
|
- <u-button @click="show1 = false" type="error" hover-class='none'>取消</u-button>
|
|
|
- <u-button @click="passSubmit()" type="success">确定</u-button>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </u-popup> -->
|
|
|
- <u-button type="primary" class="submit" @click="passSubmit()" v-if="list.priceStatus == '审核中'||isSHowBtn">通过
|
|
|
+ <u-modal v-model="show" :title-style="{fontSize: '18px',fontWeight:'500'}"
|
|
|
+ :content-style="{fontSize: '14px',fontWeight:'400'}" confirm-color='#22C572' confirm-text='确定' title='提示'
|
|
|
+ showCancelButton='false' :content="content" @confirm="passSubmit" @cancel="show = false"></u-modal>
|
|
|
+ <u-button type="primary" class="submit" @click="show = true" v-if="list.priceStatus == '审核中'||isSHowBtn">通过
|
|
|
</u-button>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -79,18 +70,16 @@
|
|
|
id: "",
|
|
|
show: false,
|
|
|
rejectInfo: "", //审核意见
|
|
|
- //弹窗属性
|
|
|
- // height:200,
|
|
|
- // autoHeight: true,
|
|
|
- // border: false,
|
|
|
+ title: "提示",
|
|
|
+ content: '是否通过该设置?'
|
|
|
}
|
|
|
},
|
|
|
onBackPress(e) {
|
|
|
- if(this.everyCheck){
|
|
|
- uni.navigateTo({
|
|
|
- url: "/pages/task/my_task"
|
|
|
- })
|
|
|
- return true;
|
|
|
+ if (this.everyCheck) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "/pages/task/my_task"
|
|
|
+ })
|
|
|
+ return true;
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
@@ -116,45 +105,30 @@
|
|
|
this.$api.msg('运费单价不能为空')
|
|
|
return
|
|
|
}
|
|
|
- // if (!this.rejectInfo1) {
|
|
|
- // this.$api.msg('审核意见不能为空!')
|
|
|
- // }else{
|
|
|
-
|
|
|
- // }
|
|
|
- uni.showModal({
|
|
|
- content: "是否通过该设置?",
|
|
|
- showCancel: true,
|
|
|
- confirmText: '确定',
|
|
|
- success: function(res) {
|
|
|
- uni.showLoading({
|
|
|
- title: "审核中"
|
|
|
- })
|
|
|
- if (res.confirm) {
|
|
|
- var tranProcessInfo = {}
|
|
|
- tranProcessInfo.id = that.list.id
|
|
|
- tranProcessInfo.flag = "2"
|
|
|
- tranProcessInfo.tranPriceIng = that.list.tranPriceIng
|
|
|
- tranProcessInfo.reviewer = that.userInfo.userName
|
|
|
- tranProcessInfo.tranTypeKey = that.list.tranTypeKey
|
|
|
- that.$api.doRequest('post', '/tranProcessInfo/api/setUpTranPrice', tranProcessInfo)
|
|
|
- .then(res => {
|
|
|
- if (res.data.code == 200) {
|
|
|
- that.$api.msg('审核通过成功!')
|
|
|
- setTimeout(function() {
|
|
|
- if (that.everyCheck) {
|
|
|
- helper.setAudit(that.list)
|
|
|
- } else {
|
|
|
- uni.navigateBack()
|
|
|
- }
|
|
|
- uni.hideLoading()
|
|
|
- }, 1000);
|
|
|
- }
|
|
|
- })
|
|
|
- } else {
|
|
|
- uni.hideLoading()
|
|
|
- }
|
|
|
- }
|
|
|
+ uni.showLoading({
|
|
|
+ title: "审核中"
|
|
|
})
|
|
|
+ var tranProcessInfo = {}
|
|
|
+ tranProcessInfo.id = that.list.id
|
|
|
+ tranProcessInfo.flag = "2"
|
|
|
+ tranProcessInfo.tranPriceIng = that.list.tranPriceIng
|
|
|
+ tranProcessInfo.reviewer = that.userInfo.userName
|
|
|
+ tranProcessInfo.tranTypeKey = that.list.tranTypeKey
|
|
|
+ that.$api.doRequest('post', '/tranProcessInfo/api/setUpTranPrice', tranProcessInfo)
|
|
|
+ .then(res => {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ that.$api.msg('审核通过成功!')
|
|
|
+ setTimeout(function() {
|
|
|
+ if (that.everyCheck) {
|
|
|
+ helper.setAudit(that.list)
|
|
|
+ } else {
|
|
|
+ uni.navigateBack()
|
|
|
+ }
|
|
|
+ uni.hideLoading()
|
|
|
+ }, 1000);
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -244,4 +218,4 @@
|
|
|
width: 100%;
|
|
|
justify-content: flex-end;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|