diff --git a/sgzb-ui/src/api/claimAndRefund/receive.js b/sgzb-ui/src/api/claimAndRefund/receive.js
index 4d0a9506..2aac9684 100644
--- a/sgzb-ui/src/api/claimAndRefund/receive.js
+++ b/sgzb-ui/src/api/claimAndRefund/receive.js
@@ -148,6 +148,14 @@ export function auditLeaseByCompany(params = {} ){
data:params
})
}
+// 领料审核 拒绝
+export function rejectLeaseByCompany(params = {}){
+ return request({
+ url: '/base/tm_task/rejectLeaseByCompany',
+ method: 'post',
+ data: params
+ })
+}
// 获取 物品类型
export function getUseTypeTreee(params = {}){
diff --git a/sgzb-ui/src/api/login.js b/sgzb-ui/src/api/login.js
index a623f368..f0a80bce 100644
--- a/sgzb-ui/src/api/login.js
+++ b/sgzb-ui/src/api/login.js
@@ -61,3 +61,26 @@ export function getCodeImg() {
timeout: 20000
})
}
+
+// 短信验证码
+export function sendCode(data) {
+ return request({
+ url: '/auth/sendCode',
+ headers: {
+ isToken: false
+ },
+ method: 'post',
+ data: data
+ })
+}
+// 短信验证码--登录
+export function checkCode(data) {
+ return request({
+ url: '/auth/checkCode',
+ headers: {
+ isToken: false
+ },
+ method: 'post',
+ data: data
+ })
+}
\ No newline at end of file
diff --git a/sgzb-ui/src/permission.js b/sgzb-ui/src/permission.js
index e1a14da7..d4e1126b 100644
--- a/sgzb-ui/src/permission.js
+++ b/sgzb-ui/src/permission.js
@@ -8,7 +8,7 @@ import { isRelogin } from '@/utils/request'
NProgress.configure({ showSpinner: false })
-const whiteList = ['/login', '/register']
+const whiteList = ['/login', '/register','/auth/sendCode']
router.beforeEach((to, from, next) => {
NProgress.start()
diff --git a/sgzb-ui/src/store/modules/user.js b/sgzb-ui/src/store/modules/user.js
index 766d9c99..937df7f5 100644
--- a/sgzb-ui/src/store/modules/user.js
+++ b/sgzb-ui/src/store/modules/user.js
@@ -1,4 +1,4 @@
-import { login, logout, getInfo, refreshToken } from '@/api/login'
+import { login, logout, getInfo, refreshToken,checkCode } from '@/api/login'
import { getToken, setToken, setExpiresIn, removeToken } from '@/utils/auth'
const user = {
@@ -55,6 +55,29 @@ const user = {
})
})
},
+ // 验证码 登录
+ textLogin({ commit }, userInfo) {
+ console.log(userInfo)
+ let params = {
+ phone:userInfo.phone,
+ code:userInfo.textCode
+ }
+ return new Promise((resolve, reject) => {
+ checkCode(params).then(res => {
+ console.log(res)
+ if(res.code==200){
+ let data = res.data
+ setToken(data.access_token)
+ commit('SET_TOKEN', data.access_token)
+ setExpiresIn(data.expires_in)
+ commit('SET_EXPIRES_IN', data.expires_in)
+ resolve()
+ }
+ }).catch(error => {
+ reject(error)
+ })
+ })
+ },
// 获取用户信息
GetInfo({ commit, state }) {
diff --git a/sgzb-ui/src/views/base/assetAttributeAllocation/index.vue b/sgzb-ui/src/views/base/assetAttributeAllocation/index.vue
index c6dbf8f7..f6305330 100644
--- a/sgzb-ui/src/views/base/assetAttributeAllocation/index.vue
+++ b/sgzb-ui/src/views/base/assetAttributeAllocation/index.vue
@@ -80,7 +80,7 @@
size="mini"
@click="handleImport"
>导入
-
+ -->
导出
- -->
+
@@ -373,9 +373,9 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
- this.download('system/user/export', {
- ...this.queryParams
- }, `user_${new Date().getTime()}.xlsx`)
+ // this.download('system/user/export', {
+ // ...this.queryParams
+ // }, `user_${new Date().getTime()}.xlsx`)
},
/** 导入按钮操作 */
handleImport() {
diff --git a/sgzb-ui/src/views/base/assetAttributeManagement/index.vue b/sgzb-ui/src/views/base/assetAttributeManagement/index.vue
index a0bb2509..0604c0b7 100644
--- a/sgzb-ui/src/views/base/assetAttributeManagement/index.vue
+++ b/sgzb-ui/src/views/base/assetAttributeManagement/index.vue
@@ -27,7 +27,7 @@
@click="handleAdd"
>新增
-
+
+
新建
-
+
@@ -315,9 +315,9 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
- this.download('system/dict/type/export', {
- ...this.queryParams
- }, `type_${new Date().getTime()}.xlsx`)
+ // this.download('system/dict/type/export', {
+ // ...this.queryParams
+ // }, `type_${new Date().getTime()}.xlsx`)
},
/** 刷新缓存按钮操作 */
handleRefreshCache() {
diff --git a/sgzb-ui/src/views/base/section/index.vue b/sgzb-ui/src/views/base/section/index.vue
index 15155e83..8dbbb9ad 100644
--- a/sgzb-ui/src/views/base/section/index.vue
+++ b/sgzb-ui/src/views/base/section/index.vue
@@ -43,7 +43,7 @@
>新增
-
+
-
+
新建
-
+
@@ -248,9 +248,9 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
- this.download('system/dict/type/export', {
- ...this.queryParams
- }, `type_${new Date().getTime()}.xlsx`)
+ // this.download('system/dict/type/export', {
+ // ...this.queryParams
+ // }, `type_${new Date().getTime()}.xlsx`)
},
}
};
diff --git a/sgzb-ui/src/views/claimAndRefund/receive/agreement.vue b/sgzb-ui/src/views/claimAndRefund/receive/agreement.vue
index aaf11c7a..daf00e9e 100644
--- a/sgzb-ui/src/views/claimAndRefund/receive/agreement.vue
+++ b/sgzb-ui/src/views/claimAndRefund/receive/agreement.vue
@@ -86,7 +86,6 @@
icon="el-icon-download"
size="mini"
@click="handleExport"
- v-hasPermi="['store:labelType:export']"
>导出
@@ -262,8 +261,7 @@ export default {
pageNum: 1,
pageSize: 10,
keyWord: undefined,
- dictType: undefined,
- status: undefined
+
},
// 表单参数
form: {},
@@ -480,9 +478,9 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
- this.download('system/dict/type/export', {
+ this.download('material/agreementInfo/export', {
...this.queryParams
- }, `type_${new Date().getTime()}.xlsx`)
+ }, `协议_${new Date().getTime()}.xlsx`)
},
}
};
diff --git a/sgzb-ui/src/views/claimAndRefund/receive/receiveApply.vue b/sgzb-ui/src/views/claimAndRefund/receive/receiveApply.vue
index dc2d0305..262b392f 100644
--- a/sgzb-ui/src/views/claimAndRefund/receive/receiveApply.vue
+++ b/sgzb-ui/src/views/claimAndRefund/receive/receiveApply.vue
@@ -67,7 +67,6 @@
icon="el-icon-download"
size="mini"
@click="handleExport"
- v-hasPermi="['store:labelType:export']"
>导出
@@ -103,12 +102,27 @@
size="mini"
type="text"
icon="el-icon-edit"
+ @click="handleView(scope.row)"
+ >查看
+ 编辑
+ 驳回提交
删除
@@ -319,6 +333,12 @@ export default {
/** 新增按钮操作 */
handleAdd() {
this.$router.push("/claimAndRefund/receive/receiveApplyAdd");
+ this.$router.push({
+ path:'/claimAndRefund/receive/receiveApplyAdd',
+ query:{
+ isEdit:true
+ }
+ })
// this.reset();
// this.open = true;
// this.title = "添加字典类型";
@@ -329,12 +349,22 @@ export default {
this.single = selection.length!=1
this.multiple = !selection.length
},
+ handleView(row) {
+ this.$router.push({
+ path:'/claimAndRefund/receive/receiveApplyAdd',
+ query:{
+ taskId:row.taskId,
+ isEdit:false
+ }
+ })
+ },
/** 修改按钮操作 */
handleUpdate(row) {
this.$router.push({
path:'/claimAndRefund/receive/receiveApplyAdd',
query:{
- taskId:row.taskId
+ taskId:row.taskId,
+ isEdit:true
}
})
},
@@ -381,9 +411,9 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
- this.download('system/dict/type/export', {
- ...this.queryParams
- }, `type_${new Date().getTime()}.xlsx`)
+ // this.download('system/dict/type/export', {
+ // ...this.queryParams
+ // }, `type_${new Date().getTime()}.xlsx`)
},
/** 刷新缓存按钮操作 */
handleRefreshCache() {
diff --git a/sgzb-ui/src/views/claimAndRefund/receive/receiveApplyAdd.vue b/sgzb-ui/src/views/claimAndRefund/receive/receiveApplyAdd.vue
index e9b214e2..a0740886 100644
--- a/sgzb-ui/src/views/claimAndRefund/receive/receiveApplyAdd.vue
+++ b/sgzb-ui/src/views/claimAndRefund/receive/receiveApplyAdd.vue
@@ -76,6 +76,8 @@
plain
icon="el-icon-plus"
size="mini"
+ v-if="isEdit=='true'"
+ :disabled="multiple"
@click="handleAdd"
>保存
@@ -103,11 +105,11 @@
-
-
-
-
-
+
+
+
+
+
-
+
-
-
+
+
@@ -198,6 +200,7 @@ export default {
menuNodeAll: false,
deptExpand: true,
deptNodeAll: false,
+ isEdit:'true',
// 日期范围
dateRange: [],
// 数据范围选项
@@ -326,6 +329,9 @@ export default {
this.GetTaskDetail(this.$route.query.taskId)
this.taskId = this.$route.query.taskId
}
+ this.isEdit = this.$route.query.isEdit;
+ // console.log(typeof(this.isEdit))
+ // this.$set('isEdit',this.$route.query.isEdit)
},
methods: {
@@ -520,6 +526,8 @@ export default {
// 多选框选中数据
handleSelectionChange(selection) {
this.queryParams.leaseApplyDetails = selection
+ this.single = selection.length != 1
+ this.multiple = !selection.length
},
// 更多操作触发
handleCommand(command, row) {
@@ -634,9 +642,9 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
- this.download('system/role/export', {
- ...this.queryParams
- }, `role_${new Date().getTime()}.xlsx`)
+ // this.download('system/role/export', {
+ // ...this.queryParams
+ // }, `role_${new Date().getTime()}.xlsx`)
},
diff --git a/sgzb-ui/src/views/claimAndRefund/receive/receiveExamine.vue b/sgzb-ui/src/views/claimAndRefund/receive/receiveExamine.vue
index 3ff46583..baa60079 100644
--- a/sgzb-ui/src/views/claimAndRefund/receive/receiveExamine.vue
+++ b/sgzb-ui/src/views/claimAndRefund/receive/receiveExamine.vue
@@ -105,12 +105,12 @@
-
+
\ No newline at end of file
diff --git a/sgzb-ui/src/views/store/shelves/shelvesConfig.vue b/sgzb-ui/src/views/store/shelves/shelvesConfig.vue
index a9c85bd8..fe70080b 100644
--- a/sgzb-ui/src/views/store/shelves/shelvesConfig.vue
+++ b/sgzb-ui/src/views/store/shelves/shelvesConfig.vue
@@ -43,6 +43,13 @@
查询
重置
+ 导出
@@ -89,16 +96,16 @@
-
-
-
-
-
-
-
-
-
-
+
@@ -528,9 +535,9 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
- this.download('system/user/export', {
- ...this.queryParams
- }, `user_${new Date().getTime()}.xlsx`)
+ // this.download('system/user/export', {
+ // ...this.queryParams
+ // }, `user_${new Date().getTime()}.xlsx`)
},
/** 导入按钮操作 */
handleImport() {
diff --git a/sgzb-ui/src/views/store/tools/devices.vue b/sgzb-ui/src/views/store/tools/devices.vue
index a01834eb..836e3461 100644
--- a/sgzb-ui/src/views/store/tools/devices.vue
+++ b/sgzb-ui/src/views/store/tools/devices.vue
@@ -83,6 +83,13 @@
搜索
重置
+ 导出
@@ -582,9 +589,9 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
- this.download('system/dict/type/export', {
- ...this.queryParams
- }, `type_${new Date().getTime()}.xlsx`)
+ // this.download('system/dict/type/export', {
+ // ...this.queryParams
+ // }, `type_${new Date().getTime()}.xlsx`)
},
}
diff --git a/sgzb-ui/src/views/store/tools/keeper.vue b/sgzb-ui/src/views/store/tools/keeper.vue
index 1fe0340f..a3803f23 100644
--- a/sgzb-ui/src/views/store/tools/keeper.vue
+++ b/sgzb-ui/src/views/store/tools/keeper.vue
@@ -93,7 +93,7 @@
@click="handleImport"
v-hasPermi="['system:user:import']"
>导入
-
+ -->
导出
- -->
+
@@ -580,9 +579,9 @@ export default {
/** 导出按钮操作 */
handleExport() {
- this.download('system/user/export', {
- ...this.queryParams
- }, `user_${new Date().getTime()}.xlsx`)
+ // this.download('system/user/export', {
+ // ...this.queryParams
+ // }, `user_${new Date().getTime()}.xlsx`)
},
/** 导入按钮操作 */
handleImport() {
diff --git a/sgzb-ui/src/views/store/tools/repair.vue b/sgzb-ui/src/views/store/tools/repair.vue
index 1ce0924b..d85cb720 100644
--- a/sgzb-ui/src/views/store/tools/repair.vue
+++ b/sgzb-ui/src/views/store/tools/repair.vue
@@ -104,6 +104,15 @@
v-hasPermi="['system:user:export']"
>导出
-->
+
+ 导出
+
@@ -580,9 +589,9 @@ export default {
/** 导出按钮操作 */
handleExport() {
- this.download('system/user/export', {
- ...this.queryParams
- }, `user_${new Date().getTime()}.xlsx`)
+ // this.download('system/user/export', {
+ // ...this.queryParams
+ // }, `user_${new Date().getTime()}.xlsx`)
},
/** 导入按钮操作 */
handleImport() {
diff --git a/sgzb-ui/src/views/store/tools/toolsSupplier.vue b/sgzb-ui/src/views/store/tools/toolsSupplier.vue
index 11919465..26407f21 100644
--- a/sgzb-ui/src/views/store/tools/toolsSupplier.vue
+++ b/sgzb-ui/src/views/store/tools/toolsSupplier.vue
@@ -50,16 +50,15 @@
-
+
@@ -373,9 +372,9 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
- this.download('system/dict/type/export', {
- ...this.queryParams
- }, `type_${new Date().getTime()}.xlsx`)
+ // this.download('system/dict/type/export', {
+ // ...this.queryParams
+ // }, `type_${new Date().getTime()}.xlsx`)
},
/** 刷新缓存按钮操作 */
handleRefreshCache() {
diff --git a/sgzb-ui/src/views/store/warehousing/accessoryWarehousing.vue b/sgzb-ui/src/views/store/warehousing/accessoryWarehousing.vue
index 7c7698af..48f9ac80 100644
--- a/sgzb-ui/src/views/store/warehousing/accessoryWarehousing.vue
+++ b/sgzb-ui/src/views/store/warehousing/accessoryWarehousing.vue
@@ -99,7 +99,6 @@
icon="el-icon-download"
size="mini"
@click="handleExport"
- v-hasPermi="['system:dict:export']"
>导出
@@ -462,9 +461,9 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
- this.download('system/dict/type/export', {
- ...this.queryParams
- }, `type_${new Date().getTime()}.xlsx`)
+ // this.download('system/dict/type/export', {
+ // ...this.queryParams
+ // }, `type_${new Date().getTime()}.xlsx`)
},
/** 刷新缓存按钮操作 */
handleRefreshCache() {
diff --git a/sgzb-ui/src/views/store/warehousing/devicesWarehousing.vue b/sgzb-ui/src/views/store/warehousing/devicesWarehousing.vue
index 1a5f1c0c..229555a6 100644
--- a/sgzb-ui/src/views/store/warehousing/devicesWarehousing.vue
+++ b/sgzb-ui/src/views/store/warehousing/devicesWarehousing.vue
@@ -92,16 +92,15 @@
-
+
@@ -467,9 +466,9 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
- this.download('system/dict/type/export', {
+ this.download('material/returnOfMaterialsInfo/export', {
...this.queryParams
- }, `type_${new Date().getTime()}.xlsx`)
+ }, `机具退料入库_${new Date().getTime()}.xlsx`)
},
/** 刷新缓存按钮操作 */
handleRefreshCache() {
diff --git a/sgzb-ui/src/views/store/warehousing/repairWarehousing.vue b/sgzb-ui/src/views/store/warehousing/repairWarehousing.vue
index 1ab69d36..672cf0d7 100644
--- a/sgzb-ui/src/views/store/warehousing/repairWarehousing.vue
+++ b/sgzb-ui/src/views/store/warehousing/repairWarehousing.vue
@@ -91,16 +91,15 @@
-
+
@@ -594,9 +593,9 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
- this.download('system/dict/type/export', {
+ this.download('material/RepairTestInput/export', {
...this.queryParams
- }, `type_${new Date().getTime()}.xlsx`)
+ }, `修试入库_${new Date().getTime()}.xlsx`)
},
/** 刷新缓存按钮操作 */
handleRefreshCache() {
diff --git a/sgzb-ui/vue.config.js b/sgzb-ui/vue.config.js
index a44425f8..90180f96 100644
--- a/sgzb-ui/vue.config.js
+++ b/sgzb-ui/vue.config.js
@@ -35,11 +35,12 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
- //192.168.0.14
- target: `http://112.29.103.165:21624`,//线上环境
+ // target: `http://112.29.103.165:21626`,//线上环境-重庆
+ target: `http://112.29.103.165:21624`,//线上环境-宁夏
// target: `http://192.168.0.14:21624`,//线上环境
// target: `http://192.168.5.12:8080`,//丁
- // target: `http://10.40.92.102:8080`,//丁/
+ // target: `http://10.40.92.21:8080`,
+
// target: `http://10.40.92.126:8080`,//高
// target: `http://10.40.92.104:8080`,//亮
// target: `http://192.168.0.166:8080`,//刘川