|
|
|
@ -1,10 +1,12 @@ |
|
|
|
<template> |
|
|
|
<div > |
|
|
|
<el-main style="background-color: #B3C0D1;padding: 2px;"> |
|
|
|
|
|
|
|
<el-form :inline="true" label-position="top" label-width="100px"> |
|
|
|
<div> |
|
|
|
<fieldset class="customer-field" style="width: 100%; padding: 0.35em 0.75em 0.425em;"> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form :inline="true" label-position="top" label-width="100px"> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label1"> |
|
|
|
<el-input style="width: 100px;" @focus="initToolHeaderModel()" readonly v-model="headerData.toolId" ></el-input> <!----> |
|
|
|
<el-input style="width: 100px;" @focus="initToolHeaderModel()" readonly |
|
|
|
v-model="headerData.toolId"></el-input> <!----> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label2"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="headerData.toolDescription"></el-input> |
|
|
|
@ -13,195 +15,223 @@ |
|
|
|
<el-input style="width: 100px;" readonly v-model="headerData.spec"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label4"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="headerData.site"></el-input> |
|
|
|
<el-input style="width: 100px;" readonly v-model="headerData.site"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label5"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="headerData.familyId"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label6"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="headerData.familyName"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label7"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="headerData.umid"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label8"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="headerData.strActive"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
|
|
|
|
<el-form :inline="true" label-position="top" label-width="100px"> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label9"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="headerData.codeNo"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label10"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="headerData.defaultLocationId"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label11"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="headerData.strPartCreated"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label12"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="headerData.partNo"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label14"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="headerData.strCreateDate"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label15"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="headerData.createdBy"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label13"> |
|
|
|
<el-input style="width: 215px;" readonly v-model="headerData.remark"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
|
|
|
|
</el-main> |
|
|
|
|
|
|
|
<el-container > |
|
|
|
|
|
|
|
<el-aside width="59%" style="padding: 0px 2px;"> |
|
|
|
<el-form :inline="true" label-position="top" label-width="95px" style="padding: 5px;"> |
|
|
|
<el-form-item > |
|
|
|
<!-- <el-button type="primary">{{ inputLabel.leftInput.label1 }}</el-button> <!–@click="initViewIfsTable('Y')"–>--> |
|
|
|
<el-button @click="initToolModel()" type="primary" v-show="showDefault">{{ buttons.edit }}</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" label-width="100px"> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label1"> |
|
|
|
<el-select @change="toolInstanceIdChange(currentDetailData.toolInstanceId)" v-model="currentDetailData.toolInstanceId" placeholder="请选择" style="width: 100px;"> |
|
|
|
<el-option |
|
|
|
v-for="item in selectList.select4" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label2"> |
|
|
|
<el-input style="width: 95px;" readonly v-model="currentDetailData.status"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label3"> |
|
|
|
<el-input style="width: 95px;" readonly v-model="currentDetailData.supplierId"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label4"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="currentDetailData.supplierName"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label5"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="currentDetailData.strPurchaseDate"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
|
|
|
|
<el-form :inline="true" label-position="top" label-width="100px"> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label6"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="currentDetailData.steelSeal"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label7"> |
|
|
|
<el-input style="width: 95px;" readonly v-model="currentDetailData.strPhaseInDate"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label8"> |
|
|
|
<el-input style="width: 95px;" readonly v-model="currentDetailData.strPhaseOutDate"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label9"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="currentDetailData.estUseQty"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label10"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="currentDetailData.actualUseQty"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
|
|
|
|
<el-form :inline="true" label-position="top" label-width="100px"> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label11"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="currentDetailData.strCreateDate"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label12"> |
|
|
|
<el-input style="width: 95px;" readonly v-model="currentDetailData.createdBy"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label13"> |
|
|
|
<el-input style="width: 95px;" readonly v-model="currentDetailData.orderNo"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label14"> |
|
|
|
<el-input style="width: 215px;" readonly v-model="currentDetailData.remark"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
|
|
|
|
</el-aside> |
|
|
|
|
|
|
|
<el-main style="padding: 0px;"> |
|
|
|
<el-form :inline="true" label-position="top" label-width="100px"> |
|
|
|
<el-form-item :label="inputLabel.rightInput.label1"> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-table |
|
|
|
id="commmon1" |
|
|
|
height="36%" |
|
|
|
:data="sfdcToolingHistList" |
|
|
|
border |
|
|
|
v-loading="dataListLoading" |
|
|
|
@selection-change="selectionChangeHandle" |
|
|
|
style="width: 100%;"> |
|
|
|
<!-- <el-table-column |
|
|
|
type="selection" |
|
|
|
header-align="center" |
|
|
|
width="40" |
|
|
|
align="center"> |
|
|
|
</el-table-column>--> |
|
|
|
<el-table-column |
|
|
|
v-for="(item,index) in columnList" :key="index" |
|
|
|
:sortable="item.columnSortable" |
|
|
|
:prop="item.columnProp" |
|
|
|
:header-align="item.headerAlign" |
|
|
|
:show-overflow-tooltip="item.showOverflowTooltip" |
|
|
|
:align="item.align" |
|
|
|
:fixed="item.fixed" |
|
|
|
:width="item.columnWidth" |
|
|
|
:label="item.columnLabel"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span> |
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
|
style="width: 100px; height: 80px"/></span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
|
|
|
|
<el-form :inline="true" label-position="top" label-width="100px"> |
|
|
|
<el-form-item :label="inputLabel.rightInput.label2"> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label5"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="headerData.familyId"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label6"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="headerData.familyName"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label7"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="headerData.umid"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label8"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="headerData.strActive"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form :inline="true" label-position="top" label-width="100px"> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label9"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="headerData.codeNo"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label10"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="headerData.defaultLocationId"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label11"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="headerData.strPartCreated"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label12"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="headerData.partNo"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label14"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="headerData.strCreateDate"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label15"> |
|
|
|
<el-input style="width: 100px;" readonly v-model="headerData.createdBy"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label13"> |
|
|
|
<el-input style="width: 215px;" readonly v-model="headerData.remark"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</fieldset> |
|
|
|
<el-row> |
|
|
|
<fieldset class="customer-field" style="width: 100%; margin-top: 5px"> |
|
|
|
<legend>工具实例</legend> |
|
|
|
<el-col :span="7"> |
|
|
|
<fieldset class="customer-field" style="width: 98%;"> |
|
|
|
<el-form :inline="true" label-position="top" label-width="95px" style="padding: 5px;"> |
|
|
|
<el-form-item> |
|
|
|
<el-button @click="initToolModel()" type="primary" v-show="showDefault">{{ buttons.edit }}</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" label-width="95px" > |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label1"> |
|
|
|
<el-select @change="toolInstanceIdChange(currentDetailData.toolInstanceId)" |
|
|
|
v-model="currentDetailData.toolInstanceId" placeholder="请选择" style="width: 150px;"> |
|
|
|
<el-option |
|
|
|
v-for="item in selectList.select4" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label2"> |
|
|
|
<el-input style="width: 150px;" readonly v-model="currentDetailData.status"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label3"> |
|
|
|
<el-input style="width: 150px;" readonly v-model="currentDetailData.supplierId"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label4"> |
|
|
|
<el-input style="width: 150px;" readonly v-model="currentDetailData.supplierName"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label5"> |
|
|
|
<el-input style="width: 150px;" readonly v-model="currentDetailData.strPurchaseDate"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label6"> |
|
|
|
<el-input style="width: 150px;" readonly v-model="currentDetailData.steelSeal"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label7"> |
|
|
|
<el-input style="width: 150px;" readonly v-model="currentDetailData.strPhaseInDate"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label8"> |
|
|
|
<el-input style="width: 150px;" readonly v-model="currentDetailData.strPhaseOutDate"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label9"> |
|
|
|
<el-input style="width: 150px;" readonly v-model="currentDetailData.estUseQty"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label10"> |
|
|
|
<el-input style="width: 150px;" readonly v-model="currentDetailData.actualUseQty"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label11"> |
|
|
|
<el-input style="width: 150px;" readonly v-model="currentDetailData.strCreateDate"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label12"> |
|
|
|
<el-input style="width: 150px;" readonly v-model="currentDetailData.createdBy"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label13"> |
|
|
|
<el-input style="width: 150px;" readonly v-model="currentDetailData.orderNo"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"></el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label14"> |
|
|
|
<el-input style="width: 300px;" readonly v-model="currentDetailData.remark"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
</fieldset> |
|
|
|
</el-col> |
|
|
|
<el-col :span="17"> |
|
|
|
<fieldset class="customer-field" style="width: 100%; "> |
|
|
|
<span> {{inputLabel.rightInput.label1}}</span> |
|
|
|
<el-table |
|
|
|
width="100%" |
|
|
|
:height="height/2" |
|
|
|
:data="sfdcToolingHistList" |
|
|
|
border |
|
|
|
v-loading="dataListLoading" |
|
|
|
@selection-change="selectionChangeHandle" |
|
|
|
style="width: 100%;"> |
|
|
|
<el-table-column |
|
|
|
v-for="(item,index) in columnList" :key="index" |
|
|
|
:sortable="item.columnSortable" |
|
|
|
:prop="item.columnProp" |
|
|
|
:header-align="item.headerAlign" |
|
|
|
:show-overflow-tooltip="item.showOverflowTooltip" |
|
|
|
:align="item.align" |
|
|
|
:fixed="item.fixed" |
|
|
|
:width="item.columnWidth" |
|
|
|
:label="item.columnLabel"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span> |
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
|
style="width: 100px; height: 80px"/></span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<span> {{inputLabel.rightInput.label2}}</span> |
|
|
|
<el-table |
|
|
|
width="100%" |
|
|
|
:height="height/2" |
|
|
|
:data="toolInstanceIdUseHist" |
|
|
|
border |
|
|
|
v-loading="dataListLoading" |
|
|
|
@selection-change="selectionChangeHandle" |
|
|
|
style="width: 100%;"> |
|
|
|
<el-table-column |
|
|
|
v-for="(item,index) in columnList1" :key="index" |
|
|
|
:sortable="item.columnSortable" |
|
|
|
:prop="item.columnProp" |
|
|
|
:header-align="item.headerAlign" |
|
|
|
:show-overflow-tooltip="item.showOverflowTooltip" |
|
|
|
:align="item.align" |
|
|
|
:fixed="item.fixed" |
|
|
|
:width="item.columnWidth" |
|
|
|
:label="item.columnLabel"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span> |
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
|
style="width: 100px; height: 80px"/></span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</fieldset> |
|
|
|
</el-col> |
|
|
|
</fieldset> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-table |
|
|
|
id="commmon2" |
|
|
|
height="36%" |
|
|
|
:data="toolInstanceIdUseHist" |
|
|
|
border |
|
|
|
v-loading="dataListLoading" |
|
|
|
@selection-change="selectionChangeHandle" |
|
|
|
style="width: 100%;"> |
|
|
|
<!-- <el-table-column |
|
|
|
type="selection" |
|
|
|
header-align="center" |
|
|
|
width="40" |
|
|
|
align="center"> |
|
|
|
</el-table-column>--> |
|
|
|
<el-table-column |
|
|
|
v-for="(item,index) in columnList1" :key="index" |
|
|
|
:sortable="item.columnSortable" |
|
|
|
:prop="item.columnProp" |
|
|
|
:header-align="item.headerAlign" |
|
|
|
:show-overflow-tooltip="item.showOverflowTooltip" |
|
|
|
:align="item.align" |
|
|
|
:fixed="item.fixed" |
|
|
|
:width="item.columnWidth" |
|
|
|
:label="item.columnLabel"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span> |
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
|
style="width: 100px; height: 80px"/></span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-main> |
|
|
|
</el-container> |
|
|
|
<column v-if="visible" ref="column" @refreshData="getTableUserColumn"></column> |
|
|
|
<column v-if="visible" ref="column" @refreshData="getTableUserColumn"></column> |
|
|
|
|
|
|
|
<el-dialog :close-on-click-modal="false" :close-on-press-escape="false" v-drag :title="inputLabel.leftInput.label15" :visible.sync="setUp.toolHeaderFlag" width="485px"> |
|
|
|
<el-dialog :close-on-click-modal="false" :close-on-press-escape="false" v-drag |
|
|
|
:title="inputLabel.leftInput.label15" :visible.sync="setUp.toolHeaderFlag" width="485px"> |
|
|
|
<el-form :inline="true" label-position="left"> |
|
|
|
<el-form-item :label="inputLabel.headerInput.label1"> |
|
|
|
<el-input style="width: 110px;" v-model="queryHeaderData.toolId"></el-input> |
|
|
|
@ -209,9 +239,9 @@ |
|
|
|
<el-form-item :label="inputLabel.headerInput.label2"> |
|
|
|
<el-input style="width: 110px;" v-model="queryHeaderData.toolDescription"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item > |
|
|
|
<el-form-item> |
|
|
|
<!-- <el-button type="primary">{{ inputLabel.leftInput.label1 }}</el-button> <!–@click="initViewIfsTable('Y')"–>--> |
|
|
|
<el-button @click="getToolHeaderList()" type="primary" v-show="showDefault">{{ buttons.search }}</el-button> |
|
|
|
<el-button @click="getToolHeaderList()" type="primary" v-show="showDefault">{{ buttons.search }}</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-table |
|
|
|
id="commmon3" |
|
|
|
@ -220,7 +250,7 @@ |
|
|
|
border |
|
|
|
v-loading="dataListLoading" |
|
|
|
style="width: 100%;" |
|
|
|
@row-dblclick="rowDblclick" > |
|
|
|
@row-dblclick="rowDblclick"> |
|
|
|
<el-table-column |
|
|
|
v-for="(item,index) in columnList2" :key="index" |
|
|
|
:sortable="item.columnSortable" |
|
|
|
@ -238,8 +268,8 @@ |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog :close-on-click-modal="false" :close-on-press-escape="false" v-drag :title="inputLabel.leftInput.label15" :visible.sync="setUp.toolEditFlag" width="620px"> |
|
|
|
<el-dialog :close-on-click-modal="false" :close-on-press-escape="false" v-drag |
|
|
|
:title="inputLabel.leftInput.label15" :visible.sync="setUp.toolEditFlag" width="620px"> |
|
|
|
<el-form :inline="true" label-position="top"> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label1"> |
|
|
|
<el-input style="width: 130px;" readonly v-model="editData.toolInstanceId"></el-input> |
|
|
|
@ -256,7 +286,7 @@ |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top"> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label5" style="height: 28px;"> |
|
|
|
<!-- <el-input style="width: 100px;" v-model="editData.strPurchaseDate"></el-input>--> |
|
|
|
<!-- <el-input style="width: 100px;" v-model="editData.strPurchaseDate"></el-input>--> |
|
|
|
<el-date-picker |
|
|
|
v-model="editData.strPurchaseDate" |
|
|
|
type="date" |
|
|
|
@ -265,7 +295,7 @@ |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label6"> |
|
|
|
<el-input style="width: 130px;" v-model="editData.steelSeal"></el-input> |
|
|
|
<el-input style="width: 130px;" v-model="editData.steelSeal"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label7"> |
|
|
|
<el-date-picker |
|
|
|
@ -286,10 +316,10 @@ |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top"> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label9"> |
|
|
|
<el-input style="width: 130px;" v-model="editData.estUseQty"></el-input> |
|
|
|
<el-input style="width: 130px;" v-model="editData.estUseQty"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label10"> |
|
|
|
<el-input style="width: 130px;" readonly v-model="editData.actualUseQty"></el-input> |
|
|
|
<el-input style="width: 130px;" readonly v-model="editData.actualUseQty"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<!--<el-form-item :label="inputLabel.leftInput.label11"> |
|
|
|
<el-input style="width: 130px;" v-model="editData.strCreateDate"></el-input> |
|
|
|
@ -300,7 +330,7 @@ |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top"> |
|
|
|
<el-form-item :label="inputLabel.leftInput.label14"> |
|
|
|
<el-input style="width: 440px;" v-model="editData.remark"></el-input> |
|
|
|
<el-input style="width: 440px;" v-model="editData.remark"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
@ -351,125 +381,125 @@ |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
toolHeaderList :[], |
|
|
|
queryHeaderData : { |
|
|
|
site : this.$store.state.user.site, |
|
|
|
toolId : '', |
|
|
|
toolDescription : '' |
|
|
|
toolHeaderList: [], |
|
|
|
queryHeaderData: { |
|
|
|
site: this.$store.state.user.site, |
|
|
|
toolId: '', |
|
|
|
toolDescription: '' |
|
|
|
}, |
|
|
|
editData : {}, |
|
|
|
setUp :{ |
|
|
|
toolEditFlag : false, |
|
|
|
saveToolFlag : false, |
|
|
|
toolHeaderFlag : false, |
|
|
|
editData: {}, |
|
|
|
setUp: { |
|
|
|
toolEditFlag: false, |
|
|
|
saveToolFlag: false, |
|
|
|
toolHeaderFlag: false, |
|
|
|
}, |
|
|
|
toolInstanceIdUseHist : [], |
|
|
|
sfdcToolingHistList : [], |
|
|
|
selectList:{ |
|
|
|
select1 : [{ |
|
|
|
toolInstanceIdUseHist: [], |
|
|
|
sfdcToolingHistList: [], |
|
|
|
selectList: { |
|
|
|
select1: [{ |
|
|
|
value: 'Y', |
|
|
|
label: '启用' |
|
|
|
},{ |
|
|
|
}, { |
|
|
|
value: 'N', |
|
|
|
label: '禁用' |
|
|
|
}], |
|
|
|
select2 :[{ |
|
|
|
select2: [{ |
|
|
|
value: 'Y', |
|
|
|
label: '是' |
|
|
|
},{ |
|
|
|
}, { |
|
|
|
value: 'N', |
|
|
|
label: '否' |
|
|
|
}], |
|
|
|
select3 :[{ |
|
|
|
select3: [{ |
|
|
|
value: 'P', |
|
|
|
label: '个人' |
|
|
|
},{ |
|
|
|
}, { |
|
|
|
value: 'G', |
|
|
|
label: '组' |
|
|
|
}], |
|
|
|
select4 : [], |
|
|
|
select5 : [], |
|
|
|
select4: [], |
|
|
|
select5: [], |
|
|
|
}, |
|
|
|
inputLabel :{ |
|
|
|
headerInput : { |
|
|
|
label1 : '工具编码', |
|
|
|
label2 : '工具名称', |
|
|
|
label3 : '规格型号', |
|
|
|
label4 : '工厂编号', |
|
|
|
label5 : '工具分类', |
|
|
|
label6 : '工具分类名称', |
|
|
|
label7 : '计量单位', |
|
|
|
label8 : '在用', |
|
|
|
label9 : '属性模块', |
|
|
|
label10 : '默认库位', |
|
|
|
label11 : '创建物料编码', |
|
|
|
label12 : '物料编码', |
|
|
|
label13 : '说明', |
|
|
|
label14 : '新增日期', |
|
|
|
label15 : '录入人', |
|
|
|
inputLabel: { |
|
|
|
headerInput: { |
|
|
|
label1: '工具编码', |
|
|
|
label2: '工具名称', |
|
|
|
label3: '规格型号', |
|
|
|
label4: '工厂编号', |
|
|
|
label5: '工具分类', |
|
|
|
label6: '工具分类名称', |
|
|
|
label7: '计量单位', |
|
|
|
label8: '在用', |
|
|
|
label9: '属性模块', |
|
|
|
label10: '默认库位', |
|
|
|
label11: '创建物料编码', |
|
|
|
label12: '物料编码', |
|
|
|
label13: '说明', |
|
|
|
label14: '新增日期', |
|
|
|
label15: '录入人', |
|
|
|
}, |
|
|
|
leftInput :{ |
|
|
|
label1 : '工具编号', |
|
|
|
label2 : '状态', |
|
|
|
label3 : '供应商编码', |
|
|
|
label4 : '供应商名称', |
|
|
|
label5 : '采购日期', |
|
|
|
label6 : '钢印编码', |
|
|
|
label7 : '入库日期', |
|
|
|
label8 : '终止日期', |
|
|
|
label9 : '刀模寿命', |
|
|
|
label10 : '使用寿命', |
|
|
|
label11 : '录入日期', |
|
|
|
label12 : '录入人', |
|
|
|
label13 : '采购订单号', |
|
|
|
label14 : '备注', |
|
|
|
label15 : '工具实例信息', |
|
|
|
leftInput: { |
|
|
|
label1: '实例编号', |
|
|
|
label2: '状态', |
|
|
|
label3: '供应商编码', |
|
|
|
label4: '供应商名称', |
|
|
|
label5: '采购日期', |
|
|
|
label6: '钢印编码', |
|
|
|
label7: '入库日期', |
|
|
|
label8: '终止日期', |
|
|
|
label9: '刀模寿命', |
|
|
|
label10: '使用寿命', |
|
|
|
label11: '录入日期', |
|
|
|
label12: '录入人', |
|
|
|
label13: '采购订单号', |
|
|
|
label14: '备注', |
|
|
|
label15: '工具实例信息', |
|
|
|
}, |
|
|
|
rightInput :{ |
|
|
|
label1 : '工具使用记录:', |
|
|
|
label2 : '工具维修记录:', |
|
|
|
rightInput: { |
|
|
|
label1: '工具使用记录:', |
|
|
|
label2: '工具维修记录:', |
|
|
|
}, |
|
|
|
}, |
|
|
|
currentDetailData :{ |
|
|
|
currentDetailData: { |
|
|
|
actualUseQty: '', |
|
|
|
createDate:'', |
|
|
|
createdBy:'', |
|
|
|
description:'', |
|
|
|
createDate: '', |
|
|
|
createdBy: '', |
|
|
|
description: '', |
|
|
|
estUseQty: '', |
|
|
|
inspectDuration:'', |
|
|
|
lastUpdateBy:'', |
|
|
|
latestInspectDate:'', |
|
|
|
latestUseDate:'', |
|
|
|
locationId:'', |
|
|
|
phaseInDate:'', |
|
|
|
phaseOutDate:'', |
|
|
|
purchaseDate:'', |
|
|
|
remark:'', |
|
|
|
site:'', |
|
|
|
status:'', |
|
|
|
statusRef:'', |
|
|
|
supplierId:'', |
|
|
|
supplierName:'', |
|
|
|
toolDescription:'', |
|
|
|
toolId:'', |
|
|
|
toolIndex:'', |
|
|
|
toolInstanceId:'', |
|
|
|
torNumacc:'', |
|
|
|
torNumdown:'', |
|
|
|
workCenterNo:'', |
|
|
|
steelSeal : '', |
|
|
|
strCreateDate:'', |
|
|
|
strLatestInspectDate:'', |
|
|
|
strLatestUseDate:'', |
|
|
|
strPhaseInDate:'', |
|
|
|
strPhaseOutDate:'', |
|
|
|
strPurchaseDate:'', |
|
|
|
inspectDuration: '', |
|
|
|
lastUpdateBy: '', |
|
|
|
latestInspectDate: '', |
|
|
|
latestUseDate: '', |
|
|
|
locationId: '', |
|
|
|
phaseInDate: '', |
|
|
|
phaseOutDate: '', |
|
|
|
purchaseDate: '', |
|
|
|
remark: '', |
|
|
|
site: '', |
|
|
|
status: '', |
|
|
|
statusRef: '', |
|
|
|
supplierId: '', |
|
|
|
supplierName: '', |
|
|
|
toolDescription: '', |
|
|
|
toolId: '', |
|
|
|
toolIndex: '', |
|
|
|
toolInstanceId: '', |
|
|
|
torNumacc: '', |
|
|
|
torNumdown: '', |
|
|
|
workCenterNo: '', |
|
|
|
steelSeal: '', |
|
|
|
strCreateDate: '', |
|
|
|
strLatestInspectDate: '', |
|
|
|
strLatestUseDate: '', |
|
|
|
strPhaseInDate: '', |
|
|
|
strPhaseOutDate: '', |
|
|
|
strPurchaseDate: '', |
|
|
|
}, |
|
|
|
detailList : [], |
|
|
|
headerData :{}, |
|
|
|
site : this.$store.state.user.site, |
|
|
|
detailList: [], |
|
|
|
headerData: {}, |
|
|
|
site: this.$store.state.user.site, |
|
|
|
// table高度 |
|
|
|
height:450, |
|
|
|
height: 450, |
|
|
|
// 是否收藏 |
|
|
|
favorite: false, |
|
|
|
addLanguage: false, |
|
|
|
@ -654,7 +684,7 @@ |
|
|
|
// fixed: false, |
|
|
|
// } |
|
|
|
], |
|
|
|
columnList2 :[ |
|
|
|
columnList2: [ |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2501, |
|
|
|
@ -801,8 +831,8 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.$nextTick(()=>{ |
|
|
|
this.height = window.innerHeight - 255; |
|
|
|
this.$nextTick(() => { |
|
|
|
this.height = window.innerHeight - 275; |
|
|
|
}) |
|
|
|
}, |
|
|
|
activated() { |
|
|
|
@ -811,7 +841,7 @@ |
|
|
|
this.getLanguageList() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
rowDblclick(row, column, event){ |
|
|
|
rowDblclick(row, column, event) { |
|
|
|
console.log(row) |
|
|
|
console.log(column) |
|
|
|
console.log(event) |
|
|
|
@ -824,12 +854,12 @@ |
|
|
|
var json_date = new Date(date).toJSON(); |
|
|
|
return new Date(new Date(json_date) + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '') |
|
|
|
}, |
|
|
|
saveToolDetail(){ |
|
|
|
saveToolDetail() { |
|
|
|
this.setUp.saveToolFlag = true |
|
|
|
this.editData.purchaseDate = this.editData.strPurchaseDate |
|
|
|
this.editData.phaseInDate = this.editData.strPhaseInDate |
|
|
|
this.editData.phaseOutDate = this.editData.strPhaseOutDate |
|
|
|
updateToolDetail(this.editData).then((data) =>{ |
|
|
|
updateToolDetail(this.editData).then((data) => { |
|
|
|
debugger |
|
|
|
if (data.code == 0 || data.data.code == 0) { |
|
|
|
this.toolInstanceIdChange() |
|
|
|
@ -843,70 +873,70 @@ |
|
|
|
this.setUp.saveToolFlag = false |
|
|
|
}) |
|
|
|
}, |
|
|
|
initToolHeaderModel(){ |
|
|
|
initToolHeaderModel() { |
|
|
|
this.toolHeaderList = [] |
|
|
|
this.setUp.toolHeaderFlag = true |
|
|
|
this.queryHeaderData.toolId = '' |
|
|
|
this.queryHeaderData.toolDescription = '' |
|
|
|
this.getToolHeaderList() |
|
|
|
}, |
|
|
|
getToolHeaderList(){ |
|
|
|
getToolHeaderList(this.queryHeaderData).then(({data}) =>{ |
|
|
|
getToolHeaderList() { |
|
|
|
getToolHeaderList(this.queryHeaderData).then(({data}) => { |
|
|
|
this.toolHeaderList = data.rows |
|
|
|
}) |
|
|
|
}, |
|
|
|
initToolModel(){ |
|
|
|
initToolModel() { |
|
|
|
this.setUp.toolEditFlag = true |
|
|
|
this.setUp.saveToolFlag = false |
|
|
|
this.editData = JSON.parse(JSON.stringify(this.currentDetailData)) |
|
|
|
}, |
|
|
|
//获取工具使用记录 |
|
|
|
getSfdcToolingHistList(){ |
|
|
|
getSfdcToolingHistList() { |
|
|
|
let queryData = { |
|
|
|
site : this.site, |
|
|
|
toolInstanceId : this.currentDetailData.toolInstanceId |
|
|
|
site: this.site, |
|
|
|
toolInstanceId: this.currentDetailData.toolInstanceId |
|
|
|
} |
|
|
|
getSfdcToolingHistList(queryData).then(({data}) =>{ |
|
|
|
getSfdcToolingHistList(queryData).then(({data}) => { |
|
|
|
this.sfdcToolingHistList = data.rows |
|
|
|
}) |
|
|
|
}, |
|
|
|
//获取工具使用记录 |
|
|
|
getToolInstanceIdUseHist(){ |
|
|
|
getToolInstanceIdUseHist() { |
|
|
|
let queryData = { |
|
|
|
site : this.site, |
|
|
|
toolInstanceId : this.currentDetailData.toolInstanceId |
|
|
|
site: this.site, |
|
|
|
toolInstanceId: this.currentDetailData.toolInstanceId |
|
|
|
} |
|
|
|
getToolInstanceIdUseHist(queryData).then(({data}) =>{ |
|
|
|
getToolInstanceIdUseHist(queryData).then(({data}) => { |
|
|
|
this.toolInstanceIdUseHist = data.rows |
|
|
|
}) |
|
|
|
}, |
|
|
|
toolInstanceIdChange(){ |
|
|
|
toolInstanceIdChange() { |
|
|
|
this.sfdcToolingHistList = [] |
|
|
|
this.toolInstanceIdUseHist = [] |
|
|
|
let queryData = { |
|
|
|
site : this.site, |
|
|
|
toolInstanceId : this.currentDetailData.toolInstanceId, |
|
|
|
site: this.site, |
|
|
|
toolInstanceId: this.currentDetailData.toolInstanceId, |
|
|
|
} |
|
|
|
getToolDetailList(queryData).then(({data}) =>{ |
|
|
|
getToolDetailList(queryData).then(({data}) => { |
|
|
|
let list = data.rows |
|
|
|
if(list.length > 0){ |
|
|
|
if (list.length > 0) { |
|
|
|
this.currentDetailData = list[0] |
|
|
|
this.getToolInstanceIdUseHist() |
|
|
|
this.getSfdcToolingHistList() |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
getDetailList(){ |
|
|
|
getDetailList() { |
|
|
|
this.currentDetailData = {} |
|
|
|
this.selectList.select4 = [] |
|
|
|
this.sfdcToolingHistList = [] |
|
|
|
this.toolInstanceIdUseHist = [] |
|
|
|
let queryData = { |
|
|
|
site : this.site, |
|
|
|
toolId : this.headerData.toolId, |
|
|
|
toolDescription : this.headerData.toolDescription, |
|
|
|
site: this.site, |
|
|
|
toolId: this.headerData.toolId, |
|
|
|
toolDescription: this.headerData.toolDescription, |
|
|
|
} |
|
|
|
getToolDetailList(queryData).then(({data}) =>{ |
|
|
|
getToolDetailList(queryData).then(({data}) => { |
|
|
|
let list = data.rows |
|
|
|
for (let i = 0; i < list.length; i++) { |
|
|
|
let selectData = { |
|
|
|
@ -915,27 +945,27 @@ |
|
|
|
} |
|
|
|
this.selectList.select4.push(selectData); |
|
|
|
} |
|
|
|
if(list.length > 0){ |
|
|
|
if (list.length > 0) { |
|
|
|
this.currentDetailData = list[0] |
|
|
|
this.toolInstanceIdChange() |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
//获取主记录信息 |
|
|
|
getHeaderData(){ |
|
|
|
getHeaderData() { |
|
|
|
let queryData = { |
|
|
|
site : this.site, |
|
|
|
toolId : this.headerData.toolId, |
|
|
|
toolDescription : this.headerData.toolDescription, |
|
|
|
site: this.site, |
|
|
|
toolId: this.headerData.toolId, |
|
|
|
toolDescription: this.headerData.toolDescription, |
|
|
|
} |
|
|
|
getToolHeaderData(queryData).then(({data}) =>{ |
|
|
|
getToolHeaderData(queryData).then(({data}) => { |
|
|
|
this.headerData = data.row |
|
|
|
this.getDetailList() |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 打印方式 |
|
|
|
printReport(){ |
|
|
|
alert( this.$store.state.user.site) |
|
|
|
printReport() { |
|
|
|
alert(this.$store.state.user.site) |
|
|
|
// |
|
|
|
// const LODOP = getLodop() |
|
|
|
// if (LODOP) { |
|
|
|
@ -958,41 +988,41 @@ |
|
|
|
// } |
|
|
|
}, |
|
|
|
// 校验用户是否收藏 |
|
|
|
favoriteIsOk(){ |
|
|
|
let userFavorite ={ |
|
|
|
userId:this.$store.state.user.id, |
|
|
|
languageCode:this.$i18n.locale |
|
|
|
favoriteIsOk() { |
|
|
|
let userFavorite = { |
|
|
|
userId: this.$store.state.user.id, |
|
|
|
languageCode: this.$i18n.locale |
|
|
|
} |
|
|
|
userFavoriteList(userFavorite).then(({data}) =>{ |
|
|
|
let size = data.list.filter(item => item.menuId==this.$route.meta.menuId).length; |
|
|
|
if (size>0){ |
|
|
|
userFavoriteList(userFavorite).then(({data}) => { |
|
|
|
let size = data.list.filter(item => item.menuId == this.$route.meta.menuId).length; |
|
|
|
if (size > 0) { |
|
|
|
this.favorite = true |
|
|
|
}else { |
|
|
|
} else { |
|
|
|
this.favorite = false |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 收藏 OR 取消收藏 |
|
|
|
favoriteFunction(){ |
|
|
|
let userFavorite ={ |
|
|
|
favoriteFunction() { |
|
|
|
let userFavorite = { |
|
|
|
userId: this.$store.state.user.id, |
|
|
|
functionId: this.$route.meta.menuId, |
|
|
|
} |
|
|
|
if (this.favorite){ |
|
|
|
if (this.favorite) { |
|
|
|
// 取消收藏 |
|
|
|
this.$confirm(`确定取消收藏`, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
removeUserFavorite(userFavorite).then(({data})=>{ |
|
|
|
removeUserFavorite(userFavorite).then(({data}) => { |
|
|
|
this.$message.success(data.msg) |
|
|
|
this.favorite = false |
|
|
|
}) |
|
|
|
}) |
|
|
|
}else { |
|
|
|
} else { |
|
|
|
// 收藏 |
|
|
|
saveUserFavorite(userFavorite).then(({data})=>{ |
|
|
|
saveUserFavorite(userFavorite).then(({data}) => { |
|
|
|
this.$message.success(data.msg) |
|
|
|
this.favorite = true |
|
|
|
}) |
|
|
|
@ -1041,7 +1071,7 @@ |
|
|
|
// 获取button的词典 |
|
|
|
getFunctionButtonList() { |
|
|
|
searchFunctionButtonList(this.queryButton).then(({data}) => { |
|
|
|
if (JSON.stringify(data.data)!=='{}') { |
|
|
|
if (JSON.stringify(data.data) !== '{}') { |
|
|
|
this.buttons = data.data |
|
|
|
} else { |
|
|
|
saveButtonList(this.buttonList).then(({data}) => { |
|
|
|
@ -1109,7 +1139,7 @@ |
|
|
|
// this.showDefault = false |
|
|
|
this.columnList = data.rows |
|
|
|
} else { |
|
|
|
// this.showDefault = true |
|
|
|
// this.showDefault = true |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
@ -1158,7 +1188,7 @@ |
|
|
|
data: this.$http.adornData(ids, false) |
|
|
|
}).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.$message.success('操作成功') |
|
|
|
this.$message.success('操作成功') |
|
|
|
this.getDataList() |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg) |
|
|
|
@ -1167,23 +1197,23 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
fields(){ |
|
|
|
let json = "{" |
|
|
|
this.columnList.forEach((item,index) =>{ |
|
|
|
if (index == this.columnList.length-1 ){ |
|
|
|
json +="\""+item.columnLabel+"\"" +":"+"\""+item.columnProp+"\"" |
|
|
|
}else { |
|
|
|
json += "\""+item.columnLabel+"\"" +":"+"\""+item.columnProp+"\""+ "," |
|
|
|
fields() { |
|
|
|
let json = "{" |
|
|
|
this.columnList.forEach((item, index) => { |
|
|
|
if (index == this.columnList.length - 1) { |
|
|
|
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" |
|
|
|
} else { |
|
|
|
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + "," |
|
|
|
} |
|
|
|
}) |
|
|
|
json +="}" |
|
|
|
json += "}" |
|
|
|
let s = eval("(" + json + ")") |
|
|
|
return s |
|
|
|
}, |
|
|
|
createExportData() { |
|
|
|
// 点击导出按钮之后,开始导出数据之前的执行函数,返回值为需要下载的数据 |
|
|
|
// TODO:构造需要下载的数据返回 |
|
|
|
if(this.dataListSelections.length>0){ |
|
|
|
if (this.dataListSelections.length > 0) { |
|
|
|
return this.dataListSelections; |
|
|
|
} |
|
|
|
return this.dataList; |
|
|
|
|