问题修改

master
zhangdi 2 weeks ago
parent 0bae108902
commit f95f0a4483
  1. 314
      src/views/firstOrder/components/outDialog.vue
  2. 3
      src/views/firstOrder/outbound.vue
  3. 2
      src/views/secondOrder/components/inDialog.vue
  4. 60
      src/views/secondOrder/inbound.vue

@ -1,60 +1,32 @@
<template> <template>
<div> <div>
<el-dialog <el-dialog :close-on-click-modal="false" :title="outDialogTiltle" :visible.sync="outDialogVisible"
:close-on-click-modal="false" :append-to-body="true" width="70%" @close="handleCloseDetail" fullscreen>
:title="outDialogTiltle"
:visible.sync="outDialogVisible"
:append-to-body="true"
width="70%"
@close="handleCloseDetail"
fullscreen
>
<!-- 基本信息 --> <!-- 基本信息 -->
<div class="dialog-content"> <div class="dialog-content">
<el-form <el-form :model="sizeForm" ref="dynamicValidateForm" label-width="100px" class="demo-dynamic">
:model="sizeForm"
ref="dynamicValidateForm"
label-width="100px"
class="demo-dynamic"
>
<div class="form-title">基本信息</div> <div class="form-title">基本信息</div>
<el-row> <el-row>
<el-col <el-col :span="12" v-show="sizeForm.options == 1 && outDialogType != 'add'">
:span="12"
v-show="sizeForm.options == 1 && outDialogType != 'add'"
>
<el-form-item label="出库单号"> <el-form-item label="出库单号">
<el-input v-model="sizeForm.orderNo" disabled></el-input> <el-input v-model="sizeForm.orderNo" disabled></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="出库申请日期"> <el-form-item label="出库申请日期">
<el-date-picker <el-date-picker v-model="sizeForm.outDate" type="date" placeholder="选择日期" style="width: 100%" disabled>
v-model="sizeForm.outDate"
type="date"
placeholder="选择日期"
style="width: 100%"
disabled
>
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="事由"> <el-form-item label="事由">
<el-input <el-input v-model="sizeForm.reason" :disabled="outDialogType == 'details'"></el-input>
v-model="sizeForm.reason"
:disabled="outDialogType == 'details'"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="物资类型"> <el-form-item label="物资类型">
<el-select <el-select v-model="sizeForm.materialType" placeholder="请选择" style="width: 100%"
v-model="sizeForm.materialType" :disabled="outDialogType == 'details'">
placeholder="请选择"
style="width: 100%"
:disabled="outDialogType == 'details'"
>
<el-option label="办公室物资" value="1"></el-option> <el-option label="办公室物资" value="1"></el-option>
<el-option label="其他物资" value="2"></el-option> <el-option label="其他物资" value="2"></el-option>
</el-select> </el-select>
@ -62,25 +34,17 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="选项"> <el-form-item label="选项">
<el-radio-group <el-radio-group v-model="sizeForm.options" @change="radioChange()"
v-model="sizeForm.options" :disabled="outDialogType == 'details'">
@change="radioChange()" <el-radio :label="1" :disabled="sizeForm.type == 2"><span>批量选择</span></el-radio>
:disabled="outDialogType == 'details'"
>
<el-radio :label="1" :disabled="sizeForm.type == 2"
><span>批量选择</span></el-radio
>
<el-radio :label="2">单项选择</el-radio> <el-radio :label="2">单项选择</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" v-if="sizeForm.options === 2"> <el-col :span="12" v-if="sizeForm.options === 2">
<el-form-item label="选项"> <el-form-item label="选项">
<el-radio-group <el-radio-group v-model="sizeForm.optionType" :disabled="outDialogType == 'details'"
v-model="sizeForm.optionType" @change="getMaterialList">
:disabled="outDialogType == 'details'"
@change="getMaterialList"
>
<el-radio label="YH">易耗品</el-radio> <el-radio label="YH">易耗品</el-radio>
<el-radio label="NY">耐用品</el-radio> <el-radio label="NY">耐用品</el-radio>
</el-radio-group> </el-radio-group>
@ -91,44 +55,30 @@
<el-input v-model="sizeForm.demandEndInfo" disabled></el-input> <el-input v-model="sizeForm.demandEndInfo" disabled></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" v-if="outDialogTiltle == '详情'">
<el-form-item label="状态">
<span v-if="rowItem.status == 1">暂存</span>
<span v-if="rowItem.status == 2">待二级库入库</span>
<span v-if="rowItem.status == 3">已出库</span>
</el-form-item>
</el-col>
</el-row> </el-row>
<div class="form-title">{{ outDate }} 出库信息</div> <div class="form-title">{{ outDate }} 出库信息</div>
<el-button <el-button type="primary" size="mini" style="margin-bottom: 18px" @click="inTableAdd()"
type="primary" v-if="sizeForm.options == 2 && outDialogType != 'details'">新增</el-button>
size="mini" <el-table :data="sizeForm.inTableData" border style="width: 100%" :span-method="objectSpanMethod">
style="margin-bottom: 18px"
@click="inTableAdd()"
v-if="sizeForm.options == 2 && outDialogType != 'details'"
>新增</el-button
>
<el-table
:data="sizeForm.inTableData"
border
style="width: 100%"
:span-method="objectSpanMethod"
>
<el-table-column prop="materialCode" label="物资编码"> <el-table-column prop="materialCode" label="物资编码">
</el-table-column> </el-table-column>
<el-table-column prop="materialName" label="物资名称"> <el-table-column prop="materialName" label="物资名称">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select <el-select v-model="scope.row.materialId" placeholder="请选择物资名称" style="width: 100%"
v-model="scope.row.materialId" @change="handleMaterialChange(scope.row, scope.$index)" v-if="
placeholder="请选择物资名称"
style="width: 100%"
@change="handleMaterialChange(scope.row, scope.$index)"
v-if="
outDialogType != 'details' && outDialogType != 'details' &&
sizeForm.options == 2 && sizeForm.options == 2 &&
sizeForm.optionType == 'YH' sizeForm.optionType == 'YH'
" " value-key="id">
value-key="id" <el-option v-for="item in materials" :key="item.materialId" :label="item.materialName"
> :value="item.materialId">
<el-option
v-for="item in materials"
:key="item.materialId"
:label="item.materialName"
:value="item.materialId"
>
</el-option> </el-option>
</el-select> </el-select>
<span v-else> {{ scope.row.materialName }}</span> <span v-else> {{ scope.row.materialName }}</span>
@ -138,53 +88,29 @@
<el-table-column prop="unit" label="单位"> </el-table-column> <el-table-column prop="unit" label="单位"> </el-table-column>
<el-table-column <el-table-column label="部门" prop="departmentName" v-if="sizeForm.options === 2 || sizeForm.optionType"
label="部门" :key="'account-dept-' + sizeForm.options">
prop="departmentName"
v-if="sizeForm.options === 2 || sizeForm.optionType"
:key="'account-dept-' + sizeForm.options"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-select <el-select v-model="scope.row.department" placeholder="请选择部门名称" style="width: 100%"
v-model="scope.row.department" v-if="outDialogType != 'details'" @change="changeDepartment">
placeholder="请选择部门名称" <el-option v-for="item in list" :key="item.departmentId" :label="item.department"
style="width: 100%" :value="item.departmentId">
v-if="outDialogType != 'details'"
@change="changeDepartment"
>
<el-option
v-for="item in list"
:key="item.departmentId"
:label="item.department"
:value="item.departmentId"
>
</el-option> </el-option>
</el-select> </el-select>
<span v-else> {{ scope.row.departmentName || "" }}</span> <span v-else> {{ scope.row.departmentName || "" }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="applicationQuantity" label="申请数量" v-if="sizeForm.options == 1">
prop="applicationQuantity"
label="申请数量"
v-if="sizeForm.options == 1"
>
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.applicationQuantity || 0 }} {{ scope.row.applicationQuantity || 0 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="num" label="当前库存">
prop="num"
label="当前库存"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.num }}</span> <span>{{ scope.row.num }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="outboundQuantity" label="已出库数量" v-if="sizeForm.options == 1">
prop="outboundQuantity"
label="已出库数量"
v-if="sizeForm.options == 1"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.outboundQuantity || 0 }}</span> <span>{{ scope.row.outboundQuantity || 0 }}</span>
</template> </template>
@ -192,18 +118,11 @@
<el-table-column prop="theOutboundQuantity" label="本次出库数量"> <el-table-column prop="theOutboundQuantity" label="本次出库数量">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="outDialogType != 'details'"> <div v-if="outDialogType != 'details'">
<el-input-number <el-input-number size="mini" v-model="scope.row.theOutboundQuantity" :min="0" style="width: 100%"
size="mini" @change="syncInboundQuantity(scope.row)" :disabled="outDialogType == 'details'" v-if="
v-model="scope.row.theOutboundQuantity"
:min="0"
style="width: 100%"
@change="syncInboundQuantity(scope.row)"
:disabled="outDialogType == 'details'"
v-if="
sizeForm.optionType === 'YH' || sizeForm.optionType === 'YH' ||
(sizeForm.options == 1 && inBatchForm.optionType === 'YH') (sizeForm.options == 1 && inBatchForm.optionType === 'YH')
" "></el-input-number>
></el-input-number>
<span v-else>{{ scope.row.theOutboundQuantity }}</span> <span v-else>{{ scope.row.theOutboundQuantity }}</span>
</div> </div>
<span v-else>{{ scope.row.theOutboundQuantity }}</span> <span v-else>{{ scope.row.theOutboundQuantity }}</span>
@ -215,23 +134,14 @@
scope.row.type === "NY" scope.row.type === "NY"
? "耐用品" ? "耐用品"
: scope.row.type === "YH" : scope.row.type === "YH"
? "易耗品" ? "易耗品"
: "" : ""
}} }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="操作" style="text-align: center" width="100" v-if="outDialogType != 'details'">
label="操作"
style="text-align: center"
width="100"
v-if="outDialogType != 'details'"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button type="text" size="mini" @click="handleDelete(scope.$index, scope.row)">
type="text"
size="mini"
@click="handleDelete(scope.$index, scope.row)"
>
删除 删除
</el-button> </el-button>
</template> </template>
@ -240,12 +150,7 @@
<div class="form-title" v-if="outDialogType !== 'details'"> <div class="form-title" v-if="outDialogType !== 'details'">
出库账目表格 出库账目表格
</div> </div>
<el-table <el-table :data="statisticsList" border style="width: 100%" v-if="outDialogType !== 'details'">
:data="statisticsList"
border
style="width: 100%"
v-if="outDialogType !== 'details'"
>
<el-table-column prop="date" label="当前库存" width="100"> <el-table-column prop="date" label="当前库存" width="100">
<el-table-column prop="materialCode" label="物资编码"> <el-table-column prop="materialCode" label="物资编码">
</el-table-column> </el-table-column>
@ -258,8 +163,8 @@
scope.row.type === "NY" scope.row.type === "NY"
? "耐用品" ? "耐用品"
: scope.row.type === "YH" : scope.row.type === "YH"
? "易耗品" ? "易耗品"
: "" : ""
}} }}
</template> </template>
</el-table-column> </el-table-column>
@ -269,8 +174,8 @@
scope.row.type === "NY" scope.row.type === "NY"
? "出库单" ? "出库单"
: scope.row.type === "YH" : scope.row.type === "YH"
? "发放单" ? "发放单"
: "" : ""
}} }}
</template> </template>
</el-table-column> </el-table-column>
@ -288,8 +193,7 @@
<el-table-column prop="date" label="出库后库存"> <el-table-column prop="date" label="出库后库存">
<el-table-column prop="totalQuantity" label="数量"> <el-table-column prop="totalQuantity" label="数量">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.totalQuantity<0?0: scope.row.totalQuantity}} {{ scope.row.totalQuantity < 0 ? 0 : scope.row.totalQuantity }} </template>
</template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column prop="date" label="出库信息"> <el-table-column prop="date" label="出库信息">
@ -311,55 +215,24 @@
</el-table> </el-table>
</el-form> </el-form>
</div> </div>
<span <span slot="footer" class="dialog-footer" v-if="outDialogType != 'details'">
slot="footer" <el-button @click="handleCloseDetail()" :loading="saveLoading"> </el-button>
class="dialog-footer" <el-button type="primary" @click="submit(1)" :loading="saveLoading">暂存</el-button>
v-if="outDialogType != 'details'" <el-button type="primary" @click="submit(2)" :loading="saveLoading">提交</el-button>
>
<el-button @click="handleCloseDetail()" :loading="saveLoading"
> </el-button
>
<el-button type="primary" @click="submit(1)" :loading="saveLoading"
>暂存</el-button
>
<el-button type="primary" @click="submit(2)" :loading="saveLoading"
>提交</el-button
>
</span> </span>
</el-dialog> </el-dialog>
<!-- 批量出库 选择数据源弹窗 --> <!-- 批量出库 选择数据源弹窗 -->
<el-dialog <el-dialog :close-on-click-modal="false" title="选择数据来源" :visible.sync="inBatchDialogVisible" :append-to-body="true"
:close-on-click-modal="false" width="40%" @close="handleBatchClose" @open="getQuarterList">
title="选择数据来源" <el-form :model="inBatchForm" ref="dynamicValidateForm" label-width="100px" class="demo-dynamic">
:visible.sync="inBatchDialogVisible"
:append-to-body="true"
width="40%"
@close="handleBatchClose"
@open="getQuarterList"
>
<el-form
:model="inBatchForm"
ref="dynamicValidateForm"
label-width="100px"
class="demo-dynamic"
>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="需求单"> <el-form-item label="需求单">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select <el-select v-model="inBatchForm.batchType" placeholder="请选择需求单" style="width: 100%"
v-model="inBatchForm.batchType" @change="onQuarterSelectChange">
placeholder="请选择需求单" <el-option v-for="item in quarterList" :key="item.ids" :label="item.quarterName" :value="item.ids"
style="width: 100%" :clearable="true">
@change="onQuarterSelectChange"
>
<el-option
v-for="item in quarterList"
:key="item.ids"
:label="item.quarterName"
:value="item.ids"
:clearable="true"
>
</el-option> </el-option>
</el-select> </el-select>
</template> </template>
@ -367,29 +240,17 @@
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="部门"> <el-form-item label="部门">
<el-select <el-select v-model="inBatchForm.department" placeholder="请选择" style="width: 100%" :clearable="true"
v-model="inBatchForm.department" @change="depchange">
placeholder="请选择" <el-option v-for="item in departmentList" :key="item.departmentId" :label="item.department"
style="width: 100%" :value="item.departmentId">
:clearable="true"
@change="depchange"
>
<el-option
v-for="item in departmentList"
:key="item.departmentId"
:label="item.department"
:value="item.departmentId"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="选项"> <el-form-item label="选项">
<el-radio-group <el-radio-group v-model="inBatchForm.optionType" :disabled="outDialogType == 'details'">
v-model="inBatchForm.optionType"
:disabled="outDialogType == 'details'"
>
<el-radio label="YH">易耗品</el-radio> <el-radio label="YH">易耗品</el-radio>
<el-radio label="NY">耐用品</el-radio> <el-radio label="NY">耐用品</el-radio>
</el-radio-group> </el-radio-group>
@ -405,25 +266,13 @@
</el-dialog> </el-dialog>
<!-- 单条新增耐用品弹窗 --> <!-- 单条新增耐用品弹窗 -->
<consumableDialog <consumableDialog v-if="consumableVisible" :consumableVisible="consumableVisible"
v-if="consumableVisible" :demandDialogTitle="demandDialogTitle" @handleCloseDetail="closeDialog" @confirm="confirm">
:consumableVisible="consumableVisible"
:demandDialogTitle="demandDialogTitle"
@handleCloseDetail="closeDialog"
@confirm="confirm"
>
</consumableDialog> </consumableDialog>
<!-- 批量耐用品弹窗 --> <!-- 批量耐用品弹窗 -->
<batchSelectionDialog <batchSelectionDialog v-if="batchSelectionVisible" :batchSelectionVisible="batchSelectionVisible"
v-if="batchSelectionVisible" :batchSelectionTitle="batchSelectionTitle" :tableData="batchTableData" @batchclose="batchclose"
:batchSelectionVisible="batchSelectionVisible" :inBatchForm="inBatchForm" @confirm-selection="handleConfirmSelection" @selectionChange="selectionChange">
:batchSelectionTitle="batchSelectionTitle"
:tableData="batchTableData"
@batchclose="batchclose"
:inBatchForm="inBatchForm"
@confirm-selection="handleConfirmSelection"
@selectionChange="selectionChange"
>
</batchSelectionDialog> </batchSelectionDialog>
</div> </div>
</template> </template>
@ -469,6 +318,10 @@ export default {
type: Number, type: Number,
default: 0, default: 0,
}, },
rowItem: {
type: Object,
default: () => { }
}
}, },
data() { data() {
return { return {
@ -592,7 +445,7 @@ export default {
item.materialCode === stat.materialCode && item.materialCode === stat.materialCode &&
item.materialName === stat.materialName item.materialName === stat.materialName
); );
console.log(8989898989,detailList) console.log(8989898989, detailList)
detail.theOutboundQuantity = detailList.reduce( detail.theOutboundQuantity = detailList.reduce(
(acc, cur) => acc + cur.theOutboundQuantity, (acc, cur) => acc + cur.theOutboundQuantity,
0 0
@ -796,10 +649,10 @@ export default {
const appQty = Number(item.applicationQuantity || 0); const appQty = Number(item.applicationQuantity || 0);
const outQty = Number(item.outboundQuantity || 0); const outQty = Number(item.outboundQuantity || 0);
const defaultQty = appQty - outQty; const defaultQty = appQty - outQty;
if (this.inBatchForm.optionType === "YH"){ if (this.inBatchForm.optionType === "YH") {
item.department = selectedDept.departmentId item.department = selectedDept.departmentId
item.departmentName = selectedDept.department item.departmentName = selectedDept.department
} }
return { return {
...item, ...item,
IdDemandEndld: this.inBatchForm.batchType, IdDemandEndld: this.inBatchForm.batchType,
@ -840,8 +693,7 @@ export default {
} }
} catch (error) { } catch (error) {
this.$message.error( this.$message.error(
`获取${ `获取${this.inBatchForm.optionType === "YH" ? "易耗品" : "耐用品"
this.inBatchForm.optionType === "YH" ? "易耗品" : "耐用品"
}数据失败${error.message}` }数据失败${error.message}`
); );
} }
@ -850,8 +702,11 @@ export default {
async getDetailedItems() { async getDetailedItems() {
this.loading = true; this.loading = true;
try { try {
const res = await getDetailedItems(); // const res = await ;
this.list = res.data.result; // this.list = res.data.result;
getDetailedItems().then(res=>{
this.list = res.data.result;
})
} catch (error) { } catch (error) {
this.$message.error("获取数据来源失败,请重试"); this.$message.error("获取数据来源失败,请重试");
} finally { } finally {
@ -1090,6 +945,7 @@ export default {
overflow-y: auto; overflow-y: auto;
padding-right: 10px; padding-right: 10px;
} }
::v-deep.el-table th.el-table__cell { ::v-deep.el-table th.el-table__cell {
background: #f5f7fa; background: #f5f7fa;
font-weight: 500; font-weight: 500;

@ -65,6 +65,7 @@
type="一级库" type="一级库"
@submitSuccess="handleSubmitSuccess" @submitSuccess="handleSubmitSuccess"
:id="id" :id="id"
:rowItem = "rowItem"
> >
</outDialog> </outDialog>
@ -91,6 +92,7 @@ export default {
}, },
data() { data() {
return { return {
rowItem:{},
form: { outDate: [] }, form: { outDate: [] },
selectionList: [], selectionList: [],
query: {}, query: {},
@ -264,6 +266,7 @@ export default {
// //
handleDetails(row) { handleDetails(row) {
console.log(row, "row详情"); console.log(row, "row详情");
this.rowItem = row
this.outDialogVisible = true; this.outDialogVisible = true;
this.outDialogType = "details"; this.outDialogType = "details";
this.outDialogTiltle = "详情"; this.outDialogTiltle = "详情";

@ -80,7 +80,7 @@
<template #footer> <template #footer>
<span class="dialog-footer"> <span class="dialog-footer">
<el-button @click="handleCloseDetail()"> </el-button> <el-button @click="handleCloseDetail()"> </el-button>
<el-button type="primary" @click="sumbit()"> </el-button> <el-button type="primary" @click="sumbit()" v-if="inDialogTiltle=='入库'"> </el-button>
</span> </span>
</template> </template>
</el-dialog> </el-dialog>

@ -1,59 +1,28 @@
<template> <template>
<basic-container> <basic-container>
<avue-crud <avue-crud :option="option" :table-loading="loading" :data="data" ref="crud" v-model="form" :page.sync="page"
:option="option" :permission="permissionList" @search-change="searchChange" @search-reset="searchReset"
:table-loading="loading" @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
:data="data"
ref="crud"
v-model="form"
:page.sync="page"
:permission="permissionList"
@search-change="searchChange"
@search-reset="searchReset"
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad"
>
<template slot-scope="scope" slot="menuLeft"> <template slot-scope="scope" slot="menuLeft">
</template> </template>
<template slot-scope="scope" slot="menu"> <template slot-scope="scope" slot="menu">
<el-button <el-button type="text" @click="detailsFn(scope.row)">详情</el-button>
type="text" <el-button type="text" v-if="scope.row.status == 1" @click="rowSelect(scope.row)">入库</el-button>
v-if="scope.row.status == 1"
@click="rowSelect(scope.row)"
>入库</el-button
>
</template> </template>
<template slot-scope="scope" slot="caigoudanmingcheng"> <template slot-scope="scope" slot="caigoudanmingcheng">
<el-button <el-button type="text" @click.stop="purchaseFn(scope.row)" v-if="scope.row.caigoudanmingcheng != ''">{{
type="text" scope.row.caigoudanmingcheng }}</el-button>
@click.stop="purchaseFn(scope.row)"
v-if="scope.row.caigoudanmingcheng != ''"
>{{ scope.row.caigoudanmingcheng }}</el-button
>
<span v-else></span> <span v-else></span>
</template> </template>
</avue-crud> </avue-crud>
<!-- 入库 --> <!-- 入库 -->
<inDialog <inDialog v-if="inDialogVisible" :repairVisible="inDialogVisible" :inDialogTiltle="inDialogTiltle"
v-if="inDialogVisible" :inDialogType="inDialogType" :inDialogData="inDialogData" @handleCloseDetail="handleCloseDetail" type="二级库">
:repairVisible="inDialogVisible"
:inDialogTiltle="inDialogTiltle"
:inDialogType="inDialogType"
:inDialogData="inDialogData"
@handleCloseDetail="handleCloseDetail"
type="二级库"
>
</inDialog> </inDialog>
<!-- 采购单详情 --> <!-- 采购单详情 -->
<purchaseDialog <purchaseDialog :showDialog="purchaseOpen" v-if="purchaseOpen" @closeDialog="closeDialog"
:showDialog="purchaseOpen" :purchaseTitle="purchaseTitle"></purchaseDialog>
v-if="purchaseOpen"
@closeDialog="closeDialog"
:purchaseTitle="purchaseTitle"
></purchaseDialog>
</basic-container> </basic-container>
</template> </template>
@ -160,7 +129,7 @@ export default {
label: "部门", label: "部门",
prop: "demandDepartmentName", prop: "demandDepartmentName",
search: true, search: true,
hide:true, hide: true,
headerAlign: "center", headerAlign: "center",
align: "center", align: "center",
}, },
@ -206,6 +175,11 @@ export default {
this.inDialogVisible = false; this.inDialogVisible = false;
this.onLoad(this.page); this.onLoad(this.page);
}, },
detailsFn(row){
this.inDialogVisible = true;
this.inDialogTiltle = "详情";
this.inDialogData = row;
},
// //
rowSelect(row) { rowSelect(row) {
this.inDialogVisible = true; this.inDialogVisible = true;

Loading…
Cancel
Save