This commit is contained in:
parent
6fc7b5c8b4
commit
748ec1204b
|
|
@ -0,0 +1,119 @@
|
||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
<view class="addall" v-if="show">
|
||||||
|
<view>温馨提示1111</view>
|
||||||
|
<view>
|
||||||
|
<image src="/static/index/procurement/ddj.png" mode="aspectFill"></image>
|
||||||
|
</view>
|
||||||
|
<view style="text-align: center;">{{ font }}</view>
|
||||||
|
<view>
|
||||||
|
<view @click="$emit('back')">取消</view>
|
||||||
|
<view class="qd" @click="$emit('right')">确定</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="mengban" v-if="show" @click="$emit('back')"></view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
show: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
font: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="less">
|
||||||
|
.addall {
|
||||||
|
width: 42.4vw;
|
||||||
|
height: 26vw;
|
||||||
|
background: #FFFFFF;
|
||||||
|
box-shadow: 0rpx 0rpx 1.3vw 0rpx rgba(163, 167, 182, 0.16);
|
||||||
|
border-radius: 1.6vw;
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
margin: auto;
|
||||||
|
padding: 2.8vw;
|
||||||
|
z-index: 9120;
|
||||||
|
|
||||||
|
>view {
|
||||||
|
&:nth-child(4) {
|
||||||
|
width: 22vw;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
margin: 1.8vw auto 0;
|
||||||
|
|
||||||
|
view {
|
||||||
|
width: 8.2vw;
|
||||||
|
height: 3.3vw;
|
||||||
|
background: #EDEDEF;
|
||||||
|
border-radius: 1.6vw;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 1.6vw;
|
||||||
|
color: #888888;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
border: 1px solid #EDEDEF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.qd {
|
||||||
|
background: linear-gradient(0deg, #CAE0F9, #E9F4FF);
|
||||||
|
border: 1px solid rgba(3, 133, 250, 0.34);
|
||||||
|
color: #0385FA;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:nth-child(3) {
|
||||||
|
width: 33vw;
|
||||||
|
height: 3.4vw;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 1.3vw;
|
||||||
|
color: #888888;
|
||||||
|
line-height: 1.7vw;
|
||||||
|
margin: 0.4vw auto 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:nth-child(2) {
|
||||||
|
width: 7.6vw;
|
||||||
|
height: 7.6vw;
|
||||||
|
margin: 1.1vw auto 0;
|
||||||
|
|
||||||
|
image {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:nth-child(1) {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 1.6vw;
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.mengban {
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 9100;
|
||||||
|
background: RGBA(239, 240, 244, 0.55);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,127 @@
|
||||||
|
// // src/plugins/toastPlugin.js
|
||||||
|
// import { createApp, reactive, h } from 'vue'
|
||||||
|
// import ToastHost from './errorshow.vue' // 路径按项目调整
|
||||||
|
|
||||||
|
// const defaultOpt = {
|
||||||
|
// title: '',
|
||||||
|
// duration: 1500,
|
||||||
|
// type: 'text', // 'text' | 'dialog'
|
||||||
|
// mask: true,
|
||||||
|
// maskClosable: true,
|
||||||
|
// success: null,
|
||||||
|
// complete: null
|
||||||
|
// }
|
||||||
|
|
||||||
|
// function createToastService() {
|
||||||
|
// const state = reactive({
|
||||||
|
// show: false,
|
||||||
|
// title: '',
|
||||||
|
// duration: defaultOpt.duration,
|
||||||
|
// type: defaultOpt.type,
|
||||||
|
// mask: defaultOpt.mask,
|
||||||
|
// maskClosable: defaultOpt.maskClosable,
|
||||||
|
// success: null,
|
||||||
|
// complete: null,
|
||||||
|
// _timer: null,
|
||||||
|
// // dialog 专用(可扩展)
|
||||||
|
// confirmText: '确定',
|
||||||
|
// cancelText: '取消'
|
||||||
|
// })
|
||||||
|
|
||||||
|
// function clearTimer() {
|
||||||
|
// if (state._timer) {
|
||||||
|
// clearTimeout(state._timer)
|
||||||
|
// state._timer = null
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// function showToast(options = {}) {
|
||||||
|
// const opt = Object.assign({}, defaultOpt, options)
|
||||||
|
// clearTimer()
|
||||||
|
// state.title = opt.title == null ? '' : String(opt.title)
|
||||||
|
// state.duration = Number(opt.duration) || defaultOpt.duration
|
||||||
|
// state.type = opt.type
|
||||||
|
// state.mask = !!opt.mask
|
||||||
|
// state.maskClosable = opt.maskClosable !== undefined ? !!opt.maskClosable : true
|
||||||
|
// state.success = typeof opt.success === 'function' ? opt.success : null
|
||||||
|
// state.complete = typeof opt.complete === 'function' ? opt.complete : null
|
||||||
|
// state.confirmText = opt.confirmText || '确定'
|
||||||
|
// state.cancelText = opt.cancelText || '取消'
|
||||||
|
// state.show = true
|
||||||
|
|
||||||
|
// return new Promise((resolve) => {
|
||||||
|
// if (state.type === 'text') {
|
||||||
|
// state._timer = setTimeout(() => {
|
||||||
|
// hideToast()
|
||||||
|
// if (state.complete) try { state.complete() } catch(e){/*ignore*/}
|
||||||
|
// resolve()
|
||||||
|
// }, state.duration)
|
||||||
|
// } else {
|
||||||
|
// // dialog 不自动关闭,等待按键或 maskClosable
|
||||||
|
// // 但为了安全可以选择不自动超时
|
||||||
|
// // resolve 将在按钮或 mask 关闭时调用
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
|
||||||
|
// function hideToast(by = 'complete') {
|
||||||
|
// clearTimer()
|
||||||
|
// state.show = false
|
||||||
|
// // 执行回调
|
||||||
|
// if (by === 'success' && state.success) {
|
||||||
|
// try { state.success() } catch(e) {}
|
||||||
|
// }
|
||||||
|
// if (state.complete) {
|
||||||
|
// try { state.complete() } catch(e) {}
|
||||||
|
// }
|
||||||
|
// // 清理
|
||||||
|
// state.success = null
|
||||||
|
// state.complete = null
|
||||||
|
// state.title = ''
|
||||||
|
// state.type = defaultOpt.type
|
||||||
|
// }
|
||||||
|
|
||||||
|
// // dialog 按钮触发
|
||||||
|
// function onConfirm() {
|
||||||
|
// hideToast('success')
|
||||||
|
// }
|
||||||
|
// function onCancel() {
|
||||||
|
// hideToast('complete')
|
||||||
|
// }
|
||||||
|
|
||||||
|
// return {
|
||||||
|
// state,
|
||||||
|
// showToast,
|
||||||
|
// hideToast,
|
||||||
|
// onConfirm,
|
||||||
|
// onCancel
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// // 插件安装函数
|
||||||
|
// export default {
|
||||||
|
// install: (app, options = {}) => {
|
||||||
|
// const service = createToastService()
|
||||||
|
|
||||||
|
// // programmatically mount the host component once
|
||||||
|
// const container = document.createElement('div')
|
||||||
|
// document.body.appendChild(container)
|
||||||
|
// const toastApp = createApp({
|
||||||
|
// render() {
|
||||||
|
// return h(ToastHost, { service })
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
// toastApp.mount(container)
|
||||||
|
|
||||||
|
// // 全局方法
|
||||||
|
// app.config.globalProperties.$errorshow = service.showToast
|
||||||
|
// // 兼容直接使用 window.uni.showToast
|
||||||
|
// if (typeof window !== 'undefined') {
|
||||||
|
// window.uni = window.uni || {}
|
||||||
|
// window.uni.$errorshow = service.showToast
|
||||||
|
// }
|
||||||
|
|
||||||
|
// // 可选:返回 service 以便调试
|
||||||
|
// app.provide('toastService', service)
|
||||||
|
// }
|
||||||
|
// }
|
||||||
2
main.js
2
main.js
|
|
@ -19,6 +19,7 @@ import {
|
||||||
createSSRApp
|
createSSRApp
|
||||||
} from 'vue'
|
} from 'vue'
|
||||||
import donghua from '@/component/public/donghua.vue'
|
import donghua from '@/component/public/donghua.vue'
|
||||||
|
// import errorshow from '@/component/public/toastPlugin.js'
|
||||||
import tanchuang from '@/pages/procurement/components/tanchuang.vue';
|
import tanchuang from '@/pages/procurement/components/tanchuang.vue';
|
||||||
// import arrowkeys from '@/component/public/newgame/arrowkeys.vue'
|
// import arrowkeys from '@/component/public/newgame/arrowkeys.vue'
|
||||||
export function createApp() {
|
export function createApp() {
|
||||||
|
|
@ -28,6 +29,7 @@ export function createApp() {
|
||||||
app.use(uView)
|
app.use(uView)
|
||||||
app.component('donghua', donghua)
|
app.component('donghua', donghua)
|
||||||
app.component('tanchuang', tanchuang)
|
app.component('tanchuang', tanchuang)
|
||||||
|
|
||||||
// app.component('arrowkeys', arrowkeys)
|
// app.component('arrowkeys', arrowkeys)
|
||||||
return {
|
return {
|
||||||
app
|
app
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<view
|
<view
|
||||||
v-show="moreindex!=-1 || topbuttontarget!=-1 || openjianhuo || opengaijia || opendata || opencgr || opengys"
|
v-show="moreindex!=-1 || topbuttontarget!=-1 || openjianhuo || opengaijia || opendata || opencgr || opengys"
|
||||||
class="mengban" :style="opencgr||opengys||opendata ?{background:`transparent`}:{}"
|
class="mengban" :style="opencgr||opengys||opendata ?{background:`transparent`}:{}"
|
||||||
@click="moreindex=-1; topbuttontarget=-1;openjianhuo=false;opengaijia=false;opendata=false;opencgr=false;opengys=false">
|
@click="moreindex=-1; topbuttontarget=-1;openjianhuo=false;opengaijia=false;opendata=false;opencgr=false;opengys=false;albumlist=[]">
|
||||||
</view>
|
</view>
|
||||||
<!-- 没数据了,遮罩 -->
|
<!-- 没数据了,遮罩 -->
|
||||||
<nomessageimge cont="暂无数据" :show="nomessageshow" />
|
<nomessageimge cont="暂无数据" :show="nomessageshow" />
|
||||||
|
|
@ -107,8 +107,8 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="display: flex;width: 480rpx;">
|
<view style="display: flex;width: 480rpx;">
|
||||||
<view class="gray-button-jianpan" style="font-size: 35rpx;" @click="press('AC')">
|
<view class="gray-button-jianpan" style="font-size: 30rpx;" @click="press('AC')">
|
||||||
AC
|
清零
|
||||||
</view>
|
</view>
|
||||||
<view class="gray-button-jianpan" @click="press('0')">
|
<view class="gray-button-jianpan" @click="press('0')">
|
||||||
0
|
0
|
||||||
|
|
@ -314,15 +314,15 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="display: flex;width: 480rpx;">
|
<view style="display: flex;width: 480rpx;">
|
||||||
<view class="gray-button-jianpan" style="font-size: 35rpx;" @click="clknum('AC')">
|
<view class="gray-button-jianpan" style="font-size: 30rpx;" @click="clknum('AC')">
|
||||||
AC
|
清零
|
||||||
</view>
|
</view>
|
||||||
<view class="gray-button-jianpan" @click="clknum(0)">
|
<view class="gray-button-jianpan" @click="clknum(0)">
|
||||||
0
|
0
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="gray-button-jianpan" style="font-size: 35rpx;" @click="clknum('AE')">
|
<view class="gray-button-jianpan" @click="clknum('AE')">
|
||||||
AE
|
<image src="/static/cleanone.png" mode="aspectFill" style="width: 50%;height: 50%;"></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -568,11 +568,11 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="pls-card-middle-one">
|
<view class="pls-card-middle-one">
|
||||||
<view class="middle-title">
|
<view class="middle-title">
|
||||||
{{ v.jhTime?.slice(0,10).replace(/-/g, '.') }}
|
{{ Number(v.status)<1 ? "": v.jhTime?.slice(0,10).replace(/-/g, '.') }}
|
||||||
</view>
|
</view>
|
||||||
<view class="middle-heng-father">
|
<view class="middle-heng-father">
|
||||||
|
|
||||||
<view class="middle-ball" v-if="Number(v.status)<1"></view>
|
<view class="middle-ball" v-if="Number(v.status)<2"></view>
|
||||||
<image class="middle-ball-img" v-else src="/static/index/requestform/isok.png" />
|
<image class="middle-ball-img" v-else src="/static/index/requestform/isok.png" />
|
||||||
</view>
|
</view>
|
||||||
<view class="end-font">
|
<view class="end-font">
|
||||||
|
|
@ -581,7 +581,7 @@
|
||||||
拣货
|
拣货
|
||||||
</view>
|
</view>
|
||||||
<view v-if=" v.jhBy">
|
<view v-if=" v.jhBy">
|
||||||
{{ "[ " + v.jhBy + " ]" }}
|
{{ Number(v.status)<1 ? "":"[ " + v.jhBy + " ]" }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -593,8 +593,7 @@
|
||||||
<view class="middle-heng-father">
|
<view class="middle-heng-father">
|
||||||
|
|
||||||
<!-- <view class="middle-ball" :style="{backgroundColor: `#1083F8`}"></view> -->
|
<!-- <view class="middle-ball" :style="{backgroundColor: `#1083F8`}"></view> -->
|
||||||
<view class="middle-ball"
|
<view class="middle-ball" :style="{backgroundColor: `#E5E5E5`}"
|
||||||
:style="{backgroundColor: Number(v.status)==1? ``:`#E5E5E5`}"
|
|
||||||
v-if="Number(v.status)!=2"></view>
|
v-if="Number(v.status)!=2"></view>
|
||||||
<image class="middle-ball-img" v-else src="/static/index/requestform/isok.png" />
|
<image class="middle-ball-img" v-else src="/static/index/requestform/isok.png" />
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -920,7 +919,8 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="right-bottom" v-show="typechange==1" style="padding: 0 50rpx;flex-direction: column;">
|
<view class="right-bottom" v-show="typechange==1" style="padding: 0 50rpx;flex-direction: column;">
|
||||||
<view style="width: 100%;display: flex;justify-content: space-between;margin-top: 30rpx;margin-bottom: 10rpx;">
|
<view
|
||||||
|
style="width: 100%;display: flex;justify-content: space-between;margin-top: 30rpx;margin-bottom: 10rpx;">
|
||||||
<view style="font-size: 35rpx;font-weight: 600;margin-left: 20rpx;color: #222222;">
|
<view style="font-size: 35rpx;font-weight: 600;margin-left: 20rpx;color: #222222;">
|
||||||
{{showvalue.wlName}}
|
{{showvalue.wlName}}
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -999,8 +999,7 @@
|
||||||
</view> -->
|
</view> -->
|
||||||
|
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
<view
|
<view style="width: 100%;display: flex;justify-content: center;color: #C3C3C3;margin-top: 40rpx;"
|
||||||
style="width: 100%;display: flex;justify-content: center;color: #C3C3C3;margin-top: 40rpx;"
|
|
||||||
v-if="lhjlarr.length">
|
v-if="lhjlarr.length">
|
||||||
<image v-if="statustory=='loading'"
|
<image v-if="statustory=='loading'"
|
||||||
style="width: 25rpx;height: 25rpx;margin-right: 10rpx;margin-top: 5rpx;margin-left: -10rpx;"
|
style="width: 25rpx;height: 25rpx;margin-right: 10rpx;margin-top: 5rpx;margin-left: -10rpx;"
|
||||||
|
|
@ -1077,7 +1076,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted, reactive, onBeforeUnmount, computed, nextTick, onUnmounted } from 'vue';
|
import { ref, onMounted, reactive, onBeforeUnmount, computed, nextTick, onUnmounted } from 'vue';
|
||||||
import { editIzNew, queryPickingRecordList, queryJhzpList, addSxd, querySxdList, queryInvoicingList, getCgdMaterialTreeData, queryNuInfoByNuId, updateKfstatus, queryCgdList, queryCgdInfoList, queryWlInfoByWlId, voidedCgdMain, getCgrLis, getGysList, upload, editPrice, pickingInfo } from './api/lunpan.js'
|
import { editIzNew, queryPickingRecordList, queryJhzpList, addSxd, querySxdList, queryInvoicingList, getCgdMaterialTreeData, queryNuInfoByNuId, updateKfstatus, queryCgdList, queryCgdInfoList, queryWlInfoByWlId, voidedCgdMain, getCgrLis, getGysList, upload, editPrice, pickingInfo } from './api/lunpan.js'
|
||||||
import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app"
|
import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app"
|
||||||
import calendar from '@/component/public/calendar.vue'
|
import calendar from '@/component/public/calendar.vue'
|
||||||
|
|
@ -1121,7 +1120,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (k === 'AC') {
|
if (k === 'AC') {
|
||||||
gaijia.value = ''
|
gaijia.value = '0'
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1156,6 +1155,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const openjianhuoclick = () => {
|
const openjianhuoclick = () => {
|
||||||
|
// console.log("测试",InvoicingList.value[middletarget.value].rksl)
|
||||||
if (showvalue.value.jianhuobtn == false) {
|
if (showvalue.value.jianhuobtn == false) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
@ -1842,7 +1842,8 @@
|
||||||
cgdId: showvalue.value.cgdId
|
cgdId: showvalue.value.cgdId
|
||||||
}
|
}
|
||||||
pickingInfo(obj).then(res => {
|
pickingInfo(obj).then(res => {
|
||||||
// console.log(`提交数据`,res)
|
console.log(`入参`, obj)
|
||||||
|
console.log(`返回`, res)
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
title: res.message ? res.message : '操作成功'
|
title: res.message ? res.message : '操作成功'
|
||||||
|
|
@ -1896,6 +1897,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const config = (e) => {
|
const config = (e) => {
|
||||||
|
// console.log("ceshi",Number(stringjh.value))
|
||||||
|
if (!Number(stringjh.value)) {
|
||||||
|
uni.showToast({ title: '数量为0的时候,无法销账或入库', icon: 'none' })
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (e == 1) {
|
if (e == 1) {
|
||||||
open.value = 2;
|
open.value = 2;
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -2492,7 +2499,7 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin: 0 0 0 0.7vw;
|
margin: 0 0 0 0.7vw;
|
||||||
color: #555555;
|
color: #555555;
|
||||||
|
|
||||||
image {
|
image {
|
||||||
width: 1.5vw;
|
width: 1.5vw;
|
||||||
height: 1.5vw;
|
height: 1.5vw;
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,12 @@
|
||||||
<view class="home">
|
<view class="home">
|
||||||
<image class="all-home" src="/static/index/warehouse/newhome/setting.png" mode="aspectFit"></image>
|
<image class="all-home" src="/static/index/warehouse/newhome/setting.png" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="right-title">
|
||||||
|
<image class="title-imge" src="/static/index/indeximage.png" mode="aspectFit"></image>
|
||||||
|
<view class="title-font">
|
||||||
|
{{ uni.getStorageSync('nuName') }}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="paizi tp">
|
<view class="paizi tp">
|
||||||
<donghua width="18vw" height="18vw" :interval="300" :links="paiziarray" :playing="playall" :loop="true" />
|
<donghua width="18vw" height="18vw" :interval="300" :links="paiziarray" :playing="playall" :loop="true" />
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -223,99 +229,9 @@
|
||||||
return `${base}/${prefix}${idx}.${ext}`
|
return `${base}/${prefix}${idx}.${ext}`
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// const animArray = ref([
|
|
||||||
// {
|
|
||||||
// url: genPaths(
|
|
||||||
// '/static/index/warehouse/home/',
|
|
||||||
// 'Procurement',
|
|
||||||
// 5, // 张数
|
|
||||||
// 'png',
|
|
||||||
// 0, // 起始索引为 1
|
|
||||||
// false // 不补零
|
|
||||||
// ),
|
|
||||||
// width: '22.3vw',
|
|
||||||
// height: '13.6vw'
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// url: genPaths(
|
|
||||||
// '/static/index/warehouse/home',
|
|
||||||
// 'inventory',
|
|
||||||
// 4, // 张数
|
|
||||||
// 'png',
|
|
||||||
// 0, // 起始索引为 1
|
|
||||||
// false // 不补零
|
|
||||||
// ),
|
|
||||||
// width: '11vw',
|
|
||||||
// height: '10vw'
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// url: genPaths(
|
|
||||||
// '/static/index/warehouse/home',
|
|
||||||
// 'pick',
|
|
||||||
// 4, // 张数
|
|
||||||
// 'png',
|
|
||||||
// 0, // 起始索引为 1
|
|
||||||
// false // 不补零
|
|
||||||
// ),
|
|
||||||
// width: '11vw',
|
|
||||||
// height: '9vw'
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// url: genPaths(
|
|
||||||
// '/static/index/warehouse/home',
|
|
||||||
// 'unit1-',
|
|
||||||
// 5, // 张数
|
|
||||||
// 'png',
|
|
||||||
// 0, // 起始索引为 1
|
|
||||||
// false // 不补零
|
|
||||||
// ),
|
|
||||||
// width: '14.3vw',
|
|
||||||
// height: '13vw'
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// url: genPaths(
|
|
||||||
// '/static/index/warehouse/home',
|
|
||||||
// 'unit1-',
|
|
||||||
// 5, // 张数
|
|
||||||
// 'png',
|
|
||||||
// 0, // 起始索引为 1
|
|
||||||
// false // 不补零
|
|
||||||
// ),
|
|
||||||
// width: '14.3vw',
|
|
||||||
// height: '13vw'
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// url: genPaths(
|
|
||||||
// '/static/index/warehouse/home',
|
|
||||||
// 'unit11-',
|
|
||||||
// 5, // 张数
|
|
||||||
// 'png',
|
|
||||||
// 0, // 起始索引为 1
|
|
||||||
// false // 不补零
|
|
||||||
// ),
|
|
||||||
// width: '14.3vw',
|
|
||||||
// height: '13vw'
|
|
||||||
// },
|
|
||||||
// ])
|
|
||||||
// const logoval = reactive({
|
|
||||||
// url: genPaths(
|
|
||||||
// '/static/index/warehouse/home',
|
|
||||||
// 'logo',
|
|
||||||
// 3, // 张数
|
|
||||||
// 'png',
|
|
||||||
// 1, // 起始索引为 1
|
|
||||||
// false // 不补零
|
|
||||||
// )
|
|
||||||
|
|
||||||
// })
|
|
||||||
// const goback = () => {
|
|
||||||
// uni.navigateBack()
|
|
||||||
// }
|
|
||||||
// 当前坐标(px)
|
// 当前坐标(px)
|
||||||
const x = ref(63)
|
const x = ref(63)
|
||||||
const y = ref(59)
|
const y = ref(59)
|
||||||
// const x = ref(50)
|
|
||||||
// const y = ref(5)
|
|
||||||
// 默认过渡时长(s)
|
// 默认过渡时长(s)
|
||||||
const duration = ref(0.7)
|
const duration = ref(0.7)
|
||||||
const easing = 'linear' // 柔和的 easing
|
const easing = 'linear' // 柔和的 easing
|
||||||
|
|
@ -685,4 +601,28 @@
|
||||||
left: 71vw;
|
left: 71vw;
|
||||||
z-index: 51;
|
z-index: 51;
|
||||||
}
|
}
|
||||||
|
.right-title{
|
||||||
|
position: fixed;
|
||||||
|
right: 2vw;
|
||||||
|
top: 3vw;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
.title-imge{
|
||||||
|
width: 2vw;
|
||||||
|
height: 2vw;
|
||||||
|
// margin-top: -0.3vw;
|
||||||
|
}
|
||||||
|
.title-font{
|
||||||
|
font-size: 30rpx;
|
||||||
|
// margin-left: 3vw;
|
||||||
|
font-weight: 600;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// <view class="right-title">
|
||||||
|
// <image class="title-imge" src="/static/index/indeximage.png" mode="aspectFit"></image>
|
||||||
|
// <view class="title-font">
|
||||||
|
// {{ uni.getStorageSync('nuName') }}
|
||||||
|
// </view>
|
||||||
|
// </view>
|
||||||
</style>
|
</style>
|
||||||
|
|
@ -24,10 +24,19 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="calculator-father">
|
<view class="calculator-father">
|
||||||
<view v-for="(item,index) in calculatorArray" :key="index">
|
<view v-for="(item,index) in calculatorArray" :key="index">
|
||||||
<view :class="blueNumber == index ? `calculator-kuai-target` : ``" class="calculator-kuai"
|
<view :class="blueNumber == index ? `calculator-kuai-target` : ``" class="calculator-kuai" style="font-size: 33rpx;" v-if="item==`AC`"
|
||||||
|
@click="clickKuai(item,index)">
|
||||||
|
清零
|
||||||
|
</view>
|
||||||
|
<view :class="blueNumber == index ? `calculator-kuai-target` : ``" class="calculator-kuai" v-else-if="item==`AE`"
|
||||||
|
@click="clickKuai(item,index)">
|
||||||
|
<image src="/static/cleanone.png" mode="aspectFill" style="width: 50%;height: 50%;margin-left: -5rpx;"></image>
|
||||||
|
</view>
|
||||||
|
<view :class="blueNumber == index ? `calculator-kuai-target` : ``" class="calculator-kuai" v-else
|
||||||
@click="clickKuai(item,index)">
|
@click="clickKuai(item,index)">
|
||||||
{{item}}
|
{{item}}
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="qinggou-font">
|
<view class="qinggou-font">
|
||||||
|
|
|
||||||
|
|
@ -26,18 +26,19 @@
|
||||||
<view class="middle-heng"></view>
|
<view class="middle-heng"></view>
|
||||||
<view class="pls-card-middle-one">
|
<view class="pls-card-middle-one">
|
||||||
<view class="middle-title">
|
<view class="middle-title">
|
||||||
{{v.qgDate?.replace(/-/g, '.')}}
|
<!-- {{v.qgDate?.replace(/-/g, '.')}} -->
|
||||||
</view>
|
</view>
|
||||||
<view class="middle-heng-father">
|
<view class="middle-heng-father">
|
||||||
<image class="middle-ball-img" src="/static/index/requestform/isok.png" />
|
<view class="middle-ball" style="background-color: #1083F8;"></view>
|
||||||
|
<!-- <image class="middle-ball-img" src="/static/index/requestform/isok.png" /> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="end-font">
|
<view class="end-font">
|
||||||
<view>
|
<view>
|
||||||
采购
|
采购
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<!-- <view>
|
||||||
[ {{v.qgBy}} ]
|
[ {{v.qgBy}} ]
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="pls-card-middle-one">
|
<view class="pls-card-middle-one">
|
||||||
|
|
@ -46,7 +47,7 @@
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="middle-heng-father">
|
<view class="middle-heng-father">
|
||||||
<view class="middle-ball" style="background-color: #1083F8;"></view>
|
<view class="middle-ball"></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="end-font">
|
<view class="end-font">
|
||||||
<!-- <view class=""
|
<!-- <view class=""
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,8 @@
|
||||||
<text class="ytj" v-if="v.isAdd==1">已添加</text>
|
<text class="ytj" v-if="v.isAdd==1">已添加</text>
|
||||||
<text class="sl" >{{v.ljkcsl}}</text>
|
<text class="sl" >{{v.ljkcsl}}</text>
|
||||||
</view>
|
</view>
|
||||||
<defaultr cont="暂无数据" v-if="Material.length==0&&timeout" style="position: absolute;width: 10vw;height: 10vw;"></defaultr>
|
<defaultr cont="暂无数据" v-if="Material.length==0&&timeout" style="position: absolute;width: 10vw;height: 10vw;left: 10%;"></defaultr>
|
||||||
|
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
<view class="kjlt more guodu" :style="qb?'width:12.15vw':'' " @touchstart="ts" @touchmove="canmove" v-if="Material.length>0">
|
<view class="kjlt more guodu" :style="qb?'width:12.15vw':'' " @touchstart="ts" @touchmove="canmove" v-if="Material.length>0">
|
||||||
<view @click="qb=!qb;moredex=0;moveleft()" class="righ0" >
|
<view @click="qb=!qb;moredex=0;moveleft()" class="righ0" >
|
||||||
|
|
@ -404,8 +405,15 @@
|
||||||
warn.pageNo = 1;
|
warn.pageNo = 1;
|
||||||
Material.value = [];
|
Material.value = [];
|
||||||
getWaringMaterial();
|
getWaringMaterial();
|
||||||
|
console.log("看看",caigouobj.value)
|
||||||
|
// console.log("第几个",forthmenuIndex.value)
|
||||||
|
console.log("参数",InvoicingList.value)
|
||||||
if (caigouobj.value.yj) {
|
if (caigouobj.value.yj) {
|
||||||
Material.value[forthmenuIndex.value].isAdd = 1
|
InvoicingList.value.forEach((element:any)=>{
|
||||||
|
if(element.id===caigouobj.value.id){
|
||||||
|
element.isAdd = '1'
|
||||||
|
}
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
caigouobj.value.isAdd = 1
|
caigouobj.value.isAdd = 1
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -69,13 +69,13 @@
|
||||||
<view class="pls-card-middle-one">
|
<view class="pls-card-middle-one">
|
||||||
<view class="middle-title" :style=" v?.cgdType=='9' ?{color:`#FF5757`}:{}">
|
<view class="middle-title" :style=" v?.cgdType=='9' ?{color:`#FF5757`}:{}">
|
||||||
|
|
||||||
{{ v?.cgdType=='9' ?v.zfTime?.slice(0,10).replace(/-/g, '.'):v.jhTime?.slice(0,10).replace(/-/g, '.') }}
|
{{ v?.cgdType=='9' ?v.zfTime?.slice(0,10).replace(/-/g, '.'):Number(v.status)<1?``:v.jhTime?.slice(0,10).replace(/-/g, '.') }}
|
||||||
</view>
|
</view>
|
||||||
<view class="middle-heng-father">
|
<view class="middle-heng-father">
|
||||||
|
<image class="middle-ball-img" v-if="v?.cgdType=='9'" src="/static/index/requestform/iserror.png" />
|
||||||
<view class="middle-ball" style="background-color: #1083F8;"
|
<view class="middle-ball" style="background-color: #1083F8;"
|
||||||
:style=" v?.cgdType=='9' ?{backgroundColor:`#FF5757`}:{}"
|
:style=" v?.cgdType=='9' ?{backgroundColor:`#FF5757`}:{}"
|
||||||
v-if="Number(v.status)<1"></view>
|
v-else-if="Number(v.status)<2"></view>
|
||||||
<image class="middle-ball-img" v-else src="/static/index/requestform/isok.png" />
|
<image class="middle-ball-img" v-else src="/static/index/requestform/isok.png" />
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -85,7 +85,7 @@
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view v-if="v?.jhBy || v?.zfBy" :style=" v?.cgdType=='9' ?{color:`#FF5757`}:{}">
|
<view v-if="v?.jhBy || v?.zfBy" :style=" v?.cgdType=='9' ?{color:`#FF5757`}:{}">
|
||||||
{{ "[ " + (v?.cgdType=='9' ?v?.zfBy:v?.jhBy )+ " ]" }}
|
{{ Number(v.status)>0||v?.cgdType=='9'? "[ " + (v?.cgdType=='9' ?v?.zfBy:v?.jhBy )+ " ]":"" }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -95,7 +95,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="middle-heng-father">
|
<view class="middle-heng-father">
|
||||||
<view class="middle-ball"
|
<view class="middle-ball"
|
||||||
:style="Number(v.status)==1?{backgroundColor: `#1083F8`}:{} "
|
|
||||||
v-if="Number(v.status)<2"></view>
|
v-if="Number(v.status)<2"></view>
|
||||||
<image class="middle-ball-img" v-else src="/static/index/requestform/isok.png" />
|
<image class="middle-ball-img" v-else src="/static/index/requestform/isok.png" />
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="view">
|
<view class="view">
|
||||||
<view class="view-left">
|
<view class="view-left">
|
||||||
<view class="title-father">
|
<view class="title-father" @click="ceshi">
|
||||||
<image class="title-img" src="/static/index/watch/uni.png" />
|
<image class="title-img" src="/static/index/watch/uni.png" />
|
||||||
<view class="title-font">
|
<view class="title-font">
|
||||||
护理单元
|
护理单元
|
||||||
|
|
@ -1130,6 +1130,9 @@
|
||||||
if (!m) throw new Error('无法解析的日期格式')
|
if (!m) throw new Error('无法解析的日期格式')
|
||||||
return new Date(Number(m[1]), Number(m[2]) - 1, Number(m[3]))
|
return new Date(Number(m[1]), Number(m[2]) - 1, Number(m[3]))
|
||||||
}
|
}
|
||||||
|
const ceshi = () => {
|
||||||
|
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 5.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 910 B |
|
|
@ -574,7 +574,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
)
|
)
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
const camera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/项目/hldy_app_mini/pages/camera.nvue"]]);
|
const camera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/hldy_app_mini/pages/camera.nvue"]]);
|
||||||
export {
|
export {
|
||||||
camera as default
|
camera as default
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -577,7 +577,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
)
|
)
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
const fullcamera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/项目/hldy_app_mini/pages/fullcamera.nvue"]]);
|
const fullcamera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/hldy_app_mini/pages/fullcamera.nvue"]]);
|
||||||
export {
|
export {
|
||||||
fullcamera as default
|
fullcamera as default
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue