|
@@ -9,10 +9,10 @@
|
|
|
<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"
|
|
|
+ <el-button type="primary" size="small" :disabled="form.status>0" v-if="detailData.status == 3"
|
|
|
class="el-button--small-yh " @click.stop="openEdit">编辑
|
|
|
</el-button>
|
|
|
- <el-button type="primary" @click="editCustomer" :loading="subLoading" v-if="detailData.status != 1"
|
|
|
+ <el-button type="primary" @click="editCustomer" :loading="subLoading" v-if="detailData.status != 3"
|
|
|
size="small">保存数据
|
|
|
</el-button>
|
|
|
<el-dropdown style="padding: 0 6px;line-height: 0">
|
|
@@ -20,11 +20,11 @@
|
|
|
审核处理<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
</el-button>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item :disabled="form.status>0" @click.native="auditCheck">提交审核</el-dropdown-item>
|
|
|
- <el-dropdown-item v-if="roleName=='admin'" :disabled="form.status<1" @click.native="revokeCheck">撤销审核</el-dropdown-item>
|
|
|
+ <el-dropdown-item :disabled="!(form.status == 0 || form.status == 2)" @click.native="auditCheck">提交审核</el-dropdown-item>
|
|
|
+ <el-dropdown-item v-if="roleName=='admin'" :disabled="!(form.status==8 || form.status==5)" @click.native="revokeCheck">撤销审核</el-dropdown-item>
|
|
|
<el-dropdown-item :disabled="form.status<1" @click.native="checkScheduleDialog = true">审核进度
|
|
|
</el-dropdown-item>
|
|
|
- <el-dropdown-item v-if="$route.query.check" :disabled="form.status==3" @click.native="check">审批数据
|
|
|
+ <el-dropdown-item v-if="$route.query.check" :disabled="form.status == 0" @click.native="check">审批数据
|
|
|
</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
@@ -35,15 +35,15 @@
|
|
|
<avue-form ref="form" class="trading-form" v-model="form" :option="option">
|
|
|
<template slot="purchaserId">
|
|
|
<crop-select ref="purchaser" v-model="form.purchaserId" corpType="KH" :refresh="false"
|
|
|
- @getCorpData="getKHData" :disabled="detailData.status == 1"></crop-select>
|
|
|
+ @getCorpData="getKHData" :disabled="form.status > 0"></crop-select>
|
|
|
</template>
|
|
|
<template slot="corpId">
|
|
|
<crop-select ref="corpId" v-model="form.corpId" corpType="GYS" :refresh="false" @getCorpData="getGYSData"
|
|
|
- :disabled="detailData.status == 1"></crop-select>
|
|
|
+ :disabled="form.status > 0"></crop-select>
|
|
|
</template>
|
|
|
<template slot="storageId">
|
|
|
<el-cascader v-model="form.storageId" :options="storagetreeList" :show-all-levels="false"
|
|
|
- :disabled="detailData.status == 1" :props="{ checkStrictly: true, emitPath: false, label: 'title' }"
|
|
|
+ :disabled="form.status > 0" :props="{ checkStrictly: true, emitPath: false, label: 'title' }"
|
|
|
clearable @change="storagetreeChange">
|
|
|
</el-cascader>
|
|
|
</template>
|
|
@@ -62,20 +62,20 @@
|
|
|
<avue-crud ref="crud" :data="itemsVOList" :option="tableOption" @row-del="rowDel" @saveColumn="saveColumn"
|
|
|
@resetColumn="resetColumn" :cell-style="cellStyle" @row-save="rowSave" @row-update="addUpdate">
|
|
|
<template slot="menuLeft">
|
|
|
- <el-button type="primary" icon="el-icon-plus" size="small" :disabled="detailData.status == 1"
|
|
|
- @click.stop="addRow">录入明细
|
|
|
- </el-button>
|
|
|
- <el-button type="success" icon="el-icon-bottom" size="small" @click.stop="getTemplate">下载模板
|
|
|
- </el-button>
|
|
|
- <!-- <el-button type="info" icon="el-icon-top" size="small" :disabled="detailData.status == 1"
|
|
|
+<!-- <el-button type="primary" icon="el-icon-plus" size="small" :disabled="form.status > 0"-->
|
|
|
+<!-- @click.stop="addRow">录入明细-->
|
|
|
+<!-- </el-button>-->
|
|
|
+<!-- <el-button type="success" icon="el-icon-bottom" size="small" @click.stop="getTemplate">下载模板-->
|
|
|
+<!-- </el-button>-->
|
|
|
+ <!-- <el-button type="info" icon="el-icon-top" size="small" :disabled="detailData.status == 3"
|
|
|
@click.stop="addRow">导入
|
|
|
</el-button> -->
|
|
|
<el-button type="info" icon="el-icon-printer" size="small" @click.stop="openReport()">报表打印</el-button>
|
|
|
</template>
|
|
|
- <template slot="headerSerial">
|
|
|
- <el-button type="primary" icon="el-icon-plus" size="mini" @click.stop="addRow"
|
|
|
- :disabled="detailData.status == 1" circle></el-button>
|
|
|
- </template>
|
|
|
+<!-- <template slot="headerSerial">-->
|
|
|
+<!-- <el-button type="primary" icon="el-icon-plus" size="mini" @click.stop="addRow"-->
|
|
|
+<!-- :disabled="detailData.status == 3" 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>
|
|
@@ -104,33 +104,31 @@
|
|
|
</template>
|
|
|
<template slot="menu" slot-scope="{ row, index }">
|
|
|
<div style="display:flex;justify-content: center;">
|
|
|
- <el-button size="small" icon="el-icon-edit" type="text" @click="rowCell(row, index)"
|
|
|
- :disabled="disabled || detailData.status == 1">{{ row.$cellEdit ? "保存" : "编辑" }}</el-button>
|
|
|
- <el-button size="small" icon="el-icon-delete" type="text" @click="rowDel(row, index)"
|
|
|
- :disabled="detailData.status == 1">删除</el-button>
|
|
|
+ <el-button size="small" icon="el-icon-edit" type="text" @click="rowCell(row, index)" :disabled="form.status > 0">{{ row.$cellEdit ? "保存" : "编辑" }}</el-button>
|
|
|
+ <el-button size="small" icon="el-icon-delete" type="text" @click="rowDel(row, index)" :disabled="form.status > 0">删除</el-button>
|
|
|
<!-- <el-button size="small" icon="el-icon-printer" type="text" @click="rowPrint(row, index)" :disabled="!row.id">
|
|
|
打印</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="detailData.status == 1"
|
|
|
+ <i v-if="index != 0&&detailData.status != 3" :disabled="detailData.status == 3"
|
|
|
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" :disabled="detailData.status == 1"
|
|
|
+ v-if="index != (itemsVOList.length - 1)&&detailData.status != 3" :disabled="detailData.status == 3"
|
|
|
class="el-icon-arrow-down" @click="moveDown(row, index)" style="color:#409EFF;"></i></el-tooltip>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
</trade-card>
|
|
|
- <fee-info ref="feeInfo" :orderFeesList="orderFeesList" :disabled="detailData.status == 1"
|
|
|
+ <fee-info ref="feeInfo" :orderFeesList="orderFeesList" :disabled="!(form.status == 2 || form.status == 0)"
|
|
|
feeUrl="/blade-purchase-sales/entranceOrder/removeOrderFees" :optionType="'CMY'" :itemType="'D'"
|
|
|
:inCropId="true" @beforeFinance="beforeFinance" :delType="2" :billingShow="false" />
|
|
|
- <!-- <upload-file ref="uploadFile" title="合同附件" :disabled="detailData.status == 1" :orderFilesList="orderFilesList"
|
|
|
+ <!-- <upload-file ref="uploadFile" title="合同附件" :disabled="detailData.status == 3" :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>
|
|
|
+ :data="orderFilesList" display :enumerationValue="85.6" :disabled="!(form.status == 2 || form.status == 0)"></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>
|
|
@@ -290,8 +288,21 @@ export default {
|
|
|
uploadFile,
|
|
|
check
|
|
|
},
|
|
|
+ watch:{
|
|
|
+ form:{
|
|
|
+ handler(){
|
|
|
+ if (this.form.status > 0) {
|
|
|
+ this.$set(this.option,'disabled',true)
|
|
|
+ this.$set(this.findObject(this.tableOption.column, "remarks"),'disabled',true)
|
|
|
+ }else {
|
|
|
+ this.$set(this.option,'disabled',false)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
async created() {
|
|
|
- if (this.detailData.status == 1) {
|
|
|
+ console.log(this.detailData.status)
|
|
|
+ if (this.detailData.status == 3) {
|
|
|
this.option.disabled = true;
|
|
|
}
|
|
|
if (this.detailData.id) {
|
|
@@ -463,12 +474,11 @@ export default {
|
|
|
delete e.id
|
|
|
})
|
|
|
this.form = res.data.data;
|
|
|
- this.itemsVOList = res.data.data.itemsVOList.filter(item => item.isIssue == 1);
|
|
|
+ this.itemsVOList = res.data.data.itemsVOList.filter(item => item.isIssue == 3);
|
|
|
this.oldform = this.deepClone(res.data.data);
|
|
|
- this.olditemsVOList = this.deepClone(res.data.data.itemsVOList.filter(item => item.isIssue == 1));
|
|
|
+ this.olditemsVOList = this.deepClone(res.data.data.itemsVOList.filter(item => item.isIssue == 3));
|
|
|
this.getStorage()
|
|
|
- })
|
|
|
- .finally(() => {
|
|
|
+ }).finally(() => {
|
|
|
this.pageLoading = false;
|
|
|
});
|
|
|
},
|
|
@@ -563,6 +573,7 @@ export default {
|
|
|
const data = {
|
|
|
id: this.form.id,
|
|
|
checkType: 'CK',
|
|
|
+ status:this.form.status,
|
|
|
url: '/salesManagement/outStock/index',
|
|
|
pageStatus: "this.$store.getters.entranceXsStatus",
|
|
|
pageLabel: "出库管理",
|
|
@@ -589,6 +600,7 @@ export default {
|
|
|
const data = {
|
|
|
id: this.form.id,
|
|
|
checkType: 'CK',
|
|
|
+ status:this.form.status,
|
|
|
url: '/salesManagement/outStock/index',
|
|
|
pageStatus: "this.$store.getters.entranceXsStatus",
|
|
|
pageLabel: "出库管理",
|
|
@@ -620,6 +632,7 @@ export default {
|
|
|
const data = {
|
|
|
id: this.form.id,
|
|
|
checkType: 'CK',
|
|
|
+ status:this.form.status,
|
|
|
url: '/salesManagement/outStock/index',
|
|
|
pageStatus: "this.$store.getters.entranceXsStatus",
|
|
|
pageLabel: "出库管理",
|
|
@@ -646,6 +659,7 @@ export default {
|
|
|
const data = {
|
|
|
id: this.form.id,
|
|
|
checkType: 'CK',
|
|
|
+ status:this.form.status,
|
|
|
url: '/salesManagement/outStock/index',
|
|
|
pageStatus: "this.$store.getters.entranceXsStatus",
|
|
|
pageLabel: "出库管理",
|
|
@@ -788,8 +802,6 @@ export default {
|
|
|
}, 1000);
|
|
|
}
|
|
|
}
|
|
|
- },
|
|
|
- watch: {
|
|
|
}
|
|
|
};
|
|
|
</script>
|