Initial commit: 景耀JY1.0项目
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
@click="pageCurrent = 1;pageSize = 20;searchTable()">查询
|
||||
</el-button>
|
||||
<el-button type="success" plain icon="el-icon-download" size="small" @click="exportExcel()">导出</el-button>
|
||||
<el-button type="distribution" icon="el-icon-plus" size="small" @click="addMaterial()">物料</el-button>
|
||||
<!-- <el-button type="distribution" icon="el-icon-plus" size="small" @click="addMaterial()">物料</el-button> -->
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
@@ -256,7 +256,7 @@
|
||||
</el-button>
|
||||
<el-button type="success" plain icon="el-icon-download" size="small" @click="exportExcel1()">导出
|
||||
</el-button>
|
||||
<el-button type="distribution" icon="el-icon-plus" size="small" @click="addMaterial()">物料</el-button>
|
||||
<!-- <el-button type="distribution" icon="el-icon-plus" size="small" @click="addMaterial()">物料</el-button> -->
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
@@ -368,7 +368,7 @@
|
||||
</el-tooltip>
|
||||
<el-tooltip :open-delay="700" effect="dark" content="更替物料" placement="top">
|
||||
<el-button
|
||||
:disabled="((Number(scope.row.零件类型)===1||Number(scope.row.零件类型)===2) && Number(scope.row.是否传递)=== 1 && jobNumber != '1002') || ((Number(scope.row.零件类型)===3||Number(scope.row.零件类型)===4) && Number(scope.row.考核状态) > 1 && jobNumber != '1002')"
|
||||
:disabled="((Number(scope.row.零件类型)===1||Number(scope.row.零件类型)===2) && Number(scope.row.是否传递)=== 1 && jobNumber != '2009') || ((Number(scope.row.零件类型)===3||Number(scope.row.零件类型)===4) && Number(scope.row.考核状态) > 1 && jobNumber != '2009')"
|
||||
type="text"
|
||||
size="mini"
|
||||
style="margin-right: 10px"
|
||||
@@ -377,7 +377,7 @@
|
||||
</el-tooltip>
|
||||
<el-tooltip :open-delay="700" effect="dark" content="编辑零件信息" placement="top">
|
||||
<el-button
|
||||
:disabled="((Number(scope.row.零件类型)===1||Number(scope.row.零件类型)===2) && Number(scope.row.是否传递)=== 1 && jobNumber != '1002') || ((Number(scope.row.零件类型)===3||Number(scope.row.零件类型)===4) && Number(scope.row.考核状态) > 1 && jobNumber != '1002')"
|
||||
:disabled="((Number(scope.row.零件类型)===1||Number(scope.row.零件类型)===2) && Number(scope.row.是否传递)=== 1 && jobNumber != '2009') || ((Number(scope.row.零件类型)===3||Number(scope.row.零件类型)===4) && Number(scope.row.考核状态) > 1 && jobNumber != '2009')"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
@@ -669,9 +669,18 @@
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
</div>
|
||||
<span v-show="PartType==='专机' && groupNameValue !== ''" style="margin-left: 170px;">需求数:{{
|
||||
numberOfParts
|
||||
}}</span>
|
||||
<div v-show="PartType==='专机' && groupNameValue !== ''" style="margin-left: 170px;">
|
||||
<span style="margin-right: 20px;">
|
||||
部件状态:
|
||||
<el-tag v-if="taskStatus==='未下达'" type="danger" size="small" style="margin: 0px">未下达</el-tag>
|
||||
<el-tag v-if="taskStatus==='未接受'" type="warning" size="small" style="margin: 0px">未接受</el-tag>
|
||||
<el-tag v-if="taskStatus==='未开始'" type="info" size="small" style="margin: 0px">未开始</el-tag>
|
||||
<el-tag v-if="taskStatus==='加工中'" size="small" style="margin: 0px">加工中</el-tag>
|
||||
<el-tag v-if="taskStatus==='装配中'" type="primary" size="small" style="margin: 0px">装配中</el-tag>
|
||||
<el-tag v-if="taskStatus==='完成'" type="success" size="small" style="margin: 0px">完成</el-tag>
|
||||
</span>
|
||||
<span>需求数:{{ numberOfParts }}</span>
|
||||
</div>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button size="small" @click="dialogFormVisible2=false">取消</el-button>
|
||||
<el-button v-if="PartType==='通用件'" type="primary" size="small" @click="submitAddMaterial">确定</el-button>
|
||||
@@ -721,6 +730,7 @@ export default {
|
||||
return {
|
||||
partTool: '',
|
||||
numberOfParts: '',
|
||||
taskStatus: '',
|
||||
dialogVisible: false,
|
||||
hadFile: [],
|
||||
multipleSelection: [],
|
||||
@@ -820,6 +830,7 @@ export default {
|
||||
var Data = this.CreateData('11', '订单BOM_部件数量_查询数据', param)
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
this.numberOfParts = response.data[0].数量
|
||||
this.taskStatus = response.data[0].任务状态
|
||||
console.log('订单BOM_部件数量_查询数据', response.data)
|
||||
})
|
||||
},
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="app-container">
|
||||
<el-card style="height: 850px">
|
||||
<el-row>
|
||||
<el-col style="width: 1627px">
|
||||
<el-col style="width: 1627px; overflow-x: auto">
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="tableData_base"
|
||||
@@ -10,7 +10,7 @@
|
||||
border
|
||||
stripe
|
||||
size="small"
|
||||
style="width: 1627px"
|
||||
style="width: 100%"
|
||||
height="222px"
|
||||
@row-click="searchTable1">
|
||||
<el-table-column label="订单编号" align="center" width="120px" show-overflow-tooltip>
|
||||
@@ -28,6 +28,11 @@
|
||||
{{ scope.row.订单备注 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :width="setColumnWidth('备注')" label="技术备注" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.技术备注 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="下单人" width="70x" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.创建人 }}
|
||||
@@ -77,11 +82,6 @@
|
||||
<span v-else>{{ scope.row.被分配人员姓名 }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column width="150px" label="分配确认日期" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.分配确认时间 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column width="150px" label="分配完成期限" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-date-picker
|
||||
@@ -96,7 +96,12 @@
|
||||
@click.native.stop/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center">
|
||||
<el-table-column width="150px" label="分配确认日期" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.分配确认时间 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" fixed="right" min-width="300px">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
v-if="!scope.row.edit"
|
||||
@@ -146,6 +151,11 @@
|
||||
icon="el-icon-s-check"
|
||||
@click="submitOrder(scope.row)">确认
|
||||
</el-button>
|
||||
<el-tooltip :open-delay="500" effect="dark" content="编辑技术备注" placement="top">
|
||||
<el-button type="text" icon="el-icon-edit-outline" size="mini" @click="editTechnicalRemark(scope.row)">
|
||||
技术备注
|
||||
</el-button>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -1217,34 +1227,117 @@
|
||||
:visible.sync="dialogVisible1"
|
||||
:center="dialogName"
|
||||
title="客户提供资料"
|
||||
width="20%">
|
||||
<div v-for="(file, key) in hadFile1" :key="key">
|
||||
<div class="wrapper">
|
||||
<div class="content">
|
||||
<div v-if="file.suffix==='pdf'" class="icon">
|
||||
<svg-icon icon-class="pdf"/>
|
||||
width="50%">
|
||||
<div style="margin-bottom: 20px;">
|
||||
<el-button type="primary" size="small" icon="el-icon-upload" @click="batchImportOfDrawings">上传图片</el-button>
|
||||
<el-button type="info" size="small" icon="el-icon-notebook-2" style="margin-left: 10px;" @click="showChangeLogDialogFunc">资料改动</el-button>
|
||||
</div>
|
||||
<el-upload
|
||||
v-if="showUpload"
|
||||
ref="upload"
|
||||
:action="uploadAction"
|
||||
:auto-upload="false"
|
||||
:data="uploadData"
|
||||
:limit="10"
|
||||
:multiple="true"
|
||||
:on-exceed="handleExceed"
|
||||
:on-success="handleUploadSuccess"
|
||||
:on-error="handleUploadError"
|
||||
:file-list="uploadFileList"
|
||||
list-type="picture-card"
|
||||
accept=".jpg,.jpeg,.png,.gif,.bmp,.webp">
|
||||
<i class="el-icon-plus"/>
|
||||
<div slot="tip" class="el-upload__tip">只能上传jpg/png/gif/bmp/webp格式的图片,且不超过10MB</div>
|
||||
</el-upload>
|
||||
<div v-if="!showUpload" style="margin-top: 20px;">
|
||||
<div v-for="(file, key) in hadFile1" :key="key" class="file-item">
|
||||
<div class="wrapper">
|
||||
<div class="content">
|
||||
<div v-if="file.suffix==='pdf'" class="icon">
|
||||
<svg-icon icon-class="pdf"/>
|
||||
</div>
|
||||
<div v-else-if="file.suffix==='docx'||file.suffix === 'doc'" class="icon">
|
||||
<svg-icon icon-class="doc"/>
|
||||
</div>
|
||||
<div v-else-if="file.suffix==='xlsx' || file.suffix === 'xls'" class="icon">
|
||||
<svg-icon icon-class="excel"/>
|
||||
</div>
|
||||
<div v-else-if="file.suffix==='pptx' || file.suffix === 'ppt'" class="icon">
|
||||
<svg-icon icon-class="ppt"/>
|
||||
</div>
|
||||
<div v-else-if="file.suffix==='jpg' || file.suffix === 'jpeg'|| file.suffix === 'png' || file.suffix === 'gif' || file.suffix === 'bmp' || file.suffix === 'webp'" class="icon">
|
||||
<svg-icon icon-class="pic"/>
|
||||
</div>
|
||||
<div v-else class="icon">
|
||||
<svg-icon icon-class="file"/>
|
||||
</div>
|
||||
<a id="appUrl1" :href="file.url" target="view_window">
|
||||
<div class="info">{{ file.name }}</div>
|
||||
</a>
|
||||
<el-button
|
||||
type="text"
|
||||
size="mini"
|
||||
icon="el-icon-delete"
|
||||
style="margin-left: 10px; color: #f56c6c;"
|
||||
@click="showDeleteDialogFunc(file)">删除
|
||||
</el-button>
|
||||
</div>
|
||||
<div v-else-if="file.suffix==='docx'||file.suffix === 'doc'" class="icon">
|
||||
<svg-icon icon-class="doc"/>
|
||||
</div>
|
||||
<div v-else-if="file.suffix==='xlsx' || file.suffix === 'xls'" class="icon">
|
||||
<svg-icon icon-class="excel"/>
|
||||
</div>
|
||||
<div v-else-if="file.suffix==='pptx' || file.suffix === 'ppt'" class="icon">
|
||||
<svg-icon icon-class="ppt"/>
|
||||
</div>
|
||||
<div v-else-if="file.suffix==='jpg' || file.suffix === 'jpeg'|| file.suffix === 'png'" class="icon">
|
||||
<svg-icon icon-class="pic"/>
|
||||
</div>
|
||||
<div v-else class="icon">
|
||||
<svg-icon icon-class="file"/>
|
||||
</div>
|
||||
<a id="appUrl1" :href="file.url" target="view_window">
|
||||
<div class="info">{{ file.name }}</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="showUpload" slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" size="small" @click="submitUpload">确认上传</el-button>
|
||||
<el-button size="small" @click="cancelUpload">取消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- 删除原因弹窗 -->
|
||||
<el-dialog
|
||||
v-el-drag-dialog
|
||||
:visible.sync="showDeleteDialog"
|
||||
title="删除文件"
|
||||
width="400px">
|
||||
<div style="margin-bottom: 15px;">
|
||||
<p>确定删除文件:{{ currentDeleteFile ? currentDeleteFile.name : '' }}</p>
|
||||
</div>
|
||||
<el-form :model="{ deleteReason: deleteReason }" label-width="80px">
|
||||
<el-form-item label="删除原因:">
|
||||
<el-input
|
||||
v-model="deleteReason"
|
||||
type="textarea"
|
||||
rows="3"
|
||||
placeholder="请输入删除原因"
|
||||
required
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="confirmDelete">确认删除</el-button>
|
||||
<el-button @click="cancelDelete">取消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- 资料改动记录弹窗 -->
|
||||
<el-dialog
|
||||
v-el-drag-dialog
|
||||
:visible.sync="showChangeLogDialog"
|
||||
title="资料改动记录"
|
||||
width="800px">
|
||||
<el-table
|
||||
:data="changeLogData"
|
||||
border
|
||||
size="small">
|
||||
<el-table-column label="操作时间" width="180" align="center" prop="修改时间" />
|
||||
<el-table-column label="操作人" width="120" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ getPersonName(scope.row.修改人) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="文件" width="200" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.name }}{{ scope.row.suffix ? '.' + scope.row.suffix : '' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作原因" align="center" prop="修改原因" />
|
||||
</el-table>
|
||||
</el-dialog>
|
||||
<el-dialog v-el-drag-dialog :visible.sync="dialogFormVisibleHistoricalOrders" center width="1230px">
|
||||
<el-table
|
||||
@@ -1406,12 +1499,33 @@
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-dialog>
|
||||
<!-- 技术备注编辑弹窗 -->
|
||||
<el-dialog
|
||||
v-el-drag-dialog
|
||||
:visible.sync="showTechnicalRemarkDialog"
|
||||
title="编辑技术备注"
|
||||
width="500px">
|
||||
<el-form>
|
||||
<el-form-item label="技术备注">
|
||||
<el-input
|
||||
v-model="technicalRemarkContent"
|
||||
type="textarea"
|
||||
rows="5"
|
||||
placeholder="请输入技术备注"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="showTechnicalRemarkDialog = false">取消</el-button>
|
||||
<el-button type="primary" @click="saveTechnicalRemark">保存</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapGetters } from 'vuex'
|
||||
import request, { MESDownloadFile } from '@/utils/request'
|
||||
import request, { MESDownloadFile, MESUploadFileProject } from '@/utils/request'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -1505,6 +1619,25 @@ export default {
|
||||
dialogVisible1: false,
|
||||
hadFile1: [],
|
||||
dialogName: true,
|
||||
// 图片上传相关
|
||||
showUpload: false,
|
||||
uploadAction: '',
|
||||
uploadData: {},
|
||||
uploadFileList: [],
|
||||
currentProjectValue: '',
|
||||
// 删除原因相关
|
||||
deleteReason: '',
|
||||
showDeleteDialog: false,
|
||||
currentDeleteFile: null,
|
||||
// 资料改动记录
|
||||
showChangeLogDialog: false,
|
||||
changeLogData: [],
|
||||
people: [],
|
||||
// 技术备注
|
||||
showTechnicalRemarkDialog: false,
|
||||
currentTechnicalRemarkRow: null,
|
||||
technicalRemarkContent: '',
|
||||
|
||||
CentralInternalCooling: [],
|
||||
TypeOfProtection: [],
|
||||
installationDirection: [],
|
||||
@@ -1526,6 +1659,7 @@ export default {
|
||||
created() {
|
||||
this.fetchData()
|
||||
this.getPeopleID()
|
||||
this.getPeople()
|
||||
},
|
||||
methods: {
|
||||
getMotorWheel() {
|
||||
@@ -1572,6 +1706,9 @@ export default {
|
||||
},
|
||||
ContractPhoto(row) {
|
||||
this.hadFile1 = []
|
||||
this.currentProjectValue = row.项目流水号
|
||||
this.showUpload = false
|
||||
this.uploadFileList = []
|
||||
var param = []
|
||||
param[0] = ['项目流水号', row.项目流水号]
|
||||
var Data = this.CreateData('11', 'PDM_项目名称_客户提供资料_查询数据', param)
|
||||
@@ -1591,6 +1728,159 @@ export default {
|
||||
})
|
||||
this.dialogVisible1 = true
|
||||
},
|
||||
// 打开上传界面
|
||||
batchImportOfDrawings() {
|
||||
this.showUpload = true
|
||||
this.uploadAction = `${MESUploadFileProject}?&num=1&tableName=PDM_项目名称_客户提供资料&type=1&UploaderName=${this.id}&projectValue=${this.currentProjectValue}`
|
||||
this.uploadData = {
|
||||
num: 1,
|
||||
tableName: 'PDM_项目名称_客户提供资料',
|
||||
type: 1,
|
||||
UploaderName: this.id,
|
||||
projectValue: this.currentProjectValue
|
||||
}
|
||||
},
|
||||
// 文件超出限制
|
||||
handleExceed() {
|
||||
this.$message.warning('最多只能上传10个文件')
|
||||
},
|
||||
// 上传成功
|
||||
handleUploadSuccess(response, file, fileList) {
|
||||
this.$message.success(`${file.name} 上传成功`)
|
||||
},
|
||||
// 上传失败
|
||||
handleUploadError(err, file) {
|
||||
this.$message.error(`${file.name} 上传失败`)
|
||||
console.error(err)
|
||||
},
|
||||
// 确认上传
|
||||
submitUpload() {
|
||||
this.$refs.upload.submit()
|
||||
setTimeout(() => {
|
||||
this.showUpload = false
|
||||
this.uploadFileList = []
|
||||
// 刷新文件列表
|
||||
this.refreshFileList()
|
||||
}, 1000)
|
||||
},
|
||||
// 取消上传
|
||||
cancelUpload() {
|
||||
this.showUpload = false
|
||||
this.uploadFileList = []
|
||||
this.$refs.upload.clearFiles()
|
||||
},
|
||||
// 刷新文件列表
|
||||
refreshFileList() {
|
||||
this.hadFile1 = []
|
||||
var param = []
|
||||
param[0] = ['项目流水号', this.currentProjectValue]
|
||||
var Data = this.CreateData('11', 'PDM_项目名称_客户提供资料_查询数据', param)
|
||||
this.ExecDatabase(Data).then(res => {
|
||||
if (res.data.length > 0) {
|
||||
const server = `${MESDownloadFile}`.split('/')
|
||||
res.data.map(item => {
|
||||
this.hadFile1.push({
|
||||
url: `http://${server[2]}/webpage/part/${item.uid}.${item.suffix}`,
|
||||
name: `${item.name}.${item.suffix}`,
|
||||
suffix: item.suffix,
|
||||
id: item.num
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 打开删除原因弹窗
|
||||
showDeleteDialogFunc(file) {
|
||||
this.currentDeleteFile = file
|
||||
this.deleteReason = ''
|
||||
this.showDeleteDialog = true
|
||||
},
|
||||
// 确认删除
|
||||
confirmDelete() {
|
||||
if (!this.deleteReason) {
|
||||
this.$message.error('请输入删除原因')
|
||||
return
|
||||
}
|
||||
var param = []
|
||||
var currentTime = new Date().toISOString().slice(0, 19).replace('T', ' ')
|
||||
param[0] = ['num', this.currentDeleteFile.id]
|
||||
param[1] = ['修改原因', this.deleteReason]
|
||||
param[2] = ['修改时间', currentTime]
|
||||
param[3] = ['修改人', this.id]
|
||||
var Data = this.CreateData('12', 'PDM_项目名称_客户提供资料_删除数据', param)
|
||||
this.ExecDatabase(Data).then(res => {
|
||||
console.log(res)
|
||||
if (res.data && res.data[0].result === '1') {
|
||||
this.$message.success('删除成功')
|
||||
// 刷新文件列表
|
||||
this.refreshFileList()
|
||||
this.showDeleteDialog = false
|
||||
} else {
|
||||
this.$message.error('删除失败')
|
||||
}
|
||||
}).catch(() => {
|
||||
this.$message.error('删除失败')
|
||||
})
|
||||
},
|
||||
// 取消删除
|
||||
cancelDelete() {
|
||||
this.showDeleteDialog = false
|
||||
this.currentDeleteFile = null
|
||||
this.deleteReason = ''
|
||||
},
|
||||
getPeople() {
|
||||
var param = []
|
||||
var Data = this.CreateData('11', '人员信息_查询', param)
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.people.push({
|
||||
label: response.data[i].姓名,
|
||||
value: response.data[i].人员编号
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
getPersonName(value) {
|
||||
const person = this.people.find(item => item.value === value)
|
||||
return person ? person.label : value
|
||||
},
|
||||
// 编辑技术备注
|
||||
editTechnicalRemark(row) {
|
||||
this.currentTechnicalRemarkRow = row
|
||||
this.technicalRemarkContent = row.技术备注 || ''
|
||||
this.showTechnicalRemarkDialog = true
|
||||
},
|
||||
// 保存技术备注
|
||||
saveTechnicalRemark() {
|
||||
var param = []
|
||||
param[0] = ['项目流水号', this.currentTechnicalRemarkRow.项目流水号]
|
||||
param[1] = ['技术备注', this.technicalRemarkContent]
|
||||
var Data = this.CreateData('12', '订单管理_订单信息_技术备注_添加', param)
|
||||
this.ExecDatabase(Data).then(res => {
|
||||
if (res.data && res.data.length > 0) {
|
||||
this.$message.success('技术备注保存成功')
|
||||
this.searchTable()
|
||||
} else {
|
||||
this.$message.error('技术备注保存失败')
|
||||
}
|
||||
})
|
||||
this.showTechnicalRemarkDialog = false
|
||||
},
|
||||
// 打开资料改动记录弹窗
|
||||
showChangeLogDialogFunc() {
|
||||
this.changeLogData = []
|
||||
var param = []
|
||||
param[0] = ['项目流水号', this.currentProjectValue]
|
||||
var Data = this.CreateData('11', 'PDM_项目名称_客户提供资料_历史数据_查询', param)
|
||||
this.ExecDatabase(Data).then(res => {
|
||||
if (res.data && res.data.length > 0) {
|
||||
this.changeLogData = res.data
|
||||
}
|
||||
this.showChangeLogDialog = true
|
||||
}).catch(() => {
|
||||
this.$message.error('获取改动记录失败')
|
||||
})
|
||||
},
|
||||
sortChange(column) {
|
||||
if (column.prop === '状态') {
|
||||
this.orderName = 1
|
||||
@@ -1686,6 +1976,7 @@ export default {
|
||||
分配期限: response.data[i].分配期限,
|
||||
被分配人员姓名: response.data[i].被分配人员姓名,
|
||||
被分配人员编号_before: response.data[i].被分配人员编号,
|
||||
技术备注: response.data[i].技术备注,
|
||||
edit: false
|
||||
})
|
||||
}
|
||||
@@ -2528,16 +2819,18 @@ export default {
|
||||
<style scoped>
|
||||
.wrapper {
|
||||
width: 90%;
|
||||
height: 50px;
|
||||
min-height: 50px;
|
||||
overflow: hidden;
|
||||
border: 1px solid #b8c7d9;
|
||||
/*float: left;*/
|
||||
margin: 10px;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.content {
|
||||
position: relative;
|
||||
padding: 8px 8px 0 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.action {
|
||||
@@ -2567,17 +2860,37 @@ a {
|
||||
height: 30px;
|
||||
display: inline-block;
|
||||
margin-right: 7px;
|
||||
margin-top: 2px;
|
||||
font-size: 26px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.info {
|
||||
width: 160px;
|
||||
height: 50px;
|
||||
position: absolute;
|
||||
left: 44px;
|
||||
flex: 1;
|
||||
min-width: 150px;
|
||||
line-height: 30px;
|
||||
display: inline-block;
|
||||
color: #999;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
/* 文件列表样式 */
|
||||
.file-item {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
/* 上传组件样式 */
|
||||
/deep/ .el-upload--picture-card {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
line-height: 100px;
|
||||
}
|
||||
|
||||
/deep/ .el-upload-list--picture-card .el-upload-list__item {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
.dialog-footer {
|
||||
text-align: right;
|
||||
margin-top: 20px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<el-input
|
||||
v-model="partsName"
|
||||
size="small"
|
||||
placeholder="零件名称"
|
||||
placeholder="图号"
|
||||
clearable
|
||||
style="float: left;width: 200px"/>
|
||||
<el-button
|
||||
@@ -29,7 +29,7 @@
|
||||
plain
|
||||
@click="deletePart">删除
|
||||
</el-button>
|
||||
<el-upload
|
||||
<!-- <el-upload
|
||||
:action="action"
|
||||
:on-success="uploadSuccess"
|
||||
:on-error="uploadFailure"
|
||||
@@ -54,7 +54,7 @@
|
||||
icon="el-icon-upload2"
|
||||
plain
|
||||
@click="openDialog">总图
|
||||
</el-button>
|
||||
</el-button> -->
|
||||
</div>
|
||||
<div style="margin-top: 10px">
|
||||
<el-table
|
||||
@@ -96,6 +96,9 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-tooltip :open-delay="700" effect="dark" content="PLM" placement="top">
|
||||
<el-button type="text" icon="el-icon-connection" size="mini" @click="handlePLM(scope.row)">PLM</el-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip :open-delay="700" effect="dark" content="查看或删除图纸" placement="top">
|
||||
<el-button type="text" icon="el-icon-picture-outline" size="mini" @click="getNum(scope.row)"/>
|
||||
</el-tooltip>
|
||||
@@ -126,7 +129,7 @@
|
||||
size="small"
|
||||
@clear="clearData"
|
||||
@change="getData"/>
|
||||
<el-upload
|
||||
<!-- <el-upload
|
||||
:action="action2"
|
||||
:on-success="uploadSuccess2"
|
||||
:on-error="uploadFailure2"
|
||||
@@ -142,7 +145,7 @@
|
||||
plain
|
||||
@click="batchImportOfDrawings1">产品图
|
||||
</el-button>
|
||||
</el-upload>
|
||||
</el-upload> -->
|
||||
</div>
|
||||
<div style="margin-top: 10px">
|
||||
<el-table
|
||||
@@ -607,6 +610,29 @@ export default {
|
||||
})
|
||||
},
|
||||
// 查看零件图
|
||||
handlePLM(row) {
|
||||
const msgId = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
|
||||
const r = Math.random() * 16 | 0
|
||||
const v = c === 'x' ? r : (r & 0x3 | 0x8)
|
||||
return v.toString(16)
|
||||
})
|
||||
request({
|
||||
url: 'http://192.168.1.27:9982/api/GetMaterialDrawingUrl',
|
||||
method: 'post',
|
||||
data: {
|
||||
msgId: msgId,
|
||||
materialCode: row.物料编码
|
||||
}
|
||||
}).then(response => {
|
||||
if (response.data.Code === '200' && response.data.Data.url) {
|
||||
window.open(response.data.Data.url, '_blank')
|
||||
} else {
|
||||
this.$message.warning('PLM未返回有效链接')
|
||||
}
|
||||
}).catch(() => {
|
||||
this.$message.error('PLM请求发送失败')
|
||||
})
|
||||
},
|
||||
getNum(row) {
|
||||
this.num = row.num
|
||||
this.dialogVisible = true
|
||||
|
||||
@@ -1,10 +1,16 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-card style="height: 850px">
|
||||
<div style="margin-top: 7px; margin-bottom: 7px">
|
||||
<el-card style="height: 850px; display: flex; flex-direction: column;">
|
||||
<div style="margin-top: 7px; margin-bottom: 7px; flex-shrink: 0;">
|
||||
<el-input v-model="materialNameValue" style="width:150px" placeholder="物料名称" size="small" clearable/>
|
||||
<el-input v-model="materialToolValue" style="width:150px" placeholder="图号/型号" size="small" clearable/>
|
||||
<el-select v-model="materialTypeValue" style="width:100px;" placeholder="物料类型" size="small" filterable clearable>
|
||||
<el-select
|
||||
v-model="materialTypeValue"
|
||||
style="width:100px;"
|
||||
placeholder="物料类型"
|
||||
size="small"
|
||||
filterable
|
||||
clearable>
|
||||
<el-option
|
||||
v-for="item in materialType"
|
||||
:key="item.value"
|
||||
@@ -23,110 +29,221 @@
|
||||
range-separator="~"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"/>
|
||||
<el-button type="primary" plain icon="el-icon-search" size="small" style="margin-left:10px" @click="pageCurrent=1;searchTable()">查询</el-button>
|
||||
<el-button type="distribution" icon="el-icon-plus" size="small" style="margin-left:10px" @click="materialPlus">物料</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-search"
|
||||
size="small"
|
||||
style="margin-left:10px"
|
||||
@click="pageCurrent=1;searchTable()">查询
|
||||
</el-button>
|
||||
<!-- <el-button type="distribution" icon="el-icon-plus" size="small" style="margin-left:10px" @click="materialPlus">
|
||||
物料
|
||||
</el-button> -->
|
||||
<el-badge :value="value" :max="99" class="item">
|
||||
<el-button type="warning" plain size="small" style="margin-left:10px" @click="purchaseChangeRequest">采购变更申请</el-button>
|
||||
<el-button type="warning" plain size="small" style="margin-left:10px" @click="purchaseChangeRequest">
|
||||
采购变更申请
|
||||
</el-button>
|
||||
</el-badge>
|
||||
<el-button type="info" icon="el-icon-edit" plain size="small" style="margin-left:10px" @click="maintainMaterial">材料维护</el-button>
|
||||
<el-button type="success" icon="el-icon-upload2" plain size="small" style="margin-left:10px" @click="handleExcel">批量导入</el-button>
|
||||
<el-checkbox v-model="checked" style="margin-left: 50px" @change="searchTable()">专机</el-checkbox>
|
||||
<!-- <el-button
|
||||
type="info"
|
||||
icon="el-icon-edit"
|
||||
plain
|
||||
size="small"
|
||||
style="margin-left:10px"
|
||||
@click="maintainMaterial">材料维护
|
||||
</el-button> -->
|
||||
<el-button type="info" icon="el-icon-edit" plain size="small" style="margin-left:10px" @click="updateUnit">
|
||||
单位维护
|
||||
</el-button>
|
||||
<!-- <el-button
|
||||
type="success"
|
||||
icon="el-icon-upload2"
|
||||
plain
|
||||
size="small"
|
||||
style="margin-left:10px"
|
||||
@click="handleExcel">批量导入
|
||||
</el-button> -->
|
||||
<el-button
|
||||
v-show="Number(token)===2"
|
||||
type="success"
|
||||
icon="el-icon-download"
|
||||
plain
|
||||
size="small"
|
||||
style="margin-left:10px"
|
||||
@click="exportTableData">物料导出
|
||||
</el-button>
|
||||
</div>
|
||||
<el-table v-loading="loading" :data="tableData" highlight-current-row border stripe size="small" style="width: 1500px; margin-top: 10px" height="740px" @sort-change="sortChange">
|
||||
<!--<el-table-column align="center" label="照片" width="80">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-popover-->
|
||||
<!-- v-if="scope.row.文件内容 && scope.row.文件内容 !== 'null'"-->
|
||||
<!-- placement="top-start"-->
|
||||
<!-- width="400"-->
|
||||
<!-- trigger="hover">-->
|
||||
<!-- <el-button type="text" style="float:right" @click="deletePhoto(scope.row)">删除</el-button>-->
|
||||
<!-- <el-image :src="scope.row.文件内容 && scope.row.文件内容 !== 'null' ? ('data:image/png;base64,' + scope.row.文件内容) : ''">-->
|
||||
<!-- <div slot="error" class="image-slot">-->
|
||||
<!-- <i class="el-icon-picture-outline"/>-->
|
||||
<!-- </div>-->
|
||||
<!-- </el-image>-->
|
||||
<!-- <el-image slot="reference" :src="scope.row.文件内容 && scope.row.文件内容 !== 'null' ? ('data:image/png;base64,' + scope.row.文件内容) : ''" style="width:43px;margin-top: 7px">-->
|
||||
<!-- <div slot="error" class="image-slot">-->
|
||||
<!-- <i class="el-icon-picture-outline"/>-->
|
||||
<!-- </div>-->
|
||||
<!-- </el-image>-->
|
||||
<!-- </el-popover>-->
|
||||
<!-- <span v-else>—</span>-->
|
||||
<!-- </template>-->
|
||||
<!--</el-table-column>-->
|
||||
<el-table-column width="150px" label="物料编码" align="center" prop="物料编码" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料编码 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column width="170px" label="物料名称" align="center" sortable="名称" prop="名称" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column width="80px" label="物料类型" align="center" prop="物料类型" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料类型 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column width="180px" label="图号/型号" align="center" sortable="代号" prop="代号" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.代号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column width="80px" label="库位" align="center" prop="库位" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.库位 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :width="setColumnWidth('材料')" label="材料" align="center" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.材料 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :width="setColumnWidth('单位')" label="单位" align="center" prop="单位" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.单位 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :width="setColumnWidth('类型')" label="类型" align="center" prop="类型" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.类型名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column width="170px" label="物料说明" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料说明 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :width="setColumnWidth('日期时间')" label="最近修改" align="center" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.修改日期 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :width="setColumnWidth('姓名')" label="修改人" align="center" prop="修改人" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.修改人 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" icon="el-icon-edit" size="mini" style="margin-right: 10px" @click="handleEdit(scope.row)"/>
|
||||
<el-button type="text" icon="el-icon-delete" size="mini" style="margin-right: 10px" @click="handleDelete(scope.row)"/>
|
||||
<el-tooltip :open-delay="700" effect="dark" content="上传照片" placement="top">
|
||||
<el-button :disabled="scope.row.文件内容 && scope.row.文件内容 !== 'null'" type="text" style="margin-right: 10px" icon="el-icon-upload" size="mini" @click="handlePicture(scope.row)"/>
|
||||
</el-tooltip>
|
||||
<el-tooltip :open-delay="700" effect="dark" content="查看照片" placement="top">
|
||||
<el-button :disabled="scope.row.图片数量 == 0" type="text" icon="el-icon-picture-outline-round" size="mini" @click="getImageList(scope.row)"/>
|
||||
</el-tooltip>
|
||||
<el-tooltip :open-delay="700" effect="dark" content="查看图纸" placement="top">
|
||||
<el-button :disabled="scope.row.文件数量 == 0" type="text" icon="el-icon-picture-outline" size="mini" @click="getNum(scope.row)"/>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="block" style="margin-top: 10px;">
|
||||
<div style="flex: 1;">
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="tableData"
|
||||
:max-height="750"
|
||||
highlight-current-row
|
||||
border
|
||||
stripe
|
||||
size="small"
|
||||
style="width: 1650px; margin-top: 10px; overflow-x: auto; display: block"
|
||||
@sort-change="sortChange">
|
||||
<!--<el-table-column align="center" label="照片" width="80">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-popover-->
|
||||
<!-- v-if="scope.row.文件内容 && scope.row.文件内容 !== 'null'"-->
|
||||
<!-- placement="top-start"-->
|
||||
<!-- width="400"-->
|
||||
<!-- trigger="hover">-->
|
||||
<!-- <el-button type="text" style="float:right" @click="deletePhoto(scope.row)">删除</el-button>-->
|
||||
<!-- <el-image :src="scope.row.文件内容 && scope.row.文件内容 !== 'null' ? ('data:image/png;base64,' + scope.row.文件内容) : ''">-->
|
||||
<!-- <div slot="error" class="image-slot">-->
|
||||
<!-- <i class="el-icon-picture-outline"/>-->
|
||||
<!-- </div>-->
|
||||
<!-- </el-image>-->
|
||||
<!-- <el-image slot="reference" :src="scope.row.文件内容 && scope.row.文件内容 !== 'null' ? ('data:image/png;base64,' + scope.row.文件内容) : ''" style="width:43px;margin-top: 7px">-->
|
||||
<!-- <div slot="error" class="image-slot">-->
|
||||
<!-- <i class="el-icon-picture-outline"/>-->
|
||||
<!-- </div>-->
|
||||
<!-- </el-image>-->
|
||||
<!-- </el-popover>-->
|
||||
<!-- <span v-else>—</span>-->
|
||||
<!-- </template>-->
|
||||
<!--</el-table-column>-->
|
||||
|
||||
<el-table-column width="150px" label="物料编码" align="center" prop="物料编码" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料编码 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="170px"
|
||||
label="物料名称"
|
||||
align="center"
|
||||
sortable="名称"
|
||||
prop="名称"
|
||||
show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="180px"
|
||||
label="图号/型号"
|
||||
align="center"
|
||||
sortable="代号"
|
||||
prop="代号"
|
||||
show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.代号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column width="80px" label="规格" align="center" prop="规格" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.规格 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :width="setColumnWidth('材料')" label="材料" align="center" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.材料 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :width="setColumnWidth('单位')" label="单位" align="center" prop="单位" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.单位 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :width="setColumnWidth('类型')" label="类型" align="center" prop="类型" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.类型名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column width="80px" label="物料类型" align="center" prop="物料类型" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料类型 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column width="80px" label="库位" align="center" prop="库位" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.库位 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column width="170px" label="物料说明" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料说明 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column width="150px" label="曾用物料编码" align="center" prop="物料编码" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.曾用物料编码 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :width="setColumnWidth('日期时间')" label="最近修改" align="center" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.修改日期 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
:width="setColumnWidth('姓名')"
|
||||
label="修改人"
|
||||
align="center"
|
||||
prop="修改人"
|
||||
show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.修改人 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :width="setColumnWidth('日期时间')" label="创建时间" align="center" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.操作日期 && scope.row.操作日期.split(' ')[0] || '' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :width="setColumnWidth('姓名')" label="创建人" align="center" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.Expr1 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" fixed="right" width="200px">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
style="margin-right: 10px"
|
||||
@click="handleEdit(scope.row)"/>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
style="margin-right: 10px"
|
||||
@click="handleDelete(scope.row)"/>
|
||||
<el-tooltip :open-delay="700" effect="dark" content="上传照片" placement="top">
|
||||
<el-button
|
||||
:disabled="scope.row.文件内容 && scope.row.文件内容 !== 'null'"
|
||||
type="text"
|
||||
style="margin-right: 10px"
|
||||
icon="el-icon-upload"
|
||||
size="mini"
|
||||
@click="handlePicture(scope.row)"/>
|
||||
</el-tooltip>
|
||||
<el-tooltip :open-delay="700" effect="dark" content="查看照片" placement="top">
|
||||
<el-button
|
||||
:disabled="scope.row.图片数量 == 0"
|
||||
type="text"
|
||||
icon="el-icon-picture-outline-round"
|
||||
size="mini"
|
||||
@click="getImageList(scope.row)"/>
|
||||
</el-tooltip>
|
||||
<el-tooltip :open-delay="700" effect="dark" content="查看图纸" placement="top">
|
||||
<el-button
|
||||
:disabled="scope.row.文件数量 == 0"
|
||||
type="text"
|
||||
icon="el-icon-picture-outline"
|
||||
size="mini"
|
||||
@click="getNum(scope.row)"/>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<div class="block" style="margin-top: 10px; flex-shrink: 0;">
|
||||
<el-pagination
|
||||
:current-page="pageCurrent"
|
||||
:page-sizes="[10, 20, 30, 40, 100]"
|
||||
@@ -137,7 +254,13 @@
|
||||
@current-change="handleCurrentChanges"/>
|
||||
</div>
|
||||
<el-dialog v-el-drag-dialog :visible.sync="dialogFormVisible" :title="title" center width="440px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-position="center" label-width="100px" class="demo-ruleForm">
|
||||
<el-form
|
||||
ref="form"
|
||||
:model="form"
|
||||
:rules="rules"
|
||||
label-position="center"
|
||||
label-width="100px"
|
||||
class="demo-ruleForm">
|
||||
<el-form-item label="物料名称" prop="物料名称">
|
||||
<el-input v-model="form.物料名称" style="width:250px;" placeholder="物料名称" size="small" clearable/>
|
||||
</el-form-item>
|
||||
@@ -181,7 +304,13 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="物料库" prop="物料库">
|
||||
<el-select v-model="form.物料库" style="width:250px;" placeholder="物料库" size="small" filterable clearable>
|
||||
<el-select
|
||||
v-model="form.物料库"
|
||||
style="width:250px;"
|
||||
placeholder="物料库"
|
||||
size="small"
|
||||
filterable
|
||||
clearable>
|
||||
<el-option
|
||||
v-for="item in checkeds"
|
||||
:key="item.value"
|
||||
@@ -195,12 +324,31 @@
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button size="small" style="width: 76px" @click="callOff('form')">取消</el-button>
|
||||
<el-button v-show="title==='新增物料'" type="distribution" size="small" style="width: 76px" @click="submitOrder('form')">确定</el-button>
|
||||
<el-button v-show="title==='编辑物料'" type="distribution" size="small" style="width: 76px" @click="submitUpdate('form')">确定</el-button>
|
||||
<el-button
|
||||
v-show="title==='新增物料'"
|
||||
type="distribution"
|
||||
size="small"
|
||||
style="width: 76px"
|
||||
@click="submitOrder('form')">确定
|
||||
</el-button>
|
||||
<el-button
|
||||
v-show="title==='编辑物料'"
|
||||
type="distribution"
|
||||
size="small"
|
||||
style="width: 76px"
|
||||
@click="submitUpdate('form')">确定
|
||||
</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<el-dialog v-el-drag-dialog :visible.sync="dialogFormVisible1" width="1283px">
|
||||
<el-table :data="tableData1" highlight-current-row border stripe size="small" style="width: 1241px; margin-top: 10px" height="540px">
|
||||
<el-table
|
||||
:data="tableData1"
|
||||
highlight-current-row
|
||||
border
|
||||
stripe
|
||||
size="small"
|
||||
style="width: 1241px; margin-top: 10px"
|
||||
height="540px">
|
||||
<el-table-column :width="setColumnWidth('序号')" label="序号" type="index" align="center"/>
|
||||
<el-table-column :width="setColumnWidth('订单编号')" label="订单编号" align="center" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
@@ -248,21 +396,44 @@
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-circle-check"
|
||||
@click="agree(scope.row)">同意</el-button>
|
||||
@click="agree(scope.row)">同意
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-circle-close"
|
||||
@click="disagree(scope.row)">不同意</el-button>
|
||||
@click="disagree(scope.row)">不同意
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-dialog>
|
||||
<el-dialog v-el-drag-dialog :visible.sync="dialogFormVisible2" width="405px">
|
||||
<el-input v-model="material" style="width:150px;margin-left: 10px" placeholder="材料名称" size="small" clearable/>
|
||||
<el-button type="primary" plain icon="el-icon-search" size="small" style="margin-left:15px" @click="pageCurrent1=1;searchTable2()">查询</el-button>
|
||||
<el-button type="distribution" icon="el-icon-plus" size="small" style="margin-left:15px" @click="addMaterial">材料</el-button>
|
||||
<el-table :data="tableData2" highlight-current-row border stripe size="small" style="width: 341px; margin-top: 10px;margin-left: 10px" height="402px">
|
||||
<el-input
|
||||
v-model="material"
|
||||
style="width:150px;margin-left: 10px"
|
||||
placeholder="材料名称"
|
||||
size="small"
|
||||
clearable/>
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-search"
|
||||
size="small"
|
||||
style="margin-left:15px"
|
||||
@click="pageCurrent1=1;searchTable2()">查询
|
||||
</el-button>
|
||||
<el-button type="distribution" icon="el-icon-plus" size="small" style="margin-left:15px" @click="addMaterial">
|
||||
材料
|
||||
</el-button>
|
||||
<el-table
|
||||
:data="tableData2"
|
||||
highlight-current-row
|
||||
border
|
||||
stripe
|
||||
size="small"
|
||||
style="width: 341px; margin-top: 10px;margin-left: 10px"
|
||||
height="402px">
|
||||
<el-table-column :width="setColumnWidth('序号')" label="序号" type="index" align="center"/>
|
||||
<el-table-column label="材料名称" align="center" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
@@ -296,19 +467,68 @@
|
||||
@current-change="handleCurrentChanges1"/>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<el-dialog v-el-drag-dialog :visible.sync="dialogVisible3" width="405px">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-circle-plus-outline"
|
||||
size="small"
|
||||
style="margin-left:15px"
|
||||
@click="addUnit()">添加
|
||||
</el-button>
|
||||
<el-table
|
||||
:data="unit"
|
||||
highlight-current-row
|
||||
border
|
||||
stripe
|
||||
size="small"
|
||||
style="width: 341px; margin-top: 10px;margin-left: 10px"
|
||||
height="402px">
|
||||
<el-table-column label="序号" type="index" align="center"/>
|
||||
<el-table-column label="单位" align="center" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.label }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column width="100px" label="操作" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="deleteUnit(scope.row)"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-dialog>
|
||||
<el-dialog v-el-drag-dialog :visible.sync="dialogFormVisible3" :title="title1" center width="360px">
|
||||
<el-form ref="form1" :model="form1" :rules="rules1" label-position="center" label-width="100px" class="demo-ruleForm">
|
||||
<el-form
|
||||
ref="form1"
|
||||
:model="form1"
|
||||
:rules="rules1"
|
||||
label-position="center"
|
||||
label-width="100px"
|
||||
class="demo-ruleForm">
|
||||
<el-form-item label="材料名称" prop="材料名称">
|
||||
<el-input v-model="form1.材料名称" style="width:150px;" placeholder="材料名称" size="small" clearable/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button size="small" @click="callOff1('form')">取消</el-button>
|
||||
<el-button v-show="title1==='新增材料'" type="distribution" size="small" @click="submitAdd('form1')">确定</el-button>
|
||||
<el-button v-show="title1==='编辑材料'" type="distribution" size="small" @click="submitUpdate1('form1')">确定</el-button>
|
||||
<el-button v-show="title1==='新增材料'" type="distribution" size="small" @click="submitAdd('form1')">确定
|
||||
</el-button>
|
||||
<el-button v-show="title1==='编辑材料'" type="distribution" size="small" @click="submitUpdate1('form1')">
|
||||
确定
|
||||
</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<el-dialog v-el-drag-dialog :visible.sync="dialogFormVisiblePicture" title="上传图片" center style="height: 1000px" width="17%">
|
||||
<el-dialog
|
||||
v-el-drag-dialog
|
||||
:visible.sync="dialogFormVisiblePicture"
|
||||
title="上传图片"
|
||||
center
|
||||
style="height: 1000px"
|
||||
width="17%">
|
||||
<el-upload
|
||||
id="invoiceScan"
|
||||
ref="upload"
|
||||
@@ -329,16 +549,24 @@
|
||||
<el-button type="primary" style="width: 70px" @click="submitPicture()">确定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<el-dialog v-el-drag-dialog :visible.sync="dialogFormVisibleExcel" title="批量导入" center style="height: 800px" width="40%">
|
||||
<!-- <el-dialog
|
||||
v-el-drag-dialog
|
||||
:visible.sync="dialogFormVisibleExcel"
|
||||
title="批量导入"
|
||||
center
|
||||
style="height: 800px"
|
||||
width="40%">
|
||||
<upload-excel-component style="margin-left: 8%" @on-selected-file="selected"/>
|
||||
<div style="margin-left: 38%">
|
||||
<span v-show="worksheet.length > 1" style="cursor: pointer;width: 50px;" @click="removeAll"><i class="el-icon-close"/></span>
|
||||
<span v-show="worksheet.length > 1" style="cursor: pointer;width: 50px;" @click="removeAll"><i
|
||||
class="el-icon-close"/></span>
|
||||
<el-upload :on-remove="handleRemove" :file-list="itemFile" style="width: 220px" action=""/>
|
||||
</div>
|
||||
<div v-if="worksheet.length !== 0" style="margin: 3px 0 0 40%">
|
||||
<el-button icon="el-icon-upload2" type="primary" size="small" @click="basicPartsToSQL">导入到数据库</el-button>
|
||||
</div>
|
||||
<!--<el-button :disabled="disabled" icon="el-icon-upload" type="success" style="margin-left: 78%" plain size="small" @click="transferData">上传</el-button>
|
||||
<el-button icon="el-icon-upload2" type="primary" size="small" @click="basicPartsToSQL">导入到数据库
|
||||
</el-button>
|
||||
</div> -->
|
||||
<!--<el-button :disabled="disabled" icon="el-icon-upload" type="success" style="margin-left: 78%" plain size="small" @click="transferData">上传</el-button>
|
||||
<el-button icon="el-icon-delete" type="danger" plain size="small" @click="allDelete">全部删除</el-button>
|
||||
<el-table v-loading="loading3" :data="tableData3" highlight-current-row border stripe size="small" style="width: 900px; margin-top: 10px" height="720px">
|
||||
<el-table-column width="60px" label="序号" align="center" type="index"/>
|
||||
@@ -393,32 +621,50 @@
|
||||
@size-change="handleSizeChanges"
|
||||
@current-change="handleCurrentChanges"/>
|
||||
</div>-->
|
||||
</el-dialog>
|
||||
<!-- </el-dialog> -->
|
||||
<el-dialog v-el-drag-dialog :visible.sync="dialogVisible" width="350px">
|
||||
<div v-for="(file, key) in hadFile" :key="key">
|
||||
<div class="wrapper">
|
||||
<div class="content">
|
||||
<div v-if="file.suffix==='pdf'" class="icon"><svg-icon icon-class="pdf" /></div>
|
||||
<div v-else-if="file.suffix==='docx'||file.suffix === 'doc'" class="icon"><svg-icon icon-class="doc" /></div>
|
||||
<div v-else-if="file.suffix==='xlsx' || file.suffix === 'xls'" class="icon"><svg-icon icon-class="excel" /></div>
|
||||
<div v-else-if="file.suffix==='pptx' || file.suffix === 'ppt'" class="icon"><svg-icon icon-class="ppt" /></div>
|
||||
<div v-else-if="file.suffix==='jpg' || file.suffix === 'jpeg'|| file.suffix === 'png'" class="icon"><svg-icon icon-class="pic" /></div>
|
||||
<div v-else class="icon"><svg-icon icon-class="file" /></div>
|
||||
<a id="appUrl" :href="file.url" target="view_window"><div class="info">{{ file.name }}</div></a>
|
||||
<div v-if="file.suffix==='pdf'" class="icon">
|
||||
<svg-icon icon-class="pdf"/>
|
||||
</div>
|
||||
<div v-else-if="file.suffix==='docx'||file.suffix === 'doc'" class="icon">
|
||||
<svg-icon icon-class="doc"/>
|
||||
</div>
|
||||
<div v-else-if="file.suffix==='xlsx' || file.suffix === 'xls'" class="icon">
|
||||
<svg-icon icon-class="excel"/>
|
||||
</div>
|
||||
<div v-else-if="file.suffix==='pptx' || file.suffix === 'ppt'" class="icon">
|
||||
<svg-icon icon-class="ppt"/>
|
||||
</div>
|
||||
<div v-else-if="file.suffix==='jpg' || file.suffix === 'jpeg'|| file.suffix === 'png'" class="icon">
|
||||
<svg-icon icon-class="pic"/>
|
||||
</div>
|
||||
<div v-else class="icon">
|
||||
<svg-icon icon-class="file"/>
|
||||
</div>
|
||||
<a id="appUrl" :href="file.url" target="view_window">
|
||||
<div class="info">{{ file.name }}</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<el-dialog v-el-drag-dialog :visible.sync="dialogVisible2" title="查看图片">
|
||||
<div style="height: 400px;overflow: auto">
|
||||
<div v-for="(item, key) in imageList" :key="key" >
|
||||
<div v-for="(item, key) in imageList" :key="key">
|
||||
<el-popover
|
||||
v-if="item.文件内容 && item.文件内容 !== 'null'"
|
||||
placement="top-start"
|
||||
width="50"
|
||||
trigger="hover">
|
||||
<el-button type="text" style="float:left" @click="deletePhoto(item)">删除</el-button>
|
||||
<el-image slot="reference" :preview-src-list="imageUrlList" :src="item.文件内容 && item.文件内容 !== 'null' ? ('data:image/png;base64,' + item.文件内容) : ''" style="margin: 5px auto">
|
||||
<el-image
|
||||
slot="reference"
|
||||
:preview-src-list="imageUrlList"
|
||||
:src="item.文件内容 && item.文件内容 !== 'null' ? ('data:image/png;base64,' + item.文件内容) : ''"
|
||||
style="margin: 5px auto">
|
||||
<div slot="error" class="image-slot">
|
||||
<i class="el-icon-picture-outline"/>
|
||||
</div>
|
||||
@@ -456,6 +702,7 @@ export default {
|
||||
dialogFormVisiblePicture: false,
|
||||
dialogVisible: false,
|
||||
dialogVisible2: false,
|
||||
dialogVisible3: false,
|
||||
imageList: [],
|
||||
imageUrlList: [],
|
||||
hadFile: [],
|
||||
@@ -602,6 +849,42 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
exportTableData() {
|
||||
if (this.tableData.length !== 0) {
|
||||
let materialToolValue_check, materialNameValue_check, materialTypeValue_check, dateRange_check, checked_check
|
||||
this.materialToolValue ? materialToolValue_check = 1 : materialToolValue_check = 0
|
||||
this.materialNameValue ? materialNameValue_check = 1 : materialNameValue_check = 0
|
||||
this.materialTypeValue ? materialTypeValue_check = 1 : materialTypeValue_check = 0
|
||||
this.checked ? checked_check = 1 : checked_check = 0
|
||||
this.dateRange ? dateRange_check = 1 : (dateRange_check = 0, this.dateRange = '')
|
||||
if (this.checked === false) {
|
||||
this.checkedsValue = '1'
|
||||
checked_check = '1'
|
||||
} else {
|
||||
this.checkedsValue = '2'
|
||||
}
|
||||
var param = []
|
||||
param[0] = ['物料名称_check', materialNameValue_check]
|
||||
param[1] = ['物料名称', this.materialNameValue]
|
||||
param[2] = ['时间_check', dateRange_check]
|
||||
param[3] = ['开始时间', this.dateRange[0]]
|
||||
param[4] = ['结束时间', this.dateRange[1]]
|
||||
param[5] = ['图号_check', materialToolValue_check]
|
||||
param[6] = ['图号', this.materialToolValue]
|
||||
param[7] = ['类型_check', materialTypeValue_check]
|
||||
param[8] = ['类型', this.materialTypeValue]
|
||||
param[9] = ['排序名称', this.orderName]
|
||||
param[10] = ['排序方式', this.order]
|
||||
param[11] = ['PageCurrent', this.pageCurrent]
|
||||
param[12] = ['PageSize', 9999999]
|
||||
param[13] = ['PageCount', '1111', 'int', '1']
|
||||
param[14] = ['ItemCount', '1111', 'int', '1']
|
||||
var Data = this.CreateData('2001', '物料管理_查询数据_分页', param)
|
||||
this.exportExcel_NPOI(Data)
|
||||
} else {
|
||||
this.$message.warning('暂无数据')
|
||||
}
|
||||
},
|
||||
handleExcel() {
|
||||
this.dialogFormVisibleExcel = true
|
||||
},
|
||||
@@ -678,6 +961,7 @@ export default {
|
||||
var param = []
|
||||
param[0] = ['名称', name]
|
||||
param[1] = ['代号', drawingNum]
|
||||
param[2] = ['类型', type]
|
||||
var Data = this.CreateData('11', '物料标准维护_验证图号', param)
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
if (Number(response.data[0].Column1) === 0) {
|
||||
@@ -795,6 +1079,7 @@ export default {
|
||||
var param = []
|
||||
var Data = this.CreateData('11', '单位_查询数据', param)
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
this.unit = []
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.unit.push({
|
||||
label: response.data[i].单位,
|
||||
@@ -803,6 +1088,51 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
updateUnit() {
|
||||
this.getUnit()
|
||||
this.dialogVisible3 = true
|
||||
},
|
||||
deleteUnit(row) {
|
||||
// 提示是否删除此单位
|
||||
this.$confirm('此操作将永久删除该单位, 是否继续?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
var param = []
|
||||
param[0] = ['单位', row.label]
|
||||
var Data = this.CreateData('12', '单位_删除数据', param)
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
if (response.data[0].result == 1) {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: '删除成功'
|
||||
})
|
||||
this.getUnit()
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
addUnit() {
|
||||
// 弹出输入框 输入单位
|
||||
this.$prompt('请输入单位', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消'
|
||||
}).then(({ value }) => {
|
||||
var param = []
|
||||
param[0] = ['单位', value]
|
||||
var Data = this.CreateData('12', '单位_增加数据', param)
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
if (response.data[0].result == 1) {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: '添加成功'
|
||||
})
|
||||
this.getUnit()
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
materialPlus() {
|
||||
this.title = '新增物料'
|
||||
if (this.$refs['form'] !== undefined) {
|
||||
@@ -826,6 +1156,7 @@ export default {
|
||||
var param = []
|
||||
param[0] = ['名称', this.form.物料名称]
|
||||
param[1] = ['代号', this.form.图号或型号]
|
||||
param[2] = ['类型', this.form.类型]
|
||||
var Data = this.CreateData('11', '物料标准维护_验证图号', param)
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
if (Number(response.data[0].Column1) === 0) {
|
||||
@@ -961,6 +1292,7 @@ export default {
|
||||
var param = []
|
||||
param[0] = ['名称', this.form.物料名称]
|
||||
param[1] = ['代号', this.form.图号或型号]
|
||||
param[2] = ['类型', this.form.类型]
|
||||
var Data = this.CreateData('11', '物料标准维护_验证图号', param)
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
if (Number(response.data[0].Column1) === 0) {
|
||||
@@ -1072,8 +1404,6 @@ export default {
|
||||
param[12] = ['PageSize', this.pageSize]
|
||||
param[13] = ['PageCount', '1111', 'int', '1']
|
||||
param[14] = ['ItemCount', '1111', 'int', '1']
|
||||
param[15] = ['物料库', this.checkedsValue]
|
||||
param[16] = ['物料库_check', checked_check]
|
||||
var Data = this.CreateData('11', '物料管理_查询数据_分页', param)
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
this.tableData = response.data.result
|
||||
@@ -1090,7 +1420,9 @@ export default {
|
||||
}
|
||||
if (column.order === 'ascending') {
|
||||
this.order = 1
|
||||
} else if (column.order === 'descending') { this.order = 2 } else {
|
||||
} else if (column.order === 'descending') {
|
||||
this.order = 2
|
||||
} else {
|
||||
this.order = ''
|
||||
}
|
||||
this.searchTable()
|
||||
@@ -1112,6 +1444,7 @@ export default {
|
||||
this.total1 = response.data.total
|
||||
})
|
||||
},
|
||||
|
||||
addMaterial() {
|
||||
this.title1 = '新增材料'
|
||||
if (this.$refs['form1'] !== undefined) {
|
||||
@@ -1226,59 +1559,66 @@ export default {
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.wrapper{
|
||||
width: 90%;
|
||||
height: 50px;
|
||||
overflow: hidden;
|
||||
border: 1px solid #b8c7d9;
|
||||
/*float: left;*/
|
||||
margin: 10px;
|
||||
}
|
||||
.content{
|
||||
position: relative;
|
||||
padding: 8px 8px 0 8px;
|
||||
}
|
||||
.action{
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
right: 8px;
|
||||
}
|
||||
.delete{
|
||||
padding: 0 5px;
|
||||
border-radius: 3px;
|
||||
color: #0f84b0;
|
||||
font-size: 12px;
|
||||
}
|
||||
.delete:hover{
|
||||
background: -webkit-linear-gradient(top,#0ba9e3,#0099d3);
|
||||
color: #fff;
|
||||
}
|
||||
a{
|
||||
text-decoration: none;
|
||||
}
|
||||
.icon{
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
display: inline-block;
|
||||
margin-right: 7px;
|
||||
margin-top: 2px;
|
||||
font-size: 26px;
|
||||
}
|
||||
.info{
|
||||
width: 160px;
|
||||
height: 50px;
|
||||
position: absolute;
|
||||
left: 44px;
|
||||
line-height: 30px;
|
||||
display: inline-block;
|
||||
color: #999;
|
||||
}
|
||||
.wrapper {
|
||||
width: 90%;
|
||||
height: 50px;
|
||||
overflow: hidden;
|
||||
border: 1px solid #b8c7d9;
|
||||
/*float: left;*/
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
.el-form-item{
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.content {
|
||||
position: relative;
|
||||
padding: 8px 8px 0 8px;
|
||||
}
|
||||
|
||||
.el-pagination .btn-next, .el-pagination .btn-prev{
|
||||
background-color: rgba(255,255,255,.0);
|
||||
}
|
||||
.action {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
right: 8px;
|
||||
}
|
||||
|
||||
.delete {
|
||||
padding: 0 5px;
|
||||
border-radius: 3px;
|
||||
color: #0f84b0;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.delete:hover {
|
||||
background: -webkit-linear-gradient(top, #0ba9e3, #0099d3);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.icon {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
display: inline-block;
|
||||
margin-right: 7px;
|
||||
margin-top: 2px;
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
.info {
|
||||
width: 160px;
|
||||
height: 50px;
|
||||
position: absolute;
|
||||
left: 44px;
|
||||
line-height: 30px;
|
||||
display: inline-block;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.el-form-item {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.el-pagination .btn-next, .el-pagination .btn-prev {
|
||||
background-color: rgba(255, 255, 255, .0);
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -590,6 +590,7 @@ export default {
|
||||
var param = []
|
||||
param[0] = ['名称', this.form.物料名称]
|
||||
param[1] = ['代号', this.form.图号或型号]
|
||||
param[2] = ['类型', this.form.类型]
|
||||
var Data = this.CreateData('11', '物料标准维护_验证图号', param)
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
if (Number(response.data[0].Column1) === 0) {
|
||||
@@ -722,6 +723,7 @@ export default {
|
||||
var param = []
|
||||
param[0] = ['名称', this.form.物料名称]
|
||||
param[1] = ['代号', this.form.图号或型号]
|
||||
param[2] = ['类型', this.form.类型]
|
||||
var Data = this.CreateData('11', '物料标准维护_验证图号', param)
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
if (Number(response.data[0].Column1) === 0) {
|
||||
|
||||
Reference in New Issue
Block a user