|
|
|
@ -65,7 +65,6 @@
|
|
|
|
|
:on-change="handleChange"
|
|
|
|
|
:on-success="sucessChange"
|
|
|
|
|
:directory="true"
|
|
|
|
|
:disabled="filedis"
|
|
|
|
|
:show-file-list="false"
|
|
|
|
|
>
|
|
|
|
|
<el-button type="primary" @click="handleAddFolder">选取文件夹</el-button>
|
|
|
|
@ -108,6 +107,7 @@
|
|
|
|
|
highlight-hover-row
|
|
|
|
|
show-overflow
|
|
|
|
|
show-header-overflow
|
|
|
|
|
:header-cell-style="headerCellStyle"
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -132,13 +132,13 @@
|
|
|
|
|
border
|
|
|
|
|
show-header-overflow
|
|
|
|
|
show-overflow
|
|
|
|
|
:align="allAlign"
|
|
|
|
|
:align="center"
|
|
|
|
|
:data="tableupload">
|
|
|
|
|
<vxe-column type="seq" width="50"></vxe-column>
|
|
|
|
|
<vxe-column field="czbh" title="船号" width="150"></vxe-column>
|
|
|
|
|
<vxe-column field="ph" title="批号" width="150"></vxe-column>
|
|
|
|
|
<vxe-column field="type" title="类型"width="150"></vxe-column>
|
|
|
|
|
<vxe-column field="stype" title="小类" width="150"></vxe-column>
|
|
|
|
|
<vxe-column field="type" title="类型"width="150"></vxe-column>
|
|
|
|
|
<vxe-column field="name" title="名称" width="400"></vxe-column>
|
|
|
|
|
</vxe-table>
|
|
|
|
|
<!-- <vxe-list class="my-table-list" height="200" :data="list" >-->
|
|
|
|
@ -245,7 +245,7 @@ import { getToken } from '@/utils/auth'
|
|
|
|
|
import { startLoading, endLoading } from '@/utils'
|
|
|
|
|
import { Message } from 'element-ui'
|
|
|
|
|
export default {
|
|
|
|
|
name:'czplwh',
|
|
|
|
|
name:'Bomwh',
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
optionsstats:[
|
|
|
|
@ -585,11 +585,11 @@ export default {
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
{ field: 'bclq.dcPlZ', title: '批量', width: 100,editRender: { name: 'input' },
|
|
|
|
|
{ field: 'bclq.dcPlZ', title: '批量', width: 100,
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
{ field: 'bclq.dcFdZ', title: '分段', width: 100, editRender: { name: 'input' },
|
|
|
|
|
{ field: 'bclq.dcFdZ', title: '分段', width: 100,
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
@ -623,20 +623,18 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ field: 'bclq.dcZlZ', title: '组立', width: 100,editRender: { name: 'input' },
|
|
|
|
|
{ field: 'bclq.dcZlZ', title: '组立', width: 100,formatter: ['dictFormat','ZLLB'],
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
{ field: 'bclq.lqlbZ', title: '领取类别', width: 100,editRender: { name: 'input' },
|
|
|
|
|
{ field: 'bclq.lqlbZ', title: '领取类别', width: 100,formatter: ['dictFormat','CLlQ'],
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
{ field: 'bclq.zzcjZ', title: '加工跨', width: 100,editRender: { name: 'input' },
|
|
|
|
|
{ field: 'bclq.zzcjZ', title: '加工跨', width: 100,formatter: ['dictFormat','QGKW'],
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ field: 'bclq.wpgg', title: '规格', width: 100,
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
@ -724,7 +722,7 @@ export default {
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
{ field: 'tjb.ylzd1', title: '划线类型', width: 100,editRender: { name: 'input' },
|
|
|
|
|
{ field: 'tjb.ylzd1', title: '划线类型', width: 100,formatter: ['dictFormat','HXLX']
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
@ -732,15 +730,15 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ field: 'tjb.dcZl', title: '组立', width: 100,editRender: { name: 'input' },
|
|
|
|
|
{ field: 'tjb.dcZl', title: '组立', width: 100,formatter: ['dictFormat','ZLLB'],
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
{ field: 'tjb.zzcj', title: '加工跨', width: 100,editRender: { name: 'input' },
|
|
|
|
|
{ field: 'tjb.zzcj', title: '加工跨', width: 100,formatter: ['dictFormat','QGKW'],
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
{ field: 'tjb.sfyl', title: '余料', width: 100,editRender: { name: 'input' },
|
|
|
|
|
{ field: 'tjb.sfyl', title: '余料', width: 100,
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
@ -783,11 +781,11 @@ export default {
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
{ field: 'tlt.dcZlZ', title: '组立', width: 100,
|
|
|
|
|
{ field: 'tlt.dcZlZ', title: '组立', width: 100,formatter: ['dictFormat','ZLLB'],
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
{ field: 'tlt.ylzd1Z', title: '划线类型', width: 100,
|
|
|
|
|
{ field: 'tlt.ylzd1Z', title: '划线类型', width: 100,formatter: ['dictFormat','HXLX'],
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
@ -844,7 +842,7 @@ export default {
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
{ field: 'ljb.dcZl', title: '组立', width: 100,
|
|
|
|
|
{ field: 'ljb.dcZl', title: '组立', width: 100,formatter: ['dictFormat','ZLLB'],
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
@ -927,12 +925,12 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
uploadExcel() {
|
|
|
|
|
if (this.queryParam.cbbm === '') {
|
|
|
|
|
this.$message.error('请选择船号!')
|
|
|
|
|
return false;
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
// if (this.queryParam.cbbm === '') {
|
|
|
|
|
// this.$message.error('请选择船号!')
|
|
|
|
|
// return false;
|
|
|
|
|
// } else {
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// this.uploadData.czbh = this.queryParam.czbh
|
|
|
|
|
this.uploadData.isupload = this.isupload
|
|
|
|
@ -947,11 +945,11 @@ export default {
|
|
|
|
|
// this.$message.error('请输入正确批量!')
|
|
|
|
|
// return false;
|
|
|
|
|
// }
|
|
|
|
|
if (this.queryParam.cbbm === '') {
|
|
|
|
|
this.filedis=true
|
|
|
|
|
}else{
|
|
|
|
|
this.filedis=false
|
|
|
|
|
}
|
|
|
|
|
// if (this.queryParam.cbbm === '') {
|
|
|
|
|
// this.filedis=true
|
|
|
|
|
// }else{
|
|
|
|
|
// this.filedis=false
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
handleAddFolder () {
|
|
|
|
|
|
|
|
|
@ -964,13 +962,13 @@ export default {
|
|
|
|
|
// this.ljList=[],
|
|
|
|
|
this.tableupload=[],
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
if (this.queryParam.dcch === ''|| this.queryParam.dcpl === '' ) {
|
|
|
|
|
this.filedis=true
|
|
|
|
|
this.$message.error('请输入正确船号 批量!')
|
|
|
|
|
}else{
|
|
|
|
|
// if (this.queryParam.dcch === ''|| this.queryParam.dcpl === '' ) {
|
|
|
|
|
// this.filedis=true
|
|
|
|
|
// this.$message.error('请输入正确船号 批量!')
|
|
|
|
|
// }else{
|
|
|
|
|
this.filedis=false
|
|
|
|
|
this.$refs.upload.$children[0].$refs.input.webkitdirectory = true
|
|
|
|
|
}
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1047,6 +1045,8 @@ export default {
|
|
|
|
|
//return( a[age] - b[age])
|
|
|
|
|
return( a.sort - b.sort)
|
|
|
|
|
})
|
|
|
|
|
this.queryParam.dcch=this.czbhu
|
|
|
|
|
this.queryParam.dcpl=this.phu
|
|
|
|
|
this.dialogVisible=true;
|
|
|
|
|
},
|
|
|
|
|
// 删除文件之前的钩子,参数为上传的文件和文件列表,若返回 false 或者返回 Promise 且被 reject,则停止删除。function(file, fileList)
|
|
|
|
@ -1075,6 +1075,8 @@ export default {
|
|
|
|
|
formData.append('isupload', '01')
|
|
|
|
|
uploadBom(formData).then(res=>{
|
|
|
|
|
if (res.data.zt == "01") {
|
|
|
|
|
this.dialogVisible=false;
|
|
|
|
|
this.tableData=res.data.data;
|
|
|
|
|
this.$message.success('上传成功');
|
|
|
|
|
} else if (res.data.zt == "02") { //重新导入
|
|
|
|
|
this.$alert('该批量已导入数据,是否重新导入并覆盖该批量数据?', '提示', {
|
|
|
|
@ -1169,7 +1171,115 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
headerCellStyle ({ column, columnIndex }) {
|
|
|
|
|
if ([ 'bclq.lqbh',
|
|
|
|
|
'bclq.xh',
|
|
|
|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bh',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
'tjb.ylgg',
|
|
|
|
|
|
|
|
|
|
].includes(column.property)) {
|
|
|
|
|
return {
|
|
|
|
|
backgroundColor: '#ff9966',
|
|
|
|
|
color: '#ffffff'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if ([ 'tlt.dcChZ',
|
|
|
|
|
|
|
|
|
|
'tlt.dcPlZ',
|
|
|
|
|
|
|
|
|
|
'tlt.dcZlZ',
|
|
|
|
|
|
|
|
|
|
'tlt.ylzd1Z',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
'tlt.wpggZ',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
'tlt.wpxhZ',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
'tlt.hxcdZ',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
'tlt.ylzd4Z',
|
|
|
|
|
|
|
|
|
|
'tlt.tzbhZ',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
'tlt.ljslZ',
|
|
|
|
|
|
|
|
|
|
'tlt.xgr',
|
|
|
|
|
|
|
|
|
|
'tlt.xgrq',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
].includes(column.property)) {
|
|
|
|
|
return {
|
|
|
|
|
backgroundColor: '#FFFF66',
|
|
|
|
|
color: '#ffffff'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|