fix:去除不通过原因字段

This commit is contained in:
jackal 2024-04-20 14:53:47 +08:00
parent 09f732bae0
commit f080f72c32
2 changed files with 643 additions and 762 deletions

View File

@ -61,19 +61,8 @@
</el-form-item>-->
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="handleQuery"
>查询</el-button
>
<el-button
icon="el-icon-refresh"
size="mini"
@click="resetQuery"
>重置</el-button
>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
@ -112,47 +101,22 @@
<!-- >删除</el-button>-->
<!-- </el-col>-->
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
>导出</el-button
>
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport">导出</el-button>
</el-col>
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="tableList">
<!-- <el-table-column type="selection" width="55" align="center" /> -->
<el-table-column
label="维修单号"
align="center"
prop="repairCode"
/>
<el-table-column label="维修单号" align="center" prop="repairCode" />
<el-table-column
label="工机具类型"
align="center"
prop="maTypeName"
:show-overflow-tooltip="true"
/>
<el-table-column
label="维修人员"
align="center"
prop="wxName"
:show-overflow-tooltip="true"
/>
<el-table-column
label="维修时间"
align="center"
prop="wxTime"
:show-overflow-tooltip="true"
>
</el-table-column>
<el-table-column label="维修人员" align="center" prop="wxName" :show-overflow-tooltip="true" />
<el-table-column label="维修时间" align="center" prop="wxTime" :show-overflow-tooltip="true"></el-table-column>
<!-- <el-table-column label="退料单号" align="center" prop="dictName" :show-overflow-tooltip="true" />
<el-table-column label="提交入库人员" align="center" prop="updateBy" :show-overflow-tooltip="true" />
@ -164,26 +128,16 @@
</template>-->
</el-table-column>
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
icon="el-icon-zoom-in"
@click="handleView(scope.row)"
>查看</el-button
>
<el-button size="mini" icon="el-icon-zoom-in" @click="handleView(scope.row)">查看</el-button>
<el-button
size="mini"
type="primary"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-if="scope.row.taskStatus == '入库进行中'"
>审核</el-button
>
>审核</el-button>
<!-- <el-button-->
<!-- size="mini"-->
<!-- type="text"-->
@ -204,12 +158,7 @@
/>
<!-- 添加或修改参数配置对话框 -->
<el-dialog
:title="title"
:visible.sync="open"
width="1000px"
append-to-body
>
<el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
<el-form
:model="query"
ref="query"
@ -289,36 +238,16 @@
<!-- </el-select> -->
<!-- </el-form-item> -->
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="handleDialogQuery"
>查询</el-button
>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleDialogQuery">查询</el-button>
<!-- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> -->
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
size="mini"
:disabled="multiple"
@click="passAll"
>批量通过</el-button
>
<el-button type="primary" plain size="mini" :disabled="multiple" @click="passAll">批量通过</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
size="mini"
@click="refusedAll"
:disabled="multiple"
>批量不通过</el-button
>
<el-button type="danger" plain size="mini" @click="refusedAll" :disabled="multiple">批量不通过</el-button>
</el-col>
<!-- <el-col :span="1.5">-->
<!-- <el-button-->
@ -345,24 +274,9 @@
prop="typeName2"
:show-overflow-tooltip="true"
/>
<el-table-column
label="规格型号"
align="center"
prop="typeName"
:show-overflow-tooltip="true"
/>
<el-table-column
label="数量"
align="center"
prop="repairNum"
:show-overflow-tooltip="true"
/>
<el-table-column
label="编号"
align="center"
prop="maCode"
:show-overflow-tooltip="true"
/>
<el-table-column label="规格型号" align="center" prop="typeName" :show-overflow-tooltip="true" />
<el-table-column label="数量" align="center" prop="repairNum" :show-overflow-tooltip="true" />
<el-table-column label="编号" align="center" prop="maCode" :show-overflow-tooltip="true" />
<el-table-column
label="提交入库人员"
align="center"
@ -370,19 +284,8 @@
:show-overflow-tooltip="true"
width="100"
/>
<el-table-column
label="提交入库时间"
align="center"
prop="updateTime"
width="100"
>
</el-table-column>
<el-table-column
label="不通过原因"
align="center"
prop="remark"
:show-overflow-tooltip="true"
/>
<el-table-column label="提交入库时间" align="center" prop="updateTime" width="100"></el-table-column>
<el-table-column label="状态" align="center" prop="status">
<!-- <template slot-scope="scope">
<span v-if="scope.row.status=='0'">未审核</span>
@ -403,15 +306,13 @@
type="text"
@click="pass(scope.row)"
v-if="scope.row.status == '进行中'"
>通过</el-button
>
>通过</el-button>
<el-button
size="mini"
type="text"
v-if="scope.row.status == '进行中'"
@click="refused(scope.row)"
>不通过</el-button
>
>不通过</el-button>
<!-- <el-button-->
<!-- size="mini"-->
<!-- type="text"-->
@ -435,20 +336,8 @@
</template>
<script>
import {
listType,
getType,
delType,
addType,
updateType,
refreshCache,
} from '@/api/system/dict/type'
import {
getRepairedList,
getRepairedDetailList,
inputByType,
getTypeList,
} from '@/api/store/warehousing'
import { listType, getType, delType, addType, updateType, refreshCache } from '@/api/system/dict/type'
import { getRepairedList, getRepairedDetailList, inputByType, getTypeList } from '@/api/store/warehousing'
import { equipmentTypeTree } from '@/api/store/tools'
import Treeselect from '@riophae/vue-treeselect'
@ -533,17 +422,17 @@
},
methods: {
getTypeList() {
getTypeList({ level: '3' }).then((response) => {
getTypeList({ level: '3' }).then(response => {
this.typeList = response.data
})
getTypeList({ level: '4' }).then((response) => {
getTypeList({ level: '4' }).then(response => {
this.modelList = response.data
})
},
/** 查询字典类型列表 */
getList() {
this.loading = true
getRepairedList(this.queryParams).then((response) => {
getRepairedList(this.queryParams).then(response => {
this.tableList = response.rows
this.total = response.total
this.loading = false
@ -552,7 +441,7 @@
getDialogTable() {
this.loading = true
getRepairedDetailList(this.query).then((response) => {
getRepairedDetailList(this.query).then(response => {
this.detailTableList = response.rows
this.dialogTotal = response.total
this.loading = false
@ -598,7 +487,7 @@
},
//
handleSelectionChange(selection) {
this.ids = selection.map((item) => item)
this.ids = selection.map(item => item)
this.single = selection.length != 1
this.multiple = !selection.length
},
@ -638,7 +527,7 @@
params: JSON.stringify([obj]),
}
console.log(param)
inputByType(param).then((response) => {
inputByType(param).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess('审批成功')
this.getDialogTable()
@ -651,7 +540,7 @@
passAll() {
console.log(this.query.taskId)
console.log(this.ids)
this.ids.forEach((item) => {
this.ids.forEach(item => {
item.taskId = this.query.taskId
item.checkType = '1'
item.type = item.manageType //0. 1.
@ -659,7 +548,7 @@
let param = {
params: JSON.stringify(this.ids),
}
inputByType(param).then((response) => {
inputByType(param).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess('审批成功')
this.getDialogTable()
@ -687,7 +576,7 @@
let param = {
params: JSON.stringify([obj]),
}
inputByType(param).then((response) => {
inputByType(param).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess('审批成功')
this.getDialogTable()
@ -700,7 +589,7 @@
refusedAll() {
console.log(this.query.taskId)
console.log(this.ids)
this.ids.forEach((item) => {
this.ids.forEach(item => {
item.taskId = this.query.taskId
item.checkType = '2'
item.type = item.manageType
@ -708,7 +597,7 @@
let param = {
params: JSON.stringify(this.ids),
}
inputByType(param).then((response) => {
inputByType(param).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess('审批成功')
this.getDialogTable()
@ -721,16 +610,16 @@
/** 提交按钮 */
submitForm: function() {
this.$refs['form'].validate((valid) => {
this.$refs['form'].validate(valid => {
if (valid) {
if (this.form.dictId != undefined) {
updateType(this.form).then((response) => {
updateType(this.form).then(response => {
this.$modal.msgSuccess('修改成功')
this.open = false
this.getList()
})
} else {
addType(this.form).then((response) => {
addType(this.form).then(response => {
this.$modal.msgSuccess('新增成功')
this.open = false
this.getList()
@ -756,7 +645,7 @@
{
...this.queryParams,
},
`修试入库_${new Date().getTime()}.xlsx`,
`修试入库_${new Date().getTime()}.xlsx`
)
},
/** 刷新缓存按钮操作 */
@ -768,25 +657,17 @@
},
//
equipmentType() {
equipmentTypeTree().then((response) => {
equipmentTypeTree().then(response => {
this.equipmentTypeList = response.data
this.equipmentTypeList.forEach((item, index) => {
if (item.children && item.children.length > 0) {
item.children.forEach((item2, index2) => {
if (
item2.children &&
item2.children.length > 0
) {
item2.children.forEach((item3) => {
if (
item3.children &&
item3.children.length > 0
) {
item3.children.forEach((item4) => {
item4.machineTypeName =
item3.typeName
item4.specificationType =
item4.typeName
if (item2.children && item2.children.length > 0) {
item2.children.forEach(item3 => {
if (item3.children && item3.children.length > 0) {
item3.children.forEach(item4 => {
item4.machineTypeName = item3.typeName
item4.specificationType = item4.typeName
// this.$set(item4, 'purchasePrice', 0);
// this.$set(item4, 'purchaseNum', 1);
})

View File

@ -43,9 +43,9 @@ module.exports = {
// target: `https://z.csgmall.com.cn`,
// target: `http://10.40.92.8:8080`, //超
// target: `http://10.40.92.81:8080`, //韩
target: `http://10.40.92.81:8080`, //韩
// target: `http://10.40.92.74:8080`,//旭/
target: `http://10.40.92.153:8080`, //帅
// target: `http://10.40.92.153:8080`, //帅
// target: `http://10.40.92.14:8080`, //福
//******** 注意事项 ********* */