申请发布详情导出
This commit is contained in:
parent
ddf066148c
commit
770297d9e4
|
|
@ -34,7 +34,7 @@
|
||||||
{{ leaseApplyData.code }}
|
{{ leaseApplyData.code }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
|
|
@ -44,14 +44,14 @@
|
||||||
@click="handleSend"
|
@click="handleSend"
|
||||||
>发布</el-button
|
>发布</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<!-- <el-button
|
||||||
type="warning"
|
type="warning"
|
||||||
plain
|
plain
|
||||||
icon="el-icon-download"
|
icon="el-icon-download"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleExport"
|
@click="handleExport"
|
||||||
>导出数据</el-button
|
>导出数据</el-button
|
||||||
>
|
>-->
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- <el-col :span="1.5">
|
<!-- <el-col :span="1.5">
|
||||||
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" v-if="isEdit">导出</el-button>
|
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" v-if="isEdit">导出</el-button>
|
||||||
|
|
@ -95,7 +95,7 @@
|
||||||
v-model.number="scope.row.num"
|
v-model.number="scope.row.num"
|
||||||
controls-position="right" type="number"
|
controls-position="right" type="number"
|
||||||
v-if="scope.row.pendingNum!=0"
|
v-if="scope.row.pendingNum!=0"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:min="0" @change="handleChange(scope.row)"
|
:min="0" @change="handleChange(scope.row)"
|
||||||
></el-input>
|
></el-input>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -286,7 +286,7 @@ export default {
|
||||||
numTemp: 0,
|
numTemp: 0,
|
||||||
|
|
||||||
items: [],
|
items: [],
|
||||||
|
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
unitId: [
|
unitId: [
|
||||||
|
|
@ -357,7 +357,7 @@ export default {
|
||||||
for (const item of this.leaseList) {
|
for (const item of this.leaseList) {
|
||||||
this.$set(item, 'num', item.pendingNum);
|
this.$set(item, 'num', item.pendingNum);
|
||||||
this.$set(item, 'newTypeId', item.typeId);
|
this.$set(item, 'newTypeId', item.typeId);
|
||||||
|
|
||||||
const optionsResponse = await getTypeOptions({ typeId: item.thirdTypeId });
|
const optionsResponse = await getTypeOptions({ typeId: item.thirdTypeId });
|
||||||
const typeOptions = optionsResponse.data.map((type) => ({
|
const typeOptions = optionsResponse.data.map((type) => ({
|
||||||
value: type.typeId,
|
value: type.typeId,
|
||||||
|
|
@ -373,7 +373,7 @@ export default {
|
||||||
this.$forceUpdate(); // 强制刷新组件
|
this.$forceUpdate(); // 强制刷新组件
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
handleSelectionChange(selection) {
|
handleSelectionChange(selection) {
|
||||||
this.items = [];
|
this.items = [];
|
||||||
|
|
@ -401,7 +401,7 @@ export default {
|
||||||
if(row.num > row.pendingNum){
|
if(row.num > row.pendingNum){
|
||||||
this.$message.error('领料数量不能大于待发布数量')
|
this.$message.error('领料数量不能大于待发布数量')
|
||||||
this.$set(row, 'num', row.pendingNum)
|
this.$set(row, 'num', row.pendingNum)
|
||||||
|
|
||||||
}
|
}
|
||||||
if (row.num < 1) {
|
if (row.num < 1) {
|
||||||
this.$set(row, 'num', 1)
|
this.$set(row, 'num', 1)
|
||||||
|
|
@ -417,7 +417,7 @@ export default {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
let leaseApplyInfo = {
|
let leaseApplyInfo = {
|
||||||
unitId: this.maForm.unitId,
|
unitId: this.maForm.unitId,
|
||||||
leasePerson: this.maForm.leasePerson,
|
leasePerson: this.maForm.leasePerson,
|
||||||
phone: this.maForm.phone,
|
phone: this.maForm.phone,
|
||||||
taskId:this.leaseApplyData.taskId,
|
taskId:this.leaseApplyData.taskId,
|
||||||
projectId: this.leaseApplyData.leaseProjectId,
|
projectId: this.leaseApplyData.leaseProjectId,
|
||||||
|
|
@ -437,20 +437,20 @@ export default {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
cancel() {
|
cancel() {
|
||||||
this.numTemp = 0;
|
this.numTemp = 0;
|
||||||
this.$refs.maForm.resetFields();
|
this.$refs.maForm.resetFields();
|
||||||
this.openView = false;
|
this.openView = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
closeView() {
|
closeView() {
|
||||||
this.numTemp = 0;
|
this.numTemp = 0;
|
||||||
this.$refs.maForm.resetFields();
|
this.$refs.maForm.resetFields();
|
||||||
this.openView = false;
|
this.openView = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
{{ leaseApplyData.code }}
|
{{ leaseApplyData.code }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
|
|
@ -297,7 +297,7 @@ export default {
|
||||||
this.taskId = this.queryTaskId;
|
this.taskId = this.queryTaskId;
|
||||||
this.id = this.queryId;
|
this.id = this.queryId;
|
||||||
this.getTaskInfo();
|
this.getTaskInfo();
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 转换菜单数据结构 */
|
/** 转换菜单数据结构 */
|
||||||
|
|
@ -346,9 +346,9 @@ export default {
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
this.download(
|
this.download(
|
||||||
"/material/purchase_check_info/exportDetails",
|
"/material/leaseTask/exportPublishDetails",
|
||||||
{ taskId: this.taskId },
|
{ id: this.id },
|
||||||
`新购到货详情_${new Date().getTime()}.xlsx`
|
`领用申请发布详情_${new Date().getTime()}.xlsx`
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue