优化用户权限以及页面等样式问题
This commit is contained in:
parent
ea33107e86
commit
a71a21d070
|
|
@ -1,6 +1,8 @@
|
|||
# 页面标题
|
||||
VUE_APP_TITLE = 施工装备管理系统
|
||||
|
||||
NODE_ENV = production
|
||||
|
||||
# 生产环境配置
|
||||
ENV = 'production'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
# 南网系统配置
|
||||
|
||||
# 页面标题
|
||||
VUE_APP_TITLE = 施工装备管理系统
|
||||
|
||||
# 生产环境配置
|
||||
ENV = 'production-nw'
|
||||
|
||||
# 若依管理系统/生产环境
|
||||
VUE_APP_BASE_API = '/gl/dev-api'
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
# 页面标题
|
||||
VUE_APP_TITLE = 若依管理系统
|
||||
|
||||
NODE_ENV = production
|
||||
NODE_ENV = testing
|
||||
|
||||
# 测试环境配置
|
||||
ENV = 'staging'
|
||||
ENV = 'testing'
|
||||
|
||||
# 若依管理系统/测试环境
|
||||
VUE_APP_BASE_API = '/stage-api'
|
||||
VUE_APP_BASE_API = '/dev-api'
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
@echo off
|
||||
echo.
|
||||
echo [<5B><>Ϣ] <20><><EFBFBD>Web<65><62><EFBFBD>̣<EFBFBD><CCA3><EFBFBD><EFBFBD><EFBFBD>dist<73>ļ<EFBFBD><C4BC><EFBFBD>
|
||||
echo.
|
||||
|
||||
%~d0
|
||||
cd %~dp0
|
||||
|
||||
cd ..
|
||||
npm run build:prod
|
||||
|
||||
pause
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
@echo off
|
||||
echo.
|
||||
echo [<5B><>Ϣ] <20><><EFBFBD>Web<65><62><EFBFBD>̣<EFBFBD><CCA3><EFBFBD><EFBFBD><EFBFBD>dist<73>ļ<EFBFBD><C4BC><EFBFBD>
|
||||
echo.
|
||||
|
||||
%~d0
|
||||
cd %~dp0
|
||||
|
||||
cd ..
|
||||
npm run build:test
|
||||
|
||||
pause
|
||||
|
|
@ -7,7 +7,8 @@
|
|||
"scripts": {
|
||||
"dev": "vue-cli-service serve",
|
||||
"build": "vue-cli-service build",
|
||||
"build:stage": "vue-cli-service build --mode staging",
|
||||
"build:test": "vue-cli-service build --mode testing",
|
||||
"build:prod": "vue-cli-service build --mode production",
|
||||
"preview": "node build/index.js --preview",
|
||||
"lint": "eslint --ext .js,.vue src"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
// const qrUrl = 'http://112.29.103.165:21624/qrCode/qrCodePage?qrCode='; //宁夏
|
||||
// const qrUrl = 'https://z.csgmall.com.cn/gl/qrCode/qrCodePage?qrCode='; //南网
|
||||
|
||||
const qrUrl = process.env.NODE_ENV === 'production' ? 'https://z.csgmall.com.cn/gl/qrCode/qrCodePage?qrCode=' : 'http://192.168.0.14:21624/qrCode/qrCodePage?qrCode='
|
||||
const qrUrl = process.env.NODE_ENV === 'production' ? 'http://112.29.103.165:21624/qrCode/qrCodePage?qrCode=' : 'http://192.168.0.14:21624/qrCode/qrCodePage?qrCode='
|
||||
|
||||
export default {
|
||||
qrUrl,
|
||||
|
|
|
|||
|
|
@ -168,6 +168,7 @@
|
|||
type="primary"
|
||||
v-if="scope.row.taskStatus != 35"
|
||||
@click="handleOut(scope.row)"
|
||||
v-hasPermi="['picking:outbound']"
|
||||
>
|
||||
出库
|
||||
</el-button>
|
||||
|
|
|
|||
|
|
@ -238,6 +238,7 @@
|
|||
icon="el-icon-setting"
|
||||
v-if="scope.row.repairStatusCode == '43'"
|
||||
@click="handleUpdate(scope.row, 'update')"
|
||||
v-hasPermi="['service:button']"
|
||||
>
|
||||
维修
|
||||
</el-button>
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -63,6 +63,7 @@
|
|||
size="mini"
|
||||
v-if="data.taskStatus === 121 || data.taskStatus === 120"
|
||||
@click="handleAuditing(data)"
|
||||
v-hasPermi="['forecast:waste:auditing']"
|
||||
>审核</el-button
|
||||
>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -21,9 +21,12 @@
|
|||
icon="el-icon-circle-check"
|
||||
size="mini"
|
||||
@click="handelSubmitScrap"
|
||||
v-hasPermi="['submit:batch:scrap']"
|
||||
>提交报废</el-button
|
||||
>
|
||||
|
||||
<!-- 批量提交报废 -->
|
||||
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
|
|
@ -75,7 +78,7 @@
|
|||
type="text"
|
||||
size="mini"
|
||||
v-if="data.taskStatus == 124"
|
||||
v-hasPermi="['scrap:auditing']"
|
||||
v-hasPermi="['submit:scrap']"
|
||||
@click="handleSubmitScrap(data)"
|
||||
>提交报废</el-button
|
||||
>
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
plain
|
||||
size="mini"
|
||||
@click="handleBatchDisposition()"
|
||||
v-hasPermi="['scrap:batch:disposition']"
|
||||
>批量处置</el-button
|
||||
>
|
||||
<el-button
|
||||
|
|
@ -69,6 +70,7 @@
|
|||
type="text"
|
||||
@click="handleDisposition(data)"
|
||||
v-if="data.disposition == 0"
|
||||
v-hasPermi="['scrap:disposition']"
|
||||
>
|
||||
处置
|
||||
</el-button>
|
||||
|
|
|
|||
|
|
@ -243,6 +243,7 @@
|
|||
scope.row.manageType != '1'
|
||||
"
|
||||
@click="handleCode(scope.row)"
|
||||
v-hasPermi="['coding:manage']"
|
||||
>编码管理</el-button
|
||||
>
|
||||
<el-button
|
||||
|
|
|
|||
|
|
@ -184,6 +184,7 @@
|
|||
scope.row.taskStatus == '105'
|
||||
"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['warehousing:auditing']"
|
||||
>审核</el-button
|
||||
>
|
||||
<el-button
|
||||
|
|
@ -526,359 +527,359 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { getTypeList } from '@/api/store/warehousing'
|
||||
import {
|
||||
getPutInList,
|
||||
getPutinDetailsList,
|
||||
changePutinStatus,
|
||||
warehousingEntry,
|
||||
} from '@/api/store/newBuy'
|
||||
import vueEasyPrint from 'vue-easy-print'
|
||||
export default {
|
||||
// name: "NewDevicesWarehousing",
|
||||
// dicts: ['sys_normal_disable'],
|
||||
components: { vueEasyPrint },
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 总条数
|
||||
dialogTotal: 0,
|
||||
//搜索下拉数据
|
||||
typesList: [],
|
||||
modelList: [],
|
||||
// 表格数据
|
||||
tableList: [],
|
||||
detailTableList: [],
|
||||
// 弹出层标题
|
||||
title: '',
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
openPrint: false,
|
||||
printData: {},
|
||||
printTableData: [],
|
||||
showHandle: true,
|
||||
// 日期范围
|
||||
dateRange: [],
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
dictName: undefined,
|
||||
dictType: undefined,
|
||||
status: undefined,
|
||||
keyWord: '',
|
||||
typeId: '',
|
||||
},
|
||||
query: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
dictName: undefined,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
dictName: [
|
||||
{
|
||||
required: true,
|
||||
message: '字典名称不能为空',
|
||||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
dictType: [
|
||||
{
|
||||
required: true,
|
||||
message: '字典类型不能为空',
|
||||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getTypeList()
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
getTypeList() {
|
||||
getTypeList({ level: '3' }).then((response) => {
|
||||
this.typesList = response.data
|
||||
})
|
||||
},
|
||||
/** 查询字典类型列表 */
|
||||
getList() {
|
||||
this.loading = true
|
||||
getPutInList(this.queryParams).then((response) => {
|
||||
this.tableList = response.rows
|
||||
this.total = response.total
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
|
||||
getDialogTable() {
|
||||
this.loading = true
|
||||
getPutinDetailsList(this.query).then((response) => {
|
||||
this.detailTableList = response.rows
|
||||
this.dialogTotal = response.total
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false
|
||||
this.reset()
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
dictId: undefined,
|
||||
dictName: undefined,
|
||||
dictType: undefined,
|
||||
status: '0',
|
||||
remark: undefined,
|
||||
import { getTypeList } from '@/api/store/warehousing'
|
||||
import {
|
||||
getPutInList,
|
||||
getPutinDetailsList,
|
||||
changePutinStatus,
|
||||
warehousingEntry,
|
||||
} from '@/api/store/newBuy'
|
||||
import vueEasyPrint from 'vue-easy-print'
|
||||
export default {
|
||||
// name: "NewDevicesWarehousing",
|
||||
// dicts: ['sys_normal_disable'],
|
||||
components: { vueEasyPrint },
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 总条数
|
||||
dialogTotal: 0,
|
||||
//搜索下拉数据
|
||||
typesList: [],
|
||||
modelList: [],
|
||||
// 表格数据
|
||||
tableList: [],
|
||||
detailTableList: [],
|
||||
// 弹出层标题
|
||||
title: '',
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
openPrint: false,
|
||||
printData: {},
|
||||
printTableData: [],
|
||||
showHandle: true,
|
||||
// 日期范围
|
||||
dateRange: [],
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
dictName: undefined,
|
||||
dictType: undefined,
|
||||
status: undefined,
|
||||
keyWord: '',
|
||||
typeId: '',
|
||||
},
|
||||
query: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
dictName: undefined,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
dictName: [
|
||||
{
|
||||
required: true,
|
||||
message: '字典名称不能为空',
|
||||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
dictType: [
|
||||
{
|
||||
required: true,
|
||||
message: '字典类型不能为空',
|
||||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
this.resetForm('form')
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1
|
||||
created() {
|
||||
this.getTypeList()
|
||||
this.getList()
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleDialogQuery() {
|
||||
this.query.pageNum = 1
|
||||
this.getDialogTable()
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm('queryForm')
|
||||
this.handleQuery()
|
||||
},
|
||||
//是否可用勾选框
|
||||
selectable(row) {
|
||||
console.log(row)
|
||||
if (row.status == '0') {
|
||||
if (
|
||||
(row.manageType == '0' && row.maCode) ||
|
||||
row.manageType == '1'
|
||||
) {
|
||||
return true
|
||||
methods: {
|
||||
getTypeList() {
|
||||
getTypeList({ level: '3' }).then((response) => {
|
||||
this.typesList = response.data
|
||||
})
|
||||
},
|
||||
/** 查询字典类型列表 */
|
||||
getList() {
|
||||
this.loading = true
|
||||
getPutInList(this.queryParams).then((response) => {
|
||||
this.tableList = response.rows
|
||||
this.total = response.total
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
|
||||
getDialogTable() {
|
||||
this.loading = true
|
||||
getPutinDetailsList(this.query).then((response) => {
|
||||
this.detailTableList = response.rows
|
||||
this.dialogTotal = response.total
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false
|
||||
this.reset()
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
dictId: undefined,
|
||||
dictName: undefined,
|
||||
dictType: undefined,
|
||||
status: '0',
|
||||
remark: undefined,
|
||||
}
|
||||
this.resetForm('form')
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1
|
||||
this.getList()
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleDialogQuery() {
|
||||
this.query.pageNum = 1
|
||||
this.getDialogTable()
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm('queryForm')
|
||||
this.handleQuery()
|
||||
},
|
||||
//是否可用勾选框
|
||||
selectable(row) {
|
||||
console.log(row)
|
||||
if (row.status == '0') {
|
||||
if (
|
||||
(row.manageType == '0' && row.maCode) ||
|
||||
row.manageType == '1'
|
||||
) {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map((item) => item)
|
||||
this.single = selection.length != 1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
// this.reset();
|
||||
this.query.taskId = row.taskId
|
||||
this.query.dictName = undefined
|
||||
this.getDialogTable()
|
||||
this.open = true
|
||||
this.showHandle = true
|
||||
this.title = '审核'
|
||||
},
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map((item) => item)
|
||||
this.single = selection.length != 1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
// this.reset();
|
||||
this.query.taskId = row.taskId
|
||||
this.query.dictName = undefined
|
||||
this.getDialogTable()
|
||||
this.open = true
|
||||
this.showHandle = true
|
||||
this.title = '审核'
|
||||
},
|
||||
|
||||
//通过
|
||||
pass(row) {
|
||||
console.log(row)
|
||||
console.log(this.query.taskId)
|
||||
row.taskId = this.query.taskId
|
||||
let obj = {
|
||||
taskId: this.query.taskId,
|
||||
maId: row.maId,
|
||||
inputNum: row.checkNum,
|
||||
maCode: row.maCode,
|
||||
typeId: row.typeId,
|
||||
}
|
||||
//通过
|
||||
pass(row) {
|
||||
console.log(row)
|
||||
console.log(this.query.taskId)
|
||||
row.taskId = this.query.taskId
|
||||
let obj = {
|
||||
taskId: this.query.taskId,
|
||||
maId: row.maId,
|
||||
inputNum: row.checkNum,
|
||||
maCode: row.maCode,
|
||||
typeId: row.typeId,
|
||||
}
|
||||
|
||||
let param = {
|
||||
taskId: this.query.taskId,
|
||||
checkResult: '1',
|
||||
inputRecordList: [obj],
|
||||
}
|
||||
changePutinStatus(param).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess('审批成功')
|
||||
this.getDialogTable()
|
||||
this.getList()
|
||||
} else {
|
||||
this.$modal.msgSuccess('审批失败')
|
||||
let param = {
|
||||
taskId: this.query.taskId,
|
||||
checkResult: '1',
|
||||
inputRecordList: [obj],
|
||||
}
|
||||
})
|
||||
},
|
||||
passAll() {
|
||||
console.log(this.query.taskId)
|
||||
console.log(this.ids)
|
||||
this.ids.forEach((item) => {
|
||||
item.taskId = this.query.taskId
|
||||
item.typeId = item.typeId
|
||||
item.maId = item.maId
|
||||
item.inputNum = item.checkNum
|
||||
item.maCode = item.maCode
|
||||
})
|
||||
let param = {
|
||||
taskId: this.query.taskId,
|
||||
checkResult: '1',
|
||||
inputRecordList: this.ids,
|
||||
}
|
||||
changePutinStatus(param).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess('审批成功')
|
||||
this.getDialogTable()
|
||||
this.getList()
|
||||
} else {
|
||||
this.$modal.msgSuccess('审批失败')
|
||||
changePutinStatus(param).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess('审批成功')
|
||||
this.getDialogTable()
|
||||
this.getList()
|
||||
} else {
|
||||
this.$modal.msgSuccess('审批失败')
|
||||
}
|
||||
})
|
||||
},
|
||||
passAll() {
|
||||
console.log(this.query.taskId)
|
||||
console.log(this.ids)
|
||||
this.ids.forEach((item) => {
|
||||
item.taskId = this.query.taskId
|
||||
item.typeId = item.typeId
|
||||
item.maId = item.maId
|
||||
item.inputNum = item.checkNum
|
||||
item.maCode = item.maCode
|
||||
})
|
||||
let param = {
|
||||
taskId: this.query.taskId,
|
||||
checkResult: '1',
|
||||
inputRecordList: this.ids,
|
||||
}
|
||||
changePutinStatus(param).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess('审批成功')
|
||||
this.getDialogTable()
|
||||
this.getList()
|
||||
} else {
|
||||
this.$modal.msgSuccess('审批失败')
|
||||
}
|
||||
})
|
||||
},
|
||||
//拒绝
|
||||
refused(row) {
|
||||
console.log(row)
|
||||
console.log(this.query.taskId)
|
||||
row.taskId = this.query.taskId
|
||||
let obj = {
|
||||
taskId: this.query.taskId,
|
||||
maId: row.maId,
|
||||
maCode: row.maCode,
|
||||
inputNum: row.checkNum,
|
||||
typeId: row.typeId,
|
||||
}
|
||||
})
|
||||
},
|
||||
//拒绝
|
||||
refused(row) {
|
||||
console.log(row)
|
||||
console.log(this.query.taskId)
|
||||
row.taskId = this.query.taskId
|
||||
let obj = {
|
||||
taskId: this.query.taskId,
|
||||
maId: row.maId,
|
||||
maCode: row.maCode,
|
||||
inputNum: row.checkNum,
|
||||
typeId: row.typeId,
|
||||
}
|
||||
|
||||
let param = {
|
||||
taskId: this.query.taskId,
|
||||
checkResult: '2',
|
||||
inputRecordList: [obj],
|
||||
}
|
||||
changePutinStatus(param).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess('审批成功')
|
||||
this.getDialogTable()
|
||||
this.getList()
|
||||
} else {
|
||||
this.$modal.msgSuccess('审批失败')
|
||||
let param = {
|
||||
taskId: this.query.taskId,
|
||||
checkResult: '2',
|
||||
inputRecordList: [obj],
|
||||
}
|
||||
changePutinStatus(param).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess('审批成功')
|
||||
this.getDialogTable()
|
||||
this.getList()
|
||||
} else {
|
||||
this.$modal.msgSuccess('审批失败')
|
||||
}
|
||||
})
|
||||
},
|
||||
refusedAll() {
|
||||
console.log(this.query.taskId)
|
||||
console.log(this.ids)
|
||||
this.ids.forEach((item) => {
|
||||
item.taskId = this.query.taskId
|
||||
item.typeId = item.typeId
|
||||
item.maId = item.maId
|
||||
item.inputNum = item.checkNum
|
||||
item.maCode = item.maCode
|
||||
})
|
||||
let param = {
|
||||
taskId: this.query.taskId,
|
||||
checkResult: '2',
|
||||
inputRecordList: this.ids,
|
||||
}
|
||||
})
|
||||
},
|
||||
refusedAll() {
|
||||
console.log(this.query.taskId)
|
||||
console.log(this.ids)
|
||||
this.ids.forEach((item) => {
|
||||
item.taskId = this.query.taskId
|
||||
item.typeId = item.typeId
|
||||
item.maId = item.maId
|
||||
item.inputNum = item.checkNum
|
||||
item.maCode = item.maCode
|
||||
})
|
||||
let param = {
|
||||
taskId: this.query.taskId,
|
||||
checkResult: '2',
|
||||
inputRecordList: this.ids,
|
||||
}
|
||||
|
||||
changePutinStatus(param).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess('审批成功')
|
||||
this.getDialogTable()
|
||||
this.getList()
|
||||
} else {
|
||||
this.$modal.msgSuccess('审批失败')
|
||||
}
|
||||
})
|
||||
changePutinStatus(param).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess('审批成功')
|
||||
this.getDialogTable()
|
||||
this.getList()
|
||||
} else {
|
||||
this.$modal.msgSuccess('审批失败')
|
||||
}
|
||||
})
|
||||
},
|
||||
//查看操作
|
||||
handleView(row) {
|
||||
this.query.taskId = row.taskId
|
||||
this.getDialogTable()
|
||||
this.open = true
|
||||
this.showHandle = false
|
||||
this.title = '查看'
|
||||
},
|
||||
//获取入库单数据
|
||||
getPrintTable(taskId) {
|
||||
warehousingEntry({ taskId: taskId }).then((response) => {
|
||||
this.printTableData = response.data
|
||||
// this.dialogTotal = response.total;
|
||||
})
|
||||
},
|
||||
//查看入库单
|
||||
handlePrint(row) {
|
||||
this.query.taskId = row.taskId
|
||||
this.getPrintTable(row.taskId)
|
||||
this.openPrint = true
|
||||
this.title = '入库单'
|
||||
},
|
||||
//打印
|
||||
print() {
|
||||
this.$refs.remarksPrintRef.print()
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download(
|
||||
'material/purchaseCheckInfo/putInExport',
|
||||
{
|
||||
...this.queryParams,
|
||||
},
|
||||
`新购工机具入库_${new Date().getTime()}.xlsx`,
|
||||
)
|
||||
},
|
||||
},
|
||||
//查看操作
|
||||
handleView(row) {
|
||||
this.query.taskId = row.taskId
|
||||
this.getDialogTable()
|
||||
this.open = true
|
||||
this.showHandle = false
|
||||
this.title = '查看'
|
||||
},
|
||||
//获取入库单数据
|
||||
getPrintTable(taskId) {
|
||||
warehousingEntry({ taskId: taskId }).then((response) => {
|
||||
this.printTableData = response.data
|
||||
// this.dialogTotal = response.total;
|
||||
})
|
||||
},
|
||||
//查看入库单
|
||||
handlePrint(row) {
|
||||
this.query.taskId = row.taskId
|
||||
this.getPrintTable(row.taskId)
|
||||
this.openPrint = true
|
||||
this.title = '入库单'
|
||||
},
|
||||
//打印
|
||||
print() {
|
||||
this.$refs.remarksPrintRef.print()
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download(
|
||||
'material/purchaseCheckInfo/putInExport',
|
||||
{
|
||||
...this.queryParams,
|
||||
},
|
||||
`新购工机具入库_${new Date().getTime()}.xlsx`,
|
||||
)
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.print {
|
||||
width: 90%;
|
||||
padding-left: 5%;
|
||||
padding-right: 1%;
|
||||
.print {
|
||||
width: 90%;
|
||||
padding-left: 5%;
|
||||
padding-right: 1%;
|
||||
|
||||
.title {
|
||||
text-align: center;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
}
|
||||
.title {
|
||||
text-align: center;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.info {
|
||||
margin-top: 10px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
.info {
|
||||
margin-top: 10px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.item {
|
||||
width: 50%;
|
||||
flex-shrink: 0;
|
||||
margin-bottom: 5px;
|
||||
font-size: 14px;
|
||||
.item {
|
||||
width: 50%;
|
||||
flex-shrink: 0;
|
||||
margin-bottom: 5px;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
.fillIn {
|
||||
margin-top: 15px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
|
||||
.fillIn {
|
||||
margin-top: 15px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
::v-deep.el-table .fixed-width .el-button--mini {
|
||||
width: 60px !important;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
::v-deep.el-table .fixed-width .el-button--mini {
|
||||
width: 60px !important;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -181,6 +181,7 @@
|
|||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-if="scope.row.taskStatus == '入库进行中'"
|
||||
v-hasPermi="['repairTest:auditing']"
|
||||
>审核</el-button
|
||||
>
|
||||
<!-- <el-button-->
|
||||
|
|
|
|||
Loading…
Reference in New Issue