|
|
@@ -7,6 +7,8 @@
|
|
|
</el-button>
|
|
|
</div>
|
|
|
<div class="add-customer-btn">
|
|
|
+ <el-button type="info" @click="getData" size="small">刷新资料
|
|
|
+ </el-button>
|
|
|
<el-button type="primary" size="small" :disabled="form.status>0" v-if="detailData.status == 1"
|
|
|
class="el-button--small-yh " @click.stop="openEdit">编辑
|
|
|
</el-button>
|
|
|
@@ -29,11 +31,11 @@
|
|
|
<trade-card title="基础信息">
|
|
|
<avue-form ref="form" class="trading-form" v-model="form" :option="option">
|
|
|
<template slot="purchaserId">
|
|
|
- <crop-select v-model="form.purchaserId" corpType="KH" :refresh="false" @getCorpData="getKHData"
|
|
|
+ <crop-select v-model="form.purchaserId" corpType="KH" @getCorpData="getKHData"
|
|
|
:disabled="detailData.status == 1"></crop-select>
|
|
|
</template>
|
|
|
<template slot="corpId">
|
|
|
- <crop-select v-model="form.corpId" corpType="GYS" :refresh="false" @getCorpData="getGYSData"
|
|
|
+ <crop-select v-model="form.corpId" corpType="GYS" @getCorpData="getGYSData"
|
|
|
:disabled="detailData.status == 1"></crop-select>
|
|
|
</template>
|
|
|
<template slot="storageId">
|
|
|
@@ -42,6 +44,15 @@
|
|
|
clearable @change="storagetreeChange">
|
|
|
</el-cascader>
|
|
|
</template>
|
|
|
+ <template slot-scope="{column}" slot="purchaserIdLabel">
|
|
|
+ <span style="color: #409EFF;cursor: pointer" @click.stop="addData(column.prop)">{{column.label}}</span>
|
|
|
+ </template>
|
|
|
+ <template slot-scope="{column}" slot="corpIdLabel">
|
|
|
+ <span style="color: #409EFF;cursor: pointer" @click.stop="addData(column.prop)">{{column.label}}</span>
|
|
|
+ </template>
|
|
|
+ <template slot-scope="{column}" slot="storageIdLabel">
|
|
|
+ <span style="color: #409EFF;cursor: pointer" @click.stop="addData('storage')">{{column.label}}</span>
|
|
|
+ </template>
|
|
|
</avue-form>
|
|
|
</trade-card>
|
|
|
<trade-card title="入库明细">
|
|
|
@@ -60,6 +71,12 @@
|
|
|
<el-button type="primary" icon="el-icon-plus" size="mini" @click.stop="addRow"
|
|
|
:disabled="detailData.status == 1" circle></el-button>
|
|
|
</template>
|
|
|
+ <template slot="storageIdHeader" slot-scope="{column}">
|
|
|
+ <span style="color: #409EFF;cursor: pointer" @click.stop="addData(column.prop)">{{column.label}}</span>
|
|
|
+ </template>
|
|
|
+ <template slot="itemIdHeader" slot-scope="{column}">
|
|
|
+ <span style="color: #409EFF;cursor: pointer" @click.stop="addData(column.prop)">{{column.label}}</span>
|
|
|
+ </template>
|
|
|
<template slot="oneCode" slot-scope="{ row, index }">
|
|
|
<el-popover placement="right" width="160" trigger="click">
|
|
|
<el-image style="width: 160px; height: 80px" :src="row.oneCode" :fit="fit"></el-image>
|
|
|
@@ -91,12 +108,12 @@
|
|
|
打印</el-button>
|
|
|
<div style="display:flex;flex-direction: column;justify-content: center;margin-left: 10px;">
|
|
|
<el-tooltip effect="dark" content="向上移动" placement="top">
|
|
|
- <i v-if="index != 0&&detailData.status != 1" :disabled="disabled || detailData.status == 1" class="el-icon-arrow-up"
|
|
|
- @click="moveUp(row, index)" style="color:#409EFF;"></i>
|
|
|
+ <i v-if="index != 0&&detailData.status != 1" :disabled="disabled || detailData.status == 1"
|
|
|
+ class="el-icon-arrow-up" @click="moveUp(row, index)" style="color:#409EFF;"></i>
|
|
|
</el-tooltip>
|
|
|
- <el-tooltip effect="dark" content="向下移动" placement="bottom"> <i v-if="index != (itemsVOList.length - 1)&&detailData.status != 1"
|
|
|
- class="el-icon-arrow-down" @click="moveDown(row, index)"
|
|
|
- style="color:#409EFF;"></i></el-tooltip>
|
|
|
+ <el-tooltip effect="dark" content="向下移动" placement="bottom"> <i
|
|
|
+ v-if="index != (itemsVOList.length - 1)&&detailData.status != 1" class="el-icon-arrow-down"
|
|
|
+ @click="moveDown(row, index)" style="color:#409EFF;"></i></el-tooltip>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
@@ -109,8 +126,8 @@
|
|
|
<!-- <upload-file ref="uploadFile" title="合同附件" :disabled="detailData.status == 1" :orderFilesList="orderFilesList"
|
|
|
delUrl="" /> -->
|
|
|
<containerTitle title="上传附件"></containerTitle>
|
|
|
- <c-upload typeUpload="CD" deleteUrl="/api/trade-purchase/woodHarvestingCloud/removeByFileId" :data="orderFilesList" display
|
|
|
- :enumerationValue="85.6" :disabled="detailData.status == 1"></c-upload>
|
|
|
+ <c-upload typeUpload="CD" deleteUrl="/api/trade-purchase/woodHarvestingCloud/removeByFileId"
|
|
|
+ :data="orderFilesList" display :enumerationValue="85.6" :disabled="detailData.status == 1"></c-upload>
|
|
|
|
|
|
<el-dialog append-to-body title="审核进度" class="el-dialogDeep" :visible.sync="checkScheduleDialog" width="40%"
|
|
|
:close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" v-dialog-drag>
|
|
|
@@ -319,16 +336,29 @@ export default {
|
|
|
this.findObject(this.option.column, "businessType").dicData =
|
|
|
res.data.data;
|
|
|
});
|
|
|
- getAllgoods().then(res => {
|
|
|
- this.findObject(this.tableOption.column, "itemId").dicData =
|
|
|
- res.data.data;
|
|
|
- })
|
|
|
- this.getWorkDicts("unit").then(res => {
|
|
|
- this.findObject(this.tableOption.column, "unit").dicData =
|
|
|
- res.data.data;
|
|
|
- });
|
|
|
+ this.getAllWorkDicts()
|
|
|
},
|
|
|
methods: {
|
|
|
+ getData() {
|
|
|
+ getAllgoods().then(res => {
|
|
|
+ this.findObject(this.tableOption.column, "itemId").dicData =
|
|
|
+ res.data.data;
|
|
|
+ })
|
|
|
+ getStoragetree().then(res => {
|
|
|
+ this.storagetreeList = res.data.data;
|
|
|
+ })
|
|
|
+ this.getStorage()
|
|
|
+ },
|
|
|
+ getAllWorkDicts() {
|
|
|
+ getAllgoods().then(res => {
|
|
|
+ this.findObject(this.tableOption.column, "itemId").dicData =
|
|
|
+ res.data.data;
|
|
|
+ })
|
|
|
+ this.getWorkDicts("unit").then(res => {
|
|
|
+ this.findObject(this.tableOption.column, "unit").dicData =
|
|
|
+ res.data.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
cellStyle() {
|
|
|
return "padding:0;height:40px;";
|
|
|
},
|
|
|
@@ -566,6 +596,20 @@ export default {
|
|
|
loading()
|
|
|
}
|
|
|
},
|
|
|
+ addData(row) {
|
|
|
+ console.log(row)
|
|
|
+ if (row == 'purchaserId') {
|
|
|
+ this.$router.push(`/basicData/customerInformation/index`);
|
|
|
+ } else if (row == 'corpId') {
|
|
|
+ this.$router.push(`/basicData/customerManagement/supplierMaterial/index`);
|
|
|
+ } else if (row == 'storage') {
|
|
|
+ this.$router.push(`/basicData/basicStorageType/index`);
|
|
|
+ } else if (row == 'storageId') {
|
|
|
+ this.$router.push(`/basicData/basicStorageDesc/index`);
|
|
|
+ } else if (row == 'itemId') {
|
|
|
+ this.$router.push(`/basicData/commodityType/index`);
|
|
|
+ }
|
|
|
+ },
|
|
|
//返回列表
|
|
|
backToList() {
|
|
|
let orderFeesList = this.$refs.feeInfo.submitData();
|
|
|
@@ -626,10 +670,13 @@ export default {
|
|
|
this.$refs.crud.doLayout();
|
|
|
});
|
|
|
this.$message.success("重置成功");
|
|
|
+ this.getAllWorkDicts()
|
|
|
+ this.getStorage()
|
|
|
//关闭窗口
|
|
|
setTimeout(() => {
|
|
|
this.$refs.crud.$refs.dialogColumn.columnBox = false;
|
|
|
}, 1000);
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -650,4 +697,12 @@ export default {
|
|
|
::v-deep .select-component {
|
|
|
display: flex !important;
|
|
|
}
|
|
|
+
|
|
|
+::v-deep .el-table .cell {
|
|
|
+ padding: 0 2px !important;
|
|
|
+}
|
|
|
+
|
|
|
+::v-deep .avue-crud .el-table .el-form-item__label {
|
|
|
+ left: -1px;
|
|
|
+}
|
|
|
</style>
|