|
@@ -64,7 +64,7 @@
|
|
|
<view class="right">{{retreatList.predictDate}}</view>
|
|
|
</view>
|
|
|
<view class='row'>
|
|
|
- <view class="left">发货人</view>
|
|
|
+ <view class="left">收货人</view>
|
|
|
<view class="right">{{retreatList.publisher}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -236,19 +236,30 @@
|
|
|
</view>
|
|
|
<u-popup v-model="show1" mode="center">
|
|
|
<view style="width: 300px;padding: 30rpx 10rpx;border-radius: 20rpx;">
|
|
|
- <view class="rejectText">驳回原因</view>
|
|
|
+ <view class="rejectText">审核意见(驳回)</view>
|
|
|
<u-input v-model="rejectInfo" type="textarea" :border="border" :height="height" :auto-height="autoHeight" class="rejectInfoCss"
|
|
|
- placeholder="请输入驳回原因" />
|
|
|
+ placeholder="请输入审核意见" />
|
|
|
<view class="flex">
|
|
|
<u-button @click="show1 = false" type="error" hover-class='none'>取消</u-button>
|
|
|
<u-button @click="rejectSubmit()" type="success">确定</u-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</u-popup>
|
|
|
+ <u-popup v-model="show2" mode="center">
|
|
|
+ <view style="width: 300px;padding: 30rpx 10rpx;border-radius: 20rpx;">
|
|
|
+ <view class="rejectText">审核意见(通过)</view>
|
|
|
+ <u-input v-model="rejectInfo1" type="textarea" :border="border" :height="height" :auto-height="autoHeight" class="rejectInfoCss"
|
|
|
+ placeholder="请输入审核意见" />
|
|
|
+ <view class="flex">
|
|
|
+ <u-button @click="show2 = false" type="error" hover-class='none'>取消</u-button>
|
|
|
+ <u-button @click="passSubmit()" type="success">确定</u-button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </u-popup>
|
|
|
<u-toast ref="uToast" />
|
|
|
<view style='padding:10px;' class='flex bottom-btn'>
|
|
|
<u-button @click='show1 = true' type="error" class="btn1" hover-class='none'>驳回</u-button>
|
|
|
- <u-button @click='passSubmit()' type="success" class="btn2">通过</u-button>
|
|
|
+ <u-button @click='show2 = true' type="success" class="btn2">通过</u-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -261,8 +272,9 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- height: 100,
|
|
|
+ height: 200,
|
|
|
autoHeight: true,
|
|
|
+ border: false,
|
|
|
id: "",
|
|
|
OutList: {}, //出
|
|
|
EnterList: {}, //入
|
|
@@ -270,8 +282,9 @@
|
|
|
type: '移库',
|
|
|
show: false,
|
|
|
show1: false,
|
|
|
- border: false,
|
|
|
+ show2: false,
|
|
|
rejectInfo: "", //驳回原因
|
|
|
+ rejectInfo1: "",//通过意见
|
|
|
pjList: [{
|
|
|
type: '一等品'
|
|
|
},
|
|
@@ -338,37 +351,42 @@
|
|
|
this.EnterList.gradeKey = e[0] + 1
|
|
|
},
|
|
|
passSubmit() {
|
|
|
- let that = this
|
|
|
- uni.showModal({
|
|
|
- content: "是否确定通过?",
|
|
|
- showCancel: true,
|
|
|
- confirmText: '确定',
|
|
|
- success: function(res) {
|
|
|
- if (res.confirm) {
|
|
|
- that.OutList.inOutFlag = 1
|
|
|
- that.EnterList.inOutFlag = 2
|
|
|
- if (that.OutList.taskTypeKey == 1) {
|
|
|
- that.requestadd(that.OutList)
|
|
|
- } else if (that.EnterList.taskTypeKey == 2) {
|
|
|
- that.requestadd(that.EnterList)
|
|
|
- } else if (
|
|
|
- that.OutList.taskTypeKey == 3 ||
|
|
|
- that.OutList.taskTypeKey == 4
|
|
|
- ) {
|
|
|
- that.requestadd(that.OutList, 'repetition')
|
|
|
- if (!that.deletetask) {
|
|
|
- that.requestadd(that.EnterList, 'repetition')
|
|
|
+ if (!this.rejectInfo1) {
|
|
|
+ this.$api.msg('审核意见不能为空!')
|
|
|
+ } else {
|
|
|
+ let that = this
|
|
|
+ that.show2 = false
|
|
|
+ uni.showModal({
|
|
|
+ content: "是否确定通过?",
|
|
|
+ showCancel: true,
|
|
|
+ confirmText: '确定',
|
|
|
+ success: function(res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ that.OutList.inOutFlag = 1
|
|
|
+ that.EnterList.inOutFlag = 2
|
|
|
+ if (that.OutList.taskTypeKey == 1) {
|
|
|
+ that.requestadd(that.OutList)
|
|
|
+ } else if (that.EnterList.taskTypeKey == 2) {
|
|
|
+ that.requestadd(that.EnterList)
|
|
|
+ } else if (
|
|
|
+ that.OutList.taskTypeKey == 3 ||
|
|
|
+ that.OutList.taskTypeKey == 4
|
|
|
+ ) {
|
|
|
+ that.requestadd(that.OutList, 'repetition')
|
|
|
+ if (!that.deletetask) {
|
|
|
+ that.requestadd(that.EnterList, 'repetition')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (that.retreatList.taskTypeKey == 1 || that.retreatList.taskTypeKey == 2) {
|
|
|
+ that.requestadd(that.retreatList)
|
|
|
+ } else if (that.retreatList.taskTypeKey == 3 || that.retreatList.taskTypeKey ==
|
|
|
+ 4) {
|
|
|
+ that.requestadd(that.retreatList, 'repetition')
|
|
|
}
|
|
|
- }
|
|
|
- if (that.retreatList.taskTypeKey == 1 || that.retreatList.taskTypeKey == 2) {
|
|
|
- that.requestadd(that.retreatList)
|
|
|
- } else if (that.retreatList.taskTypeKey == 3 || that.retreatList.taskTypeKey ==
|
|
|
- 4) {
|
|
|
- that.requestadd(that.retreatList, 'repetition')
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
- })
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
rejectSubmit() {
|
|
|
// (1出库2入库3移库4退库并出库)
|
|
@@ -383,7 +401,6 @@
|
|
|
confirmText: '确定',
|
|
|
success: function(res) {
|
|
|
if (res.confirm) {
|
|
|
-
|
|
|
if (that.OutList.taskTypeKey == 1) {
|
|
|
that.requestaudit(that.OutList)
|
|
|
} else if (that.OutList.taskTypeKey == 2) {
|
|
@@ -431,7 +448,7 @@
|
|
|
this.$api.doRequest('post', '/workflow/api/handle', {
|
|
|
taskId: list.taskId,
|
|
|
approved: true,
|
|
|
- auditMind: '34',
|
|
|
+ auditMind: this.rejectInfo1,
|
|
|
needReapply: false
|
|
|
}).then(res => {
|
|
|
uni.hideLoading()
|
|
@@ -777,15 +794,15 @@
|
|
|
// padding: 30rpx;
|
|
|
// border-radius: 20rpx;
|
|
|
// }
|
|
|
- .rejectInfoCss {
|
|
|
- border: 1px solid #ccc;
|
|
|
- border-radius: 10rpx;
|
|
|
- background-color: #F9F9FA;
|
|
|
- margin: 30rpx;
|
|
|
- overflow-y: auto;
|
|
|
- // height: 300rpx;
|
|
|
- background: red;
|
|
|
- }
|
|
|
+ // .rejectInfoCss {
|
|
|
+ // border: 1px solid #ccc;
|
|
|
+ // border-radius: 10rpx;
|
|
|
+ // background-color: #F9F9FA;
|
|
|
+ // margin: 30rpx;
|
|
|
+ // overflow-y: auto;
|
|
|
+ // // height: 300rpx;
|
|
|
+ // background: red;
|
|
|
+ // }
|
|
|
|
|
|
.uForm_item {
|
|
|
padding: 20rpx;
|
|
@@ -828,4 +845,18 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ .rejectInfoCss {
|
|
|
+ border: 1px solid #ccc;
|
|
|
+ border-radius: 10rpx;
|
|
|
+ background-color: #F9F9FA;
|
|
|
+ // height: 100px;
|
|
|
+ overflow-y: auto;
|
|
|
+ margin: 30rpx;
|
|
|
+ }
|
|
|
+ .rejectText {
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ /deep/.u-input__textarea{
|
|
|
+ height: 300rpx!important;
|
|
|
+ }
|
|
|
</style>
|