优化接口以及样式等问题

This commit is contained in:
BianLzhaoMin 2024-07-05 14:47:53 +08:00
parent 1ec88a938f
commit 1b85e9d1b9
9 changed files with 174 additions and 154 deletions

View File

@ -183,9 +183,9 @@ export default {
/* form 查询组件触发的自定义事件 */ /* form 查询组件触发的自定义事件 */
async queryList(val, reset) { async queryList(val, reset) {
if (reset) { if (reset) {
this.pageParams.pageNum = 1
this.pageParams.pageSize = 10 this.pageParams.pageSize = 10
} }
this.pageParams.pageNum = 1
this.pageParams = Object.assign( this.pageParams = Object.assign(
val, val,
this.pageParams, this.pageParams,

View File

@ -1008,7 +1008,7 @@ export default {
}) })
}, },
// //
checkNum(row) { checkNum(row) {
let maxNum = row.outNum let maxNum = row.outNum
if (row.inputNum <= 1) { if (row.inputNum <= 1) {

View File

@ -83,14 +83,14 @@
@click="handleSubmitScrap(data)" @click="handleSubmitScrap(data)"
>提交报废</el-button >提交报废</el-button
> >
<el-button <!-- <el-button
type="text" type="text"
v-if="data.taskStatus == 61" v-if="data.taskStatus == 61"
@click="handleReject(data)" @click="handleReject(data)"
style="color: #e6a23c" style="color: #e6a23c"
icon="el-icon-document-delete" icon="el-icon-document-delete"
>驳回退料</el-button >驳回退料</el-button
> > -->
<el-button <el-button
type="text" type="text"
@click="handleAuditing(data)" @click="handleAuditing(data)"

View File

@ -154,7 +154,9 @@
<span v-if="scope.row.taskStatus == '105'">入库审核中</span> <span v-if="scope.row.taskStatus == '105'">入库审核中</span>
<span v-if="scope.row.taskStatus == '106'">已驳回</span> <span v-if="scope.row.taskStatus == '106'">已驳回</span>
<span v-if="scope.row.taskStatus == '28'">已全部入库</span> <span v-if="scope.row.taskStatus == '28'">已全部入库</span>
<span v-if="scope.row.taskStatus == '107'">入库审核未通过</span> <span v-if="scope.row.taskStatus == '107'"
>入库审核未通过</span
>
<span v-if="scope.row.taskStatus == '123'">部分已入库</span> <span v-if="scope.row.taskStatus == '123'">部分已入库</span>
</template> </template>
</el-table-column> </el-table-column>
@ -249,12 +251,9 @@
</el-form> </el-form>
<el-row :gutter="10" class="mb8" v-if="showBatchButtons"> <el-row :gutter="10" class="mb8" v-if="showBatchButtons">
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button type="primary" plain size="mini" @click="passAll"
type="primary" >通过</el-button
plain >
size="mini"
@click="passAll"
>通过</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
@ -262,7 +261,8 @@
plain plain
size="mini" size="mini"
@click="refusedAll" @click="refusedAll"
>不通过</el-button> >不通过</el-button
>
</el-col> </el-col>
</el-row> </el-row>
<el-table <el-table
@ -271,12 +271,12 @@
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
height="400" height="400"
> >
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- type="selection"--> <!-- type="selection"-->
<!-- width="55"--> <!-- width="55"-->
<!-- align="center"--> <!-- align="center"-->
<!-- :selectable="selectable"--> <!-- :selectable="selectable"-->
<!-- />--> <!-- />-->
<el-table-column <el-table-column
label="序号" label="序号"
align="center" align="center"
@ -332,30 +332,30 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- label="操作"--> <!-- label="操作"-->
<!-- align="center"--> <!-- align="center"-->
<!-- class-name="small-padding fixed-width"--> <!-- class-name="small-padding fixed-width"-->
<!-- v-if="showHandle"--> <!-- v-if="showHandle"-->
<!-- width="150"--> <!-- width="150"-->
<!-- >--> <!-- >-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- <el-button--> <!-- <el-button-->
<!-- size="mini"--> <!-- size="mini"-->
<!-- type="text"--> <!-- type="text"-->
<!-- v-if="scope.row.status == '0'"--> <!-- v-if="scope.row.status == '0'"-->
<!-- @click="pass(scope.row)"--> <!-- @click="pass(scope.row)"-->
<!-- >通过</el-button--> <!-- >通过</el-button-->
<!-- >--> <!-- >-->
<!-- <el-button--> <!-- <el-button-->
<!-- size="mini"--> <!-- size="mini"-->
<!-- type="text"--> <!-- type="text"-->
<!-- v-if="scope.row.status == '0'"--> <!-- v-if="scope.row.status == '0'"-->
<!-- @click="refused(scope.row)"--> <!-- @click="refused(scope.row)"-->
<!-- >不通过</el-button--> <!-- >不通过</el-button-->
<!-- >--> <!-- >-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
</el-table> </el-table>
<pagination <pagination
@ -559,7 +559,7 @@ export default {
{ label: '已驳回', taskState: 106 }, { label: '已驳回', taskState: 106 },
{ label: '入库审核未通过', taskState: 107 }, { label: '入库审核未通过', taskState: 107 },
{ label: '部分已入库', taskState: 123 }, { label: '部分已入库', taskState: 123 },
{ label: '已全部入库', taskState: 28 } { label: '已全部入库', taskState: 28 },
], ],
// //
tableList: [], tableList: [],
@ -611,9 +611,15 @@ export default {
}, },
mounted() { mounted() {
// taskStatus // taskStatus
this.$watch('detailTableList', () => { this.$watch(
this.showBatchButtons = this.detailTableList.some(item => item.taskStatus === '122'); 'detailTableList',
}, { deep: true }); () => {
this.showBatchButtons = this.detailTableList.some(
(item) => item.taskStatus === '122',
)
},
{ deep: true },
)
}, },
created() { created() {
this.getList() this.getList()
@ -640,10 +646,11 @@ export default {
taskStatus: this.queryParams.taskState, taskStatus: this.queryParams.taskState,
pageSize: this.queryParams.pageSize, pageSize: this.queryParams.pageSize,
pageNum: this.queryParams.pageNum, pageNum: this.queryParams.pageNum,
flag: 0,
} }
getPutInList(this.addDateRange(params)).then((response) => { getPutInList(this.addDateRange(params)).then((res) => {
this.tableList = response.rows this.tableList = res.data.rows
this.total = response.total this.total = res.data.total
this.loading = false this.loading = false
}) })
}, },

View File

@ -8,7 +8,6 @@
v-show="showSearch" v-show="showSearch"
label-width="100px" label-width="100px"
> >
<el-form-item label="设备类型" prop="typeId"> <el-form-item label="设备类型" prop="typeId">
<el-select <el-select
v-model="queryParams.typeId" v-model="queryParams.typeId"
@ -195,9 +194,7 @@
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
v-if=" v-if="scope.row.taskStatus == '105'"
scope.row.taskStatus == '105'
"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['warehousing:auditing']" v-hasPermi="['warehousing:auditing']"
>审核</el-button >审核</el-button
@ -206,7 +203,10 @@
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
v-if="scope.row.taskStatus == '28' || scope.row.taskStatus == '123'" v-if="
scope.row.taskStatus == '28' ||
scope.row.taskStatus == '123'
"
@click="handlePrint(scope.row)" @click="handlePrint(scope.row)"
>入库单</el-button >入库单</el-button
> >
@ -380,14 +380,20 @@
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
v-if="scope.row.status == '0' || scope.row.status == '3'" v-if="
scope.row.status == '0' ||
scope.row.status == '3'
"
@click="pass(scope.row)" @click="pass(scope.row)"
>通过</el-button >通过</el-button
> >
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
v-if="scope.row.status == '0' || scope.row.status == '3'" v-if="
scope.row.status == '0' ||
scope.row.status == '3'
"
@click="refused(scope.row)" @click="refused(scope.row)"
>不通过</el-button >不通过</el-button
> >
@ -581,7 +587,7 @@ export default {
{ label: '入库审核中', taskStatus: 105 }, { label: '入库审核中', taskStatus: 105 },
{ label: '入库审核未通过', taskStatus: 107 }, { label: '入库审核未通过', taskStatus: 107 },
{ label: '部分已入库', taskStatus: 123 }, { label: '部分已入库', taskStatus: 123 },
{ label: '已全部入库', taskStatus: 28 } { label: '已全部入库', taskStatus: 28 },
], ],
// //
tableList: [], tableList: [],
@ -606,6 +612,7 @@ export default {
taskStatus: null, taskStatus: null,
keyWord: '', keyWord: '',
typeId: '', typeId: '',
flag: 0,
}, },
query: { query: {
pageNum: 1, pageNum: 1,
@ -647,8 +654,8 @@ export default {
getList() { getList() {
this.loading = true this.loading = true
getPutInList(this.queryParams).then((response) => { getPutInList(this.queryParams).then((response) => {
this.tableList = response.rows this.tableList = response.data.rows
this.total = response.total this.total = response.data.total
this.loading = false this.loading = false
}) })
}, },

View File

@ -168,6 +168,8 @@ export default {
const queryParams = { const queryParams = {
id: this.editInfo.id, id: this.editInfo.id,
wholeTypeName: this.editInfo.wholeTypeName, wholeTypeName: this.editInfo.wholeTypeName,
pageNum: 1,
pageSize: 99999,
} }
const { data: res } = await queryCompleteSetToolsApi(queryParams) const { data: res } = await queryCompleteSetToolsApi(queryParams)
this.tempList = res.rows this.tempList = res.rows

View File

@ -168,6 +168,8 @@ export default {
const queryParams = { const queryParams = {
id: this.editInfo.id, id: this.editInfo.id,
wholeTypeName: this.editInfo.wholeTypeName, wholeTypeName: this.editInfo.wholeTypeName,
pageNum: 1,
pageSize: 99999,
} }
const { data: res } = await queryCompleteSetToolsApi(queryParams) const { data: res } = await queryCompleteSetToolsApi(queryParams)
this.tempList = res.rows this.tempList = res.rows

View File

@ -653,10 +653,11 @@ export default {
taskStatus: this.queryParams.taskState, taskStatus: this.queryParams.taskState,
pageSize: this.queryParams.pageSize, pageSize: this.queryParams.pageSize,
pageNum: this.queryParams.pageNum, pageNum: this.queryParams.pageNum,
flag: 0,
} }
getPutInList(this.addDateRange(params)).then((response) => { getPutInList(this.addDateRange(params)).then((response) => {
this.tableList = response.rows this.tableList = response.data.rows
this.total = response.total this.total = response.data.total
this.loading = false this.loading = false
}) })
}, },

View File

@ -609,6 +609,7 @@ export default {
status: undefined, status: undefined,
keyWord: '', keyWord: '',
typeId: '', typeId: '',
flag: 0,
}, },
query: { query: {
pageNum: 1, pageNum: 1,
@ -657,8 +658,8 @@ export default {
getList() { getList() {
this.loading = true this.loading = true
getPutInList(this.queryParams).then((response) => { getPutInList(this.queryParams).then((response) => {
this.tableList = response.rows this.tableList = response.data.rows
this.total = response.total this.total = response.data.total
this.loading = false this.loading = false
}) })
}, },