跟单
This commit is contained in:
parent
b3c141c677
commit
20c8aef9bd
@ -206,6 +206,10 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
word-break: break-all;
|
||||||
|
display: -webkit-box; /*将对象转为弹性盒模型展示*/
|
||||||
|
-webkit-box-orient: vertical; /*设置弹性盒模型子元素的排列方式*/
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onLoad } from '@dcloudio/uni-app';
|
import { onLoad } from '@dcloudio/uni-app';
|
||||||
import { showToast } from 'vant';
|
import { showToast } from 'vant';
|
||||||
import { ref, watch } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { getAction, postAction, uploadAction } from '../../common/http';
|
import { getAction, postAction, uploadAction } from '../../common/http';
|
||||||
import { formatDate } from '../../utils/date';
|
import { formatDate } from '../../utils/date';
|
||||||
// 定义 props
|
// 定义 props
|
||||||
@ -41,7 +41,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
processes.value = JSON.parse(itemList.value.processes)
|
processes.value = itemList.value.processes
|
||||||
}
|
}
|
||||||
indexData.value = processes.value.processes.findIndex((l : any) => l.name == itemList.value.zt)
|
indexData.value = processes.value.processes.findIndex((l : any) => l.name == itemList.value.zt)
|
||||||
let nameZt = ''
|
let nameZt = ''
|
||||||
@ -52,7 +52,7 @@
|
|||||||
} else {
|
} else {
|
||||||
nameZt = itemList.value.zt
|
nameZt = itemList.value.zt
|
||||||
}
|
}
|
||||||
let name = processes.value.processes.find((l : any) => l.name != nameZt && (l.necessary))
|
let name = processes.value.processes.find((l : any, j : any) => j > indexData.value && (l.necessary))
|
||||||
postAction('/process/getNext', [nameZt, name ? name.name : '0x7c00']).then((res : any) => {
|
postAction('/process/getNext', [nameZt, name ? name.name : '0x7c00']).then((res : any) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
specialPro.value = res.data
|
specialPro.value = res.data
|
||||||
@ -165,6 +165,7 @@
|
|||||||
processes.value.processes.forEach((l : any, j : any) => {
|
processes.value.processes.forEach((l : any, j : any) => {
|
||||||
if (j > indexData.value && index > j) {
|
if (j > indexData.value && index > j) {
|
||||||
if (l.necessary) {
|
if (l.necessary) {
|
||||||
|
status.value = l.name
|
||||||
throw l.name + '不可跳过!'
|
throw l.name + '不可跳过!'
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -190,13 +191,26 @@
|
|||||||
const craftFlow = ref()
|
const craftFlow = ref()
|
||||||
const craftFlowLc = ref()
|
const craftFlowLc = ref()
|
||||||
const flowList = ref([] as any[])
|
const flowList = ref([] as any[])
|
||||||
|
const OrderAlert = ref()
|
||||||
//选择特殊工艺
|
//选择特殊工艺
|
||||||
const chooseSpecial = (item : any) => {
|
const chooseSpecial = (item : any) => {
|
||||||
|
let a = specialPro.value.find((l : any) => l.name === item.name)
|
||||||
|
list.value = a.evidence
|
||||||
|
if (itemList.value.sd === '门店') {
|
||||||
|
OrderAlert.value = a.internalOrderAlert
|
||||||
|
} else {
|
||||||
|
OrderAlert.value = a.externalOrderAlert
|
||||||
|
}
|
||||||
|
let cs=0
|
||||||
|
processes.value.processes.forEach((l:any)=>{
|
||||||
|
if(l.name==item.name){
|
||||||
|
cs++
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if(cs>=Number(OrderAlert.value)) return showToast('已超过系统限制,请联系管理员!')
|
||||||
special.value = item.name
|
special.value = item.name
|
||||||
specialItem.value = item
|
specialItem.value = item
|
||||||
status.value = ''
|
status.value = ''
|
||||||
let a = specialPro.value.find((l : any) => l.name === item.name)
|
|
||||||
list.value = a.evidence
|
|
||||||
showDialog.value = true
|
showDialog.value = true
|
||||||
getAction('/flowBind').then((res : any) => {
|
getAction('/flowBind').then((res : any) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
|
@ -445,25 +445,32 @@
|
|||||||
|
|
||||||
.grid-container1 {
|
.grid-container1 {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: repeat(1, 1fr);;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
.grid-item2 {
|
.grid-item2 {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
white-space: pre-line;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
text-align: center;
|
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 5rpx;
|
padding: 5rpx;
|
||||||
|
word-break: break-all;
|
||||||
|
display: -webkit-box; /*将对象转为弹性盒模型展示*/
|
||||||
|
-webkit-box-orient: vertical; /*设置弹性盒模型子元素的排列方式*/
|
||||||
|
overflow: hidden; /*超出隐藏*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid-item1 {
|
.grid-item1 {
|
||||||
border-bottom: 1px solid #f2f2f2;
|
border-bottom: 1px solid #f2f2f2;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
text-align: center;
|
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 5rpx;
|
padding: 5rpx;
|
||||||
|
word-break: break-all;
|
||||||
|
display: -webkit-box; /*将对象转为弹性盒模型展示*/
|
||||||
|
-webkit-box-orient: vertical; /*设置弹性盒模型子元素的排列方式*/
|
||||||
|
overflow: hidden; /*超出隐藏*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
processes.value = JSON.parse(itemList.value.processes)
|
processes.value = itemList.value.processes
|
||||||
}
|
}
|
||||||
getAction('/tracking/getLog?id='+itemList.value.id).then((res:any)=>{
|
getAction('/tracking/getLog?id='+itemList.value.id).then((res:any)=>{
|
||||||
if(res.code===200){
|
if(res.code===200){
|
||||||
|
Loading…
Reference in New Issue
Block a user