|
@@ -26,7 +26,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<el-pagination class="right" v-show="tableData && tableData.length" @size-change="handleSizeChange" @current-change="handleCurrentChange"
|
|
|
- :current-page="page.pageNumber" :page-sizes="page.pageSizes" :page-size="page.pageSize" layout="total, sizes, prev, pager, next, jumper" :total="page.total"></el-pagination>
|
|
|
+ :current-page="page.pageNumber" :page-sizes="page.pageSizes" :page-size="page.pageSize" layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="page.total"></el-pagination>
|
|
|
<!-- 二维码弹窗 -->
|
|
|
<qrcode :dialog="myDialog" :qrcodeUrl="qrcodeUrl" :addBody="true" ref="qrcode"></qrcode>
|
|
|
<!-- 型号弹窗 -->
|
|
@@ -36,13 +37,15 @@
|
|
|
<!-- 供应商弹窗 -->
|
|
|
<supplier-dialog ref="supplier" @changeSupplier="supplierChange" :dialog="myDialog"></supplier-dialog>
|
|
|
<guarantee-dialog :id="id" ref="guarantee" @change="guaranteeChange" :dialog="myDialog"></guarantee-dialog>
|
|
|
- <upload-files-dialog :read="onlyRead ? true : false" ref="upload" @changeFile="fileChange" :keysArr="filesArr" :dialog="myDialog"></upload-files-dialog>
|
|
|
+ <upload-files-dialog :read="onlyRead ? true : false" ref="upload" @changeFile="fileChange" :keysArr="filesArr" :dialog="myDialog">
|
|
|
+ </upload-files-dialog>
|
|
|
<upload-img-dialog :read="onlyRead ? true : false" @changeFile="imgChange" :keysArr="imgsArr" :dialog="myDialog"></upload-img-dialog>
|
|
|
<maintainer-dialog @changeMaintainer="changeMaintainer" ref="maintainer" :dialog="myDialog"></maintainer-dialog>
|
|
|
<insurer-dialog @changeInsurer="changeInsurer" ref="insurer" :dialog="myDialog"></insurer-dialog>
|
|
|
<pic-dialog :read="onlyRead ? true : false" :dialog="myDialog" :keysArr="picsArr" @change="changePics"></pic-dialog>
|
|
|
- <system-type :infos="systemId" :graphyId="graphyId" :dialog="myDialog"></system-type>
|
|
|
<details-dialog :iframeSrc="iframeSrc" v-if="myDialog.details" :dialog="myDialog"></details-dialog>
|
|
|
+ <!-- 修改关联的资产 -->
|
|
|
+ <!-- <change-rea :dialog="myDialog" :category="category"></change-rea> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -72,7 +75,7 @@ import guaranteeDialog from "@/components/dialogs/list/guaranteeDialog";
|
|
|
import uploadFilesDialog from "@/components/dialogs/list/filesDialog";
|
|
|
import uploadImgDialog from "@/components/dialogs/list/uploadImgDialog";
|
|
|
import picDialog from "@/components/dialogs/list/picDialog";
|
|
|
-import systemType from "@/components/dialogs/list/systemType";
|
|
|
+import changeRea from "@/components/dialogs/changeRea"
|
|
|
export default {
|
|
|
components: {
|
|
|
qrcode, //二维码页面
|
|
@@ -85,8 +88,8 @@ export default {
|
|
|
uploadFilesDialog,
|
|
|
uploadImgDialog,
|
|
|
picDialog,
|
|
|
- systemType,
|
|
|
- handsonTable
|
|
|
+ handsonTable,
|
|
|
+ changeRea
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -124,7 +127,8 @@ export default {
|
|
|
systemType: false,
|
|
|
details: false, //详情页
|
|
|
changeRea: false,
|
|
|
- lookPic: false //图片查看
|
|
|
+ lookPic: false, //图片查看
|
|
|
+ changeRea: false, //关联的资产
|
|
|
},
|
|
|
qrcodeUrl: "", //二维码图片地址
|
|
|
filesArr: [], //保存临时的文件key
|
|
@@ -442,26 +446,10 @@ export default {
|
|
|
},
|
|
|
//选择型号修改
|
|
|
firmChange(data) {
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "DPSpecificationID",
|
|
|
- data.specificationId
|
|
|
- );
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "LedgerParam.EquipManufactor.Brand",
|
|
|
- data.brand
|
|
|
- );
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "LedgerParam.EquipManufactor.Specification",
|
|
|
- data.name
|
|
|
- );
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "LedgerParam.EquipManufactor.Manufacturer",
|
|
|
- data.venderName
|
|
|
- );
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "DPSpecificationID", data.specificationId);
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "LedgerParam.EquipManufactor.Brand", data.brand);
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "LedgerParam.EquipManufactor.Specification", data.name);
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "LedgerParam.EquipManufactor.Manufacturer", data.venderName);
|
|
|
for (let key in data) {
|
|
|
if (key == "venderId") {
|
|
|
data[key] = data[key] + "-" + data.name + "/" + data.brand;
|
|
@@ -475,36 +463,12 @@ export default {
|
|
|
},
|
|
|
//如果选择供应商之后
|
|
|
supplierChange(data) {
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "LedgerParam.SupplyPurchase.Supplier",
|
|
|
- data.name
|
|
|
- );
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "LedgerParam.SupplyPurchase.SupplierWeb",
|
|
|
- data.website
|
|
|
- );
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "LedgerParam.SupplyPurchase.SupplierContactor",
|
|
|
- data.man
|
|
|
- );
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "LedgerParam.SupplyPurchase.SupplierPhone",
|
|
|
- data.phone
|
|
|
- );
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "LedgerParam.SupplyPurchase.SupplierFax",
|
|
|
- data.fox
|
|
|
- );
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "LedgerParam.SupplyPurchase.SupplierEmail",
|
|
|
- data.email
|
|
|
- );
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "LedgerParam.SupplyPurchase.Supplier", data.name);
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "LedgerParam.SupplyPurchase.SupplierWeb", data.website);
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "LedgerParam.SupplyPurchase.SupplierContactor", data.man);
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "LedgerParam.SupplyPurchase.SupplierPhone", data.phone);
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "LedgerParam.SupplyPurchase.SupplierFax", data.fox);
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "LedgerParam.SupplyPurchase.SupplierEmail", data.email);
|
|
|
for (let key in data) {
|
|
|
if (key == "venderId") {
|
|
|
data[key] = data[key] + "-" + data.name;
|
|
@@ -534,36 +498,12 @@ export default {
|
|
|
},
|
|
|
//维修商变更
|
|
|
changeMaintainer(data) {
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "LedgerParam.OperationMainte.Maintainer",
|
|
|
- data.name
|
|
|
- );
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "LedgerParam.OperationMainte.MaintainerWeb",
|
|
|
- data.website
|
|
|
- );
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "LedgerParam.OperationMainte.MaintainerContactor",
|
|
|
- data.man
|
|
|
- );
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "LedgerParam.OperationMainte.MaintainerPhone",
|
|
|
- data.phone
|
|
|
- );
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "LedgerParam.OperationMainte.MaintainerFax",
|
|
|
- data.fox
|
|
|
- );
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "LedgerParam.OperationMainte.MaintainerEmail",
|
|
|
- data.email
|
|
|
- );
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "LedgerParam.OperationMainte.Maintainer", data.name);
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "LedgerParam.OperationMainte.MaintainerWeb", data.website);
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "LedgerParam.OperationMainte.MaintainerContactor", data.man);
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "LedgerParam.OperationMainte.MaintainerPhone", data.phone);
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "LedgerParam.OperationMainte.MaintainerFax", data.fox);
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "LedgerParam.OperationMainte.MaintainerEmail", data.email);
|
|
|
for (let key in data) {
|
|
|
if (key == "venderId") {
|
|
|
data[key] = data[key] + "-" + data.name;
|
|
@@ -573,36 +513,12 @@ export default {
|
|
|
},
|
|
|
//保险商变更
|
|
|
changeInsurer(data) {
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "LedgerParam.InsuranceDoc.InsurerEmail",
|
|
|
- data.email
|
|
|
- );
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "LedgerParam.InsuranceDoc.InsurerFax",
|
|
|
- data.fox
|
|
|
- );
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "LedgerParam.InsuranceDoc.InsurerPhone",
|
|
|
- data.phone
|
|
|
- );
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "LedgerParam.InsuranceDoc.InsurerContactor",
|
|
|
- data.man
|
|
|
- );
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "LedgerParam.InsuranceDoc.InsurerWeb",
|
|
|
- data.website
|
|
|
- );
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "LedgerParam.InsuranceDoc.Insurer",
|
|
|
- data.name
|
|
|
- );
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "LedgerParam.InsuranceDoc.InsurerEmail", data.email);
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "LedgerParam.InsuranceDoc.InsurerFax", data.fox);
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "LedgerParam.InsuranceDoc.InsurerPhone", data.phone);
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "LedgerParam.InsuranceDoc.InsurerContactor", data.man);
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "LedgerParam.InsuranceDoc.InsurerWeb", data.website);
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "LedgerParam.InsuranceDoc.Insurer", data.name);
|
|
|
for (let key in data) {
|
|
|
if (key == "venderId") {
|
|
|
data[key] = data[key] + "-" + data.name;
|