测试问题修改
This commit is contained in:
parent
1732b2a5de
commit
663800aadd
|
|
@ -390,7 +390,7 @@
|
|||
list-type="picture-card"
|
||||
accept=".png, .jpg, .jpeg, .pdf"
|
||||
:on-change="handleChangeBusinessList"
|
||||
:class="{ disabled: uploadDisabled }"
|
||||
:class="{ disabled: true }"
|
||||
:on-preview="picturePreview"
|
||||
:on-remove="handleRemoveElectricianImgList"
|
||||
:disabled="isEdits"
|
||||
|
|
@ -425,7 +425,7 @@
|
|||
</el-dialog>
|
||||
|
||||
<!-- 查看全部图片的弹窗 -->
|
||||
<el-dialog :title="title" :visible.sync="showAllImg" width="600px" append-to-body>
|
||||
<el-dialog :title="title" :visible.sync="showAllImg" width="800px" append-to-body>
|
||||
<el-form ref="form" label-width="120px">
|
||||
<el-form-item label="营业执照">
|
||||
<el-upload
|
||||
|
|
@ -438,7 +438,7 @@
|
|||
list-type="picture-card"
|
||||
accept=".png, .jpg, .jpeg, .pdf"
|
||||
:on-change="handleChangeBusinessList"
|
||||
:class="{ disabled: uploadDisabled }"
|
||||
:class="{ disabled: true }"
|
||||
:on-preview="picturePreview"
|
||||
:on-remove="handleRemoveElectricianImgList"
|
||||
:disabled="isEdits"
|
||||
|
|
@ -460,7 +460,6 @@
|
|||
</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<i class="el-icon-plus avatar-uploader-icon"></i>
|
||||
</el-upload>
|
||||
</el-form-item>
|
||||
|
|
|
|||
|
|
@ -806,15 +806,20 @@ export default {
|
|||
getTreeData() {
|
||||
getMaTypeList().then((response) => {
|
||||
this.treeOptions = response.data;
|
||||
if (
|
||||
this.treeOptions.length > 0 &&
|
||||
this.treeOptions[0].children.length > 0
|
||||
) {
|
||||
const firstNode = this.treeOptions[0].children[0];
|
||||
this.queryParams.typeId = firstNode.id;
|
||||
this.queryParams.level = 1;
|
||||
this.queryParams.houseId = firstNode.houseId;
|
||||
this.getList();
|
||||
console.log(this.treeOptions)
|
||||
if (this.treeOptions.length > 0 ){
|
||||
if(this.treeOptions[0].children&&this.treeOptions[0].children.length > 0) {
|
||||
const firstNode = this.treeOptions[0].children[0];
|
||||
this.queryParams.typeId = firstNode.id;
|
||||
this.queryParams.level = 1;
|
||||
this.queryParams.houseId = firstNode.houseId;
|
||||
this.getList();
|
||||
}else{
|
||||
this.queryParams.typeId = this.treeOptions[0].id;
|
||||
this.queryParams.level = 0;
|
||||
this.queryParams.houseId = this.treeOptions[0].id;
|
||||
this.getList();
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
|
|||
|
|
@ -428,12 +428,12 @@
|
|||
print() {
|
||||
this.$refs.remarksPrintRef.print()
|
||||
},
|
||||
|
||||
|
||||
handleExport() {
|
||||
// this.download('/material/ma_machine/export', {
|
||||
// ...this.queryParams
|
||||
// }, `仓库管理_${new Date().getTime()}.xlsx`)
|
||||
this.download(
|
||||
"/material/purchase_check_info/export",
|
||||
{ ...this.queryParams },
|
||||
`新购到货验收_${new Date().getTime()}.xlsx`
|
||||
);
|
||||
},
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,6 @@
|
|||
v-model="maForm.productionTime"
|
||||
style="width: 240px"
|
||||
value-format="yyyy-MM-dd"
|
||||
:picker-options="pickerOptions"
|
||||
type="date"
|
||||
placeholder="请选择出厂日期"
|
||||
@change="productionTimeChange"
|
||||
|
|
@ -261,7 +260,7 @@
|
|||
<el-table-column label="操作" align="center" width="100">
|
||||
<template slot-scope="scope">
|
||||
<div style="display: flex;align-items: center;justify-content: space-between;">
|
||||
<el-upload ref="upload" :limit="1" :headers="upload.headers"
|
||||
<el-upload ref="upload" :limit="3" :headers="upload.headers"
|
||||
:action="upload.url" :show-file-list="false" accept=".png, .jpg, .jpeg, .pdf, .doc, .docx"
|
||||
:on-success="handleFileSuccess" :auto-upload="true"
|
||||
>
|
||||
|
|
|
|||
|
|
@ -47,7 +47,16 @@
|
|||
>新购到货入库</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-col>
|
||||
<!-- <el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
|
|
@ -482,7 +491,14 @@ export default {
|
|||
this.dialogVisible = true
|
||||
}
|
||||
},
|
||||
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download(
|
||||
"/material/purchase_check_info/exportDetails",
|
||||
{ taskId: this.taskId },
|
||||
`新购到货详情_${new Date().getTime()}.xlsx`
|
||||
);
|
||||
},
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue