解决无法启动以及启动时报错问题
This commit is contained in:
parent
293da5a635
commit
d2f9a8c965
File diff suppressed because it is too large
Load Diff
166
package.json
166
package.json
|
|
@ -1,85 +1,85 @@
|
|||
{
|
||||
"name": "uni-preset-vue",
|
||||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"dev:app": "uni -p app",
|
||||
"dev:app-android": "uni -p app-android",
|
||||
"dev:app-ios": "uni -p app-ios",
|
||||
"dev:app-harmony": "uni -p app-harmony",
|
||||
"dev:custom": "uni -p",
|
||||
"dev:h5": "uni",
|
||||
"dev:h5:ssr": "uni --ssr",
|
||||
"dev:mp-alipay": "uni -p mp-alipay",
|
||||
"dev:mp-baidu": "uni -p mp-baidu",
|
||||
"dev:mp-jd": "uni -p mp-jd",
|
||||
"dev:mp-kuaishou": "uni -p mp-kuaishou",
|
||||
"dev:mp-lark": "uni -p mp-lark",
|
||||
"dev:mp-qq": "uni -p mp-qq",
|
||||
"dev:mp-toutiao": "uni -p mp-toutiao",
|
||||
"dev:mp-weixin": "uni -p mp-weixin",
|
||||
"dev:mp-xhs": "uni -p mp-xhs",
|
||||
"dev:quickapp-webview": "uni -p quickapp-webview",
|
||||
"dev:quickapp-webview-huawei": "uni -p quickapp-webview-huawei",
|
||||
"dev:quickapp-webview-union": "uni -p quickapp-webview-union",
|
||||
"build:app": "uni build -p app",
|
||||
"build:app-android": "uni build -p app-android",
|
||||
"build:app-ios": "uni build -p app-ios",
|
||||
"build:app-harmony": "uni build -p app-harmony",
|
||||
"build:custom": "uni build -p",
|
||||
"build:h5": "uni build",
|
||||
"build:h5:ssr": "uni build --ssr",
|
||||
"build:mp-alipay": "uni build -p mp-alipay",
|
||||
"build:mp-baidu": "uni build -p mp-baidu",
|
||||
"build:mp-jd": "uni build -p mp-jd",
|
||||
"build:mp-kuaishou": "uni build -p mp-kuaishou",
|
||||
"build:mp-lark": "uni build -p mp-lark",
|
||||
"build:mp-qq": "uni build -p mp-qq",
|
||||
"build:mp-toutiao": "uni build -p mp-toutiao",
|
||||
"build:mp-weixin": "uni build -p mp-weixin",
|
||||
"build:mp-xhs": "uni build -p mp-xhs",
|
||||
"build:quickapp-webview": "uni build -p quickapp-webview",
|
||||
"build:quickapp-webview-huawei": "uni build -p quickapp-webview-huawei",
|
||||
"build:quickapp-webview-union": "uni build -p quickapp-webview-union"
|
||||
},
|
||||
"dependencies": {
|
||||
"@dcloudio/uni-app": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-app-harmony": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-app-plus": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-components": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-h5": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-mp-alipay": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-mp-baidu": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-mp-jd": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-mp-kuaishou": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-mp-lark": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-mp-qq": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-mp-toutiao": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-mp-weixin": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-mp-xhs": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-quickapp-webview": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-ui": "^1.5.7",
|
||||
"default-passive-events": "^2.0.0",
|
||||
"lodash-es": "^4.17.21",
|
||||
"pinia": "^2.2.2",
|
||||
"pinia-plugin-persistedstate": "^3.2.3",
|
||||
"sass": "^1.32.13",
|
||||
"sass-loader": "^16.0.3",
|
||||
"vue": "^3.5.13",
|
||||
"vue-i18n": "^9.14.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@dcloudio/types": "^3.4.14",
|
||||
"@dcloudio/uni-automator": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-cli-shared": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-stacktracey": "3.0.0-4020920240930001",
|
||||
"@dcloudio/vite-plugin-uni": "3.0.0-4020920240930001",
|
||||
"@eslint/js": "^9.9.0",
|
||||
"@vue/runtime-core": "^3.5.13",
|
||||
"eslint": "^9.9.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-vue": "^9.27.0",
|
||||
"globals": "^15.9.0",
|
||||
"vite": "5.2.8",
|
||||
"vite-plugin-eslint": "^1.8.1"
|
||||
}
|
||||
"name": "uni-preset-vue",
|
||||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"dev:app": "uni -p app",
|
||||
"dev:app-android": "uni -p app-android",
|
||||
"dev:app-ios": "uni -p app-ios",
|
||||
"dev:app-harmony": "uni -p app-harmony",
|
||||
"dev:custom": "uni -p",
|
||||
"dev:h5": "uni",
|
||||
"dev:h5:ssr": "uni --ssr",
|
||||
"dev:mp-alipay": "uni -p mp-alipay",
|
||||
"dev:mp-baidu": "uni -p mp-baidu",
|
||||
"dev:mp-jd": "uni -p mp-jd",
|
||||
"dev:mp-kuaishou": "uni -p mp-kuaishou",
|
||||
"dev:mp-lark": "uni -p mp-lark",
|
||||
"dev:mp-qq": "uni -p mp-qq",
|
||||
"dev:mp-toutiao": "uni -p mp-toutiao",
|
||||
"dev:mp-weixin": "uni -p mp-weixin",
|
||||
"dev:mp-xhs": "uni -p mp-xhs",
|
||||
"dev:quickapp-webview": "uni -p quickapp-webview",
|
||||
"dev:quickapp-webview-huawei": "uni -p quickapp-webview-huawei",
|
||||
"dev:quickapp-webview-union": "uni -p quickapp-webview-union",
|
||||
"build:app": "uni build -p app",
|
||||
"build:app-android": "uni build -p app-android",
|
||||
"build:app-ios": "uni build -p app-ios",
|
||||
"build:app-harmony": "uni build -p app-harmony",
|
||||
"build:custom": "uni build -p",
|
||||
"build:h5": "uni build",
|
||||
"build:h5:ssr": "uni build --ssr",
|
||||
"build:mp-alipay": "uni build -p mp-alipay",
|
||||
"build:mp-baidu": "uni build -p mp-baidu",
|
||||
"build:mp-jd": "uni build -p mp-jd",
|
||||
"build:mp-kuaishou": "uni build -p mp-kuaishou",
|
||||
"build:mp-lark": "uni build -p mp-lark",
|
||||
"build:mp-qq": "uni build -p mp-qq",
|
||||
"build:mp-toutiao": "uni build -p mp-toutiao",
|
||||
"build:mp-weixin": "uni build -p mp-weixin",
|
||||
"build:mp-xhs": "uni build -p mp-xhs",
|
||||
"build:quickapp-webview": "uni build -p quickapp-webview",
|
||||
"build:quickapp-webview-huawei": "uni build -p quickapp-webview-huawei",
|
||||
"build:quickapp-webview-union": "uni build -p quickapp-webview-union"
|
||||
},
|
||||
"dependencies": {
|
||||
"@dcloudio/uni-app": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-app-harmony": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-app-plus": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-components": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-h5": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-mp-alipay": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-mp-baidu": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-mp-jd": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-mp-kuaishou": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-mp-lark": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-mp-qq": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-mp-toutiao": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-mp-weixin": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-mp-xhs": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-quickapp-webview": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-ui": "^1.5.7",
|
||||
"default-passive-events": "^2.0.0",
|
||||
"lodash-es": "^4.17.21",
|
||||
"pinia": "^2.2.2",
|
||||
"pinia-plugin-persistedstate": "^3.2.3",
|
||||
"sass": "^1.32.13",
|
||||
"sass-loader": "^10.1.1",
|
||||
"vue": "^3.5.13",
|
||||
"vue-i18n": "^9.14.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@dcloudio/types": "^3.4.14",
|
||||
"@dcloudio/uni-automator": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-cli-shared": "3.0.0-4020920240930001",
|
||||
"@dcloudio/uni-stacktracey": "3.0.0-4020920240930001",
|
||||
"@dcloudio/vite-plugin-uni": "3.0.0-4020920240930001",
|
||||
"@eslint/js": "^9.9.0",
|
||||
"@vue/runtime-core": "^3.5.13",
|
||||
"eslint": "^9.9.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-vue": "^9.27.0",
|
||||
"globals": "^15.9.0",
|
||||
"vite": "5.2.8",
|
||||
"vite-plugin-eslint": "^1.8.1"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -248,7 +248,7 @@ import {
|
|||
insertApp,
|
||||
getAgreementInfoById,
|
||||
getTypeDataList,
|
||||
leaseTask,
|
||||
// leaseTask,
|
||||
discountSubmit,
|
||||
} from '../../services/back.js'
|
||||
import {
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -210,9 +210,7 @@ function uploadUnNotice(arr) {
|
|||
}
|
||||
|
||||
// 页面显示时获取数据
|
||||
onShow(() => {
|
||||
|
||||
})
|
||||
onShow(() => {})
|
||||
|
||||
// 顶部按钮事件
|
||||
onNavigationBarButtonTap((e) => {
|
||||
|
|
@ -235,7 +233,7 @@ onNavigationBarButtonTap((e) => {
|
|||
|
||||
<style lang="scss" scoped>
|
||||
.page-bg {
|
||||
background: url('/src/static/bgd.png');
|
||||
background: url('../../static/bgd.png');
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
min-height: 100vh;
|
||||
|
|
@ -355,22 +353,22 @@ onNavigationBarButtonTap((e) => {
|
|||
}
|
||||
}
|
||||
.llsp {
|
||||
background: url('/src/static/llsp.png');
|
||||
background: url('../../static/llsp.png');
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.tlsp {
|
||||
background: url('/src/static/tlsp.png');
|
||||
background: url('../../static/tlsp.png');
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.bfsh {
|
||||
background: url('/src/static/bfsh.png');
|
||||
background: url('../../static/bfsh.png');
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.sysh {
|
||||
background: url('/src/static/sysh.png');
|
||||
background: url('../../static/sysh.png');
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,22 +1,40 @@
|
|||
<template>
|
||||
<!-- 登录页面 -->
|
||||
<view class="login" v-if="origin.indexOf('ticket') == -1">
|
||||
<uni-forms :modelValue="loginForm" label-position="top" class="login-form">
|
||||
<h1>用户登录</h1>
|
||||
<uni-forms-item required label="用户名">
|
||||
<uni-easyinput v-model="loginForm.username" placeholder="请输入用户名" />
|
||||
</uni-forms-item>
|
||||
<uni-forms-item required label="密码">
|
||||
<uni-easyinput
|
||||
type="password"
|
||||
placeholder="请输入密码"
|
||||
v-model="loginForm.password"
|
||||
/>
|
||||
</uni-forms-item>
|
||||
<!-- 登录页面 -->
|
||||
|
||||
<view class="login-btn" @tap="onHandleLogin">登录</view>
|
||||
</uni-forms>
|
||||
</view>
|
||||
<!-- 如果是h5时,则显示登录页面 -->
|
||||
|
||||
/*#ifdef H5 */
|
||||
<view class="login" v-if="origin.indexOf('ticket') == -1">
|
||||
<uni-forms :modelValue="loginForm" label-position="top" class="login-form">
|
||||
<h1>用户登录</h1>
|
||||
<uni-forms-item required label="用户名">
|
||||
<uni-easyinput v-model="loginForm.username" placeholder="请输入用户名" />
|
||||
</uni-forms-item>
|
||||
<uni-forms-item required label="密码">
|
||||
<uni-easyinput type="password" placeholder="请输入密码" v-model="loginForm.password" />
|
||||
</uni-forms-item>
|
||||
|
||||
<view class="login-btn" @tap="onHandleLogin">登录</view>
|
||||
</uni-forms>
|
||||
</view>
|
||||
/* #endif */
|
||||
|
||||
<!-- 如果是app时,则显示登录页面 -->
|
||||
/* #ifdef APP-PLUS */
|
||||
<view class="login">
|
||||
<uni-forms :modelValue="loginForm" label-position="top" class="login-form">
|
||||
<h1>用户登录</h1>
|
||||
<uni-forms-item required label="用户名">
|
||||
<uni-easyinput v-model="loginForm.username" placeholder="请输入用户名" />
|
||||
</uni-forms-item>
|
||||
<uni-forms-item required label="密码">
|
||||
<uni-easyinput type="password" placeholder="请输入密码" v-model="loginForm.password" />
|
||||
</uni-forms-item>
|
||||
|
||||
<view class="login-btn" @tap="onHandleLogin">登录</view>
|
||||
</uni-forms>
|
||||
</view>
|
||||
/* #endif */
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
|
@ -24,110 +42,118 @@ import { onMounted, reactive, ref } from 'vue'
|
|||
import { appLoginAPI, getUserInfoAPI, iwsLoginAPI } from '@/services/index.js'
|
||||
import { useMemberStore } from '@/stores'
|
||||
const memberStore = useMemberStore()
|
||||
|
||||
// 如果h5时才获取origin
|
||||
/* #ifdef H5 */
|
||||
const origin = window.location.href
|
||||
/* #endif */
|
||||
|
||||
// 登录参数
|
||||
const loginForm = reactive({
|
||||
username: uni.getStorageSync('username'),
|
||||
password: uni.getStorageSync('password'),
|
||||
loginType: 'USERNAME_PASSWORD',
|
||||
code: '',
|
||||
phoneUuid: '',
|
||||
uuid: '',
|
||||
verificationCode: '',
|
||||
username: uni.getStorageSync('username'),
|
||||
password: uni.getStorageSync('password'),
|
||||
loginType: 'USERNAME_PASSWORD',
|
||||
code: '',
|
||||
phoneUuid: '',
|
||||
uuid: '',
|
||||
verificationCode: '',
|
||||
})
|
||||
|
||||
onMounted(async () => {
|
||||
console.log('🚀 ~ onMounted ~ origin:', origin)
|
||||
// uni.showToast({
|
||||
// title: origin,
|
||||
// icon: 'none',
|
||||
// duration: 5000,
|
||||
// })
|
||||
if (origin.indexOf('ticket') != -1) {
|
||||
try {
|
||||
uni.showLoading({ title: '登录中' })
|
||||
// uni.showToast({
|
||||
// title: origin,
|
||||
// icon: 'none',
|
||||
// duration: 5000,
|
||||
// })
|
||||
|
||||
const { data: result } = await iwsLoginAPI({
|
||||
ticket: origin.split('ticket=')[1].split('#/')[0],
|
||||
sysType: 1,
|
||||
})
|
||||
// 如果是h5时,则获取origin
|
||||
/* #ifdef H5 */
|
||||
console.log('🚀 ~ onMounted ~ origin:', origin)
|
||||
if (origin.indexOf('ticket') != -1) {
|
||||
try {
|
||||
uni.showLoading({ title: '登录中' })
|
||||
|
||||
// 1. 获取 token 并存储
|
||||
memberStore.setToken(result.access_token)
|
||||
// 2 . 获取用户信息并存储
|
||||
const res = await getUserInfoAPI()
|
||||
memberStore.setUserInfo(res.user)
|
||||
uni.showToast({ title: '登录成功!', icon: 'none' })
|
||||
uni.setStorageSync('username', loginForm.username)
|
||||
uni.setStorageSync('password', loginForm.password)
|
||||
uni.setStorageSync('id', res.user.userId)
|
||||
setTimeout(() => {
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index',
|
||||
})
|
||||
}, 500)
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
uni.hideLoading()
|
||||
showToast('登录失败')
|
||||
}
|
||||
const { data: result } = await iwsLoginAPI({
|
||||
ticket: origin.split('ticket=')[1].split('#/')[0],
|
||||
sysType: 1,
|
||||
})
|
||||
|
||||
// 1. 获取 token 并存储
|
||||
memberStore.setToken(result.access_token)
|
||||
// 2 . 获取用户信息并存储
|
||||
const res = await getUserInfoAPI()
|
||||
memberStore.setUserInfo(res.user)
|
||||
uni.showToast({ title: '登录成功!', icon: 'none' })
|
||||
uni.setStorageSync('username', loginForm.username)
|
||||
uni.setStorageSync('password', loginForm.password)
|
||||
uni.setStorageSync('id', res.user.userId)
|
||||
setTimeout(() => {
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index',
|
||||
})
|
||||
}, 500)
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
uni.hideLoading()
|
||||
showToast('登录失败')
|
||||
}
|
||||
}
|
||||
/* #endif */
|
||||
})
|
||||
|
||||
// 登录按钮
|
||||
const onHandleLogin = async () => {
|
||||
const res = await appLoginAPI(loginForm)
|
||||
if (res.code === 200) {
|
||||
// 1. 获取 token 并存储
|
||||
memberStore.setToken(res.data.access_token)
|
||||
// 2 . 获取用户信息并存储
|
||||
const result = await getUserInfoAPI()
|
||||
memberStore.setUserInfo(result.user)
|
||||
uni.showToast({ title: '登录成功!', icon: 'none' })
|
||||
uni.setStorageSync('username', loginForm.username)
|
||||
uni.setStorageSync('password', loginForm.password)
|
||||
uni.setStorageSync('id', result.user.userId)
|
||||
setTimeout(() => {
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index',
|
||||
})
|
||||
}, 500)
|
||||
}
|
||||
const res = await appLoginAPI(loginForm)
|
||||
if (res.code === 200) {
|
||||
// 1. 获取 token 并存储
|
||||
memberStore.setToken(res.data.access_token)
|
||||
// 2 . 获取用户信息并存储
|
||||
const result = await getUserInfoAPI()
|
||||
memberStore.setUserInfo(result.user)
|
||||
uni.showToast({ title: '登录成功!', icon: 'none' })
|
||||
uni.setStorageSync('username', loginForm.username)
|
||||
uni.setStorageSync('password', loginForm.password)
|
||||
uni.setStorageSync('id', result.user.userId)
|
||||
setTimeout(() => {
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index',
|
||||
})
|
||||
}, 500)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.login {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: #dcf4ff;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: #dcf4ff;
|
||||
|
||||
.login-form {
|
||||
width: 90%;
|
||||
padding: 15rpx;
|
||||
border: 1px solid #eee;
|
||||
background-color: #fff;
|
||||
border-radius: 16rpx;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
||||
.login-form {
|
||||
width: 90%;
|
||||
padding: 15rpx;
|
||||
border: 1px solid #eee;
|
||||
background-color: #fff;
|
||||
border-radius: 16rpx;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
padding: 30rpx 0;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.login-btn {
|
||||
padding: 18rpx 0;
|
||||
text-align: center;
|
||||
background-color: #1989fa;
|
||||
color: #fff;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
padding: 30rpx 0;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.login-btn {
|
||||
padding: 18rpx 0;
|
||||
text-align: center;
|
||||
background-color: #1989fa;
|
||||
color: #fff;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -1,371 +1,368 @@
|
|||
import { http } from '@/utils/http'
|
||||
|
||||
// 退料任务列表接口
|
||||
export const getBackList = (data) => {
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/back_apply_info/list',
|
||||
data:data,
|
||||
})
|
||||
// 退料任务列表接口
|
||||
export const getBackList = (data) => {
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/back_apply_info/list',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 退料任务详情接口
|
||||
export const getBackInfo = (id,keyWord) => {
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: `/material/back_apply_info/${id}?keyWord=${keyWord}`,
|
||||
})
|
||||
export const getBackInfo = (id, keyWord) => {
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: `/material/back_apply_info/${id}?keyWord=${keyWord}`,
|
||||
})
|
||||
}
|
||||
|
||||
// 退料修改
|
||||
export const editBack = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/back_apply_info//edit',
|
||||
data:data,
|
||||
})
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/back_apply_info//edit',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 详情删除
|
||||
export const deleteDetailsById = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/back_apply_info/deleteDetailsById',
|
||||
data:data,
|
||||
})
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/back_apply_info/deleteDetailsById',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 单位下拉选
|
||||
export const getUnitList = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/select/getUnitList',
|
||||
data:data,
|
||||
})
|
||||
export const getUnitList = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/select/getUnitList',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
// 工程下拉选
|
||||
export const getProjectList = (data = {}) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/select/getProjectList',
|
||||
data:data,
|
||||
})
|
||||
// 工程下拉选
|
||||
export const getProjectList = (data = {}) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/select/getProjectList',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
// 获取协议id
|
||||
export const getAgreementInfoById = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/select/getAgreementInfoById',
|
||||
data:data,
|
||||
})
|
||||
// 获取协议id
|
||||
export const getAgreementInfoById = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/select/getAgreementInfoById',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 新增退料单-无设备
|
||||
export const insertApp = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/back_apply_info/insertApp',
|
||||
data:data,
|
||||
})
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/back_apply_info/insertApp',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
// 新增退料单-有设备
|
||||
export const insertBack = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/back_apply_info',
|
||||
data:data,
|
||||
})
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/back_apply_info',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 数量退料设备下拉选
|
||||
export const getUseType = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/select/getUseType',
|
||||
data:data,
|
||||
})
|
||||
// 数量退料设备下拉选
|
||||
export const getUseType = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/select/getUseType',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
// 数量删除
|
||||
export const deleteNumType = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/back_apply_info/delete',
|
||||
data:data,
|
||||
})
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/back_apply_info/delete',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
// 编码检索获取设备详情
|
||||
export const getMachine = (data) => {
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/back_apply_info/getMachine',
|
||||
data:data,
|
||||
})
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/back_apply_info/getMachine',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
export function getMachineApi(data) {
|
||||
return http({
|
||||
url: '/material/back_apply_info/getMachine',
|
||||
method: 'GET',
|
||||
params: data
|
||||
params: data,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 获取已退料编码列表-查看
|
||||
export const getMaCodeList = (data) => {
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/back_apply_info/getMaCodeList',
|
||||
data:data,
|
||||
})
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/back_apply_info/getMaCodeList',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 编码删除
|
||||
export const deleteMaCode = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/back_apply_info/delete',
|
||||
data:data,
|
||||
})
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/back_apply_info/delete',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 编码类型查看页面保存
|
||||
export const saveCode = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/back_apply_info/updateMaCode',
|
||||
data:data,
|
||||
})
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/back_apply_info/updateMaCode',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
// 提交
|
||||
export const submitBackApply = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/back_apply_info/submitBackApply',
|
||||
data:data,
|
||||
})
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/back_apply_info/submitBackApply',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
//删除
|
||||
export const backApplyRemove = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/back_apply_info/deleteById',
|
||||
data:data,
|
||||
})
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/back_apply_info/deleteById',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 二维码扫码获取编码信息
|
||||
export const getMachineByQrCodeApi = (data) => {
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/back_apply_info/getMachine',
|
||||
data:data,
|
||||
})
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/back_apply_info/getMachine',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 获取退料明细(退料人退料时间)
|
||||
export const getDetailsByIdApi = (data) => {
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/back_apply_info/getDetailsById',
|
||||
data:data,
|
||||
})
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/back_apply_info/getDetailsById',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 标准配置下拉选
|
||||
export const getConfigList = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/select/getConfigList',
|
||||
data:data,
|
||||
})
|
||||
// 标准配置下拉选
|
||||
export const getConfigList = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/select/getConfigList',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 数量退料设备下拉选
|
||||
export const getLevelThreeType = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/select/getMaType',
|
||||
data:data,
|
||||
})
|
||||
// 数量退料设备下拉选
|
||||
export const getLevelThreeType = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/select/getMaType',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 标准配置下拉选选择事件
|
||||
export const getListsByConfigId = (data) => {
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/standardConfig/getListsByConfigId',
|
||||
data:data,
|
||||
})
|
||||
// 标准配置下拉选选择事件
|
||||
export const getListsByConfigId = (data) => {
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/standardConfig/getListsByConfigId',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 四级下拉选选择事件
|
||||
export const getTypeDataList = (data) => {
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/leaseTask/getTypeDataList',
|
||||
data:data,
|
||||
})
|
||||
// 四级下拉选选择事件
|
||||
export const getTypeDataList = (data) => {
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/leaseTask/getTypeDataList',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 提交
|
||||
// 提交
|
||||
export const addLeaseTask = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/lease_apply_info',
|
||||
data:data,
|
||||
})
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/lease_apply_info',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
// 编辑
|
||||
export const editLeaseTask = (data) => {
|
||||
return http({
|
||||
method: 'put',
|
||||
url: '/material/lease_apply_info',
|
||||
data:data,
|
||||
})
|
||||
return http({
|
||||
method: 'put',
|
||||
url: '/material/lease_apply_info',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
// 详情
|
||||
export const detailsLeaseTask = (data) => {
|
||||
return http({
|
||||
method: 'get',
|
||||
url: `/material/lease_apply_info/${data}`,
|
||||
// data:data,
|
||||
})
|
||||
return http({
|
||||
method: 'get',
|
||||
url: `/material/lease_apply_info/${data}`,
|
||||
// data:data,
|
||||
})
|
||||
}
|
||||
|
||||
// 直转申请下拉选
|
||||
export const getParentType = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/directRotation/getTypeNameList',
|
||||
data:data,
|
||||
})
|
||||
// 直转申请下拉选
|
||||
export const getParentType = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/directRotation/getTypeNameList',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 直转申请提交
|
||||
export const directSubmit = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/directRotation/submit',
|
||||
data:data,
|
||||
})
|
||||
// 直转申请提交
|
||||
export const directSubmit = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/directRotation/submit',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 直转申请提交-编辑
|
||||
export const directEdit = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/directRotation/edit',
|
||||
data,
|
||||
})
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/directRotation/edit',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
// 费用减免物资类型下拉选择事件
|
||||
export const getThreeType = (data) => {
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/slt_agreement_reduce/selectByMaType',
|
||||
data:data,
|
||||
})
|
||||
// 费用减免物资类型下拉选择事件
|
||||
export const getThreeType = (data) => {
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/slt_agreement_reduce/selectByMaType',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 费用减免规格型号下拉选择事件
|
||||
export const getFourType = (data) => {
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/slt_agreement_reduce/selectByMaModel',
|
||||
data:data,
|
||||
})
|
||||
// 费用减免规格型号下拉选择事件
|
||||
export const getFourType = (data) => {
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/slt_agreement_reduce/selectByMaModel',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 费用减免数据列表
|
||||
export const getDirefList = (data) => {
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/slt_agreement_reduce/applyByParam',
|
||||
data:data,
|
||||
})
|
||||
// 费用减免数据列表
|
||||
export const getDirefList = (data) => {
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/slt_agreement_reduce/applyByParam',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 减免费用申请提交
|
||||
export const discountSubmit = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/slt_agreement_reduce/addApply',
|
||||
data:data,
|
||||
})
|
||||
// 减免费用申请提交
|
||||
export const discountSubmit = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/slt_agreement_reduce/addApply',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 班组-下拉
|
||||
export const getBmTeamList = (data) => {
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/bmTeam/list',
|
||||
data,
|
||||
})
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/bmTeam/list',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
// 类型规格-树
|
||||
export const getTypeTreeList = (data) => {
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/ma_type/equipmentType',
|
||||
data,
|
||||
})
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/ma_type/equipmentType',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
// 类型规格-树
|
||||
export const getUseTypeTree = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/select/getUseTypeTree',
|
||||
data:data,
|
||||
})
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/select/getUseTypeTree',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 退料申请
|
||||
export const backTask = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/back_apply_info',
|
||||
data:data,
|
||||
})
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/back_apply_info',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 退料提交
|
||||
export const backSubmit = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/back_apply_info/submitBackApply',
|
||||
data:data,
|
||||
})
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/back_apply_info/submitBackApply',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
export const deleteBackApi = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: `/material/back_apply_info/deleteById`,
|
||||
data:data,
|
||||
})
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: `/material/back_apply_info/deleteById`,
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 工机具出库详情-列表
|
||||
export const getOutNum = (data) => {
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/lease_apply_info/getOutNum',
|
||||
data,
|
||||
})
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/lease_apply_info/getOutNum',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
// 工具出库-编码/数量
|
||||
export const leaseOutApi = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/lease_apply_info/leaseOut',
|
||||
data,
|
||||
})
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/lease_apply_info/leaseOut',
|
||||
data,
|
||||
})
|
||||
}
|
||||
Loading…
Reference in New Issue