修改样式问题

This commit is contained in:
ljx120 2025-02-24 13:23:05 +08:00
parent 08151b6782
commit 0dc53b5973
72 changed files with 255 additions and 86 deletions

View File

@ -1,18 +1,18 @@
export default {
//正式接口
base_scm:'/api',
base_auth:'',//登录
base_mes:'/mes',//面料
base_process:'/mes',//工艺
// base_scm:'/api',
// base_auth:'',//登录
// base_mes:'/mes',//面料
// base_process:'/mes',//工艺
//本地服务
// // base_scm: 'http://192.168.1.222:7002',
// base_scm: 'https://scm.goodsilk.cn/api',
// base_auth:'https://oauth.goodsilk.cn/api',//登录
// base_mes:'https://scm.goodsilk.cn/mes',//面料
// base_process:'https://scm.goodsilk.cn/mes',//工艺
// base_scm: 'http://192.168.1.222:7002',
base_scm: 'https://scm.goodsilk.cn/api',
base_auth: 'https://oauth.goodsilk.cn/api',//登录
base_mes: 'https://scm.goodsilk.cn/mes',//面料
base_process: 'https://scm.goodsilk.cn/mes',//工艺
}

121
node_modules/.vue-global-types/vue_99_0_0_0.d.ts generated vendored Normal file
View File

@ -0,0 +1,121 @@
// @ts-nocheck
export {};
; declare global {
const __VLS_intrinsicElements: __VLS_IntrinsicElements;
const __VLS_directiveBindingRestFields: { instance: null, oldValue: null, modifiers: any, dir: any };
const __VLS_unref: typeof import('vue').unref;
const __VLS_placeholder: any;
type __VLS_NativeElements = __VLS_SpreadMerge<SVGElementTagNameMap, HTMLElementTagNameMap>;
type __VLS_IntrinsicElements = import('vue/jsx-runtime').JSX.IntrinsicElements;
type __VLS_Element = import('vue/jsx-runtime').JSX.Element;
type __VLS_GlobalComponents = import('vue').GlobalComponents;
type __VLS_GlobalDirectives = import('vue').GlobalDirectives;
type __VLS_IsAny<T> = 0 extends 1 & T ? true : false;
type __VLS_PickNotAny<A, B> = __VLS_IsAny<A> extends true ? B : A;
type __VLS_SpreadMerge<A, B> = Omit<A, keyof B> & B;
type __VLS_WithComponent<N0 extends string, LocalComponents, Self, N1 extends string, N2 extends string, N3 extends string> =
N1 extends keyof LocalComponents ? N1 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : { [K in N0]: LocalComponents[N1] } :
N2 extends keyof LocalComponents ? N2 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : { [K in N0]: LocalComponents[N2] } :
N3 extends keyof LocalComponents ? N3 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : { [K in N0]: LocalComponents[N3] } :
Self extends object ? { [K in N0]: Self } :
N1 extends keyof __VLS_GlobalComponents ? N1 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : { [K in N0]: __VLS_GlobalComponents[N1] } :
N2 extends keyof __VLS_GlobalComponents ? N2 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : { [K in N0]: __VLS_GlobalComponents[N2] } :
N3 extends keyof __VLS_GlobalComponents ? N3 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : { [K in N0]: __VLS_GlobalComponents[N3] } :
{ [K in N0]: unknown };
type __VLS_FunctionalComponentProps<T, K> =
'__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends { __ctx?: { props?: infer P } } ? NonNullable<P> : never
: T extends (props: infer P, ...args: any) => any ? P :
{};
type __VLS_IsFunction<T, K> = K extends keyof T
? __VLS_IsAny<T[K]> extends false
? unknown extends T[K]
? false
: true
: false
: false;
type __VLS_NormalizeComponentEvent<Props, Events, onEvent extends keyof Props, Event extends keyof Events, CamelizedEvent extends keyof Events> = (
__VLS_IsFunction<Props, onEvent> extends true
? Props
: __VLS_IsFunction<Events, Event> extends true
? { [K in onEvent]?: Events[Event] }
: __VLS_IsFunction<Events, CamelizedEvent> extends true
? { [K in onEvent]?: Events[CamelizedEvent] }
: Props
) & Record<string, unknown>;
// fix https://github.com/vuejs/language-tools/issues/926
type __VLS_UnionToIntersection<U> = (U extends unknown ? (arg: U) => unknown : never) extends ((arg: infer P) => unknown) ? P : never;
type __VLS_OverloadUnionInner<T, U = unknown> = U & T extends (...args: infer A) => infer R
? U extends T
? never
: __VLS_OverloadUnionInner<T, Pick<T, keyof T> & U & ((...args: A) => R)> | ((...args: A) => R)
: never;
type __VLS_OverloadUnion<T> = Exclude<
__VLS_OverloadUnionInner<(() => never) & T>,
T extends () => never ? never : () => never
>;
type __VLS_ConstructorOverloads<T> = __VLS_OverloadUnion<T> extends infer F
? F extends (event: infer E, ...args: infer A) => any
? { [K in E & string]: (...args: A) => void; }
: never
: never;
type __VLS_NormalizeEmits<T> = __VLS_PrettifyGlobal<
__VLS_UnionToIntersection<
__VLS_ConstructorOverloads<T> & {
[K in keyof T]: T[K] extends any[] ? { (...args: T[K]): void } : never
}
>
>;
type __VLS_PrettifyGlobal<T> = { [K in keyof T]: T[K]; } & {};
type __VLS_PickFunctionalComponentCtx<T, K> = NonNullable<__VLS_PickNotAny<
'__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends { __ctx?: infer Ctx } ? Ctx : never : any
, T extends (props: any, ctx: infer Ctx) => any ? Ctx : any
>>;
type __VLS_OmitStringIndex<T> = {
[K in keyof T as string extends K ? never : K]: T[K];
};
type __VLS_UseTemplateRef<T> = Readonly<import('vue').ShallowRef<T | null>>;
function __VLS_getVForSourceType<T extends number | string | any[] | Iterable<any>>(source: T): [
item: T extends number ? number
: T extends string ? string
: T extends any[] ? T[number]
: T extends Iterable<infer T1> ? T1
: any,
index: number,
][];
function __VLS_getVForSourceType<T>(source: T): [
item: T[keyof T],
key: keyof T,
index: number,
][];
// @ts-ignore
function __VLS_getSlotParams<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>;
// @ts-ignore
function __VLS_getSlotParam<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>[0];
function __VLS_asFunctionalDirective<T>(dir: T): T extends import('vue').ObjectDirective
? NonNullable<T['created' | 'beforeMount' | 'mounted' | 'beforeUpdate' | 'updated' | 'beforeUnmount' | 'unmounted']>
: T extends (...args: any) => any
? T
: (arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown) => void;
function __VLS_makeOptional<T>(t: T): { [K in keyof T]?: T[K] };
function __VLS_asFunctionalComponent<T, K = T extends new (...args: any) => any ? InstanceType<T> : unknown>(t: T, instance?: K):
T extends new (...args: any) => any
? (props: (K extends { $props: infer Props } ? Props : any) & Record<string, unknown>, ctx?: any) => __VLS_Element & {
__ctx?: {
attrs?: any;
slots?: K extends { $slots: infer Slots } ? Slots : any;
emit?: K extends { $emit: infer Emit } ? Emit : any;
expose?(exposed: K): void;
props?: (K extends { $props: infer Props } ? Props : any) & Record<string, unknown>;
}
}
: T extends () => any ? (props: {}, ctx?: any) => ReturnType<T>
: T extends (...args: any) => any ? T
: (_: {} & Record<string, unknown>, ctx?: any) => { __ctx?: { attrs?: any, expose?: any, slots?: any, emit?: any, props?: {} & Record<string, unknown> } };
function __VLS_functionalComponentArgsRest<T extends (...args: any) => any>(t: T): 2 extends Parameters<T>['length'] ? [any] : [];
function __VLS_asFunctionalElement<T>(tag: T, endTag?: T): (attrs: T & Record<string, unknown>) => void;
function __VLS_asFunctionalSlot<S>(slot: S): (props: NonNullable<S> extends (props: infer P) => any ? P : {}) => void;
function __VLS_tryAsConstant<const T>(t: T): T;
}

View File

@ -35,6 +35,7 @@
})
onShow(()=>{
list.value = []
currentPage.value=1
init()
})
@ -154,7 +155,7 @@
</van-cell-group>
<view class="grid-container">
<view class="grid-item">创建时间</view>
<view class="grid-item">做单人/归属人/谁定</view>
<view class="grid-item">做单人/客户名/谁定</view>
<view class="grid-item">总米数<br>总匹数</view>
<view class="grid-item">状态</view>
</view>
@ -163,7 +164,7 @@
<view class="grid-container" v-for="(item,index) in list" :key="index">
<view class="grid-item">{{item.customOrder.makeTime}}</view>
<view class="grid-item">
{{item.customOrder.makeUser}}/{{item.customOrder.belongTo}}<br>{{item.customOrder.sd}}
{{item.customOrder.makeUser}}<br>{{item.customOrder.customerName}}<br>{{item.customOrder.sd}}
</view>
<view class="grid-item">{{item.customOrder.totalLen}}/{{item.customOrder.totalQty}}</view>
<view class="grid-item" @click="toDetile(item)">

View File

@ -303,8 +303,11 @@
<h3 style="text-align: center;margin-top: 10rpx;">扫码成功</h3>
<van-cell-group inset>
<view v-for="(item,index) in bhms" :key="index">
<van-field v-model="item.code" name="面料编号" label="面料编号" colon readonly label-width="5em"
class="bor-n" />
<view style="display: flex;align-items: center;">
<van-field v-model="item.code" name="面料编号" label="面料编号" colon readonly label-width="5em"
class="bor-n" />
<van-icon name="close" color="red" size="22px" @click="bhms.splice(index,1)"/>
</view>
<van-field v-model="item.syps" name="剩余米数" label="剩余米数" colon label-width="5em" class="bor-n"
readonly />
<van-field v-model="item.ms" name="排单米数" label="排单米数" type="number" @input="item.ms=item.ms.replace(/^\D*(\d*(?:\.\d{0,1})?).*$/g, '$1')" colon label-width="5em" />

View File

@ -59,6 +59,7 @@
})
onShow(() => {
list.value = []
currentPage.value=1
init()
//
uni.getStorage({
@ -185,6 +186,7 @@
watch(form.value, () => {
currentPage.value=1
list.value = []
init()
})

View File

@ -281,7 +281,7 @@ function getSeach() {
<van-field v-model="item.name" name="面料名称" label="面料名称" colon readonly label-width="5em"
@click="selectChoose(index)" class="bor" />
</view>
<van-field v-model="item.quantity" name="需求匹数" label="需求匹数" type="digit" colon @input="item.quantity=item.quantity<=0?'':item.quantity"
<van-field v-model="item.quantity" name="需求匹数" label="需求匹数" type="number" colon @input="item.quantity=item.quantity<=0?'':item.quantity"
label-width="6.5em" />
<van-field v-model="item.belongTo" name="订单归属人" label="订单归属人" colon label-width="6.5em" readonly/>
</view>

View File

@ -1,8 +1,8 @@
<script setup lang="ts">
import { onMounted, ref, watch } from 'vue'
import { formatDate } from '../../utils/date';
import { getAction, postAction, putAction } from '../../common/http';
import { showToast } from 'vant';
import { deleteAction, getAction, postAction, putAction } from '../../common/http';
import { showConfirmDialog, showToast } from 'vant';
const form = ref({} as any)
const show = ref(false)
@ -20,9 +20,9 @@
onMounted(() => {
init()
getAction('/suppliers',{page:1,size:100}).then((res:any)=>{
getAction('/suppliers').then((res:any)=>{
if(res.code===200){
gysList.value=res.data.record
gysList.value=res.data
}
})
getAction('/rawFabricLevels',{page:1,size:100}).then((res:any)=>{
@ -245,6 +245,8 @@ const msps = ref({})
const pickerConfirm = (val : any) => {
if(dataType.value==='stupid'){
form.value.stupid = val.selectedValues[0]
}else if(dataType.value==='supplier1'){
form.value.supplier = val.selectedValues[0]
}else{
listItem.value[dataType.value] = val.selectedValues[0]
}
@ -264,6 +266,8 @@ const msps = ref({})
popuList.value=[{ text: '配货进厂', value: '配货进厂' }, { text: '做本白', value: '做本白' }]
}else if(dataType.value==='stupid'){
popuList.value=[{ text: '是', value: '是' }, { text: '否', value: '否' }]
}else if(dataType.value==='supplier1'){
popuList.value=gysList.value.map(l=>({text:l.name,value:l.name}))
}
}
@ -341,6 +345,30 @@ const msps = ref({})
}
})
}
const delect = () =>{
showConfirmDialog({
title: '提示',
message: '是否确认删除?',
}).then(() => {
let arr=list.value.filter((l:any)=>l.checked)
let array=[]
arr.forEach((l:any)=>{
array.push(l.barcode)
})
deleteAction('/rawFabric/batch',array).then((res:any)=>{
if(res.code===200){
list.value=[]
currentPage.value = 1
init()
showToast('删除成功!')
}
})
})
.catch(() => {
// on cancel
});
}
</script>
<template>
@ -371,23 +399,33 @@ const msps = ref({})
</template>
</van-field>
</van-cell-group>
<view style="text-align: end;margin: 10rpx;">
<van-button type="primary" @click="onClickLeft">扫码出库</van-button>
</view>
<van-cell-group style="display: flex;">
<van-field v-model="form.supplier" name="供应商名" label="供应商名" colon class="bor" label-width="5em" readonly
@click="choosePic('supplier1')" />
<view style="display: flex;align-items: center;width: 100%;justify-content: space-around;">
<van-button type="danger" @click="delect">删除</van-button>
<van-button type="primary" @click="onClickLeft">扫码出库</van-button>
</view>
</van-cell-group>
<view class="grid-container">
<view class="grid-item">面料名称</view>
<view class="grid-item">面料编号</view>
<view class="grid-item">面料米数</view>
<view class="grid-item"></view>
<view class="grid-item">日期</view>
<view class="grid-item">面料名称<br>面料编号</view>
<view class="grid-item">供应商<br>米数</view>
<view class="grid-item">位置</view>
</view>
<view class="content">
<van-list v-model:loading="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
<view class="grid-container" :style="{color:item.stupid=='是'?'red':'#000'}" v-for="(item,index) in list" :key="index" @click="toDetile(item)">
<view class="grid-item">{{item.category}}</view>
<view class="grid-item">{{item.barcode}}</view>
<view class="grid-item">{{item.len}}</view>
<view class="grid-item">{{item.location}}</view>
<view class="grid-container" :style="{color:item.stupid=='是'?'red':'#000'}" v-for="(item,index) in list" :key="index">
<view class="grid-item">
<van-checkbox v-model="item.checked" shape="square"></van-checkbox>
</view>
<view class="grid-item">{{item.inboundDate}}</view>
<view class="grid-item" @click="toDetile(item)">{{item.category}}<br>{{item.barcode}}</view>
<view class="grid-item" @click="toDetile(item)">{{item.supplier}}<br>{{item.len}}</view>
<view class="grid-item">{{item.level}}<br>{{item.location}}</view>
</view>
</van-list>
</view>
@ -519,15 +557,19 @@ const msps = ref({})
.grid-container {
display: grid;
grid-template-columns: 2fr 1.6fr 1.3fr 1.5fr;
grid-template-columns:1fr 2fr 2fr 2fr 1.5fr;
padding: 0 15rpx;
.grid-item {
border: 1rpx solid #f2f2f2;
display: flex;
align-items: center;
text-align: center;
justify-content: center;
padding: 5rpx;
ord-break: break-all;
-webkit-box-orient: vertical; /*设置弹性盒模型子元素的排列方式*/
overflow: hidden; /*超出隐藏*/
}
}

Binary file not shown.

View File

@ -0,0 +1 @@
.flex[data-v-f0ae5e89]{display:flex;flex-direction:column;height:100vh;width:100vw}.flex .van-nav-bar[data-v-f0ae5e89]{width:100%}.flex .content[data-v-f0ae5e89]{flex:1;padding:0 10px}.flex .content .grid-container[data-v-f0ae5e89]{display:grid;grid-template-columns:2fr 1fr 1.5fr 2fr}.flex .content .grid-container .grid-item[data-v-f0ae5e89]{border:1px solid #f2f2f2;text-align:center;padding:.46875rem 0;display:flex;flex-direction:column;justify-content:center}.flex .content .grid-container .grid-item[data-v-f0ae5e89] .van-cell{padding:0 5px}.footer-button[data-v-f0ae5e89]{margin:20px;display:flex;justify-content:space-around}[data-v-f0ae5e89] .van-field{font-size:16px}.a-c[data-v-f0ae5e89]{display:flex;align-items:center;justify-content:center}.a-c[data-v-f0ae5e89] .van-button--normal{padding:.25rem;height:1.5625rem;width:4em}.bor[data-v-f0ae5e89] .van-field__control{border:1px solid #d7d7d7}.bor-n[data-v-f0ae5e89] .van-field__control{border:none}[data-v-f0ae5e89] .van-field__control{border-bottom:1px solid #d7d7d7;text-align:center;font-size:16px}[data-v-f0ae5e89] .van-field__label{text-align:end}.box[data-v-f0ae5e89]{margin:.15625rem .625rem;border:.03125rem solid #d7d7d7;border-radius:.3125rem}.line[data-v-f0ae5e89]{border-bottom:.03125rem solid #d7d7d7;margin-bottom:.3125rem}

View File

@ -1 +0,0 @@
.flex[data-v-e4300a77]{display:flex;flex-direction:column;height:100vh;width:100vw}.flex .van-nav-bar[data-v-e4300a77]{width:100%}.flex .content[data-v-e4300a77]{flex:1;padding:0 10px}.flex .content .grid-container[data-v-e4300a77]{display:grid;grid-template-columns:2fr 1fr 1.5fr 2fr}.flex .content .grid-container .grid-item[data-v-e4300a77]{border:1px solid #f2f2f2;text-align:center;padding:.46875rem 0;display:flex;flex-direction:column;justify-content:center}.flex .content .grid-container .grid-item[data-v-e4300a77] .van-cell{padding:0 5px}.footer-button[data-v-e4300a77]{margin:20px;display:flex;justify-content:space-around}[data-v-e4300a77] .van-field{font-size:16px}.a-c[data-v-e4300a77]{display:flex;align-items:center;justify-content:center}.a-c[data-v-e4300a77] .van-button--normal{padding:.25rem;height:1.5625rem;width:4em}.bor[data-v-e4300a77] .van-field__control{border:1px solid #d7d7d7}.bor-n[data-v-e4300a77] .van-field__control{border:none}[data-v-e4300a77] .van-field__control{border-bottom:1px solid #d7d7d7;text-align:center;font-size:16px}[data-v-e4300a77] .van-field__label{text-align:end}.box[data-v-e4300a77]{margin:.15625rem .625rem;border:.03125rem solid #d7d7d7;border-radius:.3125rem}.line[data-v-e4300a77]{border-bottom:.03125rem solid #d7d7d7;margin-bottom:.3125rem}

View File

@ -1 +0,0 @@
.flex[data-v-646bbd1d]{display:flex;flex-direction:column;height:100vh;width:100vw;font-size:.75rem;overflow-y:hidden}.flex .van-nav-bar[data-v-646bbd1d]{width:100%}.flex .grid-container[data-v-646bbd1d]{display:grid;grid-template-columns:1.5fr 2fr 1.5fr 1fr;padding:0 .46875rem}.flex .grid-container .grid-item[data-v-646bbd1d]{border:1px solid #f2f2f2;display:flex;flex-direction:column;text-align:center;align-items:center;justify-content:center}.flex .grid-container .grid-item .grid-container1[data-v-646bbd1d]{display:grid;grid-template-columns:repeat(1,1fr);width:100%;height:100%}.flex .grid-container .grid-item .grid-container1 .grid-item2[data-v-646bbd1d]{display:flex;white-space:pre-line;align-items:center;justify-content:center;padding:.15625rem;word-break:break-all;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}.flex .grid-container .grid-item .grid-container1 .grid-item1[data-v-646bbd1d]{border-bottom:1px solid #f2f2f2;display:flex;align-items:center;justify-content:center;padding:.15625rem;word-break:break-all;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}.flex .content[data-v-646bbd1d]{flex:1;overflow-y:scroll;font-size:.75rem}.flex .grid-container3[data-v-646bbd1d]{display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr;text-align:center}.flex .grid-container3 .grid-item[data-v-646bbd1d]{color:#fff;border:1px solid #f2f2f2;display:flex;align-items:center;justify-content:center;padding:.15625rem;word-break:break-all;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}[data-v-646bbd1d] .van-cell{padding:5px!important}[data-v-646bbd1d] .van-field{font-size:16px}.bor[data-v-646bbd1d] .van-field__control{border:1px solid #d7d7d7;text-align:center}.bor[data-v-646bbd1d] .van-field__label{margin:0}.bor-a[data-v-646bbd1d] .van-field__control{border-bottom:1px solid #d7d7d7;text-align:center}.bor-a[data-v-646bbd1d] .van-field__label{margin:0}[data-v-646bbd1d] .van-button--normal{padding:5px 8px;height:30px;font-size:.6875rem}[data-v-646bbd1d] .van-field__control{text-align:center;font-size:16px}.footer-button[data-v-646bbd1d]{margin:.625rem;display:flex;justify-content:space-around}[data-v-646bbd1d] .select-model .van-picker__cancel,.select-model .van-picker__confirm[data-v-646bbd1d]{height:30px;padding:10px 16px 0}.select-model[data-v-646bbd1d]{position:relative}.confirm-select[data-v-646bbd1d]{width:100%}.confirm-select>p[data-v-646bbd1d]{text-align:center}.confirm-select>uni-button[data-v-646bbd1d]{border:none;background-color:#fff;color:#388aed;margin:10px 30px 0 0}.top-select[data-v-646bbd1d]{position:absolute;top:30px;left:0;right:0;margin:auto;z-index:999}[data-v-646bbd1d] .select-model .van-picker__toolbar{height:66px;align-items:flex-start}[data-v-646bbd1d] .select-model .van-picker__cancel,[data-v-646bbd1d] .select-model .van-picker__confirm{height:30px;padding:10px 16px 0}.search-btn[data-v-646bbd1d]{padding:1px 8px;border:none;background-color:#388aed;color:#fff;margin-left:5px;height:30px;line-height:25px}.search-box[data-v-646bbd1d]{display:flex;flex-direction:row;align-items:center;justify-content:center;padding-top:15px;padding-bottom:5px;position:relative;background-color:#fff}.van-search[data-v-646bbd1d]{background-color:#f7f7f8}.ml-search-jump[data-v-646bbd1d]{padding:3px 10px;background-color:#388aed;color:#fff;border:none;margin-left:10px}.flex-btn[data-v-646bbd1d]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}

View File

@ -0,0 +1 @@
.flex[data-v-c84293ad]{display:flex;flex-direction:column;height:100vh;width:100vw;font-size:.75rem;overflow-y:hidden}.flex .van-nav-bar[data-v-c84293ad]{width:100%}.flex .grid-container[data-v-c84293ad]{display:grid;grid-template-columns:1.5fr 2fr 1.5fr 1fr;padding:0 .46875rem}.flex .grid-container .grid-item[data-v-c84293ad]{border:1px solid #f2f2f2;display:flex;flex-direction:column;text-align:center;align-items:center;justify-content:center}.flex .grid-container .grid-item .grid-container1[data-v-c84293ad]{display:grid;grid-template-columns:repeat(1,1fr);width:100%;height:100%}.flex .grid-container .grid-item .grid-container1 .grid-item2[data-v-c84293ad]{display:flex;white-space:pre-line;align-items:center;justify-content:center;padding:.15625rem;word-break:break-all;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}.flex .grid-container .grid-item .grid-container1 .grid-item1[data-v-c84293ad]{border-bottom:1px solid #f2f2f2;display:flex;align-items:center;justify-content:center;padding:.15625rem;word-break:break-all;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}.flex .content[data-v-c84293ad]{flex:1;overflow-y:scroll;font-size:.75rem}.flex .grid-container3[data-v-c84293ad]{display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr;text-align:center}.flex .grid-container3 .grid-item[data-v-c84293ad]{color:#fff;border:1px solid #f2f2f2;display:flex;align-items:center;justify-content:center;padding:.15625rem;word-break:break-all;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}[data-v-c84293ad] .van-cell{padding:5px!important}[data-v-c84293ad] .van-field{font-size:16px}.bor[data-v-c84293ad] .van-field__control{border:1px solid #d7d7d7;text-align:center}.bor[data-v-c84293ad] .van-field__label{margin:0}.bor-a[data-v-c84293ad] .van-field__control{border-bottom:1px solid #d7d7d7;text-align:center}.bor-a[data-v-c84293ad] .van-field__label{margin:0}[data-v-c84293ad] .van-button--normal{padding:5px 8px;height:30px;font-size:.6875rem}[data-v-c84293ad] .van-field__control{text-align:center;font-size:16px}.footer-button[data-v-c84293ad]{margin:.625rem;display:flex;justify-content:space-around}[data-v-c84293ad] .select-model .van-picker__cancel,.select-model .van-picker__confirm[data-v-c84293ad]{height:30px;padding:10px 16px 0}.select-model[data-v-c84293ad]{position:relative}.confirm-select[data-v-c84293ad]{width:100%}.confirm-select>p[data-v-c84293ad]{text-align:center}.confirm-select>uni-button[data-v-c84293ad]{border:none;background-color:#fff;color:#388aed;margin:10px 30px 0 0}.top-select[data-v-c84293ad]{position:absolute;top:30px;left:0;right:0;margin:auto;z-index:999}[data-v-c84293ad] .select-model .van-picker__toolbar{height:66px;align-items:flex-start}[data-v-c84293ad] .select-model .van-picker__cancel,[data-v-c84293ad] .select-model .van-picker__confirm{height:30px;padding:10px 16px 0}.search-btn[data-v-c84293ad]{padding:1px 8px;border:none;background-color:#388aed;color:#fff;margin-left:5px;height:30px;line-height:25px}.search-box[data-v-c84293ad]{display:flex;flex-direction:row;align-items:center;justify-content:center;padding-top:15px;padding-bottom:5px;position:relative;background-color:#fff}.van-search[data-v-c84293ad]{background-color:#f7f7f8}.ml-search-jump[data-v-c84293ad]{padding:3px 10px;background-color:#388aed;color:#fff;border:none;margin-left:10px}.flex-btn[data-v-c84293ad]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}

View File

@ -1 +1 @@
import{J as a,K as e,L as t,M as o,k as s,N as l,O as n,P as r,Q as c,R as i,I as d,S as u,a as m}from"./index-BAgZZwqh.js";let f;let p=a({},{title:"",width:"",theme:null,message:"",overlay:!0,callback:null,teleport:"body",className:"",allowHtml:!1,lockScroll:!0,transition:void 0,beforeClose:null,overlayClass:"",overlayStyle:void 0,messageAlign:"",cancelButtonText:"",cancelButtonColor:null,cancelButtonDisabled:!1,confirmButtonText:"",confirmButtonColor:null,confirmButtonDisabled:!1,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1});function h(r){return e?new Promise(((e,c)=>{f||function(){const a={setup(){const{state:a,toggle:e}=o();return()=>s(n,l(a,{"onUpdate:show":e}),null)}};({instance:f}=t(a))}(),f.open(a({},p,r,{callback:a=>{("confirm"===a?e:c)(a)}}))})):Promise.resolve(void 0)}const g=e=>h(a({showCancelButton:!0},e)),b="/api",v="",B="/mes",w="/mes";function C(a,e,t={},o={}){return new Promise(((s,l)=>{const n=r("token"),f={"Content-Type":"application/json;charset=UTF-8",Authorization:"Bearer "+n},p=Object.assign({},f,o);let g="";g=a.includes("/v1")?v:"/fabric/info/all"===a||"/color/list"===a||a.includes("/fabric/info/craftPrice")?B:a.includes("fabric/craft")?w:b,"/upload"===a?c({url:g+a,file:t,header:{Authorization:"Bearer "+n},success:a=>{let e=JSON.parse(a.data);s(e)}}):i({url:g+a,method:e,data:t,header:p,success:a=>{var e;a.data&&200===a.data.code?s(a.data):a.data&&401===a.data.code?(d({icon:"error",title:"登录过期!"}),u(),m({url:"/pages/login/login"}),l(new Error("请求失败: "+(a.data&&(null==(e=a.data)?void 0:e.message)||"未知错误")))):a.data&&401===a.data.code?d({icon:"error",title:"暂无权限!"}):7778===a.data.code||7777===a.data.code?s(a.data):h({title:a.data.msg}).then((()=>{}))},fail:a=>{l(a)}})}))}const P=(a,e={},t={})=>C(a,"POST",e,t),T=(a,e={},t={})=>C(a,"GET",e,t),y=(a,e={},t={})=>C(a,"PUT",e,t),O=(a,e={},t={})=>C(a,"DELETE",e,t),k=(a,e={})=>C(a,"",e);export{y as a,h as b,O as d,T as g,P as p,g as s,k as u};
import{J as a,K as e,L as t,M as o,k as s,N as l,O as n,P as r,Q as c,R as i,I as d,S as u,a as m}from"./index-U_fosny-.js";let f;let p=a({},{title:"",width:"",theme:null,message:"",overlay:!0,callback:null,teleport:"body",className:"",allowHtml:!1,lockScroll:!0,transition:void 0,beforeClose:null,overlayClass:"",overlayStyle:void 0,messageAlign:"",cancelButtonText:"",cancelButtonColor:null,cancelButtonDisabled:!1,confirmButtonText:"",confirmButtonColor:null,confirmButtonDisabled:!1,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1});function h(r){return e?new Promise(((e,c)=>{f||function(){const a={setup(){const{state:a,toggle:e}=o();return()=>s(n,l(a,{"onUpdate:show":e}),null)}};({instance:f}=t(a))}(),f.open(a({},p,r,{callback:a=>{("confirm"===a?e:c)(a)}}))})):Promise.resolve(void 0)}const g=e=>h(a({showCancelButton:!0},e)),b="/api",v="",B="/mes",w="/mes";function C(a,e,t={},o={}){return new Promise(((s,l)=>{const n=r("token"),f={"Content-Type":"application/json;charset=UTF-8",Authorization:"Bearer "+n},p=Object.assign({},f,o);let g="";g=a.includes("/v1")?v:"/fabric/info/all"===a||"/color/list"===a||a.includes("/fabric/info/craftPrice")?B:a.includes("fabric/craft")?w:b,"/upload"===a?c({url:g+a,file:t,header:{Authorization:"Bearer "+n},success:a=>{let e=JSON.parse(a.data);s(e)}}):i({url:g+a,method:e,data:t,header:p,success:a=>{var e;a.data&&200===a.data.code?s(a.data):a.data&&401===a.data.code?(d({icon:"error",title:"登录过期!"}),u(),m({url:"/pages/login/login"}),l(new Error("请求失败: "+(a.data&&(null==(e=a.data)?void 0:e.message)||"未知错误")))):a.data&&401===a.data.code?d({icon:"error",title:"暂无权限!"}):7778===a.data.code||7777===a.data.code?s(a.data):h({title:a.data.msg}).then((()=>{}))},fail:a=>{l(a)}})}))}const P=(a,e={},t={})=>C(a,"POST",e,t),T=(a,e={},t={})=>C(a,"GET",e,t),y=(a,e={},t={})=>C(a,"PUT",e,t),O=(a,e={},t={})=>C(a,"DELETE",e,t),k=(a,e={})=>C(a,"",e);export{y as a,h as b,O as d,T as g,P as p,g as s,k as u};

View File

@ -1 +0,0 @@
.flex[data-v-4480987a]{display:flex;flex-direction:column;height:100vh;width:100vw;overflow-y:hidden}.flex .van-nav-bar[data-v-4480987a]{width:100%}.flex .grid-container[data-v-4480987a]{display:grid;grid-template-columns:1.5fr 2fr 1fr 1.5fr;padding:0 .46875rem}.flex .grid-container .grid-item[data-v-4480987a]{border:1px solid #f2f2f2;display:flex;align-items:center;text-align:center;justify-content:center;word-break:break-all;-webkit-box-orient:vertical;overflow:hidden}.flex .content[data-v-4480987a]{flex:1;overflow-y:scroll}[data-v-4480987a] .van-cell{padding:5px!important}[data-v-4480987a] .van-field{font-size:16px}.bor[data-v-4480987a] .van-field__control{border:1px solid #d7d7d7;text-align:center}.bor[data-v-4480987a] .van-field__label{margin:0}.bor-a[data-v-4480987a] .van-field__control{border-bottom:1px solid #d7d7d7;text-align:center}.bor-a[data-v-4480987a] .van-field__label{margin:0}[data-v-4480987a] .van-button--normal{padding:5px 8px;height:30px}[data-v-4480987a] .van-field__control{text-align:center;font-size:16px}.select-model[data-v-4480987a]{position:relative}.confirm-select[data-v-4480987a]{width:100%}.confirm-select>p[data-v-4480987a]{text-align:center}.confirm-select>uni-button[data-v-4480987a]{border:none;background-color:#fff;color:#388aed;margin:10px 30px 0 0}.top-select[data-v-4480987a]{position:absolute;top:30px;left:0;right:0;margin:auto;z-index:999}[data-v-4480987a] .select-model .van-picker__toolbar{height:66px;align-items:flex-start}[data-v-4480987a] .select-model .van-picker__cancel,.select-model .van-picker__confirm[data-v-4480987a],[data-v-4480987a] .select-model .van-picker__confirm{height:30px;padding:10px 16px 0}.search-btn[data-v-4480987a]{padding:1px 8px;border:none;background-color:#388aed;color:#fff;margin-left:5px;height:30px;line-height:25px}.search-box[data-v-4480987a]{display:flex;flex-direction:row;align-items:center;justify-content:center;padding-top:15px;padding-bottom:5px;position:relative;background-color:#fff}.van-search[data-v-4480987a]{background-color:#f7f7f8}.ml-search-jump[data-v-4480987a]{padding:3px 10px;background-color:#388aed;color:#fff;border:none;margin-left:10px}.flex-btn[data-v-4480987a]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}

View File

@ -0,0 +1 @@
.flex[data-v-7018b460]{display:flex;flex-direction:column;height:100vh;width:100vw;overflow-y:hidden}.flex .van-nav-bar[data-v-7018b460]{width:100%}.flex .grid-container[data-v-7018b460]{display:grid;grid-template-columns:1.5fr 2fr 1fr 1.5fr;padding:0 .46875rem}.flex .grid-container .grid-item[data-v-7018b460]{border:1px solid #f2f2f2;display:flex;align-items:center;text-align:center;justify-content:center;word-break:break-all;-webkit-box-orient:vertical;overflow:hidden}.flex .content[data-v-7018b460]{flex:1;overflow-y:scroll}[data-v-7018b460] .van-cell{padding:5px!important}[data-v-7018b460] .van-field{font-size:16px}.bor[data-v-7018b460] .van-field__control{border:1px solid #d7d7d7;text-align:center}.bor[data-v-7018b460] .van-field__label{margin:0}.bor-a[data-v-7018b460] .van-field__control{border-bottom:1px solid #d7d7d7;text-align:center}.bor-a[data-v-7018b460] .van-field__label{margin:0}[data-v-7018b460] .van-button--normal{padding:5px 8px;height:30px}[data-v-7018b460] .van-field__control{text-align:center;font-size:16px}.select-model[data-v-7018b460]{position:relative}.confirm-select[data-v-7018b460]{width:100%}.confirm-select>p[data-v-7018b460]{text-align:center}.confirm-select>uni-button[data-v-7018b460]{border:none;background-color:#fff;color:#388aed;margin:10px 30px 0 0}.top-select[data-v-7018b460]{position:absolute;top:30px;left:0;right:0;margin:auto;z-index:999}[data-v-7018b460] .select-model .van-picker__toolbar{height:66px;align-items:flex-start}[data-v-7018b460] .select-model .van-picker__cancel,.select-model .van-picker__confirm[data-v-7018b460],[data-v-7018b460] .select-model .van-picker__confirm{height:30px;padding:10px 16px 0}.search-btn[data-v-7018b460]{padding:1px 8px;border:none;background-color:#388aed;color:#fff;margin-left:5px;height:30px;line-height:25px}.search-box[data-v-7018b460]{display:flex;flex-direction:row;align-items:center;justify-content:center;padding-top:15px;padding-bottom:5px;position:relative;background-color:#fff}.van-search[data-v-7018b460]{background-color:#f7f7f8}.ml-search-jump[data-v-7018b460]{padding:3px 10px;background-color:#388aed;color:#fff;border:none;margin-left:10px}.flex-btn[data-v-7018b460]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}

View File

@ -1 +1 @@
import{d as l,r as e,o as a,j as t,b as o,c as s,w as d,k as u,l as n,m as r,e as c,f as i,F as m,a2 as p,i as f,t as v}from"./index-BAgZZwqh.js";import{g as _}from"./index.CCkKeMRW.js";import{a as b}from"./uni-app.es.DmKENPst.js";import{_ as g}from"./_plugin-vue_export-helper.BCo6x5W8.js";const V=g(l({__name:"PhysicalChemical",props:{item:{}},setup(l){const g=e({}),V=e([]),y=e({});b((async l=>{y.value=JSON.parse(l.item),console.log(y.value)})),a((()=>{_("/physicalTest/"+y.value.physicalTest).then((l=>{200===l.code&&(V.value=l.data.content.content,g.value=l.data.content)}))}));const h=()=>{p()};return(l,e)=>{const a=t("van-nav-bar"),p=t("van-field"),_=f,b=t("van-cell-group");return o(),s(_,{class:"flex"},{default:d((()=>[u(a,{title:"理化报告","left-text":"返回","left-arrow":"",onClickLeft:h}),u(_,{class:"content"},{default:d((()=>[u(b,{inset:""},{default:d((()=>[u(p,{label:"验布日期","label-width":"5em",colon:"",modelValue:g.value.ybrq,"onUpdate:modelValue":e[0]||(e[0]=l=>g.value.ybrq=l),readonly:""},null,8,["modelValue"]),u(p,{label:"面料编号","label-width":"5em",colon:"",modelValue:y.value.mlxq.code,"onUpdate:modelValue":e[1]||(e[1]=l=>y.value.mlxq.code=l),readonly:""},null,8,["modelValue"]),u(p,{label:"面料名称","label-width":"5em",colon:"",modelValue:y.value.fabric,"onUpdate:modelValue":e[2]||(e[2]=l=>y.value.fabric=l),readonly:""},null,8,["modelValue"]),u(p,{label:"颜色","label-width":"5em",colon:"",modelValue:y.value.color,"onUpdate:modelValue":e[3]||(e[3]=l=>y.value.color=l),readonly:""},null,8,["modelValue"]),n("p",{style:{margin:"10rpx 0"}},"判断依据GB 18401-2010B国家放纺织产品基本安全技术规范"),n("p",null,"检查结果如下:"),u(_,{class:"grid-container"},{default:d((()=>[u(_,{class:"grid-item"},{default:d((()=>[r("项目")])),_:1}),u(_,{class:"grid-item"},{default:d((()=>[r("标准值")])),_:1}),u(_,{class:"grid-item"},{default:d((()=>[r("实测值")])),_:1}),u(_,{class:"grid-item"},{default:d((()=>[r("单项判定")])),_:1})])),_:1}),(o(!0),c(m,null,i(V.value,((l,e)=>(o(),s(_,{class:"grid-container",key:e},{default:d((()=>[u(_,{class:"grid-item"},{default:d((()=>[r(v(l.name),1)])),_:2},1024),u(_,{class:"grid-item"},{default:d((()=>[r(v(l.name1),1)])),_:2},1024),u(_,{class:"grid-item"},{default:d((()=>[r(v(l.scz),1)])),_:2},1024),u(_,{class:"grid-item"},{default:d((()=>[r(v(l.pdx),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1}),u(p,{label:"质检员","label-width":"4em",colon:"",modelValue:g.value.czr,"onUpdate:modelValue":e[4]||(e[4]=l=>g.value.czr=l),readonly:""},null,8,["modelValue"])])),_:1})}}}),[["__scopeId","data-v-27a8bb3a"]]);export{V as default};
import{d as l,r as e,o as a,j as t,b as o,c as s,w as d,k as u,l as n,m as r,e as c,f as i,F as m,a2 as p,i as f,t as v}from"./index-U_fosny-.js";import{g as _}from"./index.C7MUwTcc.js";import{a as b}from"./uni-app.es.CB2yB8P5.js";import{_ as g}from"./_plugin-vue_export-helper.BCo6x5W8.js";const V=g(l({__name:"PhysicalChemical",props:{item:{}},setup(l){const g=e({}),V=e([]),y=e({});b((async l=>{y.value=JSON.parse(l.item),console.log(y.value)})),a((()=>{_("/physicalTest/"+y.value.physicalTest).then((l=>{200===l.code&&(V.value=l.data.content.content,g.value=l.data.content)}))}));const h=()=>{p()};return(l,e)=>{const a=t("van-nav-bar"),p=t("van-field"),_=f,b=t("van-cell-group");return o(),s(_,{class:"flex"},{default:d((()=>[u(a,{title:"理化报告","left-text":"返回","left-arrow":"",onClickLeft:h}),u(_,{class:"content"},{default:d((()=>[u(b,{inset:""},{default:d((()=>[u(p,{label:"验布日期","label-width":"5em",colon:"",modelValue:g.value.ybrq,"onUpdate:modelValue":e[0]||(e[0]=l=>g.value.ybrq=l),readonly:""},null,8,["modelValue"]),u(p,{label:"面料编号","label-width":"5em",colon:"",modelValue:y.value.mlxq.code,"onUpdate:modelValue":e[1]||(e[1]=l=>y.value.mlxq.code=l),readonly:""},null,8,["modelValue"]),u(p,{label:"面料名称","label-width":"5em",colon:"",modelValue:y.value.fabric,"onUpdate:modelValue":e[2]||(e[2]=l=>y.value.fabric=l),readonly:""},null,8,["modelValue"]),u(p,{label:"颜色","label-width":"5em",colon:"",modelValue:y.value.color,"onUpdate:modelValue":e[3]||(e[3]=l=>y.value.color=l),readonly:""},null,8,["modelValue"]),n("p",{style:{margin:"10rpx 0"}},"判断依据GB 18401-2010B国家放纺织产品基本安全技术规范"),n("p",null,"检查结果如下:"),u(_,{class:"grid-container"},{default:d((()=>[u(_,{class:"grid-item"},{default:d((()=>[r("项目")])),_:1}),u(_,{class:"grid-item"},{default:d((()=>[r("标准值")])),_:1}),u(_,{class:"grid-item"},{default:d((()=>[r("实测值")])),_:1}),u(_,{class:"grid-item"},{default:d((()=>[r("单项判定")])),_:1})])),_:1}),(o(!0),c(m,null,i(V.value,((l,e)=>(o(),s(_,{class:"grid-container",key:e},{default:d((()=>[u(_,{class:"grid-item"},{default:d((()=>[r(v(l.name),1)])),_:2},1024),u(_,{class:"grid-item"},{default:d((()=>[r(v(l.name1),1)])),_:2},1024),u(_,{class:"grid-item"},{default:d((()=>[r(v(l.scz),1)])),_:2},1024),u(_,{class:"grid-item"},{default:d((()=>[r(v(l.pdx),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1}),u(p,{label:"质检员","label-width":"4em",colon:"",modelValue:g.value.czr,"onUpdate:modelValue":e[4]||(e[4]=l=>g.value.czr=l),readonly:""},null,8,["modelValue"])])),_:1})}}}),[["__scopeId","data-v-27a8bb3a"]]);export{V as default};

View File

@ -1 +1 @@
import{d as l,r as e,j as a,x as o,b as n,e as t,k as u,w as d,l as s,c as i,h as m,m as r,F as j,B as c,i as v}from"./index-BAgZZwqh.js";import{_ as b}from"./cshaptx4869-scancode.eFuhAo_s.js";import{r as h}from"./uni-app.es.DmKENPst.js";import{_ as g}from"./_plugin-vue_export-helper.BCo6x5W8.js";const p=g(l({__name:"ScanCodeStorage",setup(l){const g=()=>{history.back()},p=e(!1);function V(){p.value=!0}function f(l){p.value=!1}function z(l){c({title:l.errName,content:l.errMsg,complete:()=>{p.value=!1}})}function w(){p.value=!1}const y=e(!1),_=e({}),x=()=>{};return(l,e)=>{const c=a("van-nav-bar"),U=a("van-image"),k=v,C=h(o("cshaptx4869-scancode"),b),S=a("van-field"),F=a("van-button"),M=a("van-dialog");return n(),t(j,null,[u(k,{class:"flex"},{default:d((()=>[u(c,{title:"扫描暂存","left-text":"返回","left-arrow":"",onClickLeft:g}),s("h3",{style:{"text-align":"center"}},"请扫描面料编码"),u(k,{style:{"text-align":"center","margin-top":"100rpx"}},{default:d((()=>[u(U,{width:"100",height:"100",src:"../../static/zhaoxiangji.png",onClick:V})])),_:1})])),_:1}),p.value?(n(),i(C,{key:0,onSuccess:f,onFail:z,onClose:w})):m("",!0),u(M,{show:y.value,"onUpdate:show":e[11]||(e[11]=l=>y.value=l)},{footer:d((()=>[u(k,{class:"footer-button"},{default:d((()=>[u(F,{size:"small",style:{width:"25vw"},onClick:e[10]||(e[10]=l=>y.value=!1)},{default:d((()=>[r(" 取消 ")])),_:1}),u(F,{size:"small",type:"success",style:{width:"25vw"},onClick:x},{default:d((()=>[r(" 暂存 ")])),_:1})])),_:1})])),default:d((()=>[u(k,{style:{margin:"10rpx 5rpx"}},{default:d((()=>[u(S,{label:"质检时间","label-width":"5.5em",colon:"","label-align":"right",modelValue:_.value.zjsj,"onUpdate:modelValue":e[0]||(e[0]=l=>_.value.zjsj=l),readonly:""},null,8,["modelValue"]),u(S,{label:"质检人员","label-width":"5.5em",colon:"","label-align":"right",modelValue:_.value.zjsj,"onUpdate:modelValue":e[1]||(e[1]=l=>_.value.zjsj=l),readonly:""},null,8,["modelValue"]),u(S,{label:"供应商名","label-width":"5.5em",colon:"","label-align":"right",modelValue:_.value.zjsj,"onUpdate:modelValue":e[2]||(e[2]=l=>_.value.zjsj=l),readonly:""},null,8,["modelValue"]),u(S,{label:"面料名称","label-width":"5.5em",colon:"","label-align":"right",modelValue:_.value.zjsj,"onUpdate:modelValue":e[3]||(e[3]=l=>_.value.zjsj=l),readonly:""},null,8,["modelValue"]),u(S,{label:"面料编号","label-width":"5.5em",colon:"","label-align":"right",modelValue:_.value.zjsj,"onUpdate:modelValue":e[4]||(e[4]=l=>_.value.zjsj=l),readonly:""},null,8,["modelValue"]),u(S,{label:"面料米数","label-width":"5.5em",colon:"","label-align":"right",modelValue:_.value.zjsj,"onUpdate:modelValue":e[5]||(e[5]=l=>_.value.zjsj=l),readonly:""},null,8,["modelValue"]),u(S,{label:"入库人","label-width":"5.5em",colon:"","label-align":"right",modelValue:_.value.zjsj,"onUpdate:modelValue":e[6]||(e[6]=l=>_.value.zjsj=l),readonly:""},null,8,["modelValue"]),u(S,{label:"白胚等级","label-width":"5.5em",colon:"","label-align":"right",modelValue:_.value.zjsj,"onUpdate:modelValue":e[7]||(e[7]=l=>_.value.zjsj=l),readonly:""},null,8,["modelValue"]),u(S,{label:"面料状态","label-width":"5.5em",colon:"","label-align":"right",modelValue:_.value.zjsj,"onUpdate:modelValue":e[8]||(e[8]=l=>_.value.zjsj=l),readonly:""},null,8,["modelValue"]),u(S,{label:"入库时间","label-width":"5.5em",colon:"","label-align":"right",modelValue:_.value.zjsj,"onUpdate:modelValue":e[9]||(e[9]=l=>_.value.zjsj=l),readonly:""},null,8,["modelValue"])])),_:1})])),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-32f9d9e2"]]);export{p as default};
import{d as l,r as e,j as a,x as o,b as n,e as t,k as u,w as d,l as s,c as i,h as m,m as r,F as j,B as c,i as v}from"./index-U_fosny-.js";import{_ as b}from"./cshaptx4869-scancode.aM_nq0qT.js";import{r as h}from"./uni-app.es.CB2yB8P5.js";import{_ as g}from"./_plugin-vue_export-helper.BCo6x5W8.js";const p=g(l({__name:"ScanCodeStorage",setup(l){const g=()=>{history.back()},p=e(!1);function V(){p.value=!0}function f(l){p.value=!1}function z(l){c({title:l.errName,content:l.errMsg,complete:()=>{p.value=!1}})}function w(){p.value=!1}const y=e(!1),_=e({}),x=()=>{};return(l,e)=>{const c=a("van-nav-bar"),U=a("van-image"),k=v,C=h(o("cshaptx4869-scancode"),b),S=a("van-field"),F=a("van-button"),M=a("van-dialog");return n(),t(j,null,[u(k,{class:"flex"},{default:d((()=>[u(c,{title:"扫描暂存","left-text":"返回","left-arrow":"",onClickLeft:g}),s("h3",{style:{"text-align":"center"}},"请扫描面料编码"),u(k,{style:{"text-align":"center","margin-top":"100rpx"}},{default:d((()=>[u(U,{width:"100",height:"100",src:"../../static/zhaoxiangji.png",onClick:V})])),_:1})])),_:1}),p.value?(n(),i(C,{key:0,onSuccess:f,onFail:z,onClose:w})):m("",!0),u(M,{show:y.value,"onUpdate:show":e[11]||(e[11]=l=>y.value=l)},{footer:d((()=>[u(k,{class:"footer-button"},{default:d((()=>[u(F,{size:"small",style:{width:"25vw"},onClick:e[10]||(e[10]=l=>y.value=!1)},{default:d((()=>[r(" 取消 ")])),_:1}),u(F,{size:"small",type:"success",style:{width:"25vw"},onClick:x},{default:d((()=>[r(" 暂存 ")])),_:1})])),_:1})])),default:d((()=>[u(k,{style:{margin:"10rpx 5rpx"}},{default:d((()=>[u(S,{label:"质检时间","label-width":"5.5em",colon:"","label-align":"right",modelValue:_.value.zjsj,"onUpdate:modelValue":e[0]||(e[0]=l=>_.value.zjsj=l),readonly:""},null,8,["modelValue"]),u(S,{label:"质检人员","label-width":"5.5em",colon:"","label-align":"right",modelValue:_.value.zjsj,"onUpdate:modelValue":e[1]||(e[1]=l=>_.value.zjsj=l),readonly:""},null,8,["modelValue"]),u(S,{label:"供应商名","label-width":"5.5em",colon:"","label-align":"right",modelValue:_.value.zjsj,"onUpdate:modelValue":e[2]||(e[2]=l=>_.value.zjsj=l),readonly:""},null,8,["modelValue"]),u(S,{label:"面料名称","label-width":"5.5em",colon:"","label-align":"right",modelValue:_.value.zjsj,"onUpdate:modelValue":e[3]||(e[3]=l=>_.value.zjsj=l),readonly:""},null,8,["modelValue"]),u(S,{label:"面料编号","label-width":"5.5em",colon:"","label-align":"right",modelValue:_.value.zjsj,"onUpdate:modelValue":e[4]||(e[4]=l=>_.value.zjsj=l),readonly:""},null,8,["modelValue"]),u(S,{label:"面料米数","label-width":"5.5em",colon:"","label-align":"right",modelValue:_.value.zjsj,"onUpdate:modelValue":e[5]||(e[5]=l=>_.value.zjsj=l),readonly:""},null,8,["modelValue"]),u(S,{label:"入库人","label-width":"5.5em",colon:"","label-align":"right",modelValue:_.value.zjsj,"onUpdate:modelValue":e[6]||(e[6]=l=>_.value.zjsj=l),readonly:""},null,8,["modelValue"]),u(S,{label:"白胚等级","label-width":"5.5em",colon:"","label-align":"right",modelValue:_.value.zjsj,"onUpdate:modelValue":e[7]||(e[7]=l=>_.value.zjsj=l),readonly:""},null,8,["modelValue"]),u(S,{label:"面料状态","label-width":"5.5em",colon:"","label-align":"right",modelValue:_.value.zjsj,"onUpdate:modelValue":e[8]||(e[8]=l=>_.value.zjsj=l),readonly:""},null,8,["modelValue"]),u(S,{label:"入库时间","label-width":"5.5em",colon:"","label-align":"right",modelValue:_.value.zjsj,"onUpdate:modelValue":e[9]||(e[9]=l=>_.value.zjsj=l),readonly:""},null,8,["modelValue"])])),_:1})])),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-32f9d9e2"]]);export{p as default};

View File

@ -1 +1 @@
import{d as e,r as a,o as l,j as t,x as s,b as n,e as o,k as u,w as i,m as r,F as c,f as d,l as m,c as p,h as v,q as f,B as _,a2 as h,i as g,t as y}from"./index-BAgZZwqh.js";import{_ as x}from"./cshaptx4869-scancode.eFuhAo_s.js";import{r as b}from"./uni-app.es.DmKENPst.js";import{f as w}from"./date.kFpT0SQ2.js";import{g as k,p as z}from"./index.CCkKeMRW.js";import{_ as C}from"./_plugin-vue_export-helper.BCo6x5W8.js";const V=C(e({__name:"chemical",setup(e){const C=a({ybrq:w(new Date),list:[]}),V=a(!1),q=a(!1),j=a([]),U=a([]),O=a([]);l((()=>{k("/pti").then((e=>{200===e.code&&(U.value=JSON.parse(e.data.payload))})),k("/v1/user/getNames").then((e=>{200===e.code&&(O.value=e.data)}))}));const N=e=>{C.value.ybrq=w(e),q.value=!1},B=()=>{history.back()},D=a({}),F=e=>{V.value=!0,D.value=e,j.value="czr"==e?O.value.map((e=>({text:e,value:e}))):e.options.map((e=>({text:e.name,value:e.name})))},L=e=>{if("czr"==D.value)C.value.czr=e.selectedOptions[0].text;else{D.value.scz=e.selectedOptions[0].text;let a=D.value.options.find((a=>a.name==e.selectedOptions[0].text));D.value.pdx=a.default?"符合":"不符合"}M()},M=()=>{V.value=!1},S=a(!1);function E(){S.value=!0}function G(e){S.value=!1,C.value.list.find((a=>a==e))?f("已存在该面料编号!"):C.value.list.push(e)}function I(e){_({title:e.errName,content:e.errMsg,complete:()=>{S.value=!1}})}function J(){S.value=!1}const P=()=>{if(0==C.value.list.length)return f("请扫描面料!");if(0==C.value.czr)return f("请选择操作人!");let e=!0;if(U.value.forEach((a=>{a.scz||(e=!1)})),!e)return f("请填写完整信息!");let a={list:C.value.list,content:U.value,ybrq:C.value.ybrq,czr:C.value.czr};z("/physicalTest",{content:a}).then((e=>{200===e.code&&h()}))};return(e,a)=>{const l=t("van-nav-bar"),f=t("van-field"),_=t("van-button"),h=t("van-icon"),w=g,k=t("van-cell-group"),z=t("van-calendar"),O=t("van-picker"),D=t("van-popup"),R=b(s("cshaptx4869-scancode"),x);return n(),o(c,null,[u(w,{class:"flex"},{default:i((()=>[u(l,{title:"理化报告","left-text":"返回","left-arrow":"",onClickLeft:B}),u(w,{class:"content"},{default:i((()=>[u(k,{inset:""},{default:i((()=>[u(f,{class:"bor",label:"验布日期","label-width":"5em",colon:"",modelValue:C.value.ybrq,"onUpdate:modelValue":a[0]||(a[0]=e=>C.value.ybrq=e),readonly:"",rules:[{required:!0,message:"请填写"}],onClick:a[1]||(a[1]=e=>{q.value=!0})},null,8,["modelValue"]),u(f,{label:"面料信息","label-width":"5em",colon:""},{input:i((()=>[u(_,{type:"primary",onClick:E},{default:i((()=>[r("扫一扫")])),_:1})])),_:1}),u(w,{class:"grid-container"},{default:i((()=>[(n(!0),o(c,null,d(C.value.list,((e,a)=>(n(),p(w,{class:"grid-item"},{default:i((()=>[m("p",{style:{width:"80%"}},y(e),1),u(h,{name:"cross",onClick:e=>C.value.list.splice(a,1)},null,8,["onClick"])])),_:2},1024)))),256))])),_:1}),m("p",{class:"lin"}),m("p",{style:{margin:"10rpx 0"}},"判断依据GB 18401-2010B国家放纺织产品基本安全技术规范"),m("p",{class:"lin"}),m("p",null,"检查结果如下:"),u(w,{class:"grid-container1"},{default:i((()=>[u(w,{class:"grid-item1"},{default:i((()=>[r("项目")])),_:1}),u(w,{class:"grid-item1"},{default:i((()=>[r("标准值")])),_:1}),u(w,{class:"grid-item1"},{default:i((()=>[r("实测值")])),_:1}),u(w,{class:"grid-item1"},{default:i((()=>[r("单项判定")])),_:1})])),_:1}),(n(!0),o(c,null,d(U.value,((e,a)=>(n(),p(w,{class:"grid-container1",key:a},{default:i((()=>[u(w,{class:"grid-item1"},{default:i((()=>[r(y(e.name),1)])),_:2},1024),u(w,{class:"grid-item1"},{default:i((()=>[r(y(e.name1),1)])),_:2},1024),u(w,{class:"grid-item1"},{default:i((()=>[u(f,{class:"bor",modelValue:e.scz,"onUpdate:modelValue":a=>e.scz=a,readonly:"",rules:e.necessary?[{required:!0,message:"请填写"}]:[],onClick:a=>F(e)},null,8,["modelValue","onUpdate:modelValue","rules","onClick"])])),_:2},1024),u(w,{class:"grid-item1"},{default:i((()=>[r(y(e.pdx),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1}),u(f,{class:"bor",label:"操作人","label-width":"4em",colon:"",modelValue:C.value.czr,"onUpdate:modelValue":a[2]||(a[2]=e=>C.value.czr=e),readonly:"",onClick:a[3]||(a[3]=e=>F("czr"))},null,8,["modelValue"]),u(w,{style:{"text-align":"center",margin:"10rpx"}},{default:i((()=>[u(_,{type:"primary",onClick:P,style:{width:"80px"}},{default:i((()=>[r("提交")])),_:1})])),_:1})])),_:1}),u(z,{show:q.value,"onUpdate:show":a[4]||(a[4]=e=>q.value=e),onConfirm:N,"min-date":new Date(2010,0,1),"max-date":new Date(2050,0,31)},null,8,["show","min-date","max-date"]),u(D,{show:V.value,"onUpdate:show":a[5]||(a[5]=e=>V.value=e),round:"",position:"bottom"},{default:i((()=>[u(O,{"show-toolbar":"",columns:j.value,onConfirm:L,onCancel:M,ref:"pickerRef"},null,8,["columns"])])),_:1},8,["show"]),S.value?(n(),p(R,{key:0,onSuccess:G,onFail:I,onClose:J})):v("",!0)],64)}}}),[["__scopeId","data-v-efcd8e2f"]]);export{V as default};
import{d as e,r as a,o as l,j as t,x as s,b as n,e as o,k as u,w as i,m as r,F as c,f as d,l as m,c as p,h as v,q as f,B as _,a2 as h,i as g,t as y}from"./index-U_fosny-.js";import{_ as x}from"./cshaptx4869-scancode.aM_nq0qT.js";import{r as b}from"./uni-app.es.CB2yB8P5.js";import{f as w}from"./date.kFpT0SQ2.js";import{g as k,p as z}from"./index.C7MUwTcc.js";import{_ as C}from"./_plugin-vue_export-helper.BCo6x5W8.js";const V=C(e({__name:"chemical",setup(e){const C=a({ybrq:w(new Date),list:[]}),V=a(!1),q=a(!1),j=a([]),U=a([]),O=a([]);l((()=>{k("/pti").then((e=>{200===e.code&&(U.value=JSON.parse(e.data.payload))})),k("/v1/user/getNames").then((e=>{200===e.code&&(O.value=e.data)}))}));const N=e=>{C.value.ybrq=w(e),q.value=!1},B=()=>{history.back()},D=a({}),F=e=>{V.value=!0,D.value=e,j.value="czr"==e?O.value.map((e=>({text:e,value:e}))):e.options.map((e=>({text:e.name,value:e.name})))},L=e=>{if("czr"==D.value)C.value.czr=e.selectedOptions[0].text;else{D.value.scz=e.selectedOptions[0].text;let a=D.value.options.find((a=>a.name==e.selectedOptions[0].text));D.value.pdx=a.default?"符合":"不符合"}M()},M=()=>{V.value=!1},S=a(!1);function E(){S.value=!0}function G(e){S.value=!1,C.value.list.find((a=>a==e))?f("已存在该面料编号!"):C.value.list.push(e)}function I(e){_({title:e.errName,content:e.errMsg,complete:()=>{S.value=!1}})}function J(){S.value=!1}const P=()=>{if(0==C.value.list.length)return f("请扫描面料!");if(0==C.value.czr)return f("请选择操作人!");let e=!0;if(U.value.forEach((a=>{a.scz||(e=!1)})),!e)return f("请填写完整信息!");let a={list:C.value.list,content:U.value,ybrq:C.value.ybrq,czr:C.value.czr};z("/physicalTest",{content:a}).then((e=>{200===e.code&&h()}))};return(e,a)=>{const l=t("van-nav-bar"),f=t("van-field"),_=t("van-button"),h=t("van-icon"),w=g,k=t("van-cell-group"),z=t("van-calendar"),O=t("van-picker"),D=t("van-popup"),R=b(s("cshaptx4869-scancode"),x);return n(),o(c,null,[u(w,{class:"flex"},{default:i((()=>[u(l,{title:"理化报告","left-text":"返回","left-arrow":"",onClickLeft:B}),u(w,{class:"content"},{default:i((()=>[u(k,{inset:""},{default:i((()=>[u(f,{class:"bor",label:"验布日期","label-width":"5em",colon:"",modelValue:C.value.ybrq,"onUpdate:modelValue":a[0]||(a[0]=e=>C.value.ybrq=e),readonly:"",rules:[{required:!0,message:"请填写"}],onClick:a[1]||(a[1]=e=>{q.value=!0})},null,8,["modelValue"]),u(f,{label:"面料信息","label-width":"5em",colon:""},{input:i((()=>[u(_,{type:"primary",onClick:E},{default:i((()=>[r("扫一扫")])),_:1})])),_:1}),u(w,{class:"grid-container"},{default:i((()=>[(n(!0),o(c,null,d(C.value.list,((e,a)=>(n(),p(w,{class:"grid-item"},{default:i((()=>[m("p",{style:{width:"80%"}},y(e),1),u(h,{name:"cross",onClick:e=>C.value.list.splice(a,1)},null,8,["onClick"])])),_:2},1024)))),256))])),_:1}),m("p",{class:"lin"}),m("p",{style:{margin:"10rpx 0"}},"判断依据GB 18401-2010B国家放纺织产品基本安全技术规范"),m("p",{class:"lin"}),m("p",null,"检查结果如下:"),u(w,{class:"grid-container1"},{default:i((()=>[u(w,{class:"grid-item1"},{default:i((()=>[r("项目")])),_:1}),u(w,{class:"grid-item1"},{default:i((()=>[r("标准值")])),_:1}),u(w,{class:"grid-item1"},{default:i((()=>[r("实测值")])),_:1}),u(w,{class:"grid-item1"},{default:i((()=>[r("单项判定")])),_:1})])),_:1}),(n(!0),o(c,null,d(U.value,((e,a)=>(n(),p(w,{class:"grid-container1",key:a},{default:i((()=>[u(w,{class:"grid-item1"},{default:i((()=>[r(y(e.name),1)])),_:2},1024),u(w,{class:"grid-item1"},{default:i((()=>[r(y(e.name1),1)])),_:2},1024),u(w,{class:"grid-item1"},{default:i((()=>[u(f,{class:"bor",modelValue:e.scz,"onUpdate:modelValue":a=>e.scz=a,readonly:"",rules:e.necessary?[{required:!0,message:"请填写"}]:[],onClick:a=>F(e)},null,8,["modelValue","onUpdate:modelValue","rules","onClick"])])),_:2},1024),u(w,{class:"grid-item1"},{default:i((()=>[r(y(e.pdx),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1}),u(f,{class:"bor",label:"操作人","label-width":"4em",colon:"",modelValue:C.value.czr,"onUpdate:modelValue":a[2]||(a[2]=e=>C.value.czr=e),readonly:"",onClick:a[3]||(a[3]=e=>F("czr"))},null,8,["modelValue"]),u(w,{style:{"text-align":"center",margin:"10rpx"}},{default:i((()=>[u(_,{type:"primary",onClick:P,style:{width:"80px"}},{default:i((()=>[r("提交")])),_:1})])),_:1})])),_:1}),u(z,{show:q.value,"onUpdate:show":a[4]||(a[4]=e=>q.value=e),onConfirm:N,"min-date":new Date(2010,0,1),"max-date":new Date(2050,0,31)},null,8,["show","min-date","max-date"]),u(D,{show:V.value,"onUpdate:show":a[5]||(a[5]=e=>V.value=e),round:"",position:"bottom"},{default:i((()=>[u(O,{"show-toolbar":"",columns:j.value,onConfirm:L,onCancel:M,ref:"pickerRef"},null,8,["columns"])])),_:1},8,["show"]),S.value?(n(),p(R,{key:0,onSuccess:G,onFail:I,onClose:J})):v("",!0)],64)}}}),[["__scopeId","data-v-efcd8e2f"]]);export{V as default};

View File

@ -1 +1 @@
import{d as e,r as a,o as l,j as t,b as s,e as n,k as d,w as i,m as u,F as o,f as r,l as c,t as m,q as f,i as v,c as _}from"./index-BAgZZwqh.js";import{g as p,a as h,p as g,s as b,d as y}from"./index.CCkKeMRW.js";import{_ as k}from"./_plugin-vue_export-helper.BCo6x5W8.js";const x=k(e({__name:"defect",setup(e){const k=a(!1),x=a([]),w=a({});l((()=>{C()}));const C=()=>{p("/blemish").then((e=>{200===e.code&&(x.value=e.data)}))},j=()=>{history.back()},S=()=>{w.value={},k.value=!0},V=()=>{w.value.id?h("/blemish",w.value).then((e=>{200===e.code&&(C(),k.value=!1,f("提交成功!"))})):g("/blemish",w.value).then((e=>{200===e.code&&(C(),k.value=!1,f("提交成功!"))}))};return(e,a)=>{const l=t("van-nav-bar"),p=v,h=t("van-field"),g=t("van-cell-group"),q=t("van-button"),J=t("van-form"),L=t("van-popup");return s(),n(o,null,[d(p,{class:"flex"},{default:i((()=>[d(l,{title:"色胚质检瑕疵维护","left-text":"返回","left-arrow":"","right-text":"新增",onClickLeft:j,onClickRight:S}),d(p,{class:"content"},{default:i((()=>[d(p,{class:"grid-container"},{default:i((()=>[d(p,{class:"grid-item"},{default:i((()=>[u("编号")])),_:1}),d(p,{class:"grid-item"},{default:i((()=>[u("瑕疵名称")])),_:1}),d(p,{class:"grid-item"},{default:i((()=>[u("操作")])),_:1})])),_:1}),(s(!0),n(o,null,r(x.value,((e,a)=>(s(),_(p,{class:"grid-container",key:a},{default:i((()=>[d(p,{class:"grid-item"},{default:i((()=>[u(m(e.id),1)])),_:2},1024),d(p,{class:"grid-item"},{default:i((()=>[u(m(e.name),1)])),_:2},1024),d(p,{class:"grid-item"},{default:i((()=>[c("span",{style:{color:"#35a5f7"},onClick:a=>(e=>{w.value=JSON.parse(JSON.stringify(e)),k.value=!0})(e)},"编辑",8,["onClick"]),u("    "),c("span",{style:{color:"red"},onClick:a=>(e=>{b({title:"提示",message:"是否确认删除?"}).then((()=>{let a="/blemish/"+e.id;y(a).then((e=>{200===e.code&&(C(),f("删除成功!"))}))})).catch((()=>{}))})(e)},"删除 ",8,["onClick"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1}),d(L,{show:k.value,"onUpdate:show":a[2]||(a[2]=e=>k.value=e),style:{width:"80%"},round:""},{default:i((()=>[d(p,null,{default:i((()=>[c("h3",{style:{"text-align":"center"}},m(w.value.id?"编辑":"新增"),1),d(J,{onSubmit:V},{default:i((()=>[d(g,{inset:""},{default:i((()=>[d(h,{modelValue:w.value.name,"onUpdate:modelValue":a[0]||(a[0]=e=>w.value.name=e),name:"瑕疵名称",label:"瑕疵名称",colon:"","label-width":"5em",rules:[{required:!0,message:"请填写"}]},null,8,["modelValue"])])),_:1}),d(p,{class:"a-c"},{default:i((()=>[d(q,{type:"danger",onClick:a[1]||(a[1]=e=>k.value=!1)},{default:i((()=>[u("取消")])),_:1}),d(q,{type:"primary","native-type":"submit"},{default:i((()=>[u("确认")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-851d7119"]]);export{x as default};
import{d as e,r as a,o as l,j as t,b as s,e as n,k as d,w as i,m as u,F as o,f as r,l as c,t as m,q as f,i as v,c as _}from"./index-U_fosny-.js";import{g as p,a as h,p as g,s as b,d as y}from"./index.C7MUwTcc.js";import{_ as k}from"./_plugin-vue_export-helper.BCo6x5W8.js";const x=k(e({__name:"defect",setup(e){const k=a(!1),x=a([]),w=a({});l((()=>{C()}));const C=()=>{p("/blemish").then((e=>{200===e.code&&(x.value=e.data)}))},j=()=>{history.back()},S=()=>{w.value={},k.value=!0},V=()=>{w.value.id?h("/blemish",w.value).then((e=>{200===e.code&&(C(),k.value=!1,f("提交成功!"))})):g("/blemish",w.value).then((e=>{200===e.code&&(C(),k.value=!1,f("提交成功!"))}))};return(e,a)=>{const l=t("van-nav-bar"),p=v,h=t("van-field"),g=t("van-cell-group"),q=t("van-button"),J=t("van-form"),L=t("van-popup");return s(),n(o,null,[d(p,{class:"flex"},{default:i((()=>[d(l,{title:"色胚质检瑕疵维护","left-text":"返回","left-arrow":"","right-text":"新增",onClickLeft:j,onClickRight:S}),d(p,{class:"content"},{default:i((()=>[d(p,{class:"grid-container"},{default:i((()=>[d(p,{class:"grid-item"},{default:i((()=>[u("编号")])),_:1}),d(p,{class:"grid-item"},{default:i((()=>[u("瑕疵名称")])),_:1}),d(p,{class:"grid-item"},{default:i((()=>[u("操作")])),_:1})])),_:1}),(s(!0),n(o,null,r(x.value,((e,a)=>(s(),_(p,{class:"grid-container",key:a},{default:i((()=>[d(p,{class:"grid-item"},{default:i((()=>[u(m(e.id),1)])),_:2},1024),d(p,{class:"grid-item"},{default:i((()=>[u(m(e.name),1)])),_:2},1024),d(p,{class:"grid-item"},{default:i((()=>[c("span",{style:{color:"#35a5f7"},onClick:a=>(e=>{w.value=JSON.parse(JSON.stringify(e)),k.value=!0})(e)},"编辑",8,["onClick"]),u("    "),c("span",{style:{color:"red"},onClick:a=>(e=>{b({title:"提示",message:"是否确认删除?"}).then((()=>{let a="/blemish/"+e.id;y(a).then((e=>{200===e.code&&(C(),f("删除成功!"))}))})).catch((()=>{}))})(e)},"删除 ",8,["onClick"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1}),d(L,{show:k.value,"onUpdate:show":a[2]||(a[2]=e=>k.value=e),style:{width:"80%"},round:""},{default:i((()=>[d(p,null,{default:i((()=>[c("h3",{style:{"text-align":"center"}},m(w.value.id?"编辑":"新增"),1),d(J,{onSubmit:V},{default:i((()=>[d(g,{inset:""},{default:i((()=>[d(h,{modelValue:w.value.name,"onUpdate:modelValue":a[0]||(a[0]=e=>w.value.name=e),name:"瑕疵名称",label:"瑕疵名称",colon:"","label-width":"5em",rules:[{required:!0,message:"请填写"}]},null,8,["modelValue"])])),_:1}),d(p,{class:"a-c"},{default:i((()=>[d(q,{type:"danger",onClick:a[1]||(a[1]=e=>k.value=!1)},{default:i((()=>[u("取消")])),_:1}),d(q,{type:"primary","native-type":"submit"},{default:i((()=>[u("确认")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-851d7119"]]);export{x as default};

View File

@ -1 +1 @@
import{d as l,r as e,j as a,b as o,c as d,w as u,k as m,e as t,f as n,F as s,m as r,a2 as i,i as c,t as V}from"./index-BAgZZwqh.js";import{a as p}from"./uni-app.es.DmKENPst.js";import{_ as v}from"./_plugin-vue_export-helper.BCo6x5W8.js";const b=v(l({__name:"inspectionReport",props:{item:{}},setup(l){const v=e({});p((async l=>{v.value=JSON.parse(l.item)}));const b=()=>{i()};return(l,e)=>{const i=a("van-nav-bar"),p=a("van-field"),f=c,w=a("van-cell-group");return o(),d(f,{class:"flex"},{default:u((()=>[m(i,{title:"质检报告","left-text":"返回","left-arrow":"",onClickLeft:b}),m(f,{class:"content"},{default:u((()=>[m(w,{inset:""},{default:u((()=>[m(p,{label:"验布日期","label-width":"5em",colon:"",modelValue:v.value.testTime,"onUpdate:modelValue":e[0]||(e[0]=l=>v.value.testTime=l),readonly:""},null,8,["modelValue"]),m(p,{label:"面料编号","label-width":"5em",colon:"",modelValue:v.value.mlxq.code,"onUpdate:modelValue":e[1]||(e[1]=l=>v.value.mlxq.code=l),readonly:""},null,8,["modelValue"]),m(p,{label:"面料名称","label-width":"5em",colon:"",modelValue:v.value.fabric,"onUpdate:modelValue":e[2]||(e[2]=l=>v.value.fabric=l),readonly:""},null,8,["modelValue"]),m(p,{label:"面料颜色","label-width":"5em",colon:"",modelValue:v.value.color,"onUpdate:modelValue":e[3]||(e[3]=l=>v.value.color=l),readonly:""},null,8,["modelValue"]),m(p,{label:"面料工艺","label-width":"5em",colon:"",modelValue:v.value.craft,"onUpdate:modelValue":e[4]||(e[4]=l=>v.value.craft=l),readonly:""},null,8,["modelValue"]),m(p,{label:"缸号","label-width":"5em",colon:"",modelValue:v.value.cauldronCode,"onUpdate:modelValue":e[5]||(e[5]=l=>v.value.cauldronCode=l),readonly:""},null,8,["modelValue"]),m(p,{label:"纸管","label-width":"5em",colon:"",modelValue:v.value.wrapper,"onUpdate:modelValue":e[6]||(e[6]=l=>v.value.wrapper=l),readonly:""},null,8,["modelValue"]),m(p,{label:"姆米","label-width":"5em",colon:"",modelValue:v.value.momme,"onUpdate:modelValue":e[7]||(e[7]=l=>v.value.momme=l),readonly:""},null,8,["modelValue"]),m(p,{label:"门幅","label-width":"5em",colon:"",modelValue:v.value.width,"onUpdate:modelValue":e[8]||(e[8]=l=>v.value.width=l),readonly:""},null,8,["modelValue"]),(o(!0),t(s,null,n(v.value.testItems,((l,e)=>(o(),d(f,null,{default:u((()=>[m(p,{label:l.name,"label-width":"5em",colon:"",modelValue:l.value,"onUpdate:modelValue":e=>l.value=e,readonly:""},null,8,["label","modelValue","onUpdate:modelValue"])])),_:2},1024)))),256)),m(p,{label:"米数","label-width":"5em",colon:"",modelValue:v.value.mlxq.ms,"onUpdate:modelValue":e[9]||(e[9]=l=>v.value.mlxq.ms=l),readonly:""},null,8,["modelValue"]),m(p,{label:"总分数","label-width":"5em",colon:"",modelValue:v.value.mlxq.zfs,"onUpdate:modelValue":e[10]||(e[10]=l=>v.value.mlxq.zfs=l),readonly:""},null,8,["modelValue"]),m(p,{label:"预计扣损米数","label-width":"6.5em",colon:"",modelValue:v.value.mlxq.yjksms,"onUpdate:modelValue":e[11]||(e[11]=l=>v.value.mlxq.yjksms=l),readonly:""},null,8,["modelValue"]),m(f,{class:"grid-container"},{default:u((()=>[m(f,{class:"grid-item"},{default:u((()=>[r("瑕疵")])),_:1}),m(f,{class:"grid-item"},{default:u((()=>[r("扣分")])),_:1}),m(f,{class:"grid-item"},{default:u((()=>[r("位置")])),_:1})])),_:1}),(o(!0),t(s,null,n(v.value.mlxq.dialogList,((l,e)=>(o(),d(f,{class:"grid-container",key:e},{default:u((()=>[m(f,{class:"grid-item"},{default:u((()=>[r(V(l.xc),1)])),_:2},1024),m(f,{class:"grid-item"},{default:u((()=>[r(V(l.kfs),1)])),_:2},1024),m(f,{class:"grid-item"},{default:u((()=>[r(V(l.wz),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1}),m(p,{label:"质检员","label-width":"4em",colon:"",modelValue:v.value.testOperator,"onUpdate:modelValue":e[12]||(e[12]=l=>v.value.testOperator=l),readonly:""},null,8,["modelValue"])])),_:1})])),_:1})}}}),[["__scopeId","data-v-a2ce1b14"]]);export{b as default};
import{d as l,r as e,j as a,b as o,c as d,w as u,k as m,e as t,f as n,F as s,m as r,a2 as i,i as c,t as V}from"./index-U_fosny-.js";import{a as p}from"./uni-app.es.CB2yB8P5.js";import{_ as v}from"./_plugin-vue_export-helper.BCo6x5W8.js";const b=v(l({__name:"inspectionReport",props:{item:{}},setup(l){const v=e({});p((async l=>{v.value=JSON.parse(l.item)}));const b=()=>{i()};return(l,e)=>{const i=a("van-nav-bar"),p=a("van-field"),f=c,w=a("van-cell-group");return o(),d(f,{class:"flex"},{default:u((()=>[m(i,{title:"质检报告","left-text":"返回","left-arrow":"",onClickLeft:b}),m(f,{class:"content"},{default:u((()=>[m(w,{inset:""},{default:u((()=>[m(p,{label:"验布日期","label-width":"5em",colon:"",modelValue:v.value.testTime,"onUpdate:modelValue":e[0]||(e[0]=l=>v.value.testTime=l),readonly:""},null,8,["modelValue"]),m(p,{label:"面料编号","label-width":"5em",colon:"",modelValue:v.value.mlxq.code,"onUpdate:modelValue":e[1]||(e[1]=l=>v.value.mlxq.code=l),readonly:""},null,8,["modelValue"]),m(p,{label:"面料名称","label-width":"5em",colon:"",modelValue:v.value.fabric,"onUpdate:modelValue":e[2]||(e[2]=l=>v.value.fabric=l),readonly:""},null,8,["modelValue"]),m(p,{label:"面料颜色","label-width":"5em",colon:"",modelValue:v.value.color,"onUpdate:modelValue":e[3]||(e[3]=l=>v.value.color=l),readonly:""},null,8,["modelValue"]),m(p,{label:"面料工艺","label-width":"5em",colon:"",modelValue:v.value.craft,"onUpdate:modelValue":e[4]||(e[4]=l=>v.value.craft=l),readonly:""},null,8,["modelValue"]),m(p,{label:"缸号","label-width":"5em",colon:"",modelValue:v.value.cauldronCode,"onUpdate:modelValue":e[5]||(e[5]=l=>v.value.cauldronCode=l),readonly:""},null,8,["modelValue"]),m(p,{label:"纸管","label-width":"5em",colon:"",modelValue:v.value.wrapper,"onUpdate:modelValue":e[6]||(e[6]=l=>v.value.wrapper=l),readonly:""},null,8,["modelValue"]),m(p,{label:"姆米","label-width":"5em",colon:"",modelValue:v.value.momme,"onUpdate:modelValue":e[7]||(e[7]=l=>v.value.momme=l),readonly:""},null,8,["modelValue"]),m(p,{label:"门幅","label-width":"5em",colon:"",modelValue:v.value.width,"onUpdate:modelValue":e[8]||(e[8]=l=>v.value.width=l),readonly:""},null,8,["modelValue"]),(o(!0),t(s,null,n(v.value.testItems,((l,e)=>(o(),d(f,null,{default:u((()=>[m(p,{label:l.name,"label-width":"5em",colon:"",modelValue:l.value,"onUpdate:modelValue":e=>l.value=e,readonly:""},null,8,["label","modelValue","onUpdate:modelValue"])])),_:2},1024)))),256)),m(p,{label:"米数","label-width":"5em",colon:"",modelValue:v.value.mlxq.ms,"onUpdate:modelValue":e[9]||(e[9]=l=>v.value.mlxq.ms=l),readonly:""},null,8,["modelValue"]),m(p,{label:"总分数","label-width":"5em",colon:"",modelValue:v.value.mlxq.zfs,"onUpdate:modelValue":e[10]||(e[10]=l=>v.value.mlxq.zfs=l),readonly:""},null,8,["modelValue"]),m(p,{label:"预计扣损米数","label-width":"6.5em",colon:"",modelValue:v.value.mlxq.yjksms,"onUpdate:modelValue":e[11]||(e[11]=l=>v.value.mlxq.yjksms=l),readonly:""},null,8,["modelValue"]),m(f,{class:"grid-container"},{default:u((()=>[m(f,{class:"grid-item"},{default:u((()=>[r("瑕疵")])),_:1}),m(f,{class:"grid-item"},{default:u((()=>[r("扣分")])),_:1}),m(f,{class:"grid-item"},{default:u((()=>[r("位置")])),_:1})])),_:1}),(o(!0),t(s,null,n(v.value.mlxq.dialogList,((l,e)=>(o(),d(f,{class:"grid-container",key:e},{default:u((()=>[m(f,{class:"grid-item"},{default:u((()=>[r(V(l.xc),1)])),_:2},1024),m(f,{class:"grid-item"},{default:u((()=>[r(V(l.kfs),1)])),_:2},1024),m(f,{class:"grid-item"},{default:u((()=>[r(V(l.wz),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1}),m(p,{label:"质检员","label-width":"4em",colon:"",modelValue:v.value.testOperator,"onUpdate:modelValue":e[12]||(e[12]=l=>v.value.testOperator=l),readonly:""},null,8,["modelValue"])])),_:1})])),_:1})}}}),[["__scopeId","data-v-a2ce1b14"]]);export{b as default};

View File

@ -1 +1 @@
import{d as e,r as a,o as l,j as t,b as n,c as s,w as d,k as o,e as i,f as u,F as r,m as c,q as m,i as p}from"./index-BAgZZwqh.js";import{g as f,a as _}from"./index.CCkKeMRW.js";import{_ as g}from"./_plugin-vue_export-helper.BCo6x5W8.js";const y=g(e({__name:"physical",setup(e){const g=a([]);function y(){f("/pti").then((e=>{200===e.code&&(g.value=JSON.parse(e.data.payload))}))}l((()=>{y()}));const V=()=>{history.back()},v=()=>{g.value.push({options:[{}]})},h=()=>{let e={id:1,payload:JSON.stringify(g.value)};_("/pti",e).then((e=>{200===e.code&&(m("提交成功!"),y())}))};return(e,a)=>{const l=t("van-nav-bar"),m=t("van-icon"),f=t("van-field"),_=t("van-button"),y=p,k=t("van-radio"),b=t("van-radio-group"),x=t("van-cell-group"),U=t("van-checkbox");return n(),s(y,{class:"flex"},{default:d((()=>[o(l,{title:"理化报告维护","left-text":"返回","left-arrow":"","right-text":"新增",onClickLeft:V,onClickRight:v}),o(y,{class:"content"},{default:d((()=>[(n(!0),i(r,null,u(g.value,((e,a)=>(n(),s(y,{class:"card",key:a},{default:d((()=>[o(x,{inset:""},{default:d((()=>[o(y,{class:"a-b"},{default:d((()=>[o(m,{name:"clear",color:"red",size:"25",onClick:e=>g.value.splice(a,1)},null,8,["onClick"]),o(f,{modelValue:e.name,"onUpdate:modelValue":a=>e.name=a,name:"项目名称",label:"项目名称",colon:"",class:"a-c","label-width":"6em",rules:[{required:!0,message:"请填写"}]},null,8,["modelValue","onUpdate:modelValue"]),o(_,{type:"primary",onClick:a=>(e=>{e.options.push({})})(e)},{default:d((()=>[c("新增选项")])),_:2},1032,["onClick"])])),_:2},1024),o(y,{style:{display:"flex","align-items":"center",margin:"10px 0"}},{default:d((()=>[o(y,{style:{width:"70%"}},{default:d((()=>[o(f,{modelValue:e.name1,"onUpdate:modelValue":a=>e.name1=a,name:"标准值",label:"标准值",colon:"",class:"a-c","label-width":"3.5em",rules:[{required:!0,message:"请填写"}]},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),o(f,{name:"是否必填",label:"是否必填",colon:"","label-width":"4.5em"},{input:d((()=>[o(b,{modelValue:e.necessary,"onUpdate:modelValue":a=>e.necessary=a,direction:"horizontal"},{default:d((()=>[o(k,{name:!0},{default:d((()=>[c("是")])),_:1}),o(k,{name:!1},{default:d((()=>[c("否")])),_:1})])),_:2},1032,["modelValue","onUpdate:modelValue"])])),_:2},1024)])),_:2},1024)])),_:2},1024),o(y,{class:"grid-container"},{default:d((()=>[o(y,{class:"grid-item"}),o(y,{class:"grid-item"},{default:d((()=>[c("内容")])),_:1}),o(y,{class:"grid-item"},{default:d((()=>[c("是否符合")])),_:1}),o(y,{class:"grid-item"},{default:d((()=>[c("操作")])),_:1})])),_:1}),(n(!0),i(r,null,u(e.options,((a,l)=>(n(),s(y,{class:"grid-container",key:l},{default:d((()=>[o(y,{class:"grid-item"},{default:d((()=>[c("选项")])),_:1}),o(y,{class:"grid-item"},{default:d((()=>[o(f,{modelValue:a.name,"onUpdate:modelValue":e=>a.name=e},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),o(y,{class:"grid-item",style:{display:"flex","align-items":"center","justify-content":"center"}},{default:d((()=>[o(U,{modelValue:a.default,"onUpdate:modelValue":e=>a.default=e,name:!0},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),o(y,{class:"grid-item",style:{color:"red"},onClick:a=>e.options.splice(l,1)},{default:d((()=>[c("删除")])),_:2},1032,["onClick"])])),_:2},1024)))),128))])),_:2},1024)))),128))])),_:1}),o(_,{type:"primary",style:{margin:"10rpx"},onClick:h},{default:d((()=>[c("提交")])),_:1})])),_:1})}}}),[["__scopeId","data-v-19beedcd"]]);export{y as default};
import{d as e,r as a,o as l,j as t,b as n,c as s,w as d,k as o,e as i,f as u,F as r,m as c,q as m,i as p}from"./index-U_fosny-.js";import{g as f,a as _}from"./index.C7MUwTcc.js";import{_ as g}from"./_plugin-vue_export-helper.BCo6x5W8.js";const y=g(e({__name:"physical",setup(e){const g=a([]);function y(){f("/pti").then((e=>{200===e.code&&(g.value=JSON.parse(e.data.payload))}))}l((()=>{y()}));const V=()=>{history.back()},v=()=>{g.value.push({options:[{}]})},h=()=>{let e={id:1,payload:JSON.stringify(g.value)};_("/pti",e).then((e=>{200===e.code&&(m("提交成功!"),y())}))};return(e,a)=>{const l=t("van-nav-bar"),m=t("van-icon"),f=t("van-field"),_=t("van-button"),y=p,k=t("van-radio"),b=t("van-radio-group"),x=t("van-cell-group"),U=t("van-checkbox");return n(),s(y,{class:"flex"},{default:d((()=>[o(l,{title:"理化报告维护","left-text":"返回","left-arrow":"","right-text":"新增",onClickLeft:V,onClickRight:v}),o(y,{class:"content"},{default:d((()=>[(n(!0),i(r,null,u(g.value,((e,a)=>(n(),s(y,{class:"card",key:a},{default:d((()=>[o(x,{inset:""},{default:d((()=>[o(y,{class:"a-b"},{default:d((()=>[o(m,{name:"clear",color:"red",size:"25",onClick:e=>g.value.splice(a,1)},null,8,["onClick"]),o(f,{modelValue:e.name,"onUpdate:modelValue":a=>e.name=a,name:"项目名称",label:"项目名称",colon:"",class:"a-c","label-width":"6em",rules:[{required:!0,message:"请填写"}]},null,8,["modelValue","onUpdate:modelValue"]),o(_,{type:"primary",onClick:a=>(e=>{e.options.push({})})(e)},{default:d((()=>[c("新增选项")])),_:2},1032,["onClick"])])),_:2},1024),o(y,{style:{display:"flex","align-items":"center",margin:"10px 0"}},{default:d((()=>[o(y,{style:{width:"70%"}},{default:d((()=>[o(f,{modelValue:e.name1,"onUpdate:modelValue":a=>e.name1=a,name:"标准值",label:"标准值",colon:"",class:"a-c","label-width":"3.5em",rules:[{required:!0,message:"请填写"}]},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),o(f,{name:"是否必填",label:"是否必填",colon:"","label-width":"4.5em"},{input:d((()=>[o(b,{modelValue:e.necessary,"onUpdate:modelValue":a=>e.necessary=a,direction:"horizontal"},{default:d((()=>[o(k,{name:!0},{default:d((()=>[c("是")])),_:1}),o(k,{name:!1},{default:d((()=>[c("否")])),_:1})])),_:2},1032,["modelValue","onUpdate:modelValue"])])),_:2},1024)])),_:2},1024)])),_:2},1024),o(y,{class:"grid-container"},{default:d((()=>[o(y,{class:"grid-item"}),o(y,{class:"grid-item"},{default:d((()=>[c("内容")])),_:1}),o(y,{class:"grid-item"},{default:d((()=>[c("是否符合")])),_:1}),o(y,{class:"grid-item"},{default:d((()=>[c("操作")])),_:1})])),_:1}),(n(!0),i(r,null,u(e.options,((a,l)=>(n(),s(y,{class:"grid-container",key:l},{default:d((()=>[o(y,{class:"grid-item"},{default:d((()=>[c("选项")])),_:1}),o(y,{class:"grid-item"},{default:d((()=>[o(f,{modelValue:a.name,"onUpdate:modelValue":e=>a.name=e},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),o(y,{class:"grid-item",style:{display:"flex","align-items":"center","justify-content":"center"}},{default:d((()=>[o(U,{modelValue:a.default,"onUpdate:modelValue":e=>a.default=e,name:!0},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),o(y,{class:"grid-item",style:{color:"red"},onClick:a=>e.options.splice(l,1)},{default:d((()=>[c("删除")])),_:2},1032,["onClick"])])),_:2},1024)))),128))])),_:2},1024)))),128))])),_:1}),o(_,{type:"primary",style:{margin:"10rpx"},onClick:h},{default:d((()=>[c("提交")])),_:1})])),_:1})}}}),[["__scopeId","data-v-19beedcd"]]);export{y as default};

View File

@ -1 +1 @@
import{d as e,r as a,o as l,j as t,b as o,c as n,w as d,k as s,e as u,f as i,F as r,m,q as c,i as p,h as f}from"./index-BAgZZwqh.js";import{g as _,a as y}from"./index.CCkKeMRW.js";import{_ as V}from"./_plugin-vue_export-helper.BCo6x5W8.js";const g=V(e({__name:"quality",setup(e){const V=a([]);function g(){_("/testItem").then((e=>{200===e.code&&(V.value=e.data.payload?e.data.payload:[])}))}l((()=>{g()}));const h=()=>{history.back()},v=()=>{V.value.push({necessary:!0,options:[{}]})},k=()=>{let e=!0;if(V.value.forEach((a=>{a.name&&a.type||(e=!1),a.options.forEach((a=>{a.name||(e=!1)}))})),!e)return c("请填完整信息!");let a={id:1,payload:V.value};y("/testItem",a).then((e=>{200===e.code&&(c("提交成功!"),g())}))};return(e,a)=>{const l=t("van-nav-bar"),c=t("van-icon"),_=t("van-field"),y=t("van-button"),g=p,x=t("van-radio"),b=t("van-radio-group"),U=t("van-cell-group"),C=t("van-checkbox"),w=t("van-checkbox-group");return o(),n(g,{class:"flex"},{default:d((()=>[s(l,{title:"色胚质检项维护","left-text":"返回","left-arrow":"","right-text":"新增",onClickLeft:h,onClickRight:v}),s(g,{class:"content"},{default:d((()=>[(o(!0),u(r,null,i(V.value,((e,a)=>(o(),n(g,{class:"card",key:a},{default:d((()=>[s(U,{inset:""},{default:d((()=>[s(g,{class:"a-b"},{default:d((()=>[s(c,{name:"clear",color:"red",size:"25",onClick:e=>V.value.splice(a,1)},null,8,["onClick"]),s(_,{modelValue:e.name,"onUpdate:modelValue":a=>e.name=a,name:"质检项名称",label:"质检项名称",colon:"",class:"a-c","label-width":"6em",rules:[{required:!0,message:"请填写"}]},null,8,["modelValue","onUpdate:modelValue"]),s(y,{type:"primary",onClick:a=>(e=>{e.options.push({})})(e)},{default:d((()=>[m("新增选项")])),_:2},1032,["onClick"])])),_:2},1024),s(_,{label:" ","label-width":"7.5em",style:{margin:"15rpx 0"}},{input:d((()=>[s(b,{modelValue:e.type,"onUpdate:modelValue":a=>e.type=a,direction:"horizontal"},{default:d((()=>[s(x,{name:"Text"},{default:d((()=>[m("填空")])),_:1}),s(x,{name:"Select"},{default:d((()=>[m("选择")])),_:1})])),_:2},1032,["modelValue","onUpdate:modelValue"])])),_:2},1024),s(_,{name:"是否必填",label:"是否必填",colon:"","label-width":"7.5em"},{input:d((()=>[s(b,{modelValue:e.necessary,"onUpdate:modelValue":a=>e.necessary=a,direction:"horizontal"},{default:d((()=>[s(x,{name:!0},{default:d((()=>[m("是")])),_:1}),s(x,{name:!1},{default:d((()=>[m("否")])),_:1})])),_:2},1032,["modelValue","onUpdate:modelValue"])])),_:2},1024)])),_:2},1024),"Select"==e.type?(o(),n(g,{key:0},{default:d((()=>[s(g,{class:"grid-container"},{default:d((()=>[s(g,{class:"grid-item"}),s(g,{class:"grid-item"},{default:d((()=>[m("内容")])),_:1}),s(g,{class:"grid-item"},{default:d((()=>[m("是否默认")])),_:1}),s(g,{class:"grid-item"},{default:d((()=>[m("操作")])),_:1})])),_:1}),(o(!0),u(r,null,i(e.options,((a,l)=>(o(),n(g,{class:"grid-container",key:l},{default:d((()=>[s(g,{class:"grid-item"},{default:d((()=>[m("选项")])),_:1}),s(g,{class:"grid-item"},{default:d((()=>[s(_,{modelValue:a.name,"onUpdate:modelValue":e=>a.name=e},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),s(g,{class:"grid-item",style:{display:"flex","align-items":"center","justify-content":"center"}},{default:d((()=>[s(C,{modelValue:a.default,"onUpdate:modelValue":e=>a.default=e,name:!0},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),s(g,{class:"grid-item",style:{color:"red"},onClick:a=>e.options.splice(l,1)},{default:d((()=>[m("删除")])),_:2},1032,["onClick"])])),_:2},1024)))),128))])),_:2},1024)):f("",!0),"Text"==e.type?(o(),n(g,{key:1,style:{"margin-top":"15rpx"}},{default:d((()=>[s(_,{name:"填写内容",label:"填写内容",colon:"","label-width":"7.5em"},{input:d((()=>[s(w,{modelValue:e.contentType,"onUpdate:modelValue":a=>e.contentType=a,direction:"horizontal",shape:"square"},{default:d((()=>[s(C,{name:"Text"},{default:d((()=>[m("文字")])),_:1}),s(C,{name:"File"},{default:d((()=>[m("图片")])),_:1})])),_:2},1032,["modelValue","onUpdate:modelValue"])])),_:2},1024)])),_:2},1024)):f("",!0)])),_:2},1024)))),128))])),_:1}),s(y,{type:"primary",style:{margin:"10rpx",height:"40px"},onClick:k},{default:d((()=>[m("提交")])),_:1})])),_:1})}}}),[["__scopeId","data-v-6d04822b"]]);export{g as default};
import{d as e,r as a,o as l,j as t,b as o,c as n,w as d,k as s,e as u,f as i,F as r,m,q as c,i as p,h as f}from"./index-U_fosny-.js";import{g as _,a as y}from"./index.C7MUwTcc.js";import{_ as V}from"./_plugin-vue_export-helper.BCo6x5W8.js";const g=V(e({__name:"quality",setup(e){const V=a([]);function g(){_("/testItem").then((e=>{200===e.code&&(V.value=e.data.payload?e.data.payload:[])}))}l((()=>{g()}));const h=()=>{history.back()},v=()=>{V.value.push({necessary:!0,options:[{}]})},k=()=>{let e=!0;if(V.value.forEach((a=>{a.name&&a.type||(e=!1),a.options.forEach((a=>{a.name||(e=!1)}))})),!e)return c("请填完整信息!");let a={id:1,payload:V.value};y("/testItem",a).then((e=>{200===e.code&&(c("提交成功!"),g())}))};return(e,a)=>{const l=t("van-nav-bar"),c=t("van-icon"),_=t("van-field"),y=t("van-button"),g=p,x=t("van-radio"),b=t("van-radio-group"),U=t("van-cell-group"),C=t("van-checkbox"),w=t("van-checkbox-group");return o(),n(g,{class:"flex"},{default:d((()=>[s(l,{title:"色胚质检项维护","left-text":"返回","left-arrow":"","right-text":"新增",onClickLeft:h,onClickRight:v}),s(g,{class:"content"},{default:d((()=>[(o(!0),u(r,null,i(V.value,((e,a)=>(o(),n(g,{class:"card",key:a},{default:d((()=>[s(U,{inset:""},{default:d((()=>[s(g,{class:"a-b"},{default:d((()=>[s(c,{name:"clear",color:"red",size:"25",onClick:e=>V.value.splice(a,1)},null,8,["onClick"]),s(_,{modelValue:e.name,"onUpdate:modelValue":a=>e.name=a,name:"质检项名称",label:"质检项名称",colon:"",class:"a-c","label-width":"6em",rules:[{required:!0,message:"请填写"}]},null,8,["modelValue","onUpdate:modelValue"]),s(y,{type:"primary",onClick:a=>(e=>{e.options.push({})})(e)},{default:d((()=>[m("新增选项")])),_:2},1032,["onClick"])])),_:2},1024),s(_,{label:" ","label-width":"7.5em",style:{margin:"15rpx 0"}},{input:d((()=>[s(b,{modelValue:e.type,"onUpdate:modelValue":a=>e.type=a,direction:"horizontal"},{default:d((()=>[s(x,{name:"Text"},{default:d((()=>[m("填空")])),_:1}),s(x,{name:"Select"},{default:d((()=>[m("选择")])),_:1})])),_:2},1032,["modelValue","onUpdate:modelValue"])])),_:2},1024),s(_,{name:"是否必填",label:"是否必填",colon:"","label-width":"7.5em"},{input:d((()=>[s(b,{modelValue:e.necessary,"onUpdate:modelValue":a=>e.necessary=a,direction:"horizontal"},{default:d((()=>[s(x,{name:!0},{default:d((()=>[m("是")])),_:1}),s(x,{name:!1},{default:d((()=>[m("否")])),_:1})])),_:2},1032,["modelValue","onUpdate:modelValue"])])),_:2},1024)])),_:2},1024),"Select"==e.type?(o(),n(g,{key:0},{default:d((()=>[s(g,{class:"grid-container"},{default:d((()=>[s(g,{class:"grid-item"}),s(g,{class:"grid-item"},{default:d((()=>[m("内容")])),_:1}),s(g,{class:"grid-item"},{default:d((()=>[m("是否默认")])),_:1}),s(g,{class:"grid-item"},{default:d((()=>[m("操作")])),_:1})])),_:1}),(o(!0),u(r,null,i(e.options,((a,l)=>(o(),n(g,{class:"grid-container",key:l},{default:d((()=>[s(g,{class:"grid-item"},{default:d((()=>[m("选项")])),_:1}),s(g,{class:"grid-item"},{default:d((()=>[s(_,{modelValue:a.name,"onUpdate:modelValue":e=>a.name=e},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),s(g,{class:"grid-item",style:{display:"flex","align-items":"center","justify-content":"center"}},{default:d((()=>[s(C,{modelValue:a.default,"onUpdate:modelValue":e=>a.default=e,name:!0},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),s(g,{class:"grid-item",style:{color:"red"},onClick:a=>e.options.splice(l,1)},{default:d((()=>[m("删除")])),_:2},1032,["onClick"])])),_:2},1024)))),128))])),_:2},1024)):f("",!0),"Text"==e.type?(o(),n(g,{key:1,style:{"margin-top":"15rpx"}},{default:d((()=>[s(_,{name:"填写内容",label:"填写内容",colon:"","label-width":"7.5em"},{input:d((()=>[s(w,{modelValue:e.contentType,"onUpdate:modelValue":a=>e.contentType=a,direction:"horizontal",shape:"square"},{default:d((()=>[s(C,{name:"Text"},{default:d((()=>[m("文字")])),_:1}),s(C,{name:"File"},{default:d((()=>[m("图片")])),_:1})])),_:2},1032,["modelValue","onUpdate:modelValue"])])),_:2},1024)])),_:2},1024)):f("",!0)])),_:2},1024)))),128))])),_:1}),s(y,{type:"primary",style:{margin:"10rpx",height:"40px"},onClick:k},{default:d((()=>[m("提交")])),_:1})])),_:1})}}}),[["__scopeId","data-v-6d04822b"]]);export{g as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{d as e,r as a,q as l,j as t,b as n,c as s,w as o,k as d,e as u,f as r,F as i,i as m,G as c,m as p,t as f,l as v,h as b}from"./index-BAgZZwqh.js";import{a as y}from"./uni-app.es.DmKENPst.js";import{g as V}from"./index.CCkKeMRW.js";import{_ as h}from"./_plugin-vue_export-helper.BCo6x5W8.js";const w=h(e({__name:"history",props:{item:{}},setup(e){const h=a(),w=a({}),_=a([]);y((async e=>{if(e)try{if(h.value=JSON.parse(e.item),"门店"!==h.value.sd||h.value.processes)w.value=h.value.processes;else{let e=await V("/flowBind");if(200===e.code){let a=e.data.find((e=>e.craftName===h.value.craft)).flows.find((e=>"仅现货"===e.bind));if(a){let e="/craftFlows/byName?name="+a.name,t=await V(e);200===t.code?w.value=t.data:l("暂无此工艺!")}else l("暂无此工艺!")}}V("/tracking/getLog?id="+h.value.id).then((e=>{if(200===e.code){w.value.processes.forEach((a=>{if(!a.id){let l=e.data.find((e=>e.details.zt==a.name));l&&(a.rq=l.details.form.czrq,e.data=e.data.concat(l.details.trackingLog))}})),w.value.processes.forEach((a=>{let l=e.data.find((e=>e.details.zt==a.name));l&&(a.rq=l.details.form.czrq,_.value=_.value.concat(l.details.list))}));let a=e.data.find((e=>"待出厂"===e.details.zt));w.value.processes[w.value.processes.length-1].rq=a.details.form.czrq;let l=e.data.find((e=>"已出厂"===e.details.zt));_.value=_.value.concat(a.details.list).concat(l.details.list),_.value.map((e=>{e.pic&&(e.pic=[{url:e.pic}]),e.blank&&(e.contentType=e.blank)}))}}))}catch(a){console.error("Failed to parse item JSON:",a)}}));const g=()=>{window.history.back()};return(e,a)=>{const l=t("van-nav-bar"),y=t("van-field"),V=m,k=t("van-cell-group"),q=t("van-uploader");return n(),s(V,{class:"flex"},{default:o((()=>[d(l,{title:"工序详情","left-text":"返回","left-arrow":"",onClickLeft:g}),d(V,{class:"content"},{default:o((()=>[d(k,{inset:""},{default:o((()=>[d(y,{modelValue:h.value.craft,"onUpdate:modelValue":a[0]||(a[0]=e=>h.value.craft=e),name:"工艺名称",label:"工艺名称",colon:"","label-width":"5em",readonly:""},null,8,["modelValue"]),d(y,{modelValue:h.value.craftCmt.name,"onUpdate:modelValue":a[1]||(a[1]=e=>h.value.craftCmt.name=e),name:"工艺要求",label:"工艺要求",colon:"","label-width":"5em",readonly:""},null,8,["modelValue"]),d(y,{modelValue:h.value.innerComment,"onUpdate:modelValue":a[2]||(a[2]=e=>h.value.innerComment=e),name:"内部备注",label:"内部备注",colon:"","label-width":"5em",readonly:""},null,8,["modelValue"]),d(y,{name:"工艺流程",label:"工艺流程",colon:"","label-width":"5em",readonly:""}),d(V,{class:"grid-container"},{default:o((()=>[(n(!0),u(i,null,r(w.value.processes,((e,a)=>(n(),s(V,{class:"grid-item",key:a},{default:o((()=>[d(V,{class:c(e.id?"btn1":"btn2")},{default:o((()=>[p(f(e.name),1)])),_:2},1032,["class"]),v("p",null,f(e.rq),1)])),_:2},1024)))),128))])),_:1})])),_:1}),d(k,{inset:""},{default:o((()=>[(n(!0),u(i,null,r(_.value,((e,a)=>(n(),s(V,{key:a},{default:o((()=>["Select"===e.type?(n(),s(y,{key:0,modelValue:e.value,"onUpdate:modelValue":a=>e.value=a,name:e.name,label:e.name,colon:"",class:"bor","label-width":"5em",readonly:"",rules:e.necessary?[{required:!0,message:"请选择"}]:[]},null,8,["modelValue","onUpdate:modelValue","name","label","rules"])):b("",!0),"Input"===e.type?(n(),u(i,{key:1},[e.contentType.find((e=>"Text"==e))?(n(),s(y,{key:0,modelValue:e.value,"onUpdate:modelValue":a=>e.value=a,name:e.name,label:e.name,colon:"",class:"bor-n","label-width":"5em",readonly:"",rules:e.necessary?[{required:!0,message:"请填写"}]:[]},null,8,["modelValue","onUpdate:modelValue","name","label","rules"])):b("",!0),e.contentType.find((e=>"File"==e))?(n(),s(y,{key:1,name:"uploader",label:e.name,"label-width":"5em",colon:"",rules:e.necessary?[{required:!0,message:"请上传"}]:[]},{input:o((()=>[d(q,{modelValue:e.pic,"onUpdate:modelValue":a=>e.pic=a,multiple:"","max-count":1,readonly:"",deletable:!1},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1032,["label","rules"])):b("",!0)],64)):b("",!0)])),_:2},1024)))),128))])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-96ffc2be"]]);export{w as default};
import{d as e,r as a,q as l,j as t,b as n,c as s,w as o,k as d,e as u,f as r,F as i,i as m,G as c,m as p,t as f,l as v,h as b}from"./index-U_fosny-.js";import{a as y}from"./uni-app.es.CB2yB8P5.js";import{g as V}from"./index.C7MUwTcc.js";import{_ as h}from"./_plugin-vue_export-helper.BCo6x5W8.js";const w=h(e({__name:"history",props:{item:{}},setup(e){const h=a(),w=a({}),_=a([]);y((async e=>{if(e)try{if(h.value=JSON.parse(e.item),"门店"!==h.value.sd||h.value.processes)w.value=h.value.processes;else{let e=await V("/flowBind");if(200===e.code){let a=e.data.find((e=>e.craftName===h.value.craft)).flows.find((e=>"仅现货"===e.bind));if(a){let e="/craftFlows/byName?name="+a.name,t=await V(e);200===t.code?w.value=t.data:l("暂无此工艺!")}else l("暂无此工艺!")}}V("/tracking/getLog?id="+h.value.id).then((e=>{if(200===e.code){w.value.processes.forEach((a=>{if(!a.id){let l=e.data.find((e=>e.details.zt==a.name));l&&(a.rq=l.details.form.czrq,e.data=e.data.concat(l.details.trackingLog))}})),w.value.processes.forEach((a=>{let l=e.data.find((e=>e.details.zt==a.name));l&&(a.rq=l.details.form.czrq,_.value=_.value.concat(l.details.list))}));let a=e.data.find((e=>"待出厂"===e.details.zt));w.value.processes[w.value.processes.length-1].rq=a.details.form.czrq;let l=e.data.find((e=>"已出厂"===e.details.zt));_.value=_.value.concat(a.details.list).concat(l.details.list),_.value.map((e=>{e.pic&&(e.pic=[{url:e.pic}]),e.blank&&(e.contentType=e.blank)}))}}))}catch(a){console.error("Failed to parse item JSON:",a)}}));const g=()=>{window.history.back()};return(e,a)=>{const l=t("van-nav-bar"),y=t("van-field"),V=m,k=t("van-cell-group"),q=t("van-uploader");return n(),s(V,{class:"flex"},{default:o((()=>[d(l,{title:"工序详情","left-text":"返回","left-arrow":"",onClickLeft:g}),d(V,{class:"content"},{default:o((()=>[d(k,{inset:""},{default:o((()=>[d(y,{modelValue:h.value.craft,"onUpdate:modelValue":a[0]||(a[0]=e=>h.value.craft=e),name:"工艺名称",label:"工艺名称",colon:"","label-width":"5em",readonly:""},null,8,["modelValue"]),d(y,{modelValue:h.value.craftCmt.name,"onUpdate:modelValue":a[1]||(a[1]=e=>h.value.craftCmt.name=e),name:"工艺要求",label:"工艺要求",colon:"","label-width":"5em",readonly:""},null,8,["modelValue"]),d(y,{modelValue:h.value.innerComment,"onUpdate:modelValue":a[2]||(a[2]=e=>h.value.innerComment=e),name:"内部备注",label:"内部备注",colon:"","label-width":"5em",readonly:""},null,8,["modelValue"]),d(y,{name:"工艺流程",label:"工艺流程",colon:"","label-width":"5em",readonly:""}),d(V,{class:"grid-container"},{default:o((()=>[(n(!0),u(i,null,r(w.value.processes,((e,a)=>(n(),s(V,{class:"grid-item",key:a},{default:o((()=>[d(V,{class:c(e.id?"btn1":"btn2")},{default:o((()=>[p(f(e.name),1)])),_:2},1032,["class"]),v("p",null,f(e.rq),1)])),_:2},1024)))),128))])),_:1})])),_:1}),d(k,{inset:""},{default:o((()=>[(n(!0),u(i,null,r(_.value,((e,a)=>(n(),s(V,{key:a},{default:o((()=>["Select"===e.type?(n(),s(y,{key:0,modelValue:e.value,"onUpdate:modelValue":a=>e.value=a,name:e.name,label:e.name,colon:"",class:"bor","label-width":"5em",readonly:"",rules:e.necessary?[{required:!0,message:"请选择"}]:[]},null,8,["modelValue","onUpdate:modelValue","name","label","rules"])):b("",!0),"Input"===e.type?(n(),u(i,{key:1},[e.contentType.find((e=>"Text"==e))?(n(),s(y,{key:0,modelValue:e.value,"onUpdate:modelValue":a=>e.value=a,name:e.name,label:e.name,colon:"",class:"bor-n","label-width":"5em",readonly:"",rules:e.necessary?[{required:!0,message:"请填写"}]:[]},null,8,["modelValue","onUpdate:modelValue","name","label","rules"])):b("",!0),e.contentType.find((e=>"File"==e))?(n(),s(y,{key:1,name:"uploader",label:e.name,"label-width":"5em",colon:"",rules:e.necessary?[{required:!0,message:"请上传"}]:[]},{input:o((()=>[d(q,{modelValue:e.pic,"onUpdate:modelValue":a=>e.pic=a,multiple:"","max-count":1,readonly:"",deletable:!1},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1032,["label","rules"])):b("",!0)],64)):b("",!0)])),_:2},1024)))),128))])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-96ffc2be"]]);export{w as default};

View File

@ -1 +1 @@
import{d as e,r as a,o as t,a as n,s as r,g as o,b as s,c as p,w as i,e as m,f as l,F as c,i as h,t as y,h as u,n as d}from"./index-BAgZZwqh.js";import{g as w}from"./index.CCkKeMRW.js";import{_ as f}from"./_plugin-vue_export-helper.BCo6x5W8.js";const g=f(e({__name:"index",setup(e){const f=a([{path:"../whiteEmbryo/listSearch",name:"白胚库存列表",type:"rawFabric"},{path:"../maintenance/processOldzmd",name:"工艺维护",type:"flowBind"},{path:"../maintenance/m-flow",name:"工艺流程维护",type:"craftFlow"},{path:"../maintenance/m-process",name:"工序项维护",type:"process"},{path:"../maintenance/m-requirements",name:"工艺要求维护",type:"craftRequire"},{path:"../maintenance/m-factory",name:"工厂维护",type:"factory"},{path:"../maintenance/m-other",name:"其他要求项维护",type:"extraOption"},{path:"../whiteEmbryo/w-warehousing",name:"白胚入库",type:"rawFabric"},{path:"../whiteEmbryo/w-level",name:"白胚等级维护",type:"rawFabricLevel"},{path:"../whiteEmbryo/w-suppliers",name:"供应商维护",type:"supplier"},{path:"../whiteEmbryo/w-scanCode",name:"白胚扫码放货架",type:"rawFabric"},{path:"../whiteEmbryo/w-warehouse",name:"仓库维护",type:"warehouse"},{path:"../whiteEmbryo/w-libraryLocation",name:"库位号维护",type:"shelves"},{path:"../whiteEmbryo/w-list",name:"白胚列表",type:"rawFabric"},{path:"../spot/list",name:"需求单列表",type:"interOrder"},{path:"../customOrder/list",name:"定做单列表",type:"customOrder"},{path:"../distribution/distribution",name:"待配货列表",type:"tribute"},{path:"../documentary/documentary",name:"跟单列表",type:"tracking"},{path:"../colorBlank/colorBlank",name:"色胚质检列表",type:"testing"},{path:"../colorBlank/defect",name:"色胚质检瑕疵维护",type:"blemish"},{path:"../colorBlank/quality",name:"色胚质检项维护",type:"testItem"},{path:"../colorBlank/physical",name:"理化报告选项维护",type:"extraOption"},{path:"../colorBlank/resultsQuery",name:"质检结果查询",type:"testing"},{path:"../colorBlank/ScanCodeStorage",name:"扫码暂存",type:"testing"},{path:"../orderStatus/orderStatus",name:"订单状态查询",type:"testing"}]),g=a([]);t((()=>{w("/v1/auth/info").then((e=>{200===e.code?(localStorage.setItem("info",JSON.stringify(e.data)),e.data.permissions.forEach((e=>{f.value.forEach((a=>{if(e.includes(a.type)){g.value.find((e=>e.path==a.path))||g.value.push(a)}}))}))):(n({url:"/pages/login/login"}),r(e.msg))})),o({key:"token",success:function(e){e.data||n({url:"/pages/login/login"})},fail:function(e){n({url:"/pages/login/login"})}})}));return(e,a)=>{const t=h;return s(),p(t,{class:"content"},{default:i((()=>[(s(!0),m(c,null,l(g.value,((e,a)=>(s(),p(t,{key:a},{default:i((()=>[e.name?(s(),m("p",{key:0,class:"btn",onClick:a=>(e=>{d({url:e.path})})(e)},y(e.name),9,["onClick"])):u("",!0)])),_:2},1024)))),128))])),_:1})}}}),[["__scopeId","data-v-0dfa201d"]]);export{g as default};
import{d as e,r as a,o as t,a as n,s as r,g as o,b as s,c as p,w as i,e as m,f as l,F as c,i as h,t as y,h as u,n as d}from"./index-U_fosny-.js";import{g as w}from"./index.C7MUwTcc.js";import{_ as f}from"./_plugin-vue_export-helper.BCo6x5W8.js";const g=f(e({__name:"index",setup(e){const f=a([{path:"../whiteEmbryo/listSearch",name:"白胚库存列表",type:"rawFabric"},{path:"../maintenance/processOldzmd",name:"工艺维护",type:"flowBind"},{path:"../maintenance/m-flow",name:"工艺流程维护",type:"craftFlow"},{path:"../maintenance/m-process",name:"工序项维护",type:"process"},{path:"../maintenance/m-requirements",name:"工艺要求维护",type:"craftRequire"},{path:"../maintenance/m-factory",name:"工厂维护",type:"factory"},{path:"../maintenance/m-other",name:"其他要求项维护",type:"extraOption"},{path:"../whiteEmbryo/w-warehousing",name:"白胚入库",type:"rawFabric"},{path:"../whiteEmbryo/w-level",name:"白胚等级维护",type:"rawFabricLevel"},{path:"../whiteEmbryo/w-suppliers",name:"供应商维护",type:"supplier"},{path:"../whiteEmbryo/w-scanCode",name:"白胚扫码放货架",type:"rawFabric"},{path:"../whiteEmbryo/w-warehouse",name:"仓库维护",type:"warehouse"},{path:"../whiteEmbryo/w-libraryLocation",name:"库位号维护",type:"shelves"},{path:"../whiteEmbryo/w-list",name:"白胚列表",type:"rawFabric"},{path:"../spot/list",name:"需求单列表",type:"interOrder"},{path:"../customOrder/list",name:"定做单列表",type:"customOrder"},{path:"../distribution/distribution",name:"待配货列表",type:"tribute"},{path:"../documentary/documentary",name:"跟单列表",type:"tracking"},{path:"../colorBlank/colorBlank",name:"色胚质检列表",type:"testing"},{path:"../colorBlank/defect",name:"色胚质检瑕疵维护",type:"blemish"},{path:"../colorBlank/quality",name:"色胚质检项维护",type:"testItem"},{path:"../colorBlank/physical",name:"理化报告选项维护",type:"extraOption"},{path:"../colorBlank/resultsQuery",name:"质检结果查询",type:"testing"},{path:"../colorBlank/ScanCodeStorage",name:"扫码暂存",type:"testing"},{path:"../orderStatus/orderStatus",name:"订单状态查询",type:"testing"}]),g=a([]);t((()=>{w("/v1/auth/info").then((e=>{200===e.code?(localStorage.setItem("info",JSON.stringify(e.data)),e.data.permissions.forEach((e=>{f.value.forEach((a=>{if(e.includes(a.type)){g.value.find((e=>e.path==a.path))||g.value.push(a)}}))}))):(n({url:"/pages/login/login"}),r(e.msg))})),o({key:"token",success:function(e){e.data||n({url:"/pages/login/login"})},fail:function(e){n({url:"/pages/login/login"})}})}));return(e,a)=>{const t=h;return s(),p(t,{class:"content"},{default:i((()=>[(s(!0),m(c,null,l(g.value,((e,a)=>(s(),p(t,{key:a},{default:i((()=>[e.name?(s(),m("p",{key:0,class:"btn",onClick:a=>(e=>{d({url:e.path})})(e)},y(e.name),9,["onClick"])):u("",!0)])),_:2},1024)))),128))])),_:1})}}}),[["__scopeId","data-v-0dfa201d"]]);export{g as default};

View File

@ -1 +1 @@
import{d as e,o as a,r as l,j as t,b as s,e as o,k as n,w as r,l as u,m as i,p as d,a as p,s as m}from"./index-BAgZZwqh.js";import{p as v}from"./index.CCkKeMRW.js";import{_ as c}from"./_plugin-vue_export-helper.BCo6x5W8.js";const g=c(e({__name:"login",setup(e){a((()=>{}));const c=l(""),g=l(""),f=l(!1),x=()=>{let e={username:c.value,password:g.value};v("/v1/auth/login",e,{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}).then((e=>{if(200===e.code){const a=e.data;localStorage.setItem("token",a),d("登录成功!"),setTimeout((()=>{p({url:"/pages/index/index"})}),500)}else m(e.msg)}))},y=()=>{f.value=!f.value};return(e,a)=>{const l=t("van-field"),d=t("van-cell-group"),p=t("van-button"),m=t("van-form");return s(),o("div",{style:{"margin-top":"30vh"}},[n(m,{onSubmit:x},{default:r((()=>[n(d,{inset:""},{default:r((()=>[n(l,{style:{"font-size":"16px"},modelValue:c.value,"onUpdate:modelValue":a[0]||(a[0]=e=>c.value=e),name:"用户名",label:"用户名",placeholder:"用户名",rules:[{required:!0,message:"请填写用户名"}]},null,8,["modelValue"]),n(l,{style:{"font-size":"16px"},modelValue:g.value,"onUpdate:modelValue":a[1]||(a[1]=e=>g.value=e),"right-icon":"browsing-history",onClickRightIcon:y,type:f.value?"text":"password",name:"密码",label:"密码",placeholder:"密码",rules:[{required:!0,message:"请填写密码"}]},null,8,["modelValue","type"])])),_:1}),u("div",{style:{margin:"16px"}},[n(p,{round:"",block:"",type:"primary","native-type":"submit"},{default:r((()=>[i(" 登录 ")])),_:1})])])),_:1})])}}}),[["__scopeId","data-v-9b168c22"]]);export{g as default};
import{d as e,o as a,r as l,j as t,b as s,e as o,k as n,w as r,l as u,m as i,p as d,a as p,s as m}from"./index-U_fosny-.js";import{p as v}from"./index.C7MUwTcc.js";import{_ as c}from"./_plugin-vue_export-helper.BCo6x5W8.js";const g=c(e({__name:"login",setup(e){a((()=>{}));const c=l(""),g=l(""),f=l(!1),x=()=>{let e={username:c.value,password:g.value};v("/v1/auth/login",e,{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}).then((e=>{if(200===e.code){const a=e.data;localStorage.setItem("token",a),d("登录成功!"),setTimeout((()=>{p({url:"/pages/index/index"})}),500)}else m(e.msg)}))},y=()=>{f.value=!f.value};return(e,a)=>{const l=t("van-field"),d=t("van-cell-group"),p=t("van-button"),m=t("van-form");return s(),o("div",{style:{"margin-top":"30vh"}},[n(m,{onSubmit:x},{default:r((()=>[n(d,{inset:""},{default:r((()=>[n(l,{style:{"font-size":"16px"},modelValue:c.value,"onUpdate:modelValue":a[0]||(a[0]=e=>c.value=e),name:"用户名",label:"用户名",placeholder:"用户名",rules:[{required:!0,message:"请填写用户名"}]},null,8,["modelValue"]),n(l,{style:{"font-size":"16px"},modelValue:g.value,"onUpdate:modelValue":a[1]||(a[1]=e=>g.value=e),"right-icon":"browsing-history",onClickRightIcon:y,type:f.value?"text":"password",name:"密码",label:"密码",placeholder:"密码",rules:[{required:!0,message:"请填写密码"}]},null,8,["modelValue","type"])])),_:1}),u("div",{style:{margin:"16px"}},[n(p,{round:"",block:"",type:"primary","native-type":"submit"},{default:r((()=>[i(" 登录 ")])),_:1})])])),_:1})])}}}),[["__scopeId","data-v-9b168c22"]]);export{g as default};

View File

@ -1 +1 @@
import{d as e,r as a,o as l,j as s,b as o,e as t,k as n,w as u,m as d,F as r,f as c,l as i,t as m,q as v,i as p,c as f,h as _}from"./index-BAgZZwqh.js";import{g as h,a as g,p as y,s as k,d as b}from"./index.CCkKeMRW.js";import{_ as w}from"./_plugin-vue_export-helper.BCo6x5W8.js";const C=w(e({__name:"m-flow",setup(e){const w=a(!1),C=a([]),V=a({}),x=a([]);l((()=>{U(),h("/process").then((e=>{200===e.code&&(x.value=e.data.map((e=>({text:e.name,value:e.id}))))}))}));const U=()=>{h("/craftFlows").then((e=>{200===e.code&&(C.value=e.data)}))},F=()=>{history.back()},O=()=>{V.value={processes:[{necessary:!0}]},w.value=!0},j=()=>{V.value.id?g("/craftFlows",V.value).then((e=>{200===e.code&&(U(),w.value=!1,v("提交成功!"))})):y("/craftFlows",V.value).then((e=>{200===e.code&&(U(),w.value=!1,v("提交成功!"))}))},q=a(!1),z=a(),S=a([]),J=e=>{V.value.processes[z.value].id=e.selectedOptions[0].value,V.value.processes[z.value].name=e.selectedOptions[0].text,L()},L=()=>{q.value=!1},N=()=>{S.value=x.value};return(e,a)=>{const l=s("van-nav-bar"),h=p,g=s("van-field"),y=s("van-radio"),x=s("van-radio-group"),R=s("van-icon"),I=s("van-checkbox"),M=s("van-cell-group"),A=s("van-button"),B=s("van-form"),D=s("van-popup"),E=s("van-picker");return o(),t(r,null,[n(h,{class:"flex"},{default:u((()=>[n(l,{title:"工艺流程维护","left-text":"返回","left-arrow":"","right-text":"新增",onClickLeft:F,onClickRight:O}),n(h,{class:"grid-container"},{default:u((()=>[n(h,{class:"grid-item"},{default:u((()=>[d("工艺流程名称")])),_:1}),n(h,{class:"grid-item"},{default:u((()=>[d("操作")])),_:1})])),_:1}),n(h,{class:"content"},{default:u((()=>[(o(!0),t(r,null,c(C.value,((e,a)=>(o(),f(h,{class:"grid-container",key:a},{default:u((()=>[n(h,{class:"grid-item"},{default:u((()=>[d(m(e.name),1)])),_:2},1024),n(h,{class:"grid-item"},{default:u((()=>[i("span",{style:{color:"#35a5f7"},onClick:a=>(e=>{V.value=JSON.parse(JSON.stringify(e)),w.value=!0})(e)},"编辑",8,["onClick"]),d("    "),i("span",{style:{color:"red"},onClick:a=>(e=>{k({title:"提示",message:"是否确认删除?"}).then((()=>{let a="/craftFlows/"+e.id;b(a).then((e=>{200===e.code&&(U(),v("删除成功!"))}))})).catch((()=>{}))})(e)},"删除 ",8,["onClick"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1}),n(D,{show:w.value,"onUpdate:show":a[4]||(a[4]=e=>w.value=e),style:{width:"90%"},round:""},{default:u((()=>[n(h,null,{default:u((()=>[i("h3",{style:{"text-align":"center"}},m(V.value.id?"编辑工艺流程":"新增工艺流程"),1),n(B,{onSubmit:j},{default:u((()=>[n(M,{inset:""},{default:u((()=>[n(g,{modelValue:V.value.name,"onUpdate:modelValue":a[0]||(a[0]=e=>V.value.name=e),name:"工艺流程名称",label:"工艺流程名称",colon:"","label-width":"7em",rules:[{required:!0,message:"请填写"}]},null,8,["modelValue"]),n(g,{name:"工序流程类型",label:"工序流程类型",colon:"","label-width":"7em",class:"b-a",rules:[{required:!0,message:"请填写"}]},{input:u((()=>[n(x,{modelValue:V.value.type,"onUpdate:modelValue":a[1]||(a[1]=e=>V.value.type=e),direction:"horizontal"},{default:u((()=>[n(y,{name:"常规"},{default:u((()=>[d("常规")])),_:1}),n(y,{name:"回修"},{default:u((()=>[d("回修")])),_:1})])),_:1},8,["modelValue"])])),_:1}),i("p",null,"请选择对应工序"),(o(!0),t(r,null,c(V.value.processes,((e,l)=>(o(),f(h,{key:l,class:"a-b"},{default:u((()=>[0===l?(o(),f(R,{key:0,name:"add",color:"red",size:"25",onClick:a[2]||(a[2]=e=>V.value.processes.push({necessary:!0}))})):_("",!0),0!=l?(o(),f(R,{key:1,name:"clear",color:"red",size:"25",onClick:e=>V.value.processes.splice(l,1)},null,8,["onClick"])):_("",!0),n(g,{modelValue:e.name,"onUpdate:modelValue":a=>e.name=a,name:"工序",label:"工序","label-align":"right",readonly:"",colon:"","label-width":"2.5em",class:"bor",onClick:e=>(e=>{q.value=!0,z.value=e})(l),rules:[{required:!0,message:"请填写"}]},null,8,["modelValue","onUpdate:modelValue","onClick"]),n(I,{modelValue:e.necessary,"onUpdate:modelValue":a=>e.necessary=a,name:!1,style:{"margin-left":"15rpx"}},{default:u((()=>[d("不可跳过")])),_:2},1032,["modelValue","onUpdate:modelValue"])])),_:2},1024)))),128))])),_:1}),n(h,{class:"a-c"},{default:u((()=>[n(A,{type:"danger",onClick:a[3]||(a[3]=e=>w.value=!1)},{default:u((()=>[d("取消")])),_:1}),n(A,{type:"primary","native-type":"submit"},{default:u((()=>[d("确认")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["show"]),n(D,{show:q.value,"onUpdate:show":a[5]||(a[5]=e=>q.value=e),round:"",position:"bottom",onOpen:N},{default:u((()=>[n(E,{"show-toolbar":"",columns:S.value,onConfirm:J,onCancel:L,ref:"pickerRef"},null,8,["columns"])])),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-3267cddf"]]);export{C as default};
import{d as e,r as a,o as l,j as s,b as o,e as t,k as n,w as u,m as d,F as r,f as c,l as i,t as m,q as v,i as p,c as f,h as _}from"./index-U_fosny-.js";import{g as h,a as g,p as y,s as k,d as b}from"./index.C7MUwTcc.js";import{_ as w}from"./_plugin-vue_export-helper.BCo6x5W8.js";const C=w(e({__name:"m-flow",setup(e){const w=a(!1),C=a([]),V=a({}),x=a([]);l((()=>{U(),h("/process").then((e=>{200===e.code&&(x.value=e.data.map((e=>({text:e.name,value:e.id}))))}))}));const U=()=>{h("/craftFlows").then((e=>{200===e.code&&(C.value=e.data)}))},F=()=>{history.back()},O=()=>{V.value={processes:[{necessary:!0}]},w.value=!0},j=()=>{V.value.id?g("/craftFlows",V.value).then((e=>{200===e.code&&(U(),w.value=!1,v("提交成功!"))})):y("/craftFlows",V.value).then((e=>{200===e.code&&(U(),w.value=!1,v("提交成功!"))}))},q=a(!1),z=a(),S=a([]),J=e=>{V.value.processes[z.value].id=e.selectedOptions[0].value,V.value.processes[z.value].name=e.selectedOptions[0].text,L()},L=()=>{q.value=!1},N=()=>{S.value=x.value};return(e,a)=>{const l=s("van-nav-bar"),h=p,g=s("van-field"),y=s("van-radio"),x=s("van-radio-group"),R=s("van-icon"),I=s("van-checkbox"),M=s("van-cell-group"),A=s("van-button"),B=s("van-form"),D=s("van-popup"),E=s("van-picker");return o(),t(r,null,[n(h,{class:"flex"},{default:u((()=>[n(l,{title:"工艺流程维护","left-text":"返回","left-arrow":"","right-text":"新增",onClickLeft:F,onClickRight:O}),n(h,{class:"grid-container"},{default:u((()=>[n(h,{class:"grid-item"},{default:u((()=>[d("工艺流程名称")])),_:1}),n(h,{class:"grid-item"},{default:u((()=>[d("操作")])),_:1})])),_:1}),n(h,{class:"content"},{default:u((()=>[(o(!0),t(r,null,c(C.value,((e,a)=>(o(),f(h,{class:"grid-container",key:a},{default:u((()=>[n(h,{class:"grid-item"},{default:u((()=>[d(m(e.name),1)])),_:2},1024),n(h,{class:"grid-item"},{default:u((()=>[i("span",{style:{color:"#35a5f7"},onClick:a=>(e=>{V.value=JSON.parse(JSON.stringify(e)),w.value=!0})(e)},"编辑",8,["onClick"]),d("    "),i("span",{style:{color:"red"},onClick:a=>(e=>{k({title:"提示",message:"是否确认删除?"}).then((()=>{let a="/craftFlows/"+e.id;b(a).then((e=>{200===e.code&&(U(),v("删除成功!"))}))})).catch((()=>{}))})(e)},"删除 ",8,["onClick"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1}),n(D,{show:w.value,"onUpdate:show":a[4]||(a[4]=e=>w.value=e),style:{width:"90%"},round:""},{default:u((()=>[n(h,null,{default:u((()=>[i("h3",{style:{"text-align":"center"}},m(V.value.id?"编辑工艺流程":"新增工艺流程"),1),n(B,{onSubmit:j},{default:u((()=>[n(M,{inset:""},{default:u((()=>[n(g,{modelValue:V.value.name,"onUpdate:modelValue":a[0]||(a[0]=e=>V.value.name=e),name:"工艺流程名称",label:"工艺流程名称",colon:"","label-width":"7em",rules:[{required:!0,message:"请填写"}]},null,8,["modelValue"]),n(g,{name:"工序流程类型",label:"工序流程类型",colon:"","label-width":"7em",class:"b-a",rules:[{required:!0,message:"请填写"}]},{input:u((()=>[n(x,{modelValue:V.value.type,"onUpdate:modelValue":a[1]||(a[1]=e=>V.value.type=e),direction:"horizontal"},{default:u((()=>[n(y,{name:"常规"},{default:u((()=>[d("常规")])),_:1}),n(y,{name:"回修"},{default:u((()=>[d("回修")])),_:1})])),_:1},8,["modelValue"])])),_:1}),i("p",null,"请选择对应工序"),(o(!0),t(r,null,c(V.value.processes,((e,l)=>(o(),f(h,{key:l,class:"a-b"},{default:u((()=>[0===l?(o(),f(R,{key:0,name:"add",color:"red",size:"25",onClick:a[2]||(a[2]=e=>V.value.processes.push({necessary:!0}))})):_("",!0),0!=l?(o(),f(R,{key:1,name:"clear",color:"red",size:"25",onClick:e=>V.value.processes.splice(l,1)},null,8,["onClick"])):_("",!0),n(g,{modelValue:e.name,"onUpdate:modelValue":a=>e.name=a,name:"工序",label:"工序","label-align":"right",readonly:"",colon:"","label-width":"2.5em",class:"bor",onClick:e=>(e=>{q.value=!0,z.value=e})(l),rules:[{required:!0,message:"请填写"}]},null,8,["modelValue","onUpdate:modelValue","onClick"]),n(I,{modelValue:e.necessary,"onUpdate:modelValue":a=>e.necessary=a,name:!1,style:{"margin-left":"15rpx"}},{default:u((()=>[d("不可跳过")])),_:2},1032,["modelValue","onUpdate:modelValue"])])),_:2},1024)))),128))])),_:1}),n(h,{class:"a-c"},{default:u((()=>[n(A,{type:"danger",onClick:a[3]||(a[3]=e=>w.value=!1)},{default:u((()=>[d("取消")])),_:1}),n(A,{type:"primary","native-type":"submit"},{default:u((()=>[d("确认")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["show"]),n(D,{show:q.value,"onUpdate:show":a[5]||(a[5]=e=>q.value=e),round:"",position:"bottom",onOpen:N},{default:u((()=>[n(E,{"show-toolbar":"",columns:S.value,onConfirm:J,onCancel:L,ref:"pickerRef"},null,8,["columns"])])),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-3267cddf"]]);export{C as default};

View File

@ -1 +1 @@
import{d as e,r as a,o as l,j as t,b as o,c as n,w as s,k as d,e as i,f as r,F as u,m as c,q as m,i as p}from"./index-BAgZZwqh.js";import{g as f,a as _}from"./index.CCkKeMRW.js";import{_ as g}from"./_plugin-vue_export-helper.BCo6x5W8.js";const y=g(e({__name:"m-other",setup(e){const g=a([]);function y(){f("/extraOption").then((e=>{200===e.code&&(g.value=JSON.parse(e.data.payload))}))}l((()=>{y()}));const v=()=>{history.back()},V=()=>{g.value.push({necessary:!0,options:[{}]})},h=()=>{let e=!0;if(g.value.forEach((a=>{a.name||(e=!1),a.options.forEach((a=>{a.name||(e=!1)}))})),!e)return m("请填完整信息!");let a={id:1,payload:JSON.stringify(g.value)};_("/extraOption",a).then((e=>{200===e.code&&(m("提交成功!"),y())}))};return(e,a)=>{const l=t("van-nav-bar"),m=t("van-icon"),f=t("van-field"),_=t("van-button"),y=p,k=t("van-radio"),x=t("van-radio-group"),b=t("van-cell-group"),C=t("van-checkbox");return o(),n(y,{class:"flex"},{default:s((()=>[d(l,{title:"其他要求项维护","left-text":"返回","left-arrow":"","right-text":"新增",onClickLeft:v,onClickRight:V}),d(y,{class:"content"},{default:s((()=>[(o(!0),i(u,null,r(g.value,((e,a)=>(o(),n(y,{class:"card",key:a},{default:s((()=>[d(b,{inset:""},{default:s((()=>[d(y,{class:"a-b"},{default:s((()=>[d(m,{name:"clear",color:"red",size:"25",onClick:e=>g.value.splice(a,1)},null,8,["onClick"]),d(f,{modelValue:e.name,"onUpdate:modelValue":a=>e.name=a,name:"要求项名称",label:"要求项名称",colon:"",class:"a-c","label-width":"6em",rules:[{required:!0,message:"请填写"}]},null,8,["modelValue","onUpdate:modelValue"]),d(_,{type:"primary",onClick:a=>(e=>{e.options.push({})})(e)},{default:s((()=>[c("新增选项")])),_:2},1032,["onClick"])])),_:2},1024),d(f,{name:"是否必填",label:"是否必填",colon:"","label-width":"7.5em"},{input:s((()=>[d(x,{modelValue:e.necessary,"onUpdate:modelValue":a=>e.necessary=a,direction:"horizontal"},{default:s((()=>[d(k,{name:!0},{default:s((()=>[c("是")])),_:1}),d(k,{name:!1},{default:s((()=>[c("否")])),_:1})])),_:2},1032,["modelValue","onUpdate:modelValue"])])),_:2},1024)])),_:2},1024),d(y,{class:"grid-container"},{default:s((()=>[d(y,{class:"grid-item"}),d(y,{class:"grid-item"},{default:s((()=>[c("内容")])),_:1}),d(y,{class:"grid-item"},{default:s((()=>[c("是否默认")])),_:1}),d(y,{class:"grid-item"},{default:s((()=>[c("操作")])),_:1})])),_:1}),(o(!0),i(u,null,r(e.options,((a,l)=>(o(),n(y,{class:"grid-container",key:l},{default:s((()=>[d(y,{class:"grid-item"},{default:s((()=>[c("选项")])),_:1}),d(y,{class:"grid-item"},{default:s((()=>[d(f,{modelValue:a.name,"onUpdate:modelValue":e=>a.name=e},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),d(y,{class:"grid-item",style:{display:"flex","align-items":"center","justify-content":"center"}},{default:s((()=>[d(C,{modelValue:a.default,"onUpdate:modelValue":e=>a.default=e,name:!0},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),d(y,{class:"grid-item",style:{color:"red"},onClick:a=>e.options.splice(l,1)},{default:s((()=>[c("删除")])),_:2},1032,["onClick"])])),_:2},1024)))),128))])),_:2},1024)))),128))])),_:1}),d(_,{type:"primary",style:{margin:"10rpx"},onClick:h},{default:s((()=>[c("提交")])),_:1})])),_:1})}}}),[["__scopeId","data-v-8867ea11"]]);export{y as default};
import{d as e,r as a,o as l,j as t,b as o,c as n,w as s,k as d,e as i,f as r,F as u,m as c,q as m,i as p}from"./index-U_fosny-.js";import{g as f,a as _}from"./index.C7MUwTcc.js";import{_ as g}from"./_plugin-vue_export-helper.BCo6x5W8.js";const y=g(e({__name:"m-other",setup(e){const g=a([]);function y(){f("/extraOption").then((e=>{200===e.code&&(g.value=JSON.parse(e.data.payload))}))}l((()=>{y()}));const v=()=>{history.back()},V=()=>{g.value.push({necessary:!0,options:[{}]})},h=()=>{let e=!0;if(g.value.forEach((a=>{a.name||(e=!1),a.options.forEach((a=>{a.name||(e=!1)}))})),!e)return m("请填完整信息!");let a={id:1,payload:JSON.stringify(g.value)};_("/extraOption",a).then((e=>{200===e.code&&(m("提交成功!"),y())}))};return(e,a)=>{const l=t("van-nav-bar"),m=t("van-icon"),f=t("van-field"),_=t("van-button"),y=p,k=t("van-radio"),x=t("van-radio-group"),b=t("van-cell-group"),C=t("van-checkbox");return o(),n(y,{class:"flex"},{default:s((()=>[d(l,{title:"其他要求项维护","left-text":"返回","left-arrow":"","right-text":"新增",onClickLeft:v,onClickRight:V}),d(y,{class:"content"},{default:s((()=>[(o(!0),i(u,null,r(g.value,((e,a)=>(o(),n(y,{class:"card",key:a},{default:s((()=>[d(b,{inset:""},{default:s((()=>[d(y,{class:"a-b"},{default:s((()=>[d(m,{name:"clear",color:"red",size:"25",onClick:e=>g.value.splice(a,1)},null,8,["onClick"]),d(f,{modelValue:e.name,"onUpdate:modelValue":a=>e.name=a,name:"要求项名称",label:"要求项名称",colon:"",class:"a-c","label-width":"6em",rules:[{required:!0,message:"请填写"}]},null,8,["modelValue","onUpdate:modelValue"]),d(_,{type:"primary",onClick:a=>(e=>{e.options.push({})})(e)},{default:s((()=>[c("新增选项")])),_:2},1032,["onClick"])])),_:2},1024),d(f,{name:"是否必填",label:"是否必填",colon:"","label-width":"7.5em"},{input:s((()=>[d(x,{modelValue:e.necessary,"onUpdate:modelValue":a=>e.necessary=a,direction:"horizontal"},{default:s((()=>[d(k,{name:!0},{default:s((()=>[c("是")])),_:1}),d(k,{name:!1},{default:s((()=>[c("否")])),_:1})])),_:2},1032,["modelValue","onUpdate:modelValue"])])),_:2},1024)])),_:2},1024),d(y,{class:"grid-container"},{default:s((()=>[d(y,{class:"grid-item"}),d(y,{class:"grid-item"},{default:s((()=>[c("内容")])),_:1}),d(y,{class:"grid-item"},{default:s((()=>[c("是否默认")])),_:1}),d(y,{class:"grid-item"},{default:s((()=>[c("操作")])),_:1})])),_:1}),(o(!0),i(u,null,r(e.options,((a,l)=>(o(),n(y,{class:"grid-container",key:l},{default:s((()=>[d(y,{class:"grid-item"},{default:s((()=>[c("选项")])),_:1}),d(y,{class:"grid-item"},{default:s((()=>[d(f,{modelValue:a.name,"onUpdate:modelValue":e=>a.name=e},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),d(y,{class:"grid-item",style:{display:"flex","align-items":"center","justify-content":"center"}},{default:s((()=>[d(C,{modelValue:a.default,"onUpdate:modelValue":e=>a.default=e,name:!0},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),d(y,{class:"grid-item",style:{color:"red"},onClick:a=>e.options.splice(l,1)},{default:s((()=>[c("删除")])),_:2},1032,["onClick"])])),_:2},1024)))),128))])),_:2},1024)))),128))])),_:1}),d(_,{type:"primary",style:{margin:"10rpx"},onClick:h},{default:s((()=>[c("提交")])),_:1})])),_:1})}}}),[["__scopeId","data-v-8867ea11"]]);export{y as default};

View File

@ -1 +1 @@
import{d as a,r as e,j as s,b as t,c as l,w as i,k as r,m as n,e as c,f as o,F as d,n as f,i as u,t as m,q as p,C as _}from"./index-BAgZZwqh.js";import{o as g}from"./uni-app.es.DmKENPst.js";import{g as k,s as h,d as x}from"./index.CCkKeMRW.js";import{_ as C}from"./_plugin-vue_export-helper.BCo6x5W8.js";const v=C(a({__name:"m-process",setup(a){const C=e([]);g((()=>{v()}));const v=()=>{k("/process").then((a=>{200===a.code&&(C.value=a.data)}))},j=()=>{history.back()},y=()=>{f({url:"/pages/maintenance/p-details"})};return(a,e)=>{const g=s("van-nav-bar"),k=u,b=_;return t(),l(k,{class:"flex"},{default:i((()=>[r(g,{title:"工序项维护","left-text":"返回","left-arrow":"","right-text":"新增",onClickLeft:j,onClickRight:y}),r(k,{class:"grid-container"},{default:i((()=>[r(k,{class:"grid-item"},{default:i((()=>[n("工序")])),_:1}),r(k,{class:"grid-item"},{default:i((()=>[n("序号")])),_:1}),r(k,{class:"grid-item"},{default:i((()=>[n("操作")])),_:1})])),_:1}),r(k,{class:"content"},{default:i((()=>[(t(!0),c(d,null,o(C.value,((a,e)=>(t(),l(k,{class:"grid-container",key:e},{default:i((()=>[r(k,{class:"grid-item"},{default:i((()=>[n(m(a.name),1)])),_:2},1024),r(k,{class:"grid-item"},{default:i((()=>[n(m(a.serialNum),1)])),_:2},1024),r(k,{class:"grid-item"},{default:i((()=>[r(b,{onClick:e=>(a=>{f({url:"/pages/maintenance/p-details?item="+JSON.stringify(a)})})(a),style:{color:"#5bd5ff"}},{default:i((()=>[n("编辑")])),_:2},1032,["onClick"]),r(b,{onClick:e=>(a=>{h({title:"提示",message:"是否确认删除?"}).then((()=>{let e="/process/"+a.id;x(e).then((a=>{200===a.code&&(v(),p("删除成功!"))}))})).catch((()=>{}))})(a),style:{color:"red","margin-left":"20rpx"}},{default:i((()=>[n("删除")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1})}}}),[["__scopeId","data-v-0366a1e3"]]);export{v as default};
import{d as a,r as e,j as s,b as t,c as l,w as i,k as r,m as n,e as c,f as o,F as d,n as f,i as u,t as m,q as p,C as _}from"./index-U_fosny-.js";import{o as g}from"./uni-app.es.CB2yB8P5.js";import{g as k,s as h,d as x}from"./index.C7MUwTcc.js";import{_ as C}from"./_plugin-vue_export-helper.BCo6x5W8.js";const v=C(a({__name:"m-process",setup(a){const C=e([]);g((()=>{v()}));const v=()=>{k("/process").then((a=>{200===a.code&&(C.value=a.data)}))},j=()=>{history.back()},y=()=>{f({url:"/pages/maintenance/p-details"})};return(a,e)=>{const g=s("van-nav-bar"),k=u,b=_;return t(),l(k,{class:"flex"},{default:i((()=>[r(g,{title:"工序项维护","left-text":"返回","left-arrow":"","right-text":"新增",onClickLeft:j,onClickRight:y}),r(k,{class:"grid-container"},{default:i((()=>[r(k,{class:"grid-item"},{default:i((()=>[n("工序")])),_:1}),r(k,{class:"grid-item"},{default:i((()=>[n("序号")])),_:1}),r(k,{class:"grid-item"},{default:i((()=>[n("操作")])),_:1})])),_:1}),r(k,{class:"content"},{default:i((()=>[(t(!0),c(d,null,o(C.value,((a,e)=>(t(),l(k,{class:"grid-container",key:e},{default:i((()=>[r(k,{class:"grid-item"},{default:i((()=>[n(m(a.name),1)])),_:2},1024),r(k,{class:"grid-item"},{default:i((()=>[n(m(a.serialNum),1)])),_:2},1024),r(k,{class:"grid-item"},{default:i((()=>[r(b,{onClick:e=>(a=>{f({url:"/pages/maintenance/p-details?item="+JSON.stringify(a)})})(a),style:{color:"#5bd5ff"}},{default:i((()=>[n("编辑")])),_:2},1032,["onClick"]),r(b,{onClick:e=>(a=>{h({title:"提示",message:"是否确认删除?"}).then((()=>{let e="/process/"+a.id;x(e).then((a=>{200===a.code&&(v(),p("删除成功!"))}))})).catch((()=>{}))})(a),style:{color:"red","margin-left":"20rpx"}},{default:i((()=>[n("删除")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1})}}}),[["__scopeId","data-v-0366a1e3"]]);export{v as default};

View File

@ -1 +1 @@
import{d as e,r as a,o as l,j as o,b as t,e as n,k as s,w as u,m as d,F as i,f,l as c,q as r,i as m,c as v,t as p,h as w}from"./index-BAgZZwqh.js";import{g as _,a as h,p as k}from"./index.CCkKeMRW.js";import{_ as b}from"./_plugin-vue_export-helper.BCo6x5W8.js";const g=b(e({__name:"processOldzmd",setup(e){const b=a(!1),g=a([]),C=a(!1),y=a({flows:[{}]}),x=a();a([]),a([]);const V=()=>{if(y.value.id){let e={id:y.value.id,craftName:y.value.name,flows:y.value.flows};h("/flowBind",e).then((e=>{200===e.code&&(O(),b.value=!1,r("修改成功!"))}))}else{let e={craftName:y.value.name,flows:y.value.flows};k("/flowBind",e).then((e=>{200===e.code&&(O(),b.value=!1,r("修改成功!"))}))}},U=()=>{b.value=!1},j=()=>{history.back()},N=()=>{b.value=!0},O=()=>{g.value=[],_("/fabric/craft/info").then((e=>{200===e.code&&_("/flowBind").then((a=>{200===a.code&&e.data.forEach((e=>{let l=a.data.find((a=>a.craftName===e.name));l?g.value.push({id:l.id,name:l.craftName,flows:l.flows}):g.value.push({name:e.name,flows:[{bind:"通用"}]})}))}))}))},z=a(),B=e=>{y.value.flows[z.value].id=e.selectedOptions[0].value,y.value.flows[z.value].name=e.selectedOptions[0].text,L()},L=()=>{C.value=!1},R=()=>{q.value=E.value},q=a([]),E=a([]);return l((()=>{O(),_("/craftFlows").then((e=>{200===e.code&&(E.value=e.data.map((e=>({text:e.name,value:e.id}))))}))})),(e,a)=>{const l=o("van-nav-bar"),r=m,_=o("van-icon"),h=o("van-field"),k=o("van-radio"),O=o("van-radio-group"),E=o("van-cell-group"),F=o("van-form"),I=o("van-button"),M=o("van-popup"),A=o("van-picker");return t(),n(i,null,[s(r,{class:"flex"},{default:u((()=>[s(l,{title:"工艺维护","left-text":"返回","left-arrow":"",onClickLeft:j,onClickRight:N}),s(r,{class:"grid-container"},{default:u((()=>[s(r,{class:"grid-item"},{default:u((()=>[d("工艺名称")])),_:1}),s(r,{class:"grid-item"},{default:u((()=>[d("操作")])),_:1})])),_:1}),s(r,{class:"content"},{default:u((()=>[(t(!0),n(i,null,f(g.value,((e,a)=>(t(),v(r,{class:"grid-container",key:a},{default:u((()=>[s(r,{class:"grid-item"},{default:u((()=>[d(p(e.name),1)])),_:2},1024),s(r,{class:"grid-item",onClick:a=>(e=>{y.value=e,b.value=!0})(e),style:{color:"#02a7f0"}},{default:u((()=>[d("编辑")])),_:2},1032,["onClick"])])),_:2},1024)))),128))])),_:1})])),_:1}),s(M,{show:b.value,"onUpdate:show":a[1]||(a[1]=e=>b.value=e),style:{width:"100%"}},{default:u((()=>[s(r,{class:"flex"},{default:u((()=>[s(l,{title:"工艺维护","left-text":"返回","left-arrow":"",onClickLeft:U}),s(r,{class:"content"},{default:u((()=>[s(F,{ref_key:"formRef",ref:x,required:"auto"},{default:u((()=>[s(E,null,{default:u((()=>[c("p",null,"绑定工序流程"),(t(!0),n(i,null,f(y.value.flows,((e,l)=>(t(),v(r,{key:l,class:"a-b"},{default:u((()=>[0===l?(t(),v(_,{key:0,name:"add",color:"red",size:"25",onClick:a[0]||(a[0]=e=>y.value.flows.push({bind:"通用"}))})):w("",!0),0!=l?(t(),v(_,{key:1,name:"clear",color:"red",size:"25",onClick:e=>y.value.flows.splice(l,1)},null,8,["onClick"])):w("",!0),s(h,{modelValue:e.name,"onUpdate:modelValue":a=>e.name=a,name:"工序流程",label:"工序流程","label-align":"right",readonly:"",colon:"","label-width":"5em",class:"bor",onClick:e=>(e=>{C.value=!0,z.value=e})(l)},null,8,["modelValue","onUpdate:modelValue","onClick"]),s(O,{modelValue:e.bind,"onUpdate:modelValue":a=>e.bind=a,onClick:e=>(e=>{y.value.flows.forEach(((a,l)=>{a.bind=l!=e?"通用":"仅现货"}))})(l)},{default:u((()=>[s(k,{name:"仅现货"},{default:u((()=>[d("现货单使用")])),_:1})])),_:2},1032,["modelValue","onUpdate:modelValue","onClick"])])),_:2},1024)))),128))])),_:1})])),_:1},512)])),_:1}),s(r,{style:{display:"flex","justify-content":"space-between",padding:"0 30px","margin-top":"15px"}},{default:u((()=>[s(I,{type:"primary",block:"",onClick:V},{default:u((()=>[d("保存")])),_:1})])),_:1})])),_:1})])),_:1},8,["show"]),s(M,{show:C.value,"onUpdate:show":a[2]||(a[2]=e=>C.value=e),round:"",position:"bottom",onOpen:R},{default:u((()=>[s(A,{"show-toolbar":"",columns:q.value,onConfirm:B,onCancel:L,ref:"pickerRef"},null,8,["columns"])])),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-40105d94"]]);export{g as default};
import{d as e,r as a,o as l,j as o,b as t,e as n,k as s,w as u,m as d,F as i,f,l as c,q as r,i as m,c as v,t as p,h as w}from"./index-U_fosny-.js";import{g as _,a as h,p as k}from"./index.C7MUwTcc.js";import{_ as b}from"./_plugin-vue_export-helper.BCo6x5W8.js";const g=b(e({__name:"processOldzmd",setup(e){const b=a(!1),g=a([]),C=a(!1),y=a({flows:[{}]}),x=a();a([]),a([]);const V=()=>{if(y.value.id){let e={id:y.value.id,craftName:y.value.name,flows:y.value.flows};h("/flowBind",e).then((e=>{200===e.code&&(O(),b.value=!1,r("修改成功!"))}))}else{let e={craftName:y.value.name,flows:y.value.flows};k("/flowBind",e).then((e=>{200===e.code&&(O(),b.value=!1,r("修改成功!"))}))}},U=()=>{b.value=!1},j=()=>{history.back()},N=()=>{b.value=!0},O=()=>{g.value=[],_("/fabric/craft/info").then((e=>{200===e.code&&_("/flowBind").then((a=>{200===a.code&&e.data.forEach((e=>{let l=a.data.find((a=>a.craftName===e.name));l?g.value.push({id:l.id,name:l.craftName,flows:l.flows}):g.value.push({name:e.name,flows:[{bind:"通用"}]})}))}))}))},z=a(),B=e=>{y.value.flows[z.value].id=e.selectedOptions[0].value,y.value.flows[z.value].name=e.selectedOptions[0].text,L()},L=()=>{C.value=!1},R=()=>{q.value=E.value},q=a([]),E=a([]);return l((()=>{O(),_("/craftFlows").then((e=>{200===e.code&&(E.value=e.data.map((e=>({text:e.name,value:e.id}))))}))})),(e,a)=>{const l=o("van-nav-bar"),r=m,_=o("van-icon"),h=o("van-field"),k=o("van-radio"),O=o("van-radio-group"),E=o("van-cell-group"),F=o("van-form"),I=o("van-button"),M=o("van-popup"),A=o("van-picker");return t(),n(i,null,[s(r,{class:"flex"},{default:u((()=>[s(l,{title:"工艺维护","left-text":"返回","left-arrow":"",onClickLeft:j,onClickRight:N}),s(r,{class:"grid-container"},{default:u((()=>[s(r,{class:"grid-item"},{default:u((()=>[d("工艺名称")])),_:1}),s(r,{class:"grid-item"},{default:u((()=>[d("操作")])),_:1})])),_:1}),s(r,{class:"content"},{default:u((()=>[(t(!0),n(i,null,f(g.value,((e,a)=>(t(),v(r,{class:"grid-container",key:a},{default:u((()=>[s(r,{class:"grid-item"},{default:u((()=>[d(p(e.name),1)])),_:2},1024),s(r,{class:"grid-item",onClick:a=>(e=>{y.value=e,b.value=!0})(e),style:{color:"#02a7f0"}},{default:u((()=>[d("编辑")])),_:2},1032,["onClick"])])),_:2},1024)))),128))])),_:1})])),_:1}),s(M,{show:b.value,"onUpdate:show":a[1]||(a[1]=e=>b.value=e),style:{width:"100%"}},{default:u((()=>[s(r,{class:"flex"},{default:u((()=>[s(l,{title:"工艺维护","left-text":"返回","left-arrow":"",onClickLeft:U}),s(r,{class:"content"},{default:u((()=>[s(F,{ref_key:"formRef",ref:x,required:"auto"},{default:u((()=>[s(E,null,{default:u((()=>[c("p",null,"绑定工序流程"),(t(!0),n(i,null,f(y.value.flows,((e,l)=>(t(),v(r,{key:l,class:"a-b"},{default:u((()=>[0===l?(t(),v(_,{key:0,name:"add",color:"red",size:"25",onClick:a[0]||(a[0]=e=>y.value.flows.push({bind:"通用"}))})):w("",!0),0!=l?(t(),v(_,{key:1,name:"clear",color:"red",size:"25",onClick:e=>y.value.flows.splice(l,1)},null,8,["onClick"])):w("",!0),s(h,{modelValue:e.name,"onUpdate:modelValue":a=>e.name=a,name:"工序流程",label:"工序流程","label-align":"right",readonly:"",colon:"","label-width":"5em",class:"bor",onClick:e=>(e=>{C.value=!0,z.value=e})(l)},null,8,["modelValue","onUpdate:modelValue","onClick"]),s(O,{modelValue:e.bind,"onUpdate:modelValue":a=>e.bind=a,onClick:e=>(e=>{y.value.flows.forEach(((a,l)=>{a.bind=l!=e?"通用":"仅现货"}))})(l)},{default:u((()=>[s(k,{name:"仅现货"},{default:u((()=>[d("现货单使用")])),_:1})])),_:2},1032,["modelValue","onUpdate:modelValue","onClick"])])),_:2},1024)))),128))])),_:1})])),_:1},512)])),_:1}),s(r,{style:{display:"flex","justify-content":"space-between",padding:"0 30px","margin-top":"15px"}},{default:u((()=>[s(I,{type:"primary",block:"",onClick:V},{default:u((()=>[d("保存")])),_:1})])),_:1})])),_:1})])),_:1},8,["show"]),s(M,{show:C.value,"onUpdate:show":a[2]||(a[2]=e=>C.value=e),round:"",position:"bottom",onOpen:R},{default:u((()=>[s(A,{"show-toolbar":"",columns:q.value,onConfirm:B,onCancel:L,ref:"pickerRef"},null,8,["columns"])])),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-40105d94"]]);export{g as default};

View File

@ -1 +1 @@
import{d as e,r as t,j as a,b as l,c as s,w as r,k as n,m as i,e as d,f as o,F as c,i as u,t as g,D as m,C as f}from"./index-BAgZZwqh.js";import{g as y}from"./index.CCkKeMRW.js";import{f as _}from"./date.kFpT0SQ2.js";import{_ as x}from"./_plugin-vue_export-helper.BCo6x5W8.js";const p=x(e({__name:"orderStatus",setup(e){const x=t([]),p=t({}),h=()=>{x.value=[],y("/tracking/op",{...p.value}).then((e=>{200===e.code&&e.data.forEach((e=>{e.logs.length>0?(e.trackingLog.yjccrq=function(e,t){const a=new Date(e);return a.setHours(0,0,0,0),a.setDate(a.getDate()+t),_(a)}(e.logs[0].details.form.czrq,e.logs[0].details.form.yjccts),e.logs.length>1&&"已出厂"!=e.logs[e.logs.length-1].details.zt?e.trackingLog.yjxybrq=e.logs[e.logs.length-1].details.form.yjxybrq:e.trackingLog.yjxybrq="暂无"):e.trackingLog.yjccrq="暂无",x.value.push(e.trackingLog)}))}))},b=()=>{h()},v=()=>{history.back()},j=e=>{let t=0;return e.forEach((e=>{t+=1*e.ms})),t.toFixed(1)};function k(e,t){const a=new Date(e),l=(new Date(t)-a)/864e5;return Math.abs(Math.round(l))}return(e,t)=>{const y=a("van-nav-bar"),h=a("van-field"),w=a("van-button"),D=u,q=f;return l(),s(D,{class:"flex"},{default:r((()=>[n(y,{title:"订单状态查询","left-text":"返回","left-arrow":"",onClickLeft:v}),n(D,{style:{display:"flex","align-items":"center"}},{default:r((()=>[n(h,{class:"bor",label:"谁定","label-width":"2.5em",colon:"",modelValue:p.value.sd,"onUpdate:modelValue":t[0]||(t[0]=e=>p.value.sd=e)},null,8,["modelValue"]),n(h,{class:"bor",label:"做单人","label-width":"3.5em",colon:"",modelValue:p.value.makeUser,"onUpdate:modelValue":t[1]||(t[1]=e=>p.value.makeUser=e)},null,8,["modelValue"]),n(D,{style:{width:"20%","margin-right":"5rpx"}},{default:r((()=>[n(w,{type:"primary",style:{width:"3rem"},onClick:b},{default:r((()=>[i("搜索")])),_:1})])),_:1})])),_:1}),n(D,{class:"content"},{default:r((()=>[(l(!0),d(c,null,o(x.value,((e,t)=>(l(),s(D,{class:"card"},{default:r((()=>[n(D,{class:"grid-container"},{default:r((()=>[n(D,{class:"grid-item"},{default:r((()=>[i("进厂日期:"+g(m(_)(new Date(e.createTime))),1)])),_:2},1024),n(D,{class:"grid-item",style:{"text-align":"end"}},{default:r((()=>[i("当前进度:"),n(q,{style:{color:"red"}},{default:r((()=>[i(g(e.zt),1)])),_:2},1024)])),_:2},1024),n(D,{class:"grid-item"},{default:r((()=>[i("百合白,"+g(e.sd)+"定",1)])),_:2},1024),n(D,{class:"grid-item",style:{"text-align":"center"}},{default:r((()=>[i("做单人:"+g(e.makeUser),1)])),_:2},1024),(l(!0),d(c,null,o(e.mls,((e,t)=>(l(),d(c,null,[n(D,{class:"grid-item"},{default:r((()=>[i(g(e.mz),1)])),_:2},1024),n(D,{class:"grid-item",style:{"text-align":"center"}},{default:r((()=>[i("约"+g(j(e.xxs))+"米~"+g(e.xxs.length)+"匹",1)])),_:2},1024)],64)))),256)),n(D,{class:"grid-item"},{default:r((()=>[i("在厂天数:"+g(k(e.createTime,new Date))+"天",1)])),_:2},1024),n(D,{class:"grid-item",style:{"text-align":"center"}},{default:r((()=>[i("预计出厂日期:"+g(e.yjccrq),1)])),_:2},1024),n(D,{class:"grid-item"},{default:r((()=>[i("当前进度:"+g(e.zt),1)])),_:2},1024),n(D,{class:"grid-item",style:{"text-align":"center"}},{default:r((()=>[i("当前操作日期:"+g(m(_)(new Date(e.updateTime))),1)])),_:2},1024),n(D,{class:"grid-item"}),n(D,{class:"grid-item",style:{"text-align":"center"}},{default:r((()=>[i("预计下一步日期:"+g(e.yjxybrq),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),256))])),_:1})])),_:1})}}}),[["__scopeId","data-v-a98ea9e2"]]);export{p as default};
import{d as e,r as t,j as a,b as l,c as s,w as r,k as n,m as i,e as d,f as o,F as c,i as u,t as g,D as m,C as f}from"./index-U_fosny-.js";import{g as y}from"./index.C7MUwTcc.js";import{f as _}from"./date.kFpT0SQ2.js";import{_ as x}from"./_plugin-vue_export-helper.BCo6x5W8.js";const p=x(e({__name:"orderStatus",setup(e){const x=t([]),p=t({}),h=()=>{x.value=[],y("/tracking/op",{...p.value}).then((e=>{200===e.code&&e.data.forEach((e=>{e.logs.length>0?(e.trackingLog.yjccrq=function(e,t){const a=new Date(e);return a.setHours(0,0,0,0),a.setDate(a.getDate()+t),_(a)}(e.logs[0].details.form.czrq,e.logs[0].details.form.yjccts),e.logs.length>1&&"已出厂"!=e.logs[e.logs.length-1].details.zt?e.trackingLog.yjxybrq=e.logs[e.logs.length-1].details.form.yjxybrq:e.trackingLog.yjxybrq="暂无"):e.trackingLog.yjccrq="暂无",x.value.push(e.trackingLog)}))}))},b=()=>{h()},v=()=>{history.back()},j=e=>{let t=0;return e.forEach((e=>{t+=1*e.ms})),t.toFixed(1)};function k(e,t){const a=new Date(e),l=(new Date(t)-a)/864e5;return Math.abs(Math.round(l))}return(e,t)=>{const y=a("van-nav-bar"),h=a("van-field"),w=a("van-button"),D=u,q=f;return l(),s(D,{class:"flex"},{default:r((()=>[n(y,{title:"订单状态查询","left-text":"返回","left-arrow":"",onClickLeft:v}),n(D,{style:{display:"flex","align-items":"center"}},{default:r((()=>[n(h,{class:"bor",label:"谁定","label-width":"2.5em",colon:"",modelValue:p.value.sd,"onUpdate:modelValue":t[0]||(t[0]=e=>p.value.sd=e)},null,8,["modelValue"]),n(h,{class:"bor",label:"做单人","label-width":"3.5em",colon:"",modelValue:p.value.makeUser,"onUpdate:modelValue":t[1]||(t[1]=e=>p.value.makeUser=e)},null,8,["modelValue"]),n(D,{style:{width:"20%","margin-right":"5rpx"}},{default:r((()=>[n(w,{type:"primary",style:{width:"3rem"},onClick:b},{default:r((()=>[i("搜索")])),_:1})])),_:1})])),_:1}),n(D,{class:"content"},{default:r((()=>[(l(!0),d(c,null,o(x.value,((e,t)=>(l(),s(D,{class:"card"},{default:r((()=>[n(D,{class:"grid-container"},{default:r((()=>[n(D,{class:"grid-item"},{default:r((()=>[i("进厂日期:"+g(m(_)(new Date(e.createTime))),1)])),_:2},1024),n(D,{class:"grid-item",style:{"text-align":"end"}},{default:r((()=>[i("当前进度:"),n(q,{style:{color:"red"}},{default:r((()=>[i(g(e.zt),1)])),_:2},1024)])),_:2},1024),n(D,{class:"grid-item"},{default:r((()=>[i("百合白,"+g(e.sd)+"定",1)])),_:2},1024),n(D,{class:"grid-item",style:{"text-align":"center"}},{default:r((()=>[i("做单人:"+g(e.makeUser),1)])),_:2},1024),(l(!0),d(c,null,o(e.mls,((e,t)=>(l(),d(c,null,[n(D,{class:"grid-item"},{default:r((()=>[i(g(e.mz),1)])),_:2},1024),n(D,{class:"grid-item",style:{"text-align":"center"}},{default:r((()=>[i("约"+g(j(e.xxs))+"米~"+g(e.xxs.length)+"匹",1)])),_:2},1024)],64)))),256)),n(D,{class:"grid-item"},{default:r((()=>[i("在厂天数:"+g(k(e.createTime,new Date))+"天",1)])),_:2},1024),n(D,{class:"grid-item",style:{"text-align":"center"}},{default:r((()=>[i("预计出厂日期:"+g(e.yjccrq),1)])),_:2},1024),n(D,{class:"grid-item"},{default:r((()=>[i("当前进度:"+g(e.zt),1)])),_:2},1024),n(D,{class:"grid-item",style:{"text-align":"center"}},{default:r((()=>[i("当前操作日期:"+g(m(_)(new Date(e.updateTime))),1)])),_:2},1024),n(D,{class:"grid-item"}),n(D,{class:"grid-item",style:{"text-align":"center"}},{default:r((()=>[i("预计下一步日期:"+g(e.yjxybrq),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),256))])),_:1})])),_:1})}}}),[["__scopeId","data-v-a98ea9e2"]]);export{p as default};

View File

@ -1 +1 @@
import{d as e,r as l,j as a,b as t,c as o,w as d,k as n,m as u,e as s,f as i,F as m,q as r,i as c,t as f}from"./index-BAgZZwqh.js";import{a as p}from"./uni-app.es.DmKENPst.js";import{a as b}from"./index.CCkKeMRW.js";import{_}from"./_plugin-vue_export-helper.BCo6x5W8.js";const v=_(e({__name:"audit",setup(e){p((e=>{v.value=JSON.parse(e.item)}));const _=()=>{history.back()},v=l({}),y=()=>{let e="/interOrder/check/"+v.value.id+"?comment="+v.value.comment;b(e,v.value.fabric).then((e=>{200===e.code&&(r("审核通过!"),window.history.back())}))},V=()=>{let e="/interOrder/reject/"+v.value.id;b(e).then((e=>{200===e.code&&(r("驳回成功!"),window.history.back())}))};return(e,l)=>{const r=a("van-nav-bar"),p=a("van-field"),b=a("van-button"),g=c,k=a("van-cell-group");return t(),o(g,{class:"flex"},{default:d((()=>[n(r,{title:"现货需求单","left-text":"返回","left-arrow":"",onClickLeft:_}),n(g,{class:"content"},{default:d((()=>[n(k,{inset:""},{default:d((()=>[n(p,{modelValue:v.value.id,"onUpdate:modelValue":l[0]||(l[0]=e=>v.value.id=e),name:"需求单号",label:"需求单号",colon:"","label-width":"5em",readonly:""},null,8,["modelValue"]),n(p,{modelValue:v.value.makeTime,"onUpdate:modelValue":l[1]||(l[1]=e=>v.value.makeTime=e),name:"做单日期",label:"做单日期",colon:"",class:"bor","label-width":"5em",readonly:""},null,8,["modelValue"]),n(p,{modelValue:v.value.makeUser,"onUpdate:modelValue":l[2]||(l[2]=e=>v.value.makeUser=e),name:"做单人",label:"做单人",colon:"","label-width":"5em",readonly:""},null,8,["modelValue"]),n(p,{modelValue:v.value.color,"onUpdate:modelValue":l[3]||(l[3]=e=>v.value.color=e),name:"颜色色号",label:"颜色色号",colon:"",readonly:"","label-width":"5em"},null,8,["modelValue"]),n(p,{modelValue:v.value.craft,"onUpdate:modelValue":l[4]||(l[4]=e=>v.value.craft=e),name:"工艺",label:"工艺",colon:"",readonly:"","label-width":"5em",class:"bor"},null,8,["modelValue"]),n(g,{class:"a-b"},{default:d((()=>[n(b,{type:"primary"},{default:d((()=>[u("面料添加")])),_:1})])),_:1}),n(g,{class:"grid-container"},{default:d((()=>[n(g,{class:"grid-item"},{default:d((()=>[u("面料名称")])),_:1}),n(g,{class:"grid-item"},{default:d((()=>[u("匹数")])),_:1}),n(g,{class:"grid-item"},{default:d((()=>[u("库存")])),_:1}),n(g,{class:"grid-item"},{default:d((()=>[u("谁定")])),_:1}),n(g,{class:"grid-item"},{default:d((()=>[u("操作")])),_:1})])),_:1}),(t(!0),s(m,null,i(v.value.fabric,((e,l)=>(t(),o(g,{class:"grid-container",key:l},{default:d((()=>[n(g,{class:"grid-item"},{default:d((()=>[u(f(e.name),1)])),_:2},1024),n(g,{class:"grid-item"},{default:d((()=>[n(p,{modelValue:e.quantity,"onUpdate:modelValue":l=>e.quantity=l,class:"bor",type:"number"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),n(g,{class:"grid-item"},{default:d((()=>[u(f(e.storageQuantity),1)])),_:2},1024),n(g,{class:"grid-item"},{default:d((()=>[u(f(e.belongTo),1)])),_:2},1024),n(g,{class:"grid-item",style:{color:"red"},onClick:e=>v.value.fabric.splice(l,1)},{default:d((()=>[u("删除")])),_:2},1032,["onClick"])])),_:2},1024)))),128)),n(p,{modelValue:v.value.comment,"onUpdate:modelValue":l[5]||(l[5]=e=>v.value.comment=e),name:"备注",label:"备注",colon:"","label-width":"5em"},null,8,["modelValue"])])),_:1}),n(g,{style:{margin:"16px",display:"flex","align-items":"center","justify-content":"space-between"}},{default:d((()=>[n(b,{round:"",block:"",type:"danger",onClick:V},{default:d((()=>[u(" 驳回 ")])),_:1}),u("        "),n(b,{round:"",block:"",type:"primary",onClick:y},{default:d((()=>[u(" 通过 ")])),_:1})])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-50fa285d"]]);export{v as default};
import{d as e,r as l,j as a,b as t,c as o,w as d,k as n,m as u,e as s,f as i,F as m,q as r,i as c,t as f}from"./index-U_fosny-.js";import{a as p}from"./uni-app.es.CB2yB8P5.js";import{a as b}from"./index.C7MUwTcc.js";import{_}from"./_plugin-vue_export-helper.BCo6x5W8.js";const v=_(e({__name:"audit",setup(e){p((e=>{v.value=JSON.parse(e.item)}));const _=()=>{history.back()},v=l({}),y=()=>{let e="/interOrder/check/"+v.value.id+"?comment="+v.value.comment;b(e,v.value.fabric).then((e=>{200===e.code&&(r("审核通过!"),window.history.back())}))},V=()=>{let e="/interOrder/reject/"+v.value.id;b(e).then((e=>{200===e.code&&(r("驳回成功!"),window.history.back())}))};return(e,l)=>{const r=a("van-nav-bar"),p=a("van-field"),b=a("van-button"),g=c,k=a("van-cell-group");return t(),o(g,{class:"flex"},{default:d((()=>[n(r,{title:"现货需求单","left-text":"返回","left-arrow":"",onClickLeft:_}),n(g,{class:"content"},{default:d((()=>[n(k,{inset:""},{default:d((()=>[n(p,{modelValue:v.value.id,"onUpdate:modelValue":l[0]||(l[0]=e=>v.value.id=e),name:"需求单号",label:"需求单号",colon:"","label-width":"5em",readonly:""},null,8,["modelValue"]),n(p,{modelValue:v.value.makeTime,"onUpdate:modelValue":l[1]||(l[1]=e=>v.value.makeTime=e),name:"做单日期",label:"做单日期",colon:"",class:"bor","label-width":"5em",readonly:""},null,8,["modelValue"]),n(p,{modelValue:v.value.makeUser,"onUpdate:modelValue":l[2]||(l[2]=e=>v.value.makeUser=e),name:"做单人",label:"做单人",colon:"","label-width":"5em",readonly:""},null,8,["modelValue"]),n(p,{modelValue:v.value.color,"onUpdate:modelValue":l[3]||(l[3]=e=>v.value.color=e),name:"颜色色号",label:"颜色色号",colon:"",readonly:"","label-width":"5em"},null,8,["modelValue"]),n(p,{modelValue:v.value.craft,"onUpdate:modelValue":l[4]||(l[4]=e=>v.value.craft=e),name:"工艺",label:"工艺",colon:"",readonly:"","label-width":"5em",class:"bor"},null,8,["modelValue"]),n(g,{class:"a-b"},{default:d((()=>[n(b,{type:"primary"},{default:d((()=>[u("面料添加")])),_:1})])),_:1}),n(g,{class:"grid-container"},{default:d((()=>[n(g,{class:"grid-item"},{default:d((()=>[u("面料名称")])),_:1}),n(g,{class:"grid-item"},{default:d((()=>[u("匹数")])),_:1}),n(g,{class:"grid-item"},{default:d((()=>[u("库存")])),_:1}),n(g,{class:"grid-item"},{default:d((()=>[u("谁定")])),_:1}),n(g,{class:"grid-item"},{default:d((()=>[u("操作")])),_:1})])),_:1}),(t(!0),s(m,null,i(v.value.fabric,((e,l)=>(t(),o(g,{class:"grid-container",key:l},{default:d((()=>[n(g,{class:"grid-item"},{default:d((()=>[u(f(e.name),1)])),_:2},1024),n(g,{class:"grid-item"},{default:d((()=>[n(p,{modelValue:e.quantity,"onUpdate:modelValue":l=>e.quantity=l,class:"bor",type:"number"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),n(g,{class:"grid-item"},{default:d((()=>[u(f(e.storageQuantity),1)])),_:2},1024),n(g,{class:"grid-item"},{default:d((()=>[u(f(e.belongTo),1)])),_:2},1024),n(g,{class:"grid-item",style:{color:"red"},onClick:e=>v.value.fabric.splice(l,1)},{default:d((()=>[u("删除")])),_:2},1032,["onClick"])])),_:2},1024)))),128)),n(p,{modelValue:v.value.comment,"onUpdate:modelValue":l[5]||(l[5]=e=>v.value.comment=e),name:"备注",label:"备注",colon:"","label-width":"5em"},null,8,["modelValue"])])),_:1}),n(g,{style:{margin:"16px",display:"flex","align-items":"center","justify-content":"space-between"}},{default:d((()=>[n(b,{round:"",block:"",type:"danger",onClick:V},{default:d((()=>[u(" 驳回 ")])),_:1}),u("        "),n(b,{round:"",block:"",type:"primary",onClick:y},{default:d((()=>[u(" 通过 ")])),_:1})])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-50fa285d"]]);export{v as default};

View File

@ -1 +1 @@
import{d as e,r as l,j as a,b as o,c as t,w as d,k as u,m as s,e as n,f as m,F as r,i,t as c}from"./index-BAgZZwqh.js";import{a as f}from"./uni-app.es.DmKENPst.js";import{_ as p}from"./_plugin-vue_export-helper.BCo6x5W8.js";const b=p(e({__name:"pass",setup(e){f((e=>{b.value=JSON.parse(e.item)}));const p=()=>{history.back()},b=l({});return(e,l)=>{const f=a("van-nav-bar"),v=a("van-field"),V=a("van-button"),_=i,y=a("van-cell-group");return o(),t(_,{class:"flex"},{default:d((()=>[u(f,{title:"现货需求单","left-text":"返回","left-arrow":"",onClickLeft:p}),u(_,{class:"content"},{default:d((()=>[u(y,{inset:""},{default:d((()=>[u(v,{modelValue:b.value.id,"onUpdate:modelValue":l[0]||(l[0]=e=>b.value.id=e),name:"需求单号",label:"需求单号",colon:"","label-width":"5em",readonly:""},null,8,["modelValue"]),u(v,{modelValue:b.value.makeTime,"onUpdate:modelValue":l[1]||(l[1]=e=>b.value.makeTime=e),name:"做单日期",label:"做单日期",colon:"",class:"bor","label-width":"5em",readonly:""},null,8,["modelValue"]),u(v,{modelValue:b.value.makeUser,"onUpdate:modelValue":l[2]||(l[2]=e=>b.value.makeUser=e),name:"做单人",label:"做单人",colon:"","label-width":"5em",readonly:""},null,8,["modelValue"]),u(v,{modelValue:b.value.color,"onUpdate:modelValue":l[3]||(l[3]=e=>b.value.color=e),name:"颜色色号",label:"颜色色号",colon:"",readonly:"","label-width":"5em"},null,8,["modelValue"]),u(v,{modelValue:b.value.craft,"onUpdate:modelValue":l[4]||(l[4]=e=>b.value.craft=e),name:"工艺",label:"工艺",colon:"",readonly:"","label-width":"5em",class:"bor"},null,8,["modelValue"]),u(_,{class:"a-b"},{default:d((()=>[u(V,{type:"primary"},{default:d((()=>[s("面料添加")])),_:1})])),_:1}),u(_,{class:"grid-container"},{default:d((()=>[u(_,{class:"grid-item"},{default:d((()=>[s("面料名称")])),_:1}),u(_,{class:"grid-item"},{default:d((()=>[s("匹数")])),_:1}),u(_,{class:"grid-item"},{default:d((()=>[s("库存")])),_:1}),u(_,{class:"grid-item"},{default:d((()=>[s("操作")])),_:1})])),_:1}),(o(!0),n(r,null,m(b.value.fabric,((e,l)=>(o(),t(_,{class:"grid-container",key:l},{default:d((()=>[u(_,{class:"grid-item"},{default:d((()=>[s(c(e.name),1)])),_:2},1024),u(_,{class:"grid-item"},{default:d((()=>[u(v,{modelValue:e.quantity,"onUpdate:modelValue":l=>e.quantity=l,class:"bor",type:"number"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),u(_,{class:"grid-item"},{default:d((()=>[s(c(e.storageQuantity),1)])),_:2},1024),u(_,{class:"grid-item",style:{color:"red"},onClick:e=>b.value.fabric.splice(l,1)},{default:d((()=>[s("删除")])),_:2},1032,["onClick"])])),_:2},1024)))),128)),u(v,{modelValue:b.value.comment,"onUpdate:modelValue":l[5]||(l[5]=e=>b.value.comment=e),name:"备注",label:"备注",colon:"","label-width":"5em",readonly:""},null,8,["modelValue"])])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-9721d681"]]);export{b as default};
import{d as e,r as l,j as a,b as o,c as t,w as d,k as u,m as s,e as n,f as m,F as r,i,t as c}from"./index-U_fosny-.js";import{a as f}from"./uni-app.es.CB2yB8P5.js";import{_ as p}from"./_plugin-vue_export-helper.BCo6x5W8.js";const b=p(e({__name:"pass",setup(e){f((e=>{b.value=JSON.parse(e.item)}));const p=()=>{history.back()},b=l({});return(e,l)=>{const f=a("van-nav-bar"),v=a("van-field"),V=a("van-button"),_=i,y=a("van-cell-group");return o(),t(_,{class:"flex"},{default:d((()=>[u(f,{title:"现货需求单","left-text":"返回","left-arrow":"",onClickLeft:p}),u(_,{class:"content"},{default:d((()=>[u(y,{inset:""},{default:d((()=>[u(v,{modelValue:b.value.id,"onUpdate:modelValue":l[0]||(l[0]=e=>b.value.id=e),name:"需求单号",label:"需求单号",colon:"","label-width":"5em",readonly:""},null,8,["modelValue"]),u(v,{modelValue:b.value.makeTime,"onUpdate:modelValue":l[1]||(l[1]=e=>b.value.makeTime=e),name:"做单日期",label:"做单日期",colon:"",class:"bor","label-width":"5em",readonly:""},null,8,["modelValue"]),u(v,{modelValue:b.value.makeUser,"onUpdate:modelValue":l[2]||(l[2]=e=>b.value.makeUser=e),name:"做单人",label:"做单人",colon:"","label-width":"5em",readonly:""},null,8,["modelValue"]),u(v,{modelValue:b.value.color,"onUpdate:modelValue":l[3]||(l[3]=e=>b.value.color=e),name:"颜色色号",label:"颜色色号",colon:"",readonly:"","label-width":"5em"},null,8,["modelValue"]),u(v,{modelValue:b.value.craft,"onUpdate:modelValue":l[4]||(l[4]=e=>b.value.craft=e),name:"工艺",label:"工艺",colon:"",readonly:"","label-width":"5em",class:"bor"},null,8,["modelValue"]),u(_,{class:"a-b"},{default:d((()=>[u(V,{type:"primary"},{default:d((()=>[s("面料添加")])),_:1})])),_:1}),u(_,{class:"grid-container"},{default:d((()=>[u(_,{class:"grid-item"},{default:d((()=>[s("面料名称")])),_:1}),u(_,{class:"grid-item"},{default:d((()=>[s("匹数")])),_:1}),u(_,{class:"grid-item"},{default:d((()=>[s("库存")])),_:1}),u(_,{class:"grid-item"},{default:d((()=>[s("操作")])),_:1})])),_:1}),(o(!0),n(r,null,m(b.value.fabric,((e,l)=>(o(),t(_,{class:"grid-container",key:l},{default:d((()=>[u(_,{class:"grid-item"},{default:d((()=>[s(c(e.name),1)])),_:2},1024),u(_,{class:"grid-item"},{default:d((()=>[u(v,{modelValue:e.quantity,"onUpdate:modelValue":l=>e.quantity=l,class:"bor",type:"number"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),u(_,{class:"grid-item"},{default:d((()=>[s(c(e.storageQuantity),1)])),_:2},1024),u(_,{class:"grid-item",style:{color:"red"},onClick:e=>b.value.fabric.splice(l,1)},{default:d((()=>[s("删除")])),_:2},1032,["onClick"])])),_:2},1024)))),128)),u(v,{modelValue:b.value.comment,"onUpdate:modelValue":l[5]||(l[5]=e=>b.value.comment=e),name:"备注",label:"备注",colon:"","label-width":"5em",readonly:""},null,8,["modelValue"])])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-9721d681"]]);export{b as default};

View File

@ -1 +1 @@
import{d as e,r as a,o as l,j as t,b as s,e as o,k as n,w as r,m as i,F as u,f as c,i as d,c as f,t as m,n as p}from"./index-BAgZZwqh.js";import{g as v,p as g}from"./index.CCkKeMRW.js";import{_}from"./_plugin-vue_export-helper.BCo6x5W8.js";const h=_(e({__name:"listSearch",setup(e){const _=a({}),h=a([]);l((()=>{v("/fabric/info/all").then((e=>{if(200===e.code){let a=new Set,l=[];e.data.forEach((e=>{a.add(e.category);let t=l.find((a=>a.category===e.category));t?t.list.push(e.name):l.push({category:e.category,list:[e.name]})})),_.value.list=l,b.value=[...a].map((e=>({text:e,value:e})))}}))}));const w=()=>{window.history.back()},y=a(!1),b=a([]),k=()=>{y.value=!0},x=e=>{_.value.pl=e.selectedValues[0];let a=_.value.list.find((a=>a.category==e.selectedValues[0]));var l;l=a.list,h.value=[],g("/rawFabric/preview",l).then((e=>{200==e.code&&(h.value=e.data)})),C()},C=()=>{y.value=!1};return(e,a)=>{const l=t("van-nav-bar"),v=t("van-field"),g=t("van-cell-group"),V=d,j=t("van-picker"),E=t("van-popup");return s(),o(u,null,[n(V,{class:"flex"},{default:r((()=>[n(l,{title:"白胚库存列表","left-text":"返回","left-arrow":"",onClickLeft:w}),n(g,{inset:""},{default:r((()=>[n(v,{modelValue:_.value.pl,"onUpdate:modelValue":a[0]||(a[0]=e=>_.value.pl=e),name:"品类",label:"品类",colon:"",class:"bor","label-width":"3em",readonly:"",onClick:k},null,8,["modelValue"])])),_:1}),n(V,{class:"grid-container"},{default:r((()=>[n(V,{class:"grid-item"},{default:r((()=>[i("面料名称")])),_:1}),n(V,{class:"grid-item"},{default:r((()=>[i("面料匹数")])),_:1}),n(V,{class:"grid-item"},{default:r((()=>[i("面料米数")])),_:1})])),_:1}),n(V,{class:"content"},{default:r((()=>[(s(!0),o(u,null,c(h.value,((e,a)=>(s(),f(V,{class:"grid-container",key:a},{default:r((()=>[n(V,{class:"grid-item",onClick:a=>(e=>{p({url:"/pages/whiteEmbryo/warehouse-in-out?category="+e.category})})(e)},{default:r((()=>[i(m(e.category),1)])),_:2},1032,["onClick"]),n(V,{class:"grid-item"},{default:r((()=>[i(m(e.count),1)])),_:2},1024),n(V,{class:"grid-item"},{default:r((()=>[i(m(e.len),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1}),n(E,{show:y.value,"onUpdate:show":a[1]||(a[1]=e=>y.value=e),round:"",position:"bottom"},{default:r((()=>[n(j,{"show-toolbar":"",columns:b.value,onConfirm:x,onCancel:C,ref:"pickerRef"},null,8,["columns"])])),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-b867678e"]]);export{h as default};
import{d as e,r as a,o as l,j as t,b as s,e as o,k as n,w as r,m as i,F as u,f as c,i as d,c as f,t as m,n as p}from"./index-U_fosny-.js";import{g as v,p as g}from"./index.C7MUwTcc.js";import{_}from"./_plugin-vue_export-helper.BCo6x5W8.js";const h=_(e({__name:"listSearch",setup(e){const _=a({}),h=a([]);l((()=>{v("/fabric/info/all").then((e=>{if(200===e.code){let a=new Set,l=[];e.data.forEach((e=>{a.add(e.category);let t=l.find((a=>a.category===e.category));t?t.list.push(e.name):l.push({category:e.category,list:[e.name]})})),_.value.list=l,b.value=[...a].map((e=>({text:e,value:e})))}}))}));const w=()=>{window.history.back()},y=a(!1),b=a([]),k=()=>{y.value=!0},x=e=>{_.value.pl=e.selectedValues[0];let a=_.value.list.find((a=>a.category==e.selectedValues[0]));var l;l=a.list,h.value=[],g("/rawFabric/preview",l).then((e=>{200==e.code&&(h.value=e.data)})),C()},C=()=>{y.value=!1};return(e,a)=>{const l=t("van-nav-bar"),v=t("van-field"),g=t("van-cell-group"),V=d,j=t("van-picker"),E=t("van-popup");return s(),o(u,null,[n(V,{class:"flex"},{default:r((()=>[n(l,{title:"白胚库存列表","left-text":"返回","left-arrow":"",onClickLeft:w}),n(g,{inset:""},{default:r((()=>[n(v,{modelValue:_.value.pl,"onUpdate:modelValue":a[0]||(a[0]=e=>_.value.pl=e),name:"品类",label:"品类",colon:"",class:"bor","label-width":"3em",readonly:"",onClick:k},null,8,["modelValue"])])),_:1}),n(V,{class:"grid-container"},{default:r((()=>[n(V,{class:"grid-item"},{default:r((()=>[i("面料名称")])),_:1}),n(V,{class:"grid-item"},{default:r((()=>[i("面料匹数")])),_:1}),n(V,{class:"grid-item"},{default:r((()=>[i("面料米数")])),_:1})])),_:1}),n(V,{class:"content"},{default:r((()=>[(s(!0),o(u,null,c(h.value,((e,a)=>(s(),f(V,{class:"grid-container",key:a},{default:r((()=>[n(V,{class:"grid-item",onClick:a=>(e=>{p({url:"/pages/whiteEmbryo/warehouse-in-out?category="+e.category})})(e)},{default:r((()=>[i(m(e.category),1)])),_:2},1032,["onClick"]),n(V,{class:"grid-item"},{default:r((()=>[i(m(e.count),1)])),_:2},1024),n(V,{class:"grid-item"},{default:r((()=>[i(m(e.len),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1}),n(E,{show:y.value,"onUpdate:show":a[1]||(a[1]=e=>y.value=e),round:"",position:"bottom"},{default:r((()=>[n(j,{"show-toolbar":"",columns:b.value,onConfirm:x,onCancel:C,ref:"pickerRef"},null,8,["columns"])])),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-b867678e"]]);export{h as default};

View File

@ -1 +1 @@
import{d as e,r as a,o as l,j as t,b as s,e as u,k as d,w as i,m as n,F as o,f as r,l as c,q as v,i as f,c as _,t as p}from"./index-BAgZZwqh.js";import{g as m,a as g,p as h,d as w}from"./index.CCkKeMRW.js";import{_ as k}from"./_plugin-vue_export-helper.BCo6x5W8.js";const b=k(e({__name:"w-level",setup(e){const k=a(!1),b=a([]),y=a(""),x=a("");l((()=>{C()}));const C=()=>{m("/rawFabricLevels",{page:1,size:100}).then((e=>{200===e.code&&(b.value=e.data.record)}))},L=()=>{history.back()},F=()=>{k.value=!0,y.value="",x.value=""},j=()=>{if(!y.value)return v("请填写等级!");x.value?g("/rawFabricLevels",{id:x.value,level:y.value}).then((e=>{200===e.code&&(k.value=!1,v("编辑成功!"),C())})):h("/rawFabricLevels",{level:y.value}).then((e=>{200===e.code&&(k.value=!1,v("提交成功!"),C())}))};return(e,a)=>{const l=t("van-nav-bar"),m=f,g=t("van-field"),h=t("van-cell-group"),V=t("van-button"),U=t("van-popup");return s(),u(o,null,[d(m,{class:"flex"},{default:i((()=>[d(l,{title:"白胚等级维护","left-text":"返回","left-arrow":"","right-text":"新增",onClickLeft:L,onClickRight:F}),d(m,{class:"content"},{default:i((()=>[d(m,{class:"grid-container"},{default:i((()=>[d(m,{class:"grid-item"},{default:i((()=>[n("编号")])),_:1}),d(m,{class:"grid-item"},{default:i((()=>[n("白胚等级")])),_:1}),d(m,{class:"grid-item"},{default:i((()=>[n("操作")])),_:1})])),_:1}),(s(!0),u(o,null,r(b.value,((e,a)=>(s(),_(m,{class:"grid-container",key:a},{default:i((()=>[d(m,{class:"grid-item"},{default:i((()=>[n(p(e.id),1)])),_:2},1024),d(m,{class:"grid-item"},{default:i((()=>[n(p(e.level),1)])),_:2},1024),d(m,{class:"grid-item"},{default:i((()=>[c("span",{style:{color:"#35a5f7"},onClick:a=>(e=>{y.value=e.level,x.value=e.id,k.value=!0})(e)},"编辑",8,["onClick"]),n("    "),c("span",{style:{color:"red"},onClick:a=>(e=>{let a=/rawFabricLevels/+e.id;w(a).then((e=>{200===e.code&&(v("删除成功!"),C())}))})(e)},"删除 ",8,["onClick"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1}),d(U,{show:k.value,"onUpdate:show":a[2]||(a[2]=e=>k.value=e),style:{width:"80%"},round:""},{default:i((()=>[d(m,null,{default:i((()=>[c("h3",{style:{"text-align":"center"}},"新增"),d(h,{inset:""},{default:i((()=>[d(g,{modelValue:y.value,"onUpdate:modelValue":a[0]||(a[0]=e=>y.value=e),name:"白胚等级",label:"白胚等级",colon:"","label-width":"5em"},null,8,["modelValue"])])),_:1}),d(m,{class:"a-c"},{default:i((()=>[d(V,{type:"danger",onClick:a[1]||(a[1]=e=>k.value=!1)},{default:i((()=>[n("取消")])),_:1}),d(V,{type:"primary",onClick:j},{default:i((()=>[n("确认")])),_:1})])),_:1})])),_:1})])),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-ce6ea5c7"]]);export{b as default};
import{d as e,r as a,o as l,j as t,b as s,e as u,k as d,w as i,m as n,F as o,f as r,l as c,q as v,i as f,c as _,t as p}from"./index-U_fosny-.js";import{g as m,a as g,p as h,d as w}from"./index.C7MUwTcc.js";import{_ as k}from"./_plugin-vue_export-helper.BCo6x5W8.js";const b=k(e({__name:"w-level",setup(e){const k=a(!1),b=a([]),y=a(""),x=a("");l((()=>{C()}));const C=()=>{m("/rawFabricLevels",{page:1,size:100}).then((e=>{200===e.code&&(b.value=e.data.record)}))},L=()=>{history.back()},F=()=>{k.value=!0,y.value="",x.value=""},j=()=>{if(!y.value)return v("请填写等级!");x.value?g("/rawFabricLevels",{id:x.value,level:y.value}).then((e=>{200===e.code&&(k.value=!1,v("编辑成功!"),C())})):h("/rawFabricLevels",{level:y.value}).then((e=>{200===e.code&&(k.value=!1,v("提交成功!"),C())}))};return(e,a)=>{const l=t("van-nav-bar"),m=f,g=t("van-field"),h=t("van-cell-group"),V=t("van-button"),U=t("van-popup");return s(),u(o,null,[d(m,{class:"flex"},{default:i((()=>[d(l,{title:"白胚等级维护","left-text":"返回","left-arrow":"","right-text":"新增",onClickLeft:L,onClickRight:F}),d(m,{class:"content"},{default:i((()=>[d(m,{class:"grid-container"},{default:i((()=>[d(m,{class:"grid-item"},{default:i((()=>[n("编号")])),_:1}),d(m,{class:"grid-item"},{default:i((()=>[n("白胚等级")])),_:1}),d(m,{class:"grid-item"},{default:i((()=>[n("操作")])),_:1})])),_:1}),(s(!0),u(o,null,r(b.value,((e,a)=>(s(),_(m,{class:"grid-container",key:a},{default:i((()=>[d(m,{class:"grid-item"},{default:i((()=>[n(p(e.id),1)])),_:2},1024),d(m,{class:"grid-item"},{default:i((()=>[n(p(e.level),1)])),_:2},1024),d(m,{class:"grid-item"},{default:i((()=>[c("span",{style:{color:"#35a5f7"},onClick:a=>(e=>{y.value=e.level,x.value=e.id,k.value=!0})(e)},"编辑",8,["onClick"]),n("    "),c("span",{style:{color:"red"},onClick:a=>(e=>{let a=/rawFabricLevels/+e.id;w(a).then((e=>{200===e.code&&(v("删除成功!"),C())}))})(e)},"删除 ",8,["onClick"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1}),d(U,{show:k.value,"onUpdate:show":a[2]||(a[2]=e=>k.value=e),style:{width:"80%"},round:""},{default:i((()=>[d(m,null,{default:i((()=>[c("h3",{style:{"text-align":"center"}},"新增"),d(h,{inset:""},{default:i((()=>[d(g,{modelValue:y.value,"onUpdate:modelValue":a[0]||(a[0]=e=>y.value=e),name:"白胚等级",label:"白胚等级",colon:"","label-width":"5em"},null,8,["modelValue"])])),_:1}),d(m,{class:"a-c"},{default:i((()=>[d(V,{type:"danger",onClick:a[1]||(a[1]=e=>k.value=!1)},{default:i((()=>[n("取消")])),_:1}),d(V,{type:"primary",onClick:j},{default:i((()=>[n("确认")])),_:1})])),_:1})])),_:1})])),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-ce6ea5c7"]]);export{b as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{d as e,o as t,r as a,u as l,j as o,x as n,b as s,c as u,w as c,k as r,m as p,h as v,q as i,B as d,i as m}from"./index-BAgZZwqh.js";import{_ as f}from"./cshaptx4869-scancode.eFuhAo_s.js";import{r as h}from"./uni-app.es.DmKENPst.js";import{g as w,b as x,a as b,s as y}from"./index.CCkKeMRW.js";import{_ as g}from"./_plugin-vue_export-helper.BCo6x5W8.js";const _=g(e({__name:"w-scanCode",setup(e){t((()=>{}));const g=a({});l(g.value,(()=>{if(g.value.shelve&&g.value.column&&g.value.row){let e=g.value.shelve+"-"+g.value.column+"-"+g.value.row;w("/shelves/isActive?code="+e).then((t=>{200===t.code&&(t.data.active?V.value=e:x({title:"该库位码已被禁用,请联系管理员"}).then((()=>{})))}))}}));const _=()=>{window.history.back()},T=a(),z=a(),V=a(),$=()=>{T.value="location",F()},C=()=>{T.value="barcode",F()},k=a(!1);function F(){k.value=!0}function j(e){if(k.value=!1,"location"==T.value){let t=e.split("-");g.value.shelve=t[0],g.value.column=t[1],g.value.row=t[2]}else"barcode"==T.value&&(z.value=e,b("/rawFabric/sign",{barcode:z.value,location:V.value},{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}).then((e=>{if(7778===e.code){let t=JSON.parse(e.msg);if(t.location==V.value)y({message:"该面料已放置在"+t.location+",请勿重复扫码",allowHtml:!0,confirmButtonText:"扫一扫"}).then((()=>{F()})).catch((()=>{g.value.shelve="",g.value.column="",g.value.row="",V.value="",z.value=""}));else{let e=`\n\t\t\t\t\t\t\t\t\t\t\t<div style="text-align: left">\n\t\t\t\t\t\t\t\t\t\t\t<p>面料编号:<span style="color:red;font-size:18px">${z.value}</span></p>\n\t\t\t\t\t\t\t\t\t\t\t<p>面料名称:<span style="color:red;font-size:18px">${t.category}</span></p>\n\t\t\t\t\t\t\t\t\t\t\t<p>面料位置:<span style="color:red;font-size:18px">${t.location}</span></p>\n\t\t\t\t\t\t\t\t\t\t\t<p style="margin-top:8px">是否将面料移动到<span style="color:red;font-size:18px">${V.value}</span></p>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t`;y({title:"扫码成功!",message:e,allowHtml:!0,confirmButtonText:"确认"}).then((()=>{b("/rawFabric/sign",{barcode:z.value,location:V.value,force:!0},{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}).then((e=>{200===e.code?i("入货架成功!"):i(e.msg)}))})).catch((()=>{g.value.shelve="",g.value.column="",g.value.row="",V.value="",z.value=""}))}}else if(7777===e.code){let t=JSON.parse(e.msg),a=`\n\t\t\t\t\t<p>面料编号为<span style="color:red;font-size:18px">${z.value}</span>的<span style="color:red;font-size:18px">${t.category}</span>被暂存在检验室,是否确认移动到<span style="color:red;font-size:18px">${V.value}</span></p>\n\t\t\t `;y({message:a,allowHtml:!0,confirmButtonText:"确认"}).then((()=>{b("/rawFabric/sign",{barcode:z.value,location:V.value,force:!0},{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}).then((e=>{200===e.code?i("入货架成功!"):i(e.msg)}))})).catch((()=>{g.value.shelve="",g.value.column="",g.value.row="",V.value="",z.value=""}))}else if(200===e.code){let t=`\n\t\t\t\t\t<p>面料编号:<span style="color:red;font-size:18px">${z.value}</span></p>\n\t\t\t\t\t<p>面料名称:<span style="color:red;font-size:18px">${e.data}</span></p>\n\t\t\t\t\t`;y({title:"扫码成功!",message:t,allowHtml:!0,confirmButtonText:"扫一扫"}).then((()=>{F()})).catch((()=>{g.value.shelve="",g.value.column="",g.value.row="",V.value="",z.value=""}))}else i(e.msg)})))}function U(e){d({title:e.errName,content:e.errMsg,complete:()=>{k.value=!1}})}function B(){k.value=!1}return(e,t)=>{const a=o("van-nav-bar"),l=m,i=o("van-field"),d=h(n("cshaptx4869-scancode"),f);return s(),u(l,{class:"flex"},{default:c((()=>[r(a,{title:"扫码入库","left-text":"返回","left-arrow":"",onClickLeft:_}),r(l,{class:"btn",onClick:$},{default:c((()=>[p("扫描库位码")])),_:1}),r(l,{style:{margin:"20rpx 50rpx"}},{default:c((()=>[r(i,{name:"当前库位码",label:"当前库位码",colon:"","label-width":"6em"},{input:c((()=>[r(i,{modelValue:g.value.shelve,"onUpdate:modelValue":t[0]||(t[0]=e=>g.value.shelve=e),class:"bor-a",type:"number"},null,8,["modelValue"]),p("— "),r(i,{modelValue:g.value.column,"onUpdate:modelValue":t[1]||(t[1]=e=>g.value.column=e),class:"bor-a",type:"number"},null,8,["modelValue"]),p("— "),r(i,{modelValue:g.value.row,"onUpdate:modelValue":t[2]||(t[2]=e=>g.value.row=e),class:"bor-a",type:"number"},null,8,["modelValue"])])),_:1})])),_:1}),V.value?(s(),u(l,{key:0,class:"btn",onClick:C},{default:c((()=>[p("扫描面料编号")])),_:1})):v("",!0),k.value?(s(),u(d,{key:1,onSuccess:j,onFail:U,onClose:B})):v("",!0)])),_:1})}}}),[["__scopeId","data-v-4b187a99"]]);export{_ as default};
import{d as e,o as t,r as a,u as l,j as o,x as n,b as s,c as u,w as c,k as r,m as p,h as v,q as i,B as d,i as m}from"./index-U_fosny-.js";import{_ as f}from"./cshaptx4869-scancode.aM_nq0qT.js";import{r as h}from"./uni-app.es.CB2yB8P5.js";import{g as w,b as x,a as b,s as y}from"./index.C7MUwTcc.js";import{_ as g}from"./_plugin-vue_export-helper.BCo6x5W8.js";const _=g(e({__name:"w-scanCode",setup(e){t((()=>{}));const g=a({});l(g.value,(()=>{if(g.value.shelve&&g.value.column&&g.value.row){let e=g.value.shelve+"-"+g.value.column+"-"+g.value.row;w("/shelves/isActive?code="+e).then((t=>{200===t.code&&(t.data.active?V.value=e:x({title:"该库位码已被禁用,请联系管理员"}).then((()=>{})))}))}}));const _=()=>{window.history.back()},T=a(),z=a(),V=a(),$=()=>{T.value="location",F()},C=()=>{T.value="barcode",F()},k=a(!1);function F(){k.value=!0}function j(e){if(k.value=!1,"location"==T.value){let t=e.split("-");g.value.shelve=t[0],g.value.column=t[1],g.value.row=t[2]}else"barcode"==T.value&&(z.value=e,b("/rawFabric/sign",{barcode:z.value,location:V.value},{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}).then((e=>{if(7778===e.code){let t=JSON.parse(e.msg);if(t.location==V.value)y({message:"该面料已放置在"+t.location+",请勿重复扫码",allowHtml:!0,confirmButtonText:"扫一扫"}).then((()=>{F()})).catch((()=>{g.value.shelve="",g.value.column="",g.value.row="",V.value="",z.value=""}));else{let e=`\n\t\t\t\t\t\t\t\t\t\t\t<div style="text-align: left">\n\t\t\t\t\t\t\t\t\t\t\t<p>面料编号:<span style="color:red;font-size:18px">${z.value}</span></p>\n\t\t\t\t\t\t\t\t\t\t\t<p>面料名称:<span style="color:red;font-size:18px">${t.category}</span></p>\n\t\t\t\t\t\t\t\t\t\t\t<p>面料位置:<span style="color:red;font-size:18px">${t.location}</span></p>\n\t\t\t\t\t\t\t\t\t\t\t<p style="margin-top:8px">是否将面料移动到<span style="color:red;font-size:18px">${V.value}</span></p>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t`;y({title:"扫码成功!",message:e,allowHtml:!0,confirmButtonText:"确认"}).then((()=>{b("/rawFabric/sign",{barcode:z.value,location:V.value,force:!0},{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}).then((e=>{200===e.code?i("入货架成功!"):i(e.msg)}))})).catch((()=>{g.value.shelve="",g.value.column="",g.value.row="",V.value="",z.value=""}))}}else if(7777===e.code){let t=JSON.parse(e.msg),a=`\n\t\t\t\t\t<p>面料编号为<span style="color:red;font-size:18px">${z.value}</span>的<span style="color:red;font-size:18px">${t.category}</span>被暂存在检验室,是否确认移动到<span style="color:red;font-size:18px">${V.value}</span></p>\n\t\t\t `;y({message:a,allowHtml:!0,confirmButtonText:"确认"}).then((()=>{b("/rawFabric/sign",{barcode:z.value,location:V.value,force:!0},{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}).then((e=>{200===e.code?i("入货架成功!"):i(e.msg)}))})).catch((()=>{g.value.shelve="",g.value.column="",g.value.row="",V.value="",z.value=""}))}else if(200===e.code){let t=`\n\t\t\t\t\t<p>面料编号:<span style="color:red;font-size:18px">${z.value}</span></p>\n\t\t\t\t\t<p>面料名称:<span style="color:red;font-size:18px">${e.data}</span></p>\n\t\t\t\t\t`;y({title:"扫码成功!",message:t,allowHtml:!0,confirmButtonText:"扫一扫"}).then((()=>{F()})).catch((()=>{g.value.shelve="",g.value.column="",g.value.row="",V.value="",z.value=""}))}else i(e.msg)})))}function U(e){d({title:e.errName,content:e.errMsg,complete:()=>{k.value=!1}})}function B(){k.value=!1}return(e,t)=>{const a=o("van-nav-bar"),l=m,i=o("van-field"),d=h(n("cshaptx4869-scancode"),f);return s(),u(l,{class:"flex"},{default:c((()=>[r(a,{title:"扫码入库","left-text":"返回","left-arrow":"",onClickLeft:_}),r(l,{class:"btn",onClick:$},{default:c((()=>[p("扫描库位码")])),_:1}),r(l,{style:{margin:"20rpx 50rpx"}},{default:c((()=>[r(i,{name:"当前库位码",label:"当前库位码",colon:"","label-width":"6em"},{input:c((()=>[r(i,{modelValue:g.value.shelve,"onUpdate:modelValue":t[0]||(t[0]=e=>g.value.shelve=e),class:"bor-a",type:"number"},null,8,["modelValue"]),p("— "),r(i,{modelValue:g.value.column,"onUpdate:modelValue":t[1]||(t[1]=e=>g.value.column=e),class:"bor-a",type:"number"},null,8,["modelValue"]),p("— "),r(i,{modelValue:g.value.row,"onUpdate:modelValue":t[2]||(t[2]=e=>g.value.row=e),class:"bor-a",type:"number"},null,8,["modelValue"])])),_:1})])),_:1}),V.value?(s(),u(l,{key:0,class:"btn",onClick:C},{default:c((()=>[p("扫描面料编号")])),_:1})):v("",!0),k.value?(s(),u(d,{key:1,onSuccess:j,onFail:U,onClose:B})):v("",!0)])),_:1})}}}),[["__scopeId","data-v-4b187a99"]]);export{_ as default};

View File

@ -1 +1 @@
import{d as e,r as a,o as l,u as t,j as s,b as u,e as d,k as i,w as n,m as o,F as c,f as r,l as m,t as v,q as f,i as p,c as _}from"./index-BAgZZwqh.js";import{g,a as h,p as b,d as k}from"./index.CCkKeMRW.js";import{_ as w}from"./_plugin-vue_export-helper.BCo6x5W8.js";const y=w(e({__name:"w-suppliers",setup(e){const w=a(!1),y=a([]),V=a({active:!1}),x=a("");l((()=>{C()}));const C=()=>{g("/suppliers",{name:x.value}).then((e=>{200===e.code&&(y.value=e.data)}))};t(x,(()=>{C()}));const j=()=>{history.back()},U=()=>{w.value=!0,V.value={active:!1}},q=()=>{V.value.id?h("/suppliers",{id:V.value.id,name:V.value.name,active:V.value.active}).then((e=>{200===e.code&&(w.value=!1,f("提交成功!"),C())})):b("/suppliers",{name:V.value.name,active:V.value.active}).then((e=>{200===e.code&&(w.value=!1,f("提交成功!"),C())}))};return(e,a)=>{const l=s("van-nav-bar"),t=s("van-field"),g=s("van-cell-group"),h=p,b=s("van-radio"),L=s("van-radio-group"),z=s("van-button"),F=s("van-popup");return u(),d(c,null,[i(h,{class:"flex"},{default:n((()=>[i(l,{title:"供应商维护","left-text":"返回","left-arrow":"","right-text":"新增",onClickLeft:j,onClickRight:U}),i(h,null,{default:n((()=>[i(g,{inset:""},{default:n((()=>[i(t,{modelValue:x.value,"onUpdate:modelValue":a[0]||(a[0]=e=>x.value=e),name:"供应商名称",label:"供应商名称",colon:"",class:"bot","label-width":"6em"},null,8,["modelValue"])])),_:1})])),_:1}),i(h,{class:"content"},{default:n((()=>[i(h,{class:"grid-container"},{default:n((()=>[i(h,{class:"grid-item"},{default:n((()=>[o("编号")])),_:1}),i(h,{class:"grid-item"},{default:n((()=>[o("供应商名称")])),_:1}),i(h,{class:"grid-item"},{default:n((()=>[o("分数")])),_:1}),i(h,{class:"grid-item"},{default:n((()=>[o("操作")])),_:1})])),_:1}),(u(!0),d(c,null,r(y.value,((e,a)=>(u(),_(h,{class:"grid-container",key:a},{default:n((()=>[i(h,{class:"grid-item"},{default:n((()=>[o(v(e.id),1)])),_:2},1024),i(h,{class:"grid-item"},{default:n((()=>[o(v(e.name),1)])),_:2},1024),i(h,{class:"grid-item"},{default:n((()=>[o(v(e.id),1)])),_:2},1024),i(h,{class:"grid-item"},{default:n((()=>[m("span",{style:{color:"#35a5f7"},onClick:a=>(e=>{V.value=e,w.value=!0})(e)},"编辑",8,["onClick"]),o("    "),m("span",{style:{color:"red"},onClick:a=>(e=>{let a="/suppliers/"+e.id;k(a).then((e=>{200===e.code&&(f("删除成功!"),C())}))})(e)},"删除 ",8,["onClick"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1}),i(F,{show:w.value,"onUpdate:show":a[4]||(a[4]=e=>w.value=e),style:{width:"80%"},round:""},{default:n((()=>[i(h,null,{default:n((()=>[m("h3",{style:{"text-align":"center"}},v(V.value.id?"编辑":"新增"),1),i(g,{inset:""},{default:n((()=>[i(t,{modelValue:V.value.name,"onUpdate:modelValue":a[1]||(a[1]=e=>V.value.name=e),name:"供应商名称",label:"供应商名称",colon:"",class:"bot","label-width":"6em",rules:[{required:!0,message:"请填写"}]},null,8,["modelValue"]),i(t,{name:"状态",label:"状态",colon:"","label-width":"6em"},{input:n((()=>[i(L,{modelValue:V.value.active,"onUpdate:modelValue":a[2]||(a[2]=e=>V.value.active=e),direction:"horizontal"},{default:n((()=>[i(b,{name:!0},{default:n((()=>[o("启用")])),_:1}),i(b,{name:!1},{default:n((()=>[o("禁用")])),_:1})])),_:1},8,["modelValue"])])),_:1})])),_:1}),i(h,{class:"a-c"},{default:n((()=>[i(z,{type:"danger",onClick:a[3]||(a[3]=e=>w.value=!1)},{default:n((()=>[o("取消")])),_:1}),i(z,{type:"primary",onClick:q},{default:n((()=>[o("确认")])),_:1})])),_:1})])),_:1})])),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-ca8f73f9"]]);export{y as default};
import{d as e,r as a,o as l,u as t,j as s,b as u,e as d,k as i,w as n,m as o,F as c,f as r,l as m,t as v,q as f,i as p,c as _}from"./index-U_fosny-.js";import{g,a as h,p as b,d as k}from"./index.C7MUwTcc.js";import{_ as w}from"./_plugin-vue_export-helper.BCo6x5W8.js";const y=w(e({__name:"w-suppliers",setup(e){const w=a(!1),y=a([]),V=a({active:!1}),x=a("");l((()=>{C()}));const C=()=>{g("/suppliers",{name:x.value}).then((e=>{200===e.code&&(y.value=e.data)}))};t(x,(()=>{C()}));const j=()=>{history.back()},U=()=>{w.value=!0,V.value={active:!1}},q=()=>{V.value.id?h("/suppliers",{id:V.value.id,name:V.value.name,active:V.value.active}).then((e=>{200===e.code&&(w.value=!1,f("提交成功!"),C())})):b("/suppliers",{name:V.value.name,active:V.value.active}).then((e=>{200===e.code&&(w.value=!1,f("提交成功!"),C())}))};return(e,a)=>{const l=s("van-nav-bar"),t=s("van-field"),g=s("van-cell-group"),h=p,b=s("van-radio"),L=s("van-radio-group"),z=s("van-button"),F=s("van-popup");return u(),d(c,null,[i(h,{class:"flex"},{default:n((()=>[i(l,{title:"供应商维护","left-text":"返回","left-arrow":"","right-text":"新增",onClickLeft:j,onClickRight:U}),i(h,null,{default:n((()=>[i(g,{inset:""},{default:n((()=>[i(t,{modelValue:x.value,"onUpdate:modelValue":a[0]||(a[0]=e=>x.value=e),name:"供应商名称",label:"供应商名称",colon:"",class:"bot","label-width":"6em"},null,8,["modelValue"])])),_:1})])),_:1}),i(h,{class:"content"},{default:n((()=>[i(h,{class:"grid-container"},{default:n((()=>[i(h,{class:"grid-item"},{default:n((()=>[o("编号")])),_:1}),i(h,{class:"grid-item"},{default:n((()=>[o("供应商名称")])),_:1}),i(h,{class:"grid-item"},{default:n((()=>[o("分数")])),_:1}),i(h,{class:"grid-item"},{default:n((()=>[o("操作")])),_:1})])),_:1}),(u(!0),d(c,null,r(y.value,((e,a)=>(u(),_(h,{class:"grid-container",key:a},{default:n((()=>[i(h,{class:"grid-item"},{default:n((()=>[o(v(e.id),1)])),_:2},1024),i(h,{class:"grid-item"},{default:n((()=>[o(v(e.name),1)])),_:2},1024),i(h,{class:"grid-item"},{default:n((()=>[o(v(e.id),1)])),_:2},1024),i(h,{class:"grid-item"},{default:n((()=>[m("span",{style:{color:"#35a5f7"},onClick:a=>(e=>{V.value=e,w.value=!0})(e)},"编辑",8,["onClick"]),o("    "),m("span",{style:{color:"red"},onClick:a=>(e=>{let a="/suppliers/"+e.id;k(a).then((e=>{200===e.code&&(f("删除成功!"),C())}))})(e)},"删除 ",8,["onClick"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1}),i(F,{show:w.value,"onUpdate:show":a[4]||(a[4]=e=>w.value=e),style:{width:"80%"},round:""},{default:n((()=>[i(h,null,{default:n((()=>[m("h3",{style:{"text-align":"center"}},v(V.value.id?"编辑":"新增"),1),i(g,{inset:""},{default:n((()=>[i(t,{modelValue:V.value.name,"onUpdate:modelValue":a[1]||(a[1]=e=>V.value.name=e),name:"供应商名称",label:"供应商名称",colon:"",class:"bot","label-width":"6em",rules:[{required:!0,message:"请填写"}]},null,8,["modelValue"]),i(t,{name:"状态",label:"状态",colon:"","label-width":"6em"},{input:n((()=>[i(L,{modelValue:V.value.active,"onUpdate:modelValue":a[2]||(a[2]=e=>V.value.active=e),direction:"horizontal"},{default:n((()=>[i(b,{name:!0},{default:n((()=>[o("启用")])),_:1}),i(b,{name:!1},{default:n((()=>[o("禁用")])),_:1})])),_:1},8,["modelValue"])])),_:1})])),_:1}),i(h,{class:"a-c"},{default:n((()=>[i(z,{type:"danger",onClick:a[3]||(a[3]=e=>w.value=!1)},{default:n((()=>[o("取消")])),_:1}),i(z,{type:"primary",onClick:q},{default:n((()=>[o("确认")])),_:1})])),_:1})])),_:1})])),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-ca8f73f9"]]);export{y as default};

View File

@ -1 +0,0 @@
.flex[data-v-a24bfa60]{display:flex;flex-direction:column;height:100vh;width:100vw}.flex .van-nav-bar[data-v-a24bfa60]{width:100%}.flex .content[data-v-a24bfa60]{flex:1;padding:0 10px}.flex .content .grid-container[data-v-a24bfa60]{display:grid;grid-template-columns:2fr 1fr 1.5fr 1fr}.flex .content .grid-container .grid-item[data-v-a24bfa60]{border:1px solid #f2f2f2;text-align:center;padding:.46875rem 0}.flex .content .grid-container .grid-item[data-v-a24bfa60] .van-cell{padding:0 5px}.footer-button[data-v-a24bfa60]{margin:20px;display:flex;justify-content:space-around}[data-v-a24bfa60] .van-field{font-size:16px}.a-b[data-v-a24bfa60]{margin:.3125rem}.a-b[data-v-a24bfa60] .van-button--normal{padding:5px 8px;height:30px}.a-c[data-v-a24bfa60]{display:flex;align-items:center}.a-c[data-v-a24bfa60] .van-button--normal{padding:.25rem;height:1.5625rem;width:7em}.bor[data-v-a24bfa60] .van-field__control{border:1px solid #d7d7d7}[data-v-a24bfa60] .van-field__control{border-bottom:1px solid #d7d7d7;text-align:center;font-size:16px}[data-v-a24bfa60] .van-field__label{text-align:end}.ck-box[data-v-a24bfa60]{position:relative}.ck-box .ck[data-v-a24bfa60]{position:absolute;top:2.5rem;left:0;right:0;z-index:999}.ck-box .ck-a[data-v-a24bfa60]{width:100%;display:flex;align-items:center;justify-content:center}.select-model[data-v-a24bfa60]{position:relative}.confirm-select[data-v-a24bfa60]{width:100%}.confirm-select>p[data-v-a24bfa60]{text-align:center}.confirm-select>uni-button[data-v-a24bfa60]{border:none;background-color:#fff;color:#388aed;margin:10px 30px 0 0}.top-select[data-v-a24bfa60]{position:absolute;top:30px;left:0;right:0;margin:auto;z-index:999}[data-v-a24bfa60] .select-model .van-picker__toolbar{height:66px;align-items:flex-start}[data-v-a24bfa60] .select-model .van-picker__cancel,.select-model .van-picker__confirm[data-v-a24bfa60],[data-v-a24bfa60] .select-model .van-picker__confirm{height:30px;padding:10px 16px 0}.search-btn[data-v-a24bfa60]{padding:1px 8px;border:none;background-color:#388aed;color:#fff;margin-left:5px;height:30px;line-height:25px}.search-box[data-v-a24bfa60]{display:flex;flex-direction:row;align-items:center;justify-content:center;padding-top:15px;padding-bottom:5px;position:relative;background-color:#fff}.van-search[data-v-a24bfa60]{background-color:#f7f7f8}.ml-search-jump[data-v-a24bfa60]{padding:3px 10px;background-color:#388aed;color:#fff;border:none;margin-left:10px}.flex-btn[data-v-a24bfa60]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}

View File

@ -0,0 +1 @@
.flex[data-v-8a5fb52b]{display:flex;flex-direction:column;height:100vh;width:100vw}.flex .van-nav-bar[data-v-8a5fb52b]{width:100%}.flex .content[data-v-8a5fb52b]{flex:1;padding:0 10px}.flex .content .grid-container[data-v-8a5fb52b]{display:grid;grid-template-columns:2fr 1fr 1.5fr 1fr}.flex .content .grid-container .grid-item[data-v-8a5fb52b]{border:1px solid #f2f2f2;text-align:center;padding:.46875rem 0}.flex .content .grid-container .grid-item[data-v-8a5fb52b] .van-cell{padding:0 5px}.footer-button[data-v-8a5fb52b]{margin:20px;display:flex;justify-content:space-around}[data-v-8a5fb52b] .van-field{font-size:16px}.a-b[data-v-8a5fb52b]{margin:.3125rem}.a-b[data-v-8a5fb52b] .van-button--normal{padding:5px 8px;height:30px}.a-c[data-v-8a5fb52b]{display:flex;align-items:center}.a-c[data-v-8a5fb52b] .van-button--normal{padding:.25rem;height:1.5625rem;width:7em}.bor[data-v-8a5fb52b] .van-field__control{border:1px solid #d7d7d7}[data-v-8a5fb52b] .van-field__control{border-bottom:1px solid #d7d7d7;text-align:center;font-size:16px}[data-v-8a5fb52b] .van-field__label{text-align:end}.ck-box[data-v-8a5fb52b]{position:relative}.ck-box .ck[data-v-8a5fb52b]{position:absolute;top:2.5rem;left:0;right:0;z-index:999}.ck-box .ck-a[data-v-8a5fb52b]{width:100%;display:flex;align-items:center;justify-content:center}.select-model[data-v-8a5fb52b]{position:relative}.confirm-select[data-v-8a5fb52b]{width:100%}.confirm-select>p[data-v-8a5fb52b]{text-align:center}.confirm-select>uni-button[data-v-8a5fb52b]{border:none;background-color:#fff;color:#388aed;margin:10px 30px 0 0}.top-select[data-v-8a5fb52b]{position:absolute;top:30px;left:0;right:0;margin:auto;z-index:999}[data-v-8a5fb52b] .select-model .van-picker__toolbar{height:66px;align-items:flex-start}[data-v-8a5fb52b] .select-model .van-picker__cancel,.select-model .van-picker__confirm[data-v-8a5fb52b],[data-v-8a5fb52b] .select-model .van-picker__confirm{height:30px;padding:10px 16px 0}.search-btn[data-v-8a5fb52b]{padding:1px 8px;border:none;background-color:#388aed;color:#fff;margin-left:5px;height:30px;line-height:25px}.search-box[data-v-8a5fb52b]{display:flex;flex-direction:row;align-items:center;justify-content:center;padding-top:15px;padding-bottom:5px;position:relative;background-color:#fff}.van-search[data-v-8a5fb52b]{background-color:#f7f7f8}.ml-search-jump[data-v-8a5fb52b]{padding:3px 10px;background-color:#388aed;color:#fff;border:none;margin-left:10px}.flex-btn[data-v-8a5fb52b]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}

View File

@ -0,0 +1 @@
import{Z as a,_ as s,$ as o,a0 as r,a1 as t}from"./index-U_fosny-.js";function n(a,s){return"string"==typeof a?s:a}const e=r=>(t,n=o())=>{!a&&s(r,t,n)},i=e(r),f=e(t);export{f as a,i as o,n as r};

View File

@ -1 +0,0 @@
import{Z as a,_ as s,$ as o,a0 as r,a1 as t}from"./index-BAgZZwqh.js";function n(a,s){return"string"==typeof a?s:a}const e=r=>(t,n=o())=>{!a&&s(r,t,n)},i=e(r),f=e(t);export{f as a,i as o,n as r};

View File

@ -0,0 +1 @@
.flex[data-v-7ab40030]{display:flex;flex-direction:column;height:100vh;width:100vw;overflow-y:hidden}.flex .van-nav-bar[data-v-7ab40030]{width:100%}.flex .grid-container[data-v-7ab40030]{display:grid;grid-template-columns:1fr 2fr 2fr 2fr 1.5fr;padding:0 .46875rem}.flex .grid-container .grid-item[data-v-7ab40030]{border:.03125rem solid #f2f2f2;display:flex;align-items:center;text-align:center;justify-content:center;padding:.15625rem;ord-break:break-all;-webkit-box-orient:vertical;overflow:hidden}.flex .content[data-v-7ab40030]{flex:1;overflow-y:scroll}[data-v-7ab40030] .van-cell{padding:5px!important}[data-v-7ab40030] .van-field{font-size:16px}.floot[data-v-7ab40030]{padding:.625rem}.ck-box[data-v-7ab40030]{position:relative}.ck-box .ck[data-v-7ab40030]{position:absolute;top:2.5rem;left:0;right:0;z-index:999}.ck-box .ck-a[data-v-7ab40030]{width:100%;display:flex;align-items:center;justify-content:center}.bor[data-v-7ab40030] .van-field__control{border:1px solid #d7d7d7;text-align:center}.bor[data-v-7ab40030] .van-field__label{margin:0}.bor-a[data-v-7ab40030] .van-field__control{border-bottom:1px solid #d7d7d7;text-align:center}.bor-a[data-v-7ab40030] .van-field__label{margin:0}[data-v-7ab40030] .van-button--normal{padding:5px 8px;height:30px}[data-v-7ab40030] .van-field__control{text-align:center}.footer-button[data-v-7ab40030]{margin:20px;display:flex;justify-content:space-around}.select-model[data-v-7ab40030]{position:relative}.confirm-select[data-v-7ab40030]{width:100%}.confirm-select>p[data-v-7ab40030]{text-align:center}.confirm-select>uni-button[data-v-7ab40030]{border:none;background-color:#fff;color:#388aed;margin:10px 30px 0 0}.top-select[data-v-7ab40030]{position:absolute;top:30px;left:0;right:0;margin:auto;z-index:999}[data-v-7ab40030] .select-model .van-picker__toolbar{height:66px;align-items:flex-start}[data-v-7ab40030] .select-model .van-picker__cancel,.select-model .van-picker__confirm[data-v-7ab40030]{height:30px;padding:10px 16px 0}.search-btn[data-v-7ab40030]{padding:1px 8px;border:none;background-color:#388aed;color:#fff;margin-left:5px;height:30px;line-height:25px}.search-box[data-v-7ab40030]{display:flex;flex-direction:row;align-items:center;justify-content:center;padding-top:15px;padding-bottom:5px;position:relative;background-color:#fff}.van-search[data-v-7ab40030]{background-color:#f7f7f8}.ml-search-jump[data-v-7ab40030]{padding:3px 10px;background-color:#388aed;color:#fff;border:none;margin-left:10px}.flex-btn[data-v-7ab40030]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}

View File

@ -1 +0,0 @@
.flex[data-v-e67d3965]{display:flex;flex-direction:column;height:100vh;width:100vw;overflow-y:hidden}.flex .van-nav-bar[data-v-e67d3965]{width:100%}.flex .grid-container[data-v-e67d3965]{display:grid;grid-template-columns:2fr 1.6fr 1.3fr 1.5fr;padding:0 .46875rem}.flex .grid-container .grid-item[data-v-e67d3965]{border:.03125rem solid #f2f2f2;display:flex;align-items:center;justify-content:center;padding:.15625rem}.flex .content[data-v-e67d3965]{flex:1;overflow-y:scroll}[data-v-e67d3965] .van-cell{padding:5px!important}[data-v-e67d3965] .van-field{font-size:16px}.floot[data-v-e67d3965]{padding:.625rem}.ck-box[data-v-e67d3965]{position:relative}.ck-box .ck[data-v-e67d3965]{position:absolute;top:2.5rem;left:0;right:0;z-index:999}.ck-box .ck-a[data-v-e67d3965]{width:100%;display:flex;align-items:center;justify-content:center}.bor[data-v-e67d3965] .van-field__control{border:1px solid #d7d7d7;text-align:center}.bor[data-v-e67d3965] .van-field__label{margin:0}.bor-a[data-v-e67d3965] .van-field__control{border-bottom:1px solid #d7d7d7;text-align:center}.bor-a[data-v-e67d3965] .van-field__label{margin:0}[data-v-e67d3965] .van-button--normal{padding:5px 8px;height:30px}[data-v-e67d3965] .van-field__control{text-align:center}.footer-button[data-v-e67d3965]{margin:20px;display:flex;justify-content:space-around}.select-model[data-v-e67d3965]{position:relative}.confirm-select[data-v-e67d3965]{width:100%}.confirm-select>p[data-v-e67d3965]{text-align:center}.confirm-select>uni-button[data-v-e67d3965]{border:none;background-color:#fff;color:#388aed;margin:10px 30px 0 0}.top-select[data-v-e67d3965]{position:absolute;top:30px;left:0;right:0;margin:auto;z-index:999}[data-v-e67d3965] .select-model .van-picker__toolbar{height:66px;align-items:flex-start}[data-v-e67d3965] .select-model .van-picker__cancel,.select-model .van-picker__confirm[data-v-e67d3965]{height:30px;padding:10px 16px 0}.search-btn[data-v-e67d3965]{padding:1px 8px;border:none;background-color:#388aed;color:#fff;margin-left:5px;height:30px;line-height:25px}.search-box[data-v-e67d3965]{display:flex;flex-direction:row;align-items:center;justify-content:center;padding-top:15px;padding-bottom:5px;position:relative;background-color:#fff}.van-search[data-v-e67d3965]{background-color:#f7f7f8}.ml-search-jump[data-v-e67d3965]{padding:3px 10px;background-color:#388aed;color:#fff;border:none;margin-left:10px}.flex-btn[data-v-e67d3965]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}

View File

@ -14,7 +14,7 @@
<title>ckqt</title>
<!--preload-links-->
<!--app-context-->
<script type="module" crossorigin src="/assets/index-BAgZZwqh.js"></script>
<script type="module" crossorigin src="/assets/index-U_fosny-.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-B2VL-k8D.css">
</head>
<body>