Merge remote-tracking branch 'origin/main'

main
Dayu 12 months ago
commit 666fa429c6
  1. 8
      src/api/leger/inventorydocument.js
  2. 2
      src/api/leger/toolinventoryrecord.js
  3. 3
      src/views/leger/equipmentledger.vue
  4. 49
      src/views/leger/equipmentledgerDetail.vue
  5. 6
      src/views/leger/toolinventoryrecord.vue
  6. 64
      src/views/leger/toolinventoryrecordDetail.vue

@ -48,22 +48,22 @@ export const document_update = (row) => {
}) })
} }
export const document_getListBylegerId = (toolsCodeId) => { export const document_getListBylegerId = (eqLedgerId) => {
return request({ return request({
url: '/api/inventorydocument/getList', url: '/api/inventorydocument/getList',
method: 'get', method: 'get',
params: { params: {
toolsCodeId: toolsCodeId eqLedgerId: eqLedgerId
} }
}) })
} }
export const document_tools_getListBylegerId = (eqLedgerId) => { export const document_tools_getListBylegerId = (toolsCodeId) => {
return request({ return request({
url: '/api/inventorydocument/getList', url: '/api/inventorydocument/getList',
method: 'get', method: 'get',
params: { params: {
eqLedgerId: eqLedgerId toolsCodeId: toolsCodeId
} }
}) })
} }

@ -42,7 +42,7 @@ export const add = (row) => {
export const update = (row) => { export const update = (row) => {
return request({ return request({
url: '/api/leger/toolinventoryrecord/submit', url: '/api/leger/toolinventoryrecord/update',
method: 'post', method: 'post',
data: row data: row
}) })

@ -558,7 +558,8 @@ import {getList, getDetail, add, update, remove, reject, auditing} from "@/api/l
path: "/leger/equipmentledgerDetail", path: "/leger/equipmentledgerDetail",
query: { query: {
frameMode:"search", frameMode:"search",
id: row.id id: row.id,
checkstatus: row.checkStatus
}, },
}); });
}, },

@ -1,5 +1,24 @@
<template> <template>
<basic-container> <basic-container>
<template >
<el-row :span="24">
<div class="check_status_class">
<span >
<el-col >
审核状态:
<el-select v-model="checkStatusValue">
<el-option
v-for="item in optionCheckStatus"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-col>
</span>
</div>
</el-row>
</template>
<avue-tabs :option="option" <avue-tabs :option="option"
@change="handleChange"></avue-tabs> @change="handleChange"></avue-tabs>
<span v-if="type.prop==='information'"> <span v-if="type.prop==='information'">
@ -40,7 +59,7 @@
:upload-after="uploadAfter" :upload-after="uploadAfter"
:upload-preview="(file) => handleUploadPreview(file)" :upload-preview="(file) => handleUploadPreview(file)"
:upload-delete="(file) => handleUploadDelete(file)"> :upload-delete="(file) => handleUploadDelete(file)">
<template #accessoryName="scope"> <template #accessoryNameExt="scope">
<el-link type="primary" :underline="false" @click="handleDownload(scope.row)">{{scope.row.prAccessoryName}}</el-link> <el-link type="primary" :underline="false" @click="handleDownload(scope.row)">{{scope.row.prAccessoryName}}</el-link>
</template> </template>
<template #menu="{row,index,size}"> <template #menu="{row,index,size}">
@ -92,14 +111,12 @@
parameters_update, parameters_update,
parameters_remove, parameters_remove,
parameters_getListBylegerId, parameters_getListBylegerId,
parameters_Del
} from "@/api/leger/techparameters"; } from "@/api/leger/techparameters";
import { import {
document_add, document_add,
document_update, document_update,
document_remove, document_remove,
document_getListBylegerId, document_getListBylegerId,
document_Del
} from "@/api/leger/inventorydocument"; } from "@/api/leger/inventorydocument";
import {mapGetters} from "vuex"; import {mapGetters} from "vuex";
import website from "@/config/website"; import website from "@/config/website";
@ -109,6 +126,17 @@
name: "equipmentledgerDetail", name: "equipmentledgerDetail",
data () { data () {
return { return {
checkStatusValue: this.$route.query.checkstatus,
optionCheckStatus: [{
value: 1,
label: '审核中'
}, {
value: 2,
label: '已审核'
}, {
value: 3,
label: '未通过'
}],
frame_class: '', frame_class: '',
type: {}, type: {},
shouldShowButton:{}, shouldShowButton:{},
@ -588,7 +616,7 @@
}, },
{ {
label: '附件', label: '附件',
prop: 'accessoryName', prop: 'accessoryNameExt',
dataType: 'object', dataType: 'object',
fileType: 'img',//img/video/audio fileType: 'img',//img/video/audio
type: 'upload', type: 'upload',
@ -628,6 +656,7 @@
this.shouldShowButton=true; this.shouldShowButton=true;
this.addUpdateShowButton=false; this.addUpdateShowButton=false;
this.frame_class = 'frame_class1'; this.frame_class = 'frame_class1';
this.checkStatusValue = this.$route.query.checkstatus;
}else{ }else{
this.readonlyForm=false; this.readonlyForm=false;
this.shouldShowButton=false; this.shouldShowButton=false;
@ -950,4 +979,16 @@
display: flex; display: flex;
justify-content: flex-end; /* 将子元素推到容器的末端 */ justify-content: flex-end; /* 将子元素推到容器的末端 */
} }
.check_status_class {
display: flex;
justify-content: flex-end; /* 将子元素推到容器的末端 */
}
.check_status_class input.el-input__inner {
border: none;
box-shadow: none;
outline: none;
pointer-events: none;
}
</style> </style>

@ -246,7 +246,8 @@
path: "/leger/toolinventoryrecordDetail", path: "/leger/toolinventoryrecordDetail",
query: { query: {
frameMode:"search", frameMode:"search",
id: row.id id: row.id,
checkstatus: row.checkStatus
}, },
}); });
}, },
@ -326,7 +327,8 @@
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}).then(() => { }).then(() => {
window.open(`/api/equipmentledger/export?daf-auth=${getToken()}`); var formStr = Object.keys(this.search).map(key => `${encodeURIComponent(key)}=${encodeURIComponent(this.search[key])}`).join('&');
window.open(`/api/leger/toolinventoryrecord/export?daf-auth=${getToken()}&${formStr}`);
}); });
}, },
beforeOpen(done, type) { beforeOpen(done, type) {

@ -1,5 +1,24 @@
<template> <template>
<basic-container> <basic-container>
<template >
<el-row :span="24">
<div class="check_status_class">
<span >
<el-col >
审核状态:
<el-select v-model="checkStatusValue">
<el-option
v-for="item in optionCheckStatus"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-col>
</span>
</div>
</el-row>
</template>
<avue-tabs :option="option" <avue-tabs :option="option"
@change="handleChange"></avue-tabs> @change="handleChange"></avue-tabs>
<span v-if="type.prop==='information'"> <span v-if="type.prop==='information'">
@ -55,7 +74,7 @@
:upload-after="uploadAfter" :upload-after="uploadAfter"
:upload-preview="(file) => handleUploadPreview(file)" :upload-preview="(file) => handleUploadPreview(file)"
:upload-delete="(file) => handleUploadDelete(file)"> :upload-delete="(file) => handleUploadDelete(file)">
<template #accessoryName="scope"> <template #accessoryNameExt="scope">
<el-link type="primary" :underline="false" @click="handleDownload(scope.row)">{{scope.row.prAccessoryName}}</el-link> <el-link type="primary" :underline="false" @click="handleDownload(scope.row)">{{scope.row.prAccessoryName}}</el-link>
</template> </template>
<template #menu="{row,index,size}"> <template #menu="{row,index,size}">
@ -113,15 +132,13 @@ import {
parameters_add, parameters_add,
parameters_update, parameters_update,
parameters_remove, parameters_remove,
parameters_tools_getListBylegerId, parameters_tools_getListBylegerId
parameters_Del
} from "@/api/leger/techparameters"; } from "@/api/leger/techparameters";
import { import {
document_add, document_add,
document_update, document_update,
document_remove, document_remove,
document_tools_getListBylegerId, document_tools_getListBylegerId
document_Del
} from "@/api/leger/inventorydocument"; } from "@/api/leger/inventorydocument";
import {mapGetters} from "vuex"; import {mapGetters} from "vuex";
import website from "@/config/website"; import website from "@/config/website";
@ -131,6 +148,17 @@ export default {
name: "equipmentledgerDetail", name: "equipmentledgerDetail",
data () { data () {
return { return {
checkStatusValue: this.$route.query.checkstatus,
optionCheckStatus: [{
value: 1,
label: '审核中'
}, {
value: 2,
label: '已审核'
}, {
value: 3,
label: '未通过'
}],
frame_class: '', frame_class: '',
type: {}, type: {},
shouldShowButton:{}, shouldShowButton:{},
@ -411,7 +439,7 @@ export default {
}, },
{ {
label: '附件', label: '附件',
prop: 'accessoryName', prop: 'accessoryNameExt',
dataType: 'object', dataType: 'object',
fileType: 'img',//img/video/audio fileType: 'img',//img/video/audio
type: 'upload', type: 'upload',
@ -421,7 +449,7 @@ export default {
res: 'data', res: 'data',
}, },
data: { data: {
fileType: "1"// - fileType: "2"// -
}, },
headers: { headers: {
}, },
@ -451,6 +479,7 @@ export default {
this.shouldShowButton=true; this.shouldShowButton=true;
this.addUpdateShowButton=false; this.addUpdateShowButton=false;
this.frame_class = 'frame_class1'; this.frame_class = 'frame_class1';
this.checkStatusValue = this.$route.query.checkstatus;
}else{ }else{
this.readonlyForm=false; this.readonlyForm=false;
this.shouldShowButton=false; this.shouldShowButton=false;
@ -484,7 +513,7 @@ export default {
this.tab1_form.checkStatus="1" this.tab1_form.checkStatus="1"
add(this.tab1_form).then(()=>{ add(this.tab1_form).then(()=>{
this.$router.push({ this.$router.push({
path: "/leger/equipmentledger", path: "/leger/toolinventoryrecord",
query: { query: {
}, },
}); });
@ -507,7 +536,7 @@ export default {
}).then(() => { }).then(() => {
update(this.tab1_form).then(() => { update(this.tab1_form).then(() => {
this.$router.push({ this.$router.push({
path: "/leger/equipmentledger", path: "/leger/toolinventoryrecord",
query: {}, query: {},
}); });
this.$message({ this.$message({
@ -525,7 +554,7 @@ export default {
}, },
back() { back() {
if(this.$route.query.frameMode=="add") { if(this.$route.query.frameMode=="add") {
this.$router.push({path: "/leger/equipmentledger"}); this.$router.push({path: "/leger/toolinventoryrecord"});
}else{ }else{
this.updateToSearch(); this.updateToSearch();
this.SearchDetail(); this.SearchDetail();
@ -727,7 +756,7 @@ export default {
submitRejectOrauditing() { submitRejectOrauditing() {
update(this.tab1_form).then(() => { update(this.tab1_form).then(() => {
this.$router.push({ this.$router.push({
path: "/leger/equipmentledger", path: "/leger/toolinventoryrecord",
query: {}, query: {},
}); });
this.$message({ this.$message({
@ -749,7 +778,7 @@ export default {
}).then(() => { }).then(() => {
remove(this.tab1_form.id).then(() => { remove(this.tab1_form.id).then(() => {
this.$router.push({ this.$router.push({
path: "/leger/equipmentledger", path: "/leger/toolinventoryrecord",
query: {}, query: {},
}); });
this.$message({ this.$message({
@ -792,6 +821,8 @@ export default {
window.open(`/api/system/file/download?daf-auth=${getToken()}&fileName=${row.accessoryName}`); window.open(`/api/system/file/download?daf-auth=${getToken()}&fileName=${row.accessoryName}`);
}, },
uploadAfter(response, done) { uploadAfter(response, done) {
debugger
console.log(response)
// response // response
this.document_form.accessoryName = response.fileName; this.document_form.accessoryName = response.fileName;
this.document_form.prAccessoryName = response.name; this.document_form.prAccessoryName = response.name;
@ -829,8 +860,15 @@ export default {
padding-left: 15px; padding-left: 15px;
} }
.container { .check_status_class {
display: flex; display: flex;
justify-content: flex-end; /* 将子元素推到容器的末端 */ justify-content: flex-end; /* 将子元素推到容器的末端 */
} }
.check_status_class input.el-input__inner {
border: none;
box-shadow: none;
outline: none;
pointer-events: none;
}
</style> </style>

Loading…
Cancel
Save