|
@@ -1,51 +1,26 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<basic-container v-show="show" class="page-crad">
|
|
|
- <avue-crud
|
|
|
- ref="crud"
|
|
|
- :option="option"
|
|
|
- :data="dataList"
|
|
|
- v-model="form"
|
|
|
- :page.sync="page"
|
|
|
- :search.sync="search"
|
|
|
- @search-change="searchChange"
|
|
|
- @current-change="currentChange"
|
|
|
- @size-change="sizeChange"
|
|
|
- @refresh-change="refreshChange"
|
|
|
- @on-load="onLoad"
|
|
|
- :table-loading="loading"
|
|
|
- @saveColumn="saveColumn"
|
|
|
- @resetColumn="resetColumn"
|
|
|
- :cell-style="cellStyle"
|
|
|
- @selection-change="selectionChange"
|
|
|
- @search-criteria-switch="searchCriteriaSwitch"
|
|
|
- >
|
|
|
+ <avue-crud ref="crud" :option="option" :data="dataList" v-model="form" :page.sync="page" :search.sync="search"
|
|
|
+ @search-change="searchChange" @current-change="currentChange" @size-change="sizeChange"
|
|
|
+ @refresh-change="refreshChange" @on-load="onLoad" :table-loading="loading" @saveColumn="saveColumn"
|
|
|
+ @resetColumn="resetColumn" :cell-style="cellStyle" @selection-change="selectionChange"
|
|
|
+ @expand-change="expandChange" @search-criteria-switch="searchCriteriaSwitch">
|
|
|
+ <template slot-scope="{ row }" slot="expand">
|
|
|
+ <avue-crud :data="row.itemData" :option="itemOption" :table-loading="row.itemLoading"
|
|
|
+ :cell-style="cellStyle" class="itemTable"></avue-crud>
|
|
|
+ </template>
|
|
|
<template slot="createTimeSearch">
|
|
|
- <el-date-picker
|
|
|
- v-model="search.createTime"
|
|
|
- type="daterange"
|
|
|
- start-placeholder="开始日期"
|
|
|
- end-placeholder="结束日期"
|
|
|
- format="yyyy-MM-dd"
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
- :default-time="['00:00:00', '23:59:59']"
|
|
|
- >
|
|
|
+ <el-date-picker v-model="search.createTime" type="daterange" start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ :default-time="['00:00:00', '23:59:59']">
|
|
|
</el-date-picker>
|
|
|
</template>
|
|
|
<template slot="menuLeft">
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- icon="el-icon-plus"
|
|
|
- size="small"
|
|
|
- @click.stop="newAdd('new')"
|
|
|
- >创建单据
|
|
|
+ <el-button type="primary" icon="el-icon-plus" size="small" @click.stop="newAdd('new')">创建单据
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- type="success"
|
|
|
- size="small"
|
|
|
- @click.stop="copyDoc()"
|
|
|
- :disabled="selectionList.length != 1"
|
|
|
- >复制单据
|
|
|
+ <el-button type="success" size="small" @click.stop="copyDoc()"
|
|
|
+ :disabled="selectionList.length != 1">复制单据
|
|
|
</el-button>
|
|
|
<el-button type="info" size="small" disabled>报表打印</el-button>
|
|
|
<el-button type="warning" size="small" @click="dialogVisible = true;">采购任务</el-button>
|
|
@@ -54,68 +29,47 @@
|
|
|
<crop-select v-model="search.corpId" corpType="KH"></crop-select>
|
|
|
</template>
|
|
|
<template slot="businesDateSearch">
|
|
|
- <el-date-picker
|
|
|
- v-model="search.businesDate"
|
|
|
- type="daterange"
|
|
|
- start-placeholder="开始日期"
|
|
|
- end-placeholder="结束日期"
|
|
|
- format="yyyy-MM-dd"
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
- :default-time="['00:00:00', '23:59:59']">
|
|
|
+ <el-date-picker v-model="search.businesDate" type="daterange" start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ :default-time="['00:00:00', '23:59:59']">
|
|
|
</el-date-picker>
|
|
|
</template>
|
|
|
<template slot="plannedDeliveryDateSearch">
|
|
|
- <el-date-picker
|
|
|
- v-model="search.plannedDeliveryDate"
|
|
|
- type="daterange"
|
|
|
- start-placeholder="开始日期"
|
|
|
- end-placeholder="结束日期"
|
|
|
- format="yyyy-MM-dd"
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
- :default-time="['00:00:00', '23:59:59']"
|
|
|
- >
|
|
|
+ <el-date-picker v-model="search.plannedDeliveryDate" type="daterange" start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ :default-time="['00:00:00', '23:59:59']">
|
|
|
</el-date-picker>
|
|
|
</template>
|
|
|
<template slot="requiredDeliveryDateSearch">
|
|
|
- <el-date-picker
|
|
|
- v-model="search.requiredDeliveryDate"
|
|
|
- type="daterange"
|
|
|
- start-placeholder="开始日期"
|
|
|
- end-placeholder="结束日期"
|
|
|
- format="yyyy-MM-dd"
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
- :default-time="['00:00:00', '23:59:59']"
|
|
|
- >
|
|
|
+ <el-date-picker v-model="search.requiredDeliveryDate" type="daterange" start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ :default-time="['00:00:00', '23:59:59']">
|
|
|
</el-date-picker>
|
|
|
</template>
|
|
|
<template slot-scope="scope" slot="corpId">
|
|
|
- <span
|
|
|
- style="color: #409EFF;cursor: pointer"
|
|
|
- @click.stop="editOpen(scope.row, 1)"
|
|
|
- >{{ scope.row.strCorpName }}
|
|
|
- </span>
|
|
|
+ <span style="color: #409EFF;cursor: pointer" @click.stop="editOpen(scope.row, 1)">{{
|
|
|
+ scope.row.strCorpName }}
|
|
|
+ </span>
|
|
|
</template>
|
|
|
<template slot-scope="scope" slot="orderNo">
|
|
|
- <span
|
|
|
- style="color: #409EFF;cursor: pointer"
|
|
|
- @click.stop="editOpen(scope.row, 1)"
|
|
|
- >{{ scope.row.orderNo }}
|
|
|
- </span>
|
|
|
+ <span style="color: #409EFF;cursor: pointer" @click.stop="editOpen(scope.row, 1)">{{ scope.row.orderNo
|
|
|
+ }}
|
|
|
+ </span>
|
|
|
</template>
|
|
|
<template slot-scope="scope" slot="fudaPurchaseStatus">
|
|
|
- <span class="el-button--text">
|
|
|
- {{ scope.row.fudaPurchaseStatus }}
|
|
|
- </span>
|
|
|
+ <span class="el-button--text">
|
|
|
+ {{ scope.row.fudaPurchaseStatus }}
|
|
|
+ </span>
|
|
|
</template>
|
|
|
<template slot-scope="scope" slot="fudaPurchaseDate">
|
|
|
- <span class="el-button--text">
|
|
|
- {{ scope.row.fudaPurchaseDate }}
|
|
|
- </span>
|
|
|
+ <span class="el-button--text">
|
|
|
+ {{ scope.row.fudaPurchaseDate }}
|
|
|
+ </span>
|
|
|
</template>
|
|
|
<template slot-scope="scope" slot="productionScheduling">
|
|
|
- <span class="el-button--text">
|
|
|
- {{ scope.row.productionScheduling }}
|
|
|
- </span>
|
|
|
+ <span class="el-button--text">
|
|
|
+ {{ scope.row.productionScheduling }}
|
|
|
+ </span>
|
|
|
</template>
|
|
|
<template slot-scope="scope" slot="createUser">
|
|
|
{{ scope.row.createUserName }}
|
|
@@ -124,121 +78,75 @@
|
|
|
<span>{{ row.orderQuantity | IntegerFormat }}</span>
|
|
|
</template>
|
|
|
<template slot-scope="scope" slot="menu">
|
|
|
- <el-button
|
|
|
- type="text"
|
|
|
- icon="el-icon-delete"
|
|
|
- size="small"
|
|
|
- @click.stop="rowDel(scope.row, scope.index)"
|
|
|
- >删除
|
|
|
+ <el-button type="text" icon="el-icon-delete" size="small"
|
|
|
+ @click.stop="rowDel(scope.row, scope.index)">删除
|
|
|
</el-button>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
</basic-container>
|
|
|
- <detail-page
|
|
|
- @goBack="goBack"
|
|
|
- @copyOrder="copyOrder"
|
|
|
- :detailData="detailData"
|
|
|
- v-if="!show"
|
|
|
- ></detail-page>
|
|
|
- <el-dialog
|
|
|
- title="导入采购任务"
|
|
|
- v-if="dialogVisible"
|
|
|
- :visible.sync="dialogVisible"
|
|
|
- append-to-body
|
|
|
- :close-on-click-modal="false"
|
|
|
- :close-on-press-escape="false"
|
|
|
- :before-close="function() {
|
|
|
- dialogVisible = false;params={}
|
|
|
- }"
|
|
|
- top="1vh"
|
|
|
- width="90%">
|
|
|
- <span>
|
|
|
- <el-row>
|
|
|
- <el-col :span="6" style="padding: 0 10px">
|
|
|
- <el-scrollbar>
|
|
|
-<!-- <avue-tree :option="treeOption" :key="avueTree" :data="treeData" @node-click="nodeClick"/>-->
|
|
|
- <!-- {{ treeData }}-->
|
|
|
- <el-table
|
|
|
- style="width: 100%"
|
|
|
- border
|
|
|
- size="mini"
|
|
|
- ref="singleTable"
|
|
|
- highlight-current-row
|
|
|
- @current-change="handleCurrentChange"
|
|
|
- :data="treeData">
|
|
|
- <el-table-column
|
|
|
- prop="orderNo"
|
|
|
- show-overflow-tooltip
|
|
|
- align="center"
|
|
|
- label="销售单号">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="plannedDeliveryDate"
|
|
|
- show-overflow-tooltip
|
|
|
- width="105"
|
|
|
- align="center"
|
|
|
- label="交货日期">
|
|
|
- <template slot-scope="{row}">
|
|
|
- {{ row.plannedDeliveryDate ? row.plannedDeliveryDate.slice(0, 10) : '' }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- </el-scrollbar>
|
|
|
- </el-col>
|
|
|
- <el-col :span="18">
|
|
|
-<!-- :page.sync="dialogPage"-->
|
|
|
- <avue-crud
|
|
|
- :data="dialogData"
|
|
|
- :option="dialogOption"
|
|
|
- :search.sync="params"
|
|
|
- ref="dialogCrud"
|
|
|
- @resetColumn="resetColumnTwo('dialogCrud','dialogOption','dialogOptionList',2.1)"
|
|
|
- @saveColumn="saveColumnTwo('dialogCrud','dialogOption','dialogOptionList',2.1)"
|
|
|
- @refresh-change="refreshChangeTwo"
|
|
|
- @search-change="searchChangeTwo"
|
|
|
- @search-reset="searchReset"
|
|
|
- @on-load="dialogOnLoad">
|
|
|
- <template slot="menuLeft">
|
|
|
- <el-tabs v-model="activeName" @tab-click="tabHandle">
|
|
|
- <el-tab-pane label="查询结果" name="searchList"/>
|
|
|
- <el-tab-pane label="已选定数据" name="importStaging"/>
|
|
|
- </el-tabs>
|
|
|
- </template>
|
|
|
- <template slot="corpNameSearch">
|
|
|
- <crop-select v-model="params.corpId" corpType="GYS"/>
|
|
|
- </template>
|
|
|
- <template slot="orderQuantity" slot-scope="scope">
|
|
|
- <el-input-number v-if="activeName === 'importStaging'" v-model="scope.row.orderQuantity" :precision="2" :min="0.01" :controls="false"></el-input-number>
|
|
|
- <span v-else>{{scope.row.orderQuantity}}</span>
|
|
|
- </template>
|
|
|
- <template slot-scope="scope" slot="menu">
|
|
|
- <el-button
|
|
|
- type="text"
|
|
|
- icon="el-icon-edit"
|
|
|
- size="small"
|
|
|
- @click.stop="importStagList(scope.row, scope.index)"
|
|
|
- v-if="activeName == 'searchList'"
|
|
|
- :disabled=" goodsListSave.findIndex(item => item.id == scope.row.id) !== -1 "
|
|
|
- >选择
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- type="text"
|
|
|
- icon="el-icon-delete"
|
|
|
- size="small"
|
|
|
- @click.stop="removeStagList(scope.row, scope.index)"
|
|
|
- v-else
|
|
|
- >移除
|
|
|
- </el-button>
|
|
|
- </template>
|
|
|
- </avue-crud>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </span>
|
|
|
+ <detail-page @goBack="goBack" @copyOrder="copyOrder" :detailData="detailData" v-if="!show"></detail-page>
|
|
|
+ <el-dialog title="导入采购任务" v-if="dialogVisible" :visible.sync="dialogVisible" append-to-body
|
|
|
+ :close-on-click-modal="false" :close-on-press-escape="false" :before-close="function () {
|
|
|
+ dialogVisible = false; params = {}
|
|
|
+ }" top="1vh" width="90%">
|
|
|
+ <span>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="6" style="padding: 0 10px">
|
|
|
+ <el-scrollbar>
|
|
|
+ <!-- <avue-tree :option="treeOption" :key="avueTree" :data="treeData" @node-click="nodeClick"/>-->
|
|
|
+ <!-- {{ treeData }}-->
|
|
|
+ <el-table style="width: 100%" border size="mini" ref="singleTable" highlight-current-row
|
|
|
+ @current-change="handleCurrentChange" :data="treeData">
|
|
|
+ <el-table-column prop="orderNo" show-overflow-tooltip align="center" label="销售单号">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="plannedDeliveryDate" show-overflow-tooltip width="105" align="center"
|
|
|
+ label="交货日期">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ {{ row.plannedDeliveryDate ? row.plannedDeliveryDate.slice(0, 10) : '' }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-scrollbar>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="18">
|
|
|
+ <!-- :page.sync="dialogPage"-->
|
|
|
+ <avue-crud :data="dialogData" :option="dialogOption" :search.sync="params" ref="dialogCrud"
|
|
|
+ @resetColumn="resetColumnTwo('dialogCrud', 'dialogOption', 'dialogOptionList', 2.1)"
|
|
|
+ @saveColumn="saveColumnTwo('dialogCrud', 'dialogOption', 'dialogOptionList', 2.1)"
|
|
|
+ @refresh-change="refreshChangeTwo" @search-change="searchChangeTwo" @search-reset="searchReset"
|
|
|
+ @on-load="dialogOnLoad">
|
|
|
+ <template slot="menuLeft">
|
|
|
+ <el-tabs v-model="activeName" @tab-click="tabHandle">
|
|
|
+ <el-tab-pane label="查询结果" name="searchList" />
|
|
|
+ <el-tab-pane label="已选定数据" name="importStaging" />
|
|
|
+ </el-tabs>
|
|
|
+ </template>
|
|
|
+ <template slot="corpNameSearch">
|
|
|
+ <crop-select v-model="params.corpId" corpType="GYS" />
|
|
|
+ </template>
|
|
|
+ <template slot="orderQuantity" slot-scope="scope">
|
|
|
+ <el-input-number v-if="activeName === 'importStaging'" v-model="scope.row.orderQuantity"
|
|
|
+ :precision="2" :min="0.01" :controls="false"></el-input-number>
|
|
|
+ <span v-else>{{ scope.row.orderQuantity }}</span>
|
|
|
+ </template>
|
|
|
+ <template slot-scope="scope" slot="menu">
|
|
|
+ <el-button type="text" icon="el-icon-edit" size="small"
|
|
|
+ @click.stop="importStagList(scope.row, scope.index)" v-if="activeName == 'searchList'"
|
|
|
+ :disabled="goodsListSave.findIndex(item => item.id == scope.row.id) !== -1">选择
|
|
|
+ </el-button>
|
|
|
+ <el-button type="text" icon="el-icon-delete" size="small"
|
|
|
+ @click.stop="removeStagList(scope.row, scope.index)" v-else>移除
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </avue-crud>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </span>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button type="warning" @click="outExport">导出</el-button>
|
|
|
- <el-button @click="dialogVisible = false;params={}">取 消</el-button>
|
|
|
- <el-button type="primary" :disabled="goodsListSave.length === 0" @click="confirmImport">导 入</el-button>
|
|
|
- </span>
|
|
|
+ <el-button type="warning" @click="outExport">导出</el-button>
|
|
|
+ <el-button @click="dialogVisible = false; params = {}">取 消</el-button>
|
|
|
+ <el-button type="primary" :disabled="goodsListSave.length === 0" @click="confirmImport">导 入</el-button>
|
|
|
+ </span>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -251,13 +159,14 @@ import {
|
|
|
gainUser,
|
|
|
listXS,
|
|
|
generatePurchaseBill,
|
|
|
- listBYStatus
|
|
|
+ listBYStatus,
|
|
|
+ getGoodsInfo
|
|
|
} from "@/api/exportTrade/purchaseContract";
|
|
|
import detailPage from "./detailsPage.vue";
|
|
|
-import {defaultDate} from "@/util/date";
|
|
|
-import {IntegerFormat} from "@/util/validate";
|
|
|
-import {customerParameter} from "@/enums/management-type";
|
|
|
-import {getToken} from "@/util/auth";
|
|
|
+import { defaultDate } from "@/util/date";
|
|
|
+import { IntegerFormat } from "@/util/validate";
|
|
|
+import { customerParameter } from "@/enums/management-type";
|
|
|
+import { getToken } from "@/util/auth";
|
|
|
|
|
|
export default {
|
|
|
name: "customerInformation",
|
|
@@ -325,7 +234,7 @@ export default {
|
|
|
prop: "billNo",
|
|
|
search: true,
|
|
|
searchSpan: 8,
|
|
|
- searchOrder:1,
|
|
|
+ searchOrder: 1,
|
|
|
overHidden: true
|
|
|
}, {
|
|
|
label: "销售日期",
|
|
@@ -406,10 +315,10 @@ export default {
|
|
|
label: "显示全部",
|
|
|
prop: "showAll",
|
|
|
searchSpan: 8,
|
|
|
- searchOrder:2,
|
|
|
+ searchOrder: 2,
|
|
|
overHidden: true,
|
|
|
type: "select",
|
|
|
- clearable:false,
|
|
|
+ clearable: false,
|
|
|
search: true,
|
|
|
hide: true,
|
|
|
showColumn: false,
|
|
@@ -424,6 +333,62 @@ export default {
|
|
|
}]
|
|
|
},
|
|
|
dialogVisible: false,
|
|
|
+ itemOption: {
|
|
|
+ align: "center",
|
|
|
+ header: false,
|
|
|
+ border: true,
|
|
|
+ menu: false,
|
|
|
+ column: [
|
|
|
+ {
|
|
|
+ label: "产品类别",
|
|
|
+ prop: "priceCategory",
|
|
|
+ width: 140,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "产品名称",
|
|
|
+ prop: "cname",
|
|
|
+ width: 240,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "产品描述",
|
|
|
+ prop: "itemDescription",
|
|
|
+ width: 240,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "配件描述",
|
|
|
+ prop: "partsDescribe",
|
|
|
+ width: 240,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "配件价格描述",
|
|
|
+ prop: "partsPriceDescribe",
|
|
|
+ width: 240,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "数量",
|
|
|
+ prop: "orderQuantity",
|
|
|
+ width: 100,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "单价",
|
|
|
+ prop: "price",
|
|
|
+ width: 100,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "金额",
|
|
|
+ prop: "amount",
|
|
|
+ width: 100,
|
|
|
+ overHidden: true
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
form: {},
|
|
|
option: {},
|
|
|
parentId: 0,
|
|
@@ -441,7 +406,7 @@ export default {
|
|
|
selectionList: []
|
|
|
};
|
|
|
},
|
|
|
- components: {detailPage},
|
|
|
+ components: { detailPage },
|
|
|
async created() {
|
|
|
this.option = await this.getColumnData(this.getColumnName(2), option);
|
|
|
this.dialogOption = await this.getColumnData(this.getColumnName(2.1), this.dialogOptionList);
|
|
@@ -470,7 +435,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
outExport() {
|
|
|
- let config = {params: {...this.params}}
|
|
|
+ let config = { params: { ...this.params } }
|
|
|
if (config.params) {
|
|
|
for (const propName of Object.keys(config.params)) {
|
|
|
const value = config.params[propName];
|
|
@@ -533,6 +498,18 @@ export default {
|
|
|
selectionChange(list) {
|
|
|
this.selectionList = list;
|
|
|
},
|
|
|
+ //行展开数据
|
|
|
+ expandChange(row) {
|
|
|
+ if (!row.itemData) {
|
|
|
+ getGoodsInfo({ id: row.id, tradeType: "CK" })
|
|
|
+ .then(res => {
|
|
|
+ this.dataList[row.$index].itemData = res.data.data;
|
|
|
+ })
|
|
|
+ .finally(() => {
|
|
|
+ this.dataList[row.$index].itemLoading = false;
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
copyDoc() {
|
|
|
this.selectionList.forEach(e => {
|
|
|
this.detailData = {
|
|
@@ -628,7 +605,7 @@ export default {
|
|
|
this.$refs[ref].$refs.dialogColumn.columnBox = false;
|
|
|
}
|
|
|
},
|
|
|
-//自定义列重置
|
|
|
+ //自定义列重置
|
|
|
async resetColumnTwo(ref, option, optionBack, code) {
|
|
|
this[option] = this[optionBack];
|
|
|
const inSave = await this.delColumnData(this.getColumnName(code), this[optionBack]);
|
|
@@ -648,6 +625,7 @@ export default {
|
|
|
background: 'rgba(255,255,255,0.7)'
|
|
|
});
|
|
|
generatePurchaseBill(this.goodsListSave).then(res => {
|
|
|
+ console.log(res.data.data);
|
|
|
this.$message.success("导入成功")
|
|
|
this.detailData = {
|
|
|
form: res.data.data
|
|
@@ -697,8 +675,16 @@ export default {
|
|
|
delete params.requiredDeliveryDate
|
|
|
}
|
|
|
this.loading = true;
|
|
|
+ this.dataList.forEach(item => {
|
|
|
+ this.$refs.crud.toggleRowExpansion(item, false);
|
|
|
+ });
|
|
|
getList(page.currentPage, page.pageSize, params)
|
|
|
.then(res => {
|
|
|
+ if (res.data.data.records) {
|
|
|
+ res.data.data.records.forEach(e => {
|
|
|
+ e.itemLoading = true;
|
|
|
+ });
|
|
|
+ }
|
|
|
this.dataList = res.data.data.records ? res.data.data.records : [];
|
|
|
this.page.total = res.data.data.total;
|
|
|
})
|
|
@@ -776,4 +762,9 @@ export default {
|
|
|
.page-crad ::v-deep .basic-container__card {
|
|
|
height: 94.2vh;
|
|
|
}
|
|
|
+
|
|
|
+.itemTable ::v-deep .el-table {
|
|
|
+ margin-left: 50px;
|
|
|
+ width: 100%;
|
|
|
+}
|
|
|
</style>
|