1.抛丸反馈增加excle导入方式反馈功能

2.增加物料号和内码导出功能
master
董哲奇 7 months ago
parent 72e7885f43
commit ddc1f15431

@ -80,14 +80,7 @@
</el-col>
</el-row>
<el-row>
<el-col :span="20" >
<span style="width:6%" >作业区:</span>
<el-select v-model="inParam.scdw" placeholder="作业区" clearable style="width: 15%" @change="bzClick">
<el-option
@ -132,11 +125,20 @@
<!-- <el-button type="info" @click="updates('2')" style="width: 5%">批量</el-button>-->
</el-col>
<el-col :span="4" >
<el-form-item style="float: right" >
<el-col :span="16" style="text-align: right">
<el-button type="success" @click="slpgclick"></el-button>
<el-button type="success" @click="saveclick"></el-button>
</el-form-item>
</el-col>
<el-col :span="8" style="text-align: right">
<el-upload :action="uploadAction"
:show-file-list="false"
:before-upload="beforeAvatarUpload"
:data="fileList"
:on-success="handleAvatarSuccess"
:headers="heads">
<el-button type="success" @click="uploadExcel">excel</el-button>
</el-upload>
</el-col>
</el-col>
</el-row>
</el-form>
@ -236,7 +238,8 @@ export default {
},
list: [],
heads: { token: getToken() },
uploadAction: process.env.VUE_APP_BASE_API + '/dmCzplpNew/uploadPl',
uploadAction: process.env.VUE_APP_BASE_API + '/zyjh/pwdr',
fileList: {},
dictData:{},
height: '500px',
projectData:[],
@ -388,12 +391,32 @@ export default {
window.addEventListener('resize', this.getHeight)
this.getHeight()
this.initBase()
},
methods: {
uploadExcel() {
},
beforeAvatarUpload(file) {
//
console.debug(file.type)
const isType = file.type === 'application/vnd.ms-excel'
const isTypeComputer = file.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
const fileType = isType || isTypeComputer
startLoading()
return fileType
},
handleAvatarSuccess(res, file) {
endLoading()
if (res.success) {
this.$message({ message: '导入成功', type: 'success' })
} else {
Message({
message: res.message || 'Error',
type: 'error',
duration: 5 * 1000
})
}
},
headerCellStyle ({ column, columnIndex }) {
if (['pwry','pwpgrq','pwpgry','pwfkry','pwfkrq'].includes(column.property)) {
return {

@ -127,7 +127,6 @@ export default {
}
},
checkboxChange({checked,row}){
console.log(row)
if (!this.privateCheck(checked)){
this.$refs.vxeGrid.setAllCheckboxRow(!checked);
return

@ -94,8 +94,8 @@ export default {
_item[fields[i]]=item[i]
}
_item.序号=index+1
_item.分段=item.fd
_item.套料图号=item.tlth
// _item.=item.fd
// _item.=item.tlth
for (const dw of this.gridOptions.ycldw) {
if (item.dwId===dw.id){
_item.垛位=dw.name

@ -58,7 +58,9 @@ export default function (_height=0) {
{field: 'fd', title: '分段',visible:false},
{field: 'tlth', title: '套料图号',visible:false},
{field: 'wpgg', title: '物品规格', },
{field: '', title: '抛丸',visible:false },
{field: 'wlh', title: '物料号', },
{field: 'nm', title: '内码',visible:false },
{field: '', title: '备注',visible:false },
]
return {

@ -389,6 +389,8 @@ export default {
wpgg:item.wpgg,
sljhrq:item.sljhrq,
qgjhrq:item.qgjhrq,
wlh:item.slwlh,
nm:item.nm,
bfr:that.getCurrentWorker()?.userCode,
type:'YCL'
}

Loading…
Cancel
Save