|
@@ -4,11 +4,14 @@
|
|
|
<view class="topInfo-item">
|
|
|
<view class="flex info">
|
|
|
<view class="logo">
|
|
|
- <image src="../../../static/img/reject.png" mode="" v-if="OutList.taskStatus == '已驳回'||EnterList.taskStatus == '已驳回'"
|
|
|
- style="height: 40rpx;"></image><!-- 驳回 -->
|
|
|
- <image src="../../../static/img/tongguo.png" mode="" v-else-if="OutList.taskStatus == '已通过'||EnterList.taskStatus == '已通过'||OutList.taskStatus == '执行中'"
|
|
|
+ <image src="../../../static/img/reject.png" mode=""
|
|
|
+ v-if="OutList.taskStatus == '已驳回'||EnterList.taskStatus == '已驳回'" style="height: 40rpx;">
|
|
|
+ </image><!-- 驳回 -->
|
|
|
+ <image src="../../../static/img/tongguo.png" mode=""
|
|
|
+ v-else-if="OutList.taskStatus == '已通过'||EnterList.taskStatus == '已通过'||OutList.taskStatus == '执行中'"
|
|
|
style="height: 40rpx;"></image><!-- 通过 -->
|
|
|
- <image src="../../../static/img/daishenhe.png" mode="" v-else-if="OutList.taskStatus == '审核中'||OutList.taskStatus == '待审核'||EnterList.taskStatus == '待审核'"
|
|
|
+ <image src="../../../static/img/daishenhe.png" mode=""
|
|
|
+ v-else-if="OutList.taskStatus == '审核中'||OutList.taskStatus == '待审核'||EnterList.taskStatus == '待审核'"
|
|
|
style="height: 40rpx;"></image><!-- 待审核 -->
|
|
|
</view>
|
|
|
<view class="infoText" v-if="OutList.taskStatus">{{OutList.taskStatus}}</view>
|
|
@@ -53,7 +56,7 @@
|
|
|
<view class="right">{{retreatList.goodsName}}</view>
|
|
|
</view>
|
|
|
<view class='row'>
|
|
|
- <view class="left">重量(吨)</view>
|
|
|
+ <view class="left">数量</view>
|
|
|
<view class="right">{{retreatList.weight}}</view>
|
|
|
</view>
|
|
|
<view class='row'>
|
|
@@ -113,7 +116,7 @@
|
|
|
<view class="right">{{OutList.goodsName}}</view>
|
|
|
</view>
|
|
|
<view class='row'>
|
|
|
- <view class="left">重量(吨)</view>
|
|
|
+ <view class="left">数量</view>
|
|
|
<view class="right">{{OutList.weight}}</view>
|
|
|
</view>
|
|
|
<view class='row'>
|
|
@@ -186,7 +189,7 @@
|
|
|
<view class="right">{{EnterList.goodsName}}</view>
|
|
|
</view>
|
|
|
<view class='row'>
|
|
|
- <view class="left">重量(吨)</view>
|
|
|
+ <view class="left">数量</view>
|
|
|
<view class="right">{{EnterList.weight}}</view>
|
|
|
</view>
|
|
|
<view class='row'>
|
|
@@ -237,7 +240,7 @@
|
|
|
<u-input v-model="rejectInfo" type="textarea" :border="border" class="rejectInfoCss"
|
|
|
placeholder="请输入驳回原因" />
|
|
|
<view class="flex">
|
|
|
- <u-button @click="show1 = false" type="error" hover-class='none'>取消</u-button>
|
|
|
+ <u-button @click="show1 = false" type="error" hover-class='none'>取消</u-button>
|
|
|
<u-button @click="rejectSubmit()" type="success">确定</u-button>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -333,26 +336,38 @@
|
|
|
this.EnterList.gradeKey = e[0] + 1
|
|
|
},
|
|
|
passSubmit() {
|
|
|
- this.OutList.inOutFlag = 1
|
|
|
- this.EnterList.inOutFlag = 2
|
|
|
- if (this.OutList.taskTypeKey == 1) {
|
|
|
- this.requestadd(this.OutList)
|
|
|
- } else if (this.EnterList.taskTypeKey == 2) {
|
|
|
- this.requestadd(this.EnterList)
|
|
|
- } else if (
|
|
|
- this.OutList.taskTypeKey == 3 ||
|
|
|
- this.OutList.taskTypeKey == 4
|
|
|
- ) {
|
|
|
- this.requestadd(this.OutList, 'repetition')
|
|
|
- if (!this.deletetask) {
|
|
|
- this.requestadd(this.EnterList, 'repetition')
|
|
|
+ let that = this
|
|
|
+ uni.showModal({
|
|
|
+ content: "是否确定通过?",
|
|
|
+ showCancel: true,
|
|
|
+ confirmText: '确定',
|
|
|
+ success: function(res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ debugger
|
|
|
+ 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(this.retreatList.taskTypeKey == 1 || this.retreatList.taskTypeKey == 2){
|
|
|
- this.requestadd(this.retreatList)
|
|
|
- }else if(this.retreatList.taskTypeKey == 3 || this.retreatList.taskTypeKey == 4){
|
|
|
- this.requestadd(this.retreatList, 'repetition')
|
|
|
- }
|
|
|
+ })
|
|
|
},
|
|
|
rejectSubmit() {
|
|
|
// (1出库2入库3移库4退库并出库)
|
|
@@ -360,38 +375,51 @@
|
|
|
this.$api.msg('驳回原因不能为空!')
|
|
|
} else {
|
|
|
this.show1 = false
|
|
|
- if (this.OutList.taskTypeKey == 1 ) {
|
|
|
- this.requestaudit(this.OutList)
|
|
|
- } else if (this.OutList.taskTypeKey == 2) {
|
|
|
- this.requestaudit(this.OutList)
|
|
|
- } else if (
|
|
|
- this.OutList.taskTypeKey == 3 ||
|
|
|
- this.OutList.taskTypeKey == 4
|
|
|
- ) {
|
|
|
- this.requestaudit(this.OutList, 'repetition')
|
|
|
- if (!this.deletetask) {
|
|
|
- this.requestaudit(this.OutList, 'repetition')
|
|
|
- }
|
|
|
- }
|
|
|
- if(this.EnterList.taskTypeKey){
|
|
|
- if(this.EnterList.taskTypeKey == 1 || this.EnterList.taskTypeKey == 2){
|
|
|
- this.requestaudit(this.EnterList)
|
|
|
- }else if(this.EnterList.taskTypeKey == 3 || this.EnterList.taskTypeKey == 4){
|
|
|
- this.requestaudit(this.EnterList, 'repetition')
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- if(this.retreatList.taskTypeKey){
|
|
|
- if(this.retreatList.taskTypeKey == 1 || this.retreatList.taskTypeKey == 2){
|
|
|
- this.requestaudit(this.retreatList)
|
|
|
- }else if(this.retreatList.taskTypeKey == 3 || this.retreatList.taskTypeKey == 4){
|
|
|
- this.requestaudit(this.retreatList, 'repetition')
|
|
|
+ let that = this
|
|
|
+ uni.showModal({
|
|
|
+ content: "是否确定驳回?",
|
|
|
+ showCancel: true,
|
|
|
+ confirmText: '确定',
|
|
|
+ success: function(res) {
|
|
|
+ if (res.confirm) {
|
|
|
+
|
|
|
+ if (that.OutList.taskTypeKey == 1) {
|
|
|
+ that.requestaudit(that.OutList)
|
|
|
+ } else if (that.OutList.taskTypeKey == 2) {
|
|
|
+ that.requestaudit(that.OutList)
|
|
|
+ } else if (
|
|
|
+ that.OutList.taskTypeKey == 3 ||
|
|
|
+ that.OutList.taskTypeKey == 4
|
|
|
+ ) {
|
|
|
+ that.requestaudit(that.OutList, 'repetition')
|
|
|
+ if (!that.deletetask) {
|
|
|
+ that.requestaudit(that.OutList, 'repetition')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (that.EnterList.taskTypeKey) {
|
|
|
+ if (that.EnterList.taskTypeKey == 1 || that.EnterList.taskTypeKey == 2) {
|
|
|
+ that.requestaudit(that.EnterList)
|
|
|
+ } else if (that.EnterList.taskTypeKey == 3 || that.EnterList.taskTypeKey ==
|
|
|
+ 4) {
|
|
|
+ that.requestaudit(that.EnterList, 'repetition')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (that.retreatList.taskTypeKey) {
|
|
|
+ if (that.retreatList.taskTypeKey == 1 || that.retreatList.taskTypeKey ==
|
|
|
+ 2) {
|
|
|
+ that.requestaudit(that.retreatList)
|
|
|
+ } else if (that.retreatList.taskTypeKey == 3 || that.retreatList
|
|
|
+ .taskTypeKey == 4) {
|
|
|
+ that.requestaudit(that.retreatList, 'repetition')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
requestadd(list, status) {
|
|
|
-
|
|
|
+
|
|
|
list.compId = sessionStorage.getItem('ws-pf_compId')
|
|
|
list.publisher = this.userInfo.userName
|
|
|
uni.showLoading({
|
|
@@ -409,7 +437,7 @@
|
|
|
if (res.data.code == 200) {
|
|
|
this.$api.msg('审核成功!')
|
|
|
setTimeout(function() {
|
|
|
- uni.navigateBack()
|
|
|
+ uni.navigateBack()
|
|
|
}, 1000);
|
|
|
}else{
|
|
|
this.$api.msg('审核失败!')
|
|
@@ -468,13 +496,201 @@
|
|
|
if (res.data.code == 200) {
|
|
|
this.$api.msg('驳回成功!')
|
|
|
setTimeout(function() {
|
|
|
- uni.navigateBack()
|
|
|
+ uni.navigateBack()
|
|
|
}, 1000);
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ check() {
|
|
|
+ // (1出库2入库3移库4退库并出库)taskTypeKey
|
|
|
+ if(this.OutList.taskTypeKey == 1 || this.OutList.taskTypeKey == 3){
|
|
|
+ if (!this.OutList.grade) {
|
|
|
+ this.$api.msg('品级不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.OutList.bulkDensity) {
|
|
|
+ this.$api.msg('容重不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.OutList.bulkDensity < 500 || this.OutList.bulkDensity > 1000) {
|
|
|
+ this.$api.msg('容重输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (String(this.OutList.bulkDensity).indexOf('.') != -1 && String(this.OutList.bulkDensity).length - (
|
|
|
+ String(this.OutList.bulkDensity).indexOf('.') + 1) > 0) {
|
|
|
+ this.$api.msg('容重输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.OutList.waterContent) {
|
|
|
+ this.$api.msg('水分不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (isNaN(this.OutList.waterContent) ||
|
|
|
+ (String(this.OutList.waterContent).indexOf('.') != -1 &&
|
|
|
+ String(this.OutList.waterContent).length -
|
|
|
+ (String(this.OutList.waterContent).indexOf('.') + 1) >
|
|
|
+ 2) ||
|
|
|
+ this.OutList.waterContent < 1 ||
|
|
|
+ this.OutList.waterContent > 40
|
|
|
+ ) {
|
|
|
+ this.$api.msg('水分输入错误!')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.OutList.unitPrice) {
|
|
|
+ this.$api.msg('单价不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (isNaN(this.OutList.unitPrice) ||
|
|
|
+ (String(this.OutList.unitPrice).indexOf('.') != -1 &&
|
|
|
+ String(this.OutList.unitPrice).length -
|
|
|
+ (String(this.OutList.unitPrice).indexOf('.') + 1) >
|
|
|
+ 2) ||
|
|
|
+ this.OutList.unitPrice < 1 ||
|
|
|
+ this.OutList.unitPrice > 10000
|
|
|
+ ) {
|
|
|
+ this.$api.msg('单价输入错误!')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if (this.OutList.taskTypeKey == 1) {
|
|
|
+ if (!this.OutList.businessDescribe) {
|
|
|
+ this.$api.msg('业务描述不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.OutList.businessDescribe.length > 150) {
|
|
|
+ this.$api.msg('业务描述长度错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (this.EnterList.taskTypeKey ==2 && this.EnterList.judge) {
|
|
|
+ if (!this.EnterList.grade) {
|
|
|
+ this.$api.msg('品级不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.EnterList.bulkDensity) {
|
|
|
+ this.$api.msg('容重不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.EnterList.bulkDensity < 500 || this.EnterList.bulkDensity > 1000) {
|
|
|
+ this.$api.msg('容重输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (String(this.EnterList.bulkDensity).indexOf('.') != -1 && String(this.EnterList.bulkDensity).length - (
|
|
|
+ String(this.EnterList.bulkDensity).indexOf('.') + 1) > 0) {
|
|
|
+ this.$api.msg('容重输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.EnterList.waterContent) {
|
|
|
+ this.$api.msg('水分不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (isNaN(this.EnterList.waterContent) ||
|
|
|
+ (String(this.EnterList.waterContent).indexOf('.') != -1 &&
|
|
|
+ String(this.EnterList.waterContent).length -
|
|
|
+ (String(this.EnterList.waterContent).indexOf('.') + 1) >
|
|
|
+ 2) ||
|
|
|
+ this.EnterList.waterContent < 1 ||
|
|
|
+ this.EnterList.waterContent > 40
|
|
|
+ ) {
|
|
|
+ this.$api.msg('水分输入错误!')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.EnterList.unitPrice) {
|
|
|
+ this.$api.msg('单价不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (isNaN(this.EnterList.unitPrice) ||
|
|
|
+ (String(this.EnterList.unitPrice).indexOf('.') != -1 &&
|
|
|
+ String(this.EnterList.unitPrice).length -
|
|
|
+ (String(this.EnterList.unitPrice).indexOf('.') + 1) >
|
|
|
+ 2) ||
|
|
|
+ this.EnterList.unitPrice < 1 ||
|
|
|
+ this.EnterList.unitPrice > 10000
|
|
|
+ ) {
|
|
|
+ this.$api.msg('单价输入错误!')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.EnterList.businessDescribe) {
|
|
|
+ this.$api.msg('业务描述不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.EnterList.businessDescribe.length > 150) {
|
|
|
+ this.$api.msg('业务描述长度错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (this.OutList.taskTypeKey == 3) {
|
|
|
+ if (!this.EnterList.businessDescribe) {
|
|
|
+ this.$api.msg('业务描述不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.EnterList.businessDescribe.length > 150) {
|
|
|
+ this.$api.msg('业务描述长度错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(this.retreatList.taskTypeKey == 4 && this.retreatList.judge){
|
|
|
+ if (!this.retreatList.grade) {
|
|
|
+ this.$api.msg('品级不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.retreatList.bulkDensity) {
|
|
|
+ this.$api.msg('容重不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.retreatList.bulkDensity < 500 || this.retreatList.bulkDensity > 1000) {
|
|
|
+ this.$api.msg('容重输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (String(this.retreatList.bulkDensity).indexOf('.') != -1 && String(this.retreatList.bulkDensity).length - (
|
|
|
+ String(this.retreatList.bulkDensity).indexOf('.') + 1) > 0) {
|
|
|
+ this.$api.msg('容重输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.retreatList.waterContent) {
|
|
|
+ this.$api.msg('水分不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (isNaN(this.retreatList.waterContent) ||
|
|
|
+ (String(this.retreatList.waterContent).indexOf('.') != -1 &&
|
|
|
+ String(this.retreatList.waterContent).length -
|
|
|
+ (String(this.retreatList.waterContent).indexOf('.') + 1) >
|
|
|
+ 2) ||
|
|
|
+ this.retreatList.waterContent < 1 ||
|
|
|
+ this.retreatList.waterContent > 40
|
|
|
+ ) {
|
|
|
+ this.$api.msg('水分输入错误!')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.retreatList.unitPrice) {
|
|
|
+ this.$api.msg('单价不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (isNaN(this.retreatList.unitPrice) ||
|
|
|
+ (String(this.retreatList.unitPrice).indexOf('.') != -1 &&
|
|
|
+ String(this.retreatList.unitPrice).length -
|
|
|
+ (String(this.retreatList.unitPrice).indexOf('.') + 1) >
|
|
|
+ 2) ||
|
|
|
+ this.retreatList.unitPrice < 1 ||
|
|
|
+ this.retreatList.unitPrice > 10000
|
|
|
+ ) {
|
|
|
+ this.$api.msg('单价输入错误!')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.EnterList.businessDescribe) {
|
|
|
+ this.$api.msg('业务描述不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.EnterList.businessDescribe.length > 150) {
|
|
|
+ this.$api.msg('业务描述长度错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -578,29 +794,30 @@
|
|
|
.rejectText {
|
|
|
text-align: center;
|
|
|
}
|
|
|
+
|
|
|
.topInfo {
|
|
|
height: 210rpx;
|
|
|
background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
|
|
|
padding: 30rpx;
|
|
|
-
|
|
|
+
|
|
|
.topInfo-item {
|
|
|
height: 150rpx;
|
|
|
background-color: #FFFFFF;
|
|
|
border-radius: 20rpx;
|
|
|
padding: 40rpx;
|
|
|
-
|
|
|
+
|
|
|
.logo {
|
|
|
width: 40rpx;
|
|
|
height: 40rpx;
|
|
|
margin-top: 8rpx;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.infoText {
|
|
|
font-size: 36rpx;
|
|
|
font-weight: 600;
|
|
|
margin-left: 20rpx;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.infoData {
|
|
|
color: #878C9C;
|
|
|
font-size: 26rpx;
|