Compare commits

...
This repository has been archived on 2025-02-05. You can view files and clone it, but cannot push or open issues or pull requests.

3 Commits

2 changed files with 23 additions and 17 deletions

View File

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询参数列表 // 查询参数列表
export function listConfig(query) { export function listConfig(query) {
return request({ return request({
url: '/system/config/list', url: '/material/config/list',
method: 'get', method: 'get',
params: query params: query
}) })
@ -12,7 +12,7 @@ export function listConfig(query) {
// 查询参数详细 // 查询参数详细
export function getConfig(configId) { export function getConfig(configId) {
return request({ return request({
url: '/system/config/' + configId, url: '/material/config/' + configId,
method: 'get' method: 'get'
}) })
} }
@ -20,7 +20,7 @@ export function getConfig(configId) {
// 根据参数键名查询参数值 // 根据参数键名查询参数值
export function getConfigKey(configKey) { export function getConfigKey(configKey) {
return request({ return request({
url: '/system/config/configKey/' + configKey, url: '/material/config/configKey/' + configKey,
method: 'get' method: 'get'
}) })
} }
@ -28,7 +28,7 @@ export function getConfigKey(configKey) {
// 新增参数配置 // 新增参数配置
export function addConfig(data) { export function addConfig(data) {
return request({ return request({
url: '/system/config', url: '/material/config',
method: 'post', method: 'post',
data: data data: data
}) })
@ -37,7 +37,7 @@ export function addConfig(data) {
// 修改参数配置 // 修改参数配置
export function updateConfig(data) { export function updateConfig(data) {
return request({ return request({
url: '/system/config', url: '/material/config',
method: 'put', method: 'put',
data: data data: data
}) })
@ -46,7 +46,7 @@ export function updateConfig(data) {
// 删除参数配置 // 删除参数配置
export function delConfig(configId) { export function delConfig(configId) {
return request({ return request({
url: '/system/config/' + configId, url: '/material/config/' + configId,
method: 'delete' method: 'delete'
}) })
} }
@ -54,7 +54,7 @@ export function delConfig(configId) {
// 刷新参数缓存 // 刷新参数缓存
export function refreshCache() { export function refreshCache() {
return request({ return request({
url: '/system/config/refreshCache', url: '/material/config/refreshCache',
method: 'delete' method: 'delete'
}) })
} }

View File

@ -151,6 +151,12 @@
prop="typeCode" prop="typeCode"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
/> />
<el-table-column
label="退料人员"
align="center"
prop="backPerson"
show-overflow-tooltip
/>
<el-table-column <el-table-column
label="申请数量" label="申请数量"
align="center" align="center"
@ -164,7 +170,7 @@
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
/> />
<el-table-column <el-table-column
label="退料数量" label="最大退料数量"
align="center" align="center"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
> >
@ -174,7 +180,7 @@
(scope.row.partNum = (scope.row.partNum =
scope.row.manageType == 0 || scope.row.manageType == 0 ||
scope.row.manageType == 1 scope.row.manageType == 1
? scope.row.num ? scope.row.maxBackNum
: scope.row.partNum) : scope.row.partNum)
}} }}
</span> </span>
@ -210,7 +216,7 @@
v-if=" v-if="
!isView && !isView &&
scope.row.manageType == '0' && scope.row.manageType == '0' &&
scope.row.num > 0 && scope.row.maxBackNum > 0 &&
(userId == scope.row.userId || userId == 1) (userId == scope.row.userId || userId == 1)
" "
> >
@ -224,7 +230,7 @@
!isView && !isView &&
(scope.row.manageType == '1' || (scope.row.manageType == '1' ||
scope.row.manageType == '2') && scope.row.manageType == '2') &&
scope.row.num > 0 && scope.row.maxBackNum > 0 &&
(userId == scope.row.userId || userId == 1) (userId == scope.row.userId || userId == 1)
" "
> >
@ -236,7 +242,7 @@
@click="handleBackup(scope.row)" @click="handleBackup(scope.row)"
v-if=" v-if="
!isView && !isView &&
scope.row.num < scope.row.preNum - scope.row.finishedBackNum && scope.row.inCompletedBackNum > 0 &&
(userId == scope.row.userId || userId == 1) (userId == scope.row.userId || userId == 1)
" "
> >
@ -542,7 +548,7 @@
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
/> />
<el-table-column <el-table-column
label="退料数量" label="最大退料数量"
align="center" align="center"
prop="backNum" prop="backNum"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
@ -870,7 +876,7 @@ export default {
this.codeQuery.parentId = row.id this.codeQuery.parentId = row.id
this.codeQuery.typeId = row.modelId this.codeQuery.typeId = row.modelId
this.dialogIsView = true this.dialogIsView = true
this.returnNum = Number(row.num) this.returnNum = Number(row.maxBackNum)
this.handleCodeQuery() this.handleCodeQuery()
} else if (row.manageType == '2') { } else if (row.manageType == '2') {
this.handleNumReturn(row) this.handleNumReturn(row)
@ -920,7 +926,7 @@ export default {
this.codeQuery.typeId = row.modelId this.codeQuery.typeId = row.modelId
this.codeQuery.agreementId = row.agreementId this.codeQuery.agreementId = row.agreementId
this.dialogIsView = false this.dialogIsView = false
this.returnNum = Number(row.num) this.returnNum = Number(row.maxBackNum)
this.handleCodeQuery() this.handleCodeQuery()
}, },
//退 //退
@ -928,8 +934,8 @@ export default {
this.title = '数量退料' this.title = '数量退料'
this.openNum = true this.openNum = true
this.dialogIsView = false this.dialogIsView = false
this.$set(row, 'backNum', row.num) //退 this.$set(row, 'backNum', row.maxBackNum) //退
this.returnNum = Number(row.num) this.returnNum = Number(row.maxBackNum)
this.dialogData.typeMange = row.manageType this.dialogData.typeMange = row.manageType
this.dialogData.typeName = row.typeName this.dialogData.typeName = row.typeName
this.dialogData.typeCode = row.typeCode this.dialogData.typeCode = row.typeCode