|
@@ -119,7 +119,7 @@
|
|
|
</el-button>
|
|
|
<el-button type="info"
|
|
|
size="small"
|
|
|
- @click=""
|
|
|
+ @click="applicationDialog = true"
|
|
|
>查看申请记录
|
|
|
</el-button>
|
|
|
</template>
|
|
@@ -151,7 +151,8 @@
|
|
|
width="80%"
|
|
|
:close-on-click-modal="false"
|
|
|
:destroy-on-close="true"
|
|
|
- :close-on-press-escape="false">
|
|
|
+ :close-on-press-escape="false"
|
|
|
+ v-dialog-drag>
|
|
|
<el-row style="height: 0;">
|
|
|
<el-col :span="5">
|
|
|
<div>
|
|
@@ -183,6 +184,30 @@
|
|
|
:disabled="tableData.length !== 1">导入<</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog
|
|
|
+ title="查看申请记录"
|
|
|
+ append-to-body
|
|
|
+ class="el-dialogDeep"
|
|
|
+ :visible.sync="applicationDialog"
|
|
|
+ width="60%"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ :destroy-on-close="true"
|
|
|
+ :close-on-press-escape="false"
|
|
|
+ v-dialog-drag
|
|
|
+ >
|
|
|
+ <basic-container>
|
|
|
+ <avue-crud :option="customerContact"
|
|
|
+ :table-loading="applicationLoading"
|
|
|
+ :data="applicationData"
|
|
|
+ ref="applicationCrud"
|
|
|
+ @refresh-change="applicationRefreshChange"
|
|
|
+ :page.sync="applicationPage"
|
|
|
+ @on-load="applicationOnLoad"></avue-crud>
|
|
|
+ </basic-container>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="applicationDialog = false ">关 闭</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -199,6 +224,7 @@ import uploadFile from "@/components/upload-file/main";
|
|
|
//商品详情接口
|
|
|
import {corpsattn, corpsbank, getDeptLazyTreeS} from "@/api/basicData/configuration"
|
|
|
import { getList } from "@/api/basicData/commodityType"
|
|
|
+import { contrastObj,contrastList } from "@/util/contrastData";
|
|
|
export default {
|
|
|
name: "detailsPage",
|
|
|
props: {
|
|
@@ -321,6 +347,20 @@ export default {
|
|
|
tableDataCost: [],
|
|
|
treeDeptIdCost: '',
|
|
|
choiceIndex: '',
|
|
|
+ //查看申请记录
|
|
|
+ applicationDialog:false,
|
|
|
+ applicationLoading:false,
|
|
|
+ applicationData:[],
|
|
|
+ applicationPage:{
|
|
|
+ pageSize: 10,
|
|
|
+ currentPage: 1,
|
|
|
+ total: 0
|
|
|
+ },
|
|
|
+ //对比新旧数据信息
|
|
|
+ oldContactsData:[],
|
|
|
+ oldForm:{},
|
|
|
+ oldFeesList:[],
|
|
|
+ oldFilesList:[],
|
|
|
// 基础信息
|
|
|
basicData: {
|
|
|
column: [
|
|
@@ -562,16 +602,20 @@ export default {
|
|
|
let id = this.detailData.id.replace(/\"/g, "")
|
|
|
detailListData(id).then(res => {
|
|
|
this.form = res.data.data;
|
|
|
+ this.oldForm = res.data.data;
|
|
|
this.configuration.dicData = this.form.corpsName
|
|
|
this.pConfiguration.dicData = this.form.purchaserName
|
|
|
if(res.data.data.itemsVOList){
|
|
|
this.contactsData = res.data.data.itemsVOList
|
|
|
+ this.oldContactsData = res.data.data.itemsVOList
|
|
|
}
|
|
|
if(res.data.data.orderFeesList){
|
|
|
this.orderFeesList = res.data.data.orderFeesList
|
|
|
+ this.oldFeesList = res.data.data.orderFeesList
|
|
|
}
|
|
|
if( res.data.data.orderFilesList){
|
|
|
this.orderFilesList = res.data.data.orderFilesList
|
|
|
+ this.oldFilesList = res.data.data.orderFilesList
|
|
|
}
|
|
|
})
|
|
|
}else{
|
|
@@ -639,16 +683,20 @@ export default {
|
|
|
this.$message.success("操作成功!")
|
|
|
detailListData(this.form.id).then(res => {
|
|
|
this.form = res.data.data;
|
|
|
+ this.oldForm = res.data.data;
|
|
|
this.configuration.dicData = this.form.corpsName
|
|
|
this.pConfiguration.dicData = this.form.purchaserName
|
|
|
if(res.data.data.itemsVOList){
|
|
|
this.contactsData = res.data.data.itemsVOList
|
|
|
+ this.oldContactsData = res.data.data.itemsVOList
|
|
|
}
|
|
|
if(res.data.data.orderFeesList){
|
|
|
this.orderFeesList = res.data.data.orderFeesList
|
|
|
+ this.oldFeesList = res.data.data.orderFeesList
|
|
|
}
|
|
|
if( res.data.data.orderFilesList){
|
|
|
this.orderFilesList = res.data.data.orderFilesList
|
|
|
+ this.oldFilesList = res.data.data.orderFilesList
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -747,6 +795,14 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ //刷新
|
|
|
+ applicationRefreshChange(){
|
|
|
+
|
|
|
+ },
|
|
|
+ //申请记录
|
|
|
+ applicationOnLoad(){
|
|
|
+
|
|
|
+ },
|
|
|
//点击商品明细选择触发
|
|
|
commodityChoice(row) {
|
|
|
this.dialogVisible = !this.dialogVisible
|
|
@@ -980,15 +1036,17 @@ export default {
|
|
|
this.$message.success('发货成功')
|
|
|
},
|
|
|
backToList() {
|
|
|
- this.$confirm("是否保存当前页面?", "提示", {
|
|
|
- confirmButtonText: "保存",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
- }).then(() => {
|
|
|
- this.editCustomer(true)
|
|
|
- }).catch(() => {
|
|
|
+ if(contrastObj(this.form,this.oldform) || contrastList(this.orderFeesList,this.olddata)){
|
|
|
+ this.$confirm("是否保存当前页面?", "提示", {
|
|
|
+ confirmButtonText: "保存",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }).then(() => {
|
|
|
+ this.editCustomer(true)
|
|
|
+ })
|
|
|
+ }else{
|
|
|
this.$emit("goBack");
|
|
|
- })
|
|
|
+ }
|
|
|
},
|
|
|
}
|
|
|
}
|