Commit b3deb8f3 by LJM

异常管理

parent a21d94e6
......@@ -217,8 +217,8 @@
width: 100%;
justify-content: flex-end;
.btn1 {
width: 100rpx;
height: 48rpx;
width: 137rpx;
height: 70rpx;
background: #fff;
border-radius: 4rpx;
font-size: 24rpx;
......@@ -226,8 +226,8 @@
border: 1px solid #999;
}
.btn2 {
width: 100rpx;
height: 48rpx;
width: 137rpx;
height: 70rpx;
background: #1969f9;
border-radius: 8rpx;
font-size: 25rpx;
......@@ -336,7 +336,7 @@
}
.uni-input {
width: 310rpx;
height: 55rpx;
height: 80rpx;
background: #e6edf0;
border-radius: 4rpx;
padding-left: 20rpx;
......@@ -345,8 +345,8 @@
font-weight: bold;
}
.search-btn {
width: 120rpx;
height: 55rpx;
width: 170rpx;
height: 80rpx;
background: #197adb;
font-size: 26rpx;
color: #ffffff;
......
.page-box {
padding-bottom: 20rpx;
.base-information {
padding: 0 24rpx;
background: #ffffff;
......@@ -120,8 +121,8 @@
border-bottom: 1px solid #e6edf0;
.label {
position: relative;
width: 183rpx;
font-size: 24rpx;
width: 213rpx;
font-size: 28rpx;
color: #6e767a;
&.required:after {
position: absolute;
......@@ -133,7 +134,7 @@
}
}
.input-wrap {
width: calc(100% - 183rpx);
width: calc(100% - 213rpx);
.tab-panel {
&:last-child {
margin-right: 0;
......@@ -155,7 +156,7 @@
}
}
.uni-list-cell-db {
width: calc(100% - 183rpx);
width: calc(100% - 213rpx);
position: relative;
.icon-sanjiaoxing1 {
position: absolute;
......@@ -171,7 +172,7 @@
font-weight: bold;
}
.uni-input-box {
width: calc(100% - 183rpx);
width: calc(100% - 213rpx);
.uni-input {
font-size: 24rpx;
color: #404547;
......@@ -198,16 +199,16 @@
.title {
margin-bottom: 24rpx;
.tt-l {
font-size: 24rpx;
font-size: 28rpx;
color: #6e767a;
}
.tt-r {
font-size: 24rpx;
font-size: 28rpx;
color: #404547;
}
}
.upload-list {
padding-bottom: 24rpx;
padding-bottom: 28rpx;
border-bottom: 1px solid #e6edf0;
.default {
width: 144rpx;
......@@ -251,7 +252,7 @@
padding-top: 23rpx;
textarea {
height: 80rpx;
font-size: 24rpx;
font-size: 28rpx;
color: #6e767a;
border-bottom: 1px solid #e6edf0;
}
......
......@@ -224,7 +224,7 @@
}, {
"path": "pages/tally/abnormalTally",
"style": {
"navigationBarTitleText": "理货异常处理"
"navigationBarTitleText": "美产商检管理"
}
}, {
"path": "pages/tally/goods",
......
......@@ -54,50 +54,116 @@
<text class="label" @click="open()">异常编码:</text>
<text class="text">{{item.abnormal_number}}</text>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;background-color: #f1f4f6;padding: 10rpx 0;">
<template v-if="item.abnormal_type == 1">
<text class="label">订单品牌:</text>
<text class="text">{{item.order_brand}}</text>
</template>
<template v-else-if="item.abnormal_type == 2">
<view class="input-box row verCenter" style="flex: 0 0 100%;background-color: #c6d6e0;padding: 10rpx 0;">
<text class="label">订单型号:</text>
<text class="text">{{item.order_model}}</text>
</template>
<template v-else-if="item.abnormal_type == 3">
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;background-color: #c6d6e0;padding: 10rpx 0;">
<text class="label">实物型号:</text>
<view class="text">
<rich-text :nodes="highlightDifferences(item.order_model, item.actual_model)"></rich-text>
</view>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;padding: 10rpx 0;">
<text class="label">订单品牌:</text>
<text class="text">{{item.order_brand}}</text>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;padding: 10rpx 0;">
<text class="label">订单产地:</text>
<text class="text">{{item.order_origin}}</text>
</template>
<template v-else-if="item.abnormal_type == 4">
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;padding: 10rpx 0;">
<text class="label">订单数量:</text>
<text class="text">{{item.order_qty}}</text>
</view>
</template>
<template v-else-if="item.abnormal_type == 2">
<view class="input-box row verCenter" style="flex: 0 0 100%;padding: 10rpx 0;">
<text class="label">订单型号:</text>
<text class="text">{{item.order_model}}</text>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;background-color: #f1f4f6;padding: 10rpx 0;">
<template v-if="item.abnormal_type == 1">
<view class="input-box row verCenter" style="flex: 0 0 100%;background-color: #c6d6e0;padding: 10rpx 0;">
<text class="label">订单品牌:</text>
<text class="text">{{item.order_brand}}</text>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;background-color: #c6d6e0;padding: 10rpx 0;">
<text class="label">实物品牌:</text>
<view class="text">
<rich-text :nodes="highlightDifferences(item.order_brand, item.actual_brand)"></rich-text>
</view>
</template>
<template v-else-if="item.abnormal_type == 2">
<text class="label">实物型号:</text>
<view class="text">
<rich-text :nodes="highlightDifferences(item.order_model, item.actual_model)"></rich-text>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;padding: 10rpx 0;">
<text class="label">订单产地:</text>
<text class="text">{{item.order_origin}}</text>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;padding: 10rpx 0;">
<text class="label">订单数量:</text>
<text class="text">{{item.order_qty}}</text>
</view>
</template>
<template v-else-if="item.abnormal_type == 3">
<view class="input-box row verCenter" style="flex: 0 0 100%;padding: 10rpx 0;">
<text class="label">订单型号:</text>
<text class="text">{{item.order_model}}</text>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;padding: 10rpx 0;">
<text class="label">订单品牌:</text>
<text class="text">{{item.order_brand}}</text>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;background-color: #c6d6e0;padding: 10rpx 0;">
<text class="label">订单产地:</text>
<text class="text">{{item.order_origin}}</text>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;background-color: #c6d6e0;padding: 10rpx 0;">
<text class="label">实物产地:</text>
<view class="text">
<rich-text :nodes="highlightDifferences(item.order_origin, item.actual_origin)"></rich-text>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;padding: 10rpx 0;">
<text class="label">订单数量:</text>
<text class="text">{{item.order_qty}}</text>
</view>
</template>
<template v-else-if="item.abnormal_type == 4">
<view class="input-box row verCenter" style="flex: 0 0 100%;padding: 10rpx 0;">
<text class="label">订单型号:</text>
<text class="text">{{item.order_model}}</text>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;padding: 10rpx 0;">
<text class="label">订单品牌:</text>
<text class="text">{{item.order_brand}}</text>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;padding: 10rpx 0;">
<text class="label">订单产地:</text>
<text class="text">{{item.order_origin}}</text>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;background-color: #c6d6e0;padding: 10rpx 0;">
<text class="label">订单数量:</text>
<text class="text">{{item.order_qty}}</text>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;background-color: #c6d6e0;padding: 10rpx 0;">
<text class="label">实物数量:</text>
<view class="text">
<rich-text :nodes="highlightDifferences(item.order_qty, item.actual_qty)"></rich-text>
</view>
</template>
<template v-else>
<view class="input-box row verCenter" style="flex: 0 0 100%;padding: 10rpx 0;">
<text class="label">订单型号:</text>
<text class="text">{{item.order_model}}</text>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;padding: 10rpx 0;">
<text class="label">订单品牌:</text>
<text class="text">{{item.order_brand}}</text>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;padding: 10rpx 0;">
<text class="label">订单产地:</text>
<text class="text">{{item.order_origin}}</text>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;padding: 10rpx 0;">
<text class="label">订单数量:</text>
<text class="text">{{item.order_qty}}</text>
</view>
</template>
<view class="input-box row verCenter" style="flex: 0 0 100%;">
<text class="label">异常说明:</text>
<text class="text" style="max-width: 500rpx;" @click="show(item.abnormal_explain)">{{item.abnormal_explain}}</text>
......@@ -142,7 +208,7 @@
<text class="text">查不到当前数据</text>
</view>
<!-- 新增异常弹窗 -->
<uni-popup ref="popup" background-color="#F1F4F6">
<uni-popup ref="popup" background-color="#c6d6e0">
<view class="popup-content">
<view class="section">
<view class="input-box row verCenter" style="margin-bottom: 40rpx;">
......@@ -158,22 +224,24 @@
<view class="uni-th">品牌</view>
<view class="uni-th">数量</view>
</view>
<scroll-view scroll-y="true" style="max-height: 500rpx;">
<view class="uni-tr" v-for="(item,index) in orderDetailByIdList" :key="index" @click="selectedChange(2,index)" :class="{curr:orderDetailByIdIndex==index}">
<view class="uni-td">{{index+1}}</view>
<view class="uni-td">{{item.model}}</view>
<view class="uni-td">{{item.brand}}</view>
<view class="uni-td">{{item.qty}}</view>
</view>
</scroll-view>
</view>
</view>
<view class="btn row bothSide">
<view class="canel row rowCenter verCenter" @click="close()">返回</view>
<view class="ok row rowCenter verCenter" @click="next()">下一步</view>
<view class="canel row rowCenter verCenter" @click="close()" style="height: 80rpx;">返回</view>
<view class="ok row rowCenter verCenter" @click="next()" style="height: 80rpx;">下一步</view>
</view>
</view>
</uni-popup>
<!-- 多个入仓号 -->
<uni-popup ref="popupErpSn" background-color="#F1F4F6">
<uni-popup ref="popupErpSn" background-color="#c6d6e0">
<view class="popup-content">
<view class="section">
<view style="margin-bottom: 20rpx;">
......
......@@ -50,30 +50,30 @@
</picker>
</view>
</view>
<view class="box row verCenter">
<view class="box row verCenter" v-if="index == 0 || index == 1|| index == 2|| index == 3">
<template v-if="index == 0">
<text class="label">实物品牌</text>
<view class="uni-input-box row verCenter bothSide">
<input type="text" class="uni-input" placeholder="实物品牌" placeholder-style="color:#404547;font-weight:bold;" v-model="form.actual_brand" style="width: 100%;" />
<input type="text" class="uni-input" placeholder="请输入" placeholder-style="color:#404547;" v-model="form.actual_brand" style="width: 100%;" />
</view>
</template>
<template v-else-if="index == 1">
<text class="label">实物型号</text>
<view class="uni-input-box row verCenter bothSide">
<input type="text" class="uni-input" placeholder="实物型号" placeholder-style="color:#404547;font-weight:bold;" v-model="form.actual_model" style="width: 100%;" />
<input type="text" class="uni-input" placeholder="请输入" placeholder-style="color:#404547;" v-model="form.actual_model" style="width: 100%;" />
</view>
</template>
<template v-else-if="index == 2">
<text class="label">实物产地</text>
<view class="uni-input-box row verCenter bothSide">
<input type="text" class="uni-input" placeholder="实物产地" placeholder-style="color:#404547;font-weight:bold;" v-model="form.actual_origin" style="width: 100%;" />
<input type="text" class="uni-input" placeholder="请输入" placeholder-style="color:#404547;" v-model="form.actual_origin" style="width: 100%;" />
</view>
</template>
<template v-else-if="index == 3">
<text class="label">实物数量</text>
<view class="uni-input-box row verCenter bothSide">
<input type="text" class="uni-input" placeholder="实物数量" placeholder-style="color:#404547;font-weight:bold;" v-model="form.actual_qty" style="width: 100%;" />
<input type="text" class="uni-input" placeholder="请输入" placeholder-style="color:#404547;" v-model="form.actual_qty" style="width: 100%;" />
</view>
</template>
</view>
......@@ -90,7 +90,7 @@
<view class="title row bothSide verCenter">
<view class="row verCenter">
<text style="color: red;">*</text>
<text class="tt-l">异常图片上传(选填)</text>
<text class="tt-l">异常图片上传</text>
</view>
<text class="tt-r">{{ abnormal_pic_url.length }}/4</text>
</view>
......@@ -104,7 +104,7 @@
<view class="default row rowCenter verCenter" @click="chooseImageChange()" v-if="abnormal_pic_url.length < 4"><text class="iconfont icon-xingzhuangjiehe"></text></view>
</view>
<view class="textarea-box">
<textarea maxlength="200" placeholder="请输入异常说明(选填)" placeholder-style="color:#6E767A;" v-model="form.abnormal_explain"></textarea>
<textarea maxlength="200" placeholder="请输入异常说明" placeholder-style="color:#6E767A;" v-model="form.abnormal_explain"></textarea>
<view class="quickExpressions row">
<view class="lable-box" @click="selectionText(item.expressions)" v-for="(item,index) in quickExpressions" :key="index">{{item.expressions}}</view>
</view>
......@@ -123,7 +123,7 @@
data() {
return {
noexebshowFalg: true, //控制是否会触发生命周期
array: ['品牌异常', '型号异常', '产地异常', '数量异常'],
array: ['品牌异常', '型号异常', '产地异常', '数量异常', '标签异常', '其他异常'],
index: 0,
salesman: '',
orderDetailByIdIndex: '',
......@@ -203,7 +203,7 @@
getQuickExpressions() {
this.request(API.getQuickExpressions, 'GET', { abnormal_type: this.form.abnormal_type }, false).then(res => {
if (res.err_code === 0) {
this.quickExpressions.list = res.data;
this.quickExpressions = res.data.list;
} else {
uni.showToast({
title: res.err_msg,
......@@ -338,13 +338,6 @@
});
return false;
}
if (!this.form.actual_model && !this.form.actual_brand && !this.form.actual_qty && this.form.actual_origin) {
uni.showToast({
title: '请填写实物',
icon: 'none'
});
return false;
}
if (this.form.is_business_processing === '') {
uni.showToast({
title: '请选择是否需要业务处理',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment