'123'
This commit is contained in:
parent
47c7500dc0
commit
17caa7bdd4
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="150px">
|
||||
<el-row :gutter="8">
|
||||
<el-col :span="12">
|
||||
|
@ -67,6 +68,7 @@
|
|||
<el-row :gutter="8">
|
||||
<el-col :span="24">
|
||||
<el-form-item label="核价附件">
|
||||
<div v-hasPermi="['priceVerification:priceVerification:uploadFile']">
|
||||
<el-upload class="upload-demo"
|
||||
ref="upload"
|
||||
name="quotFile"
|
||||
|
@ -79,6 +81,7 @@
|
|||
v-if="this.form.quotHjApprovalStatus == '1'">
|
||||
<el-button size="small" type="primary">上传文件</el-button>
|
||||
</el-upload>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
@ -98,21 +101,24 @@
|
|||
<el-button :key="Math.random()" size="small" type="text">
|
||||
<a @click="downloadFile(scope.row.fileUrl)">下载</a>
|
||||
</el-button>
|
||||
<div v-if="this.isSelfProp">
|
||||
<el-button :key="Math.random()" size="small" type="text" v-if="form.quotHjApprovalStatus == '1'">
|
||||
<a @click="deleteFile(scope.row.fileId)">删除</a>
|
||||
</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<div v-if="this._props.isSelfProp">
|
||||
<div slot="footer" class="dialog-footer" v-if="this.form.quotHjApprovalStatus==1">
|
||||
<div v-if="this.isSelfProp">
|
||||
<span v-hasPermi="['priceVerification:priceVerification:commit']"><el-button type="primary" @click="commitHj">提交报价</el-button></span>
|
||||
<span v-hasPermi="['priceVerification:priceVerification:reject']" style="margin-left: 10px"><el-button type="danger" plain @click="rejectHj">驳回</el-button></span>
|
||||
</div>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
<style>
|
||||
|
@ -136,12 +142,13 @@ import { quotFileList, quotFileDelete} from "@/api/quot/quot";
|
|||
export default {
|
||||
name: "hjInfo",
|
||||
dicts: ['quot_pricing_type','quot_hj_approval_status'],
|
||||
props: {
|
||||
quotHjIdProp: String,
|
||||
isSelfProp: Boolean
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
// 弹窗标题 关闭/打开
|
||||
title: "",
|
||||
open: false,
|
||||
// 是否是自身页面调用
|
||||
isSelfProp: true,
|
||||
// 报价单-核价单附件数据
|
||||
quotHjFileList: [],
|
||||
//报价单-核价单附件上传地址
|
||||
|
@ -154,14 +161,6 @@ export default {
|
|||
rules: {}
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
quotHjIdProp(value,oldvalue){
|
||||
this.getInfo();
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getInfo();
|
||||
},
|
||||
methods: {
|
||||
/** 清空表单 */
|
||||
reset(){
|
||||
|
@ -179,11 +178,17 @@ export default {
|
|||
|
||||
this.resetForm("form");
|
||||
},
|
||||
|
||||
// 关闭弹窗按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.$emit('refreshList');
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
getInfo() {
|
||||
getInfo(title,open,isSelfProp,quotHjId) {
|
||||
this.open = true;
|
||||
this.title = "报价单-技术确认单";
|
||||
this.isSelfProp = isSelfProp;
|
||||
this.reset();
|
||||
const quotHjId = this._props.quotHjIdProp;
|
||||
getPriceVerification(quotHjId).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
|
|
|
@ -70,9 +70,7 @@
|
|||
/>
|
||||
|
||||
<!-- 添加或修改报价单-核价单对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
|
||||
<hjDialog :quotHjIdProp="quotHjIdProp" :isSelfProp="true"></hjDialog>
|
||||
</el-dialog>
|
||||
<hjDialog ref="hjDialog" @refreshList="getList"></hjDialog>
|
||||
</div>
|
||||
</template>
|
||||
<style>
|
||||
|
@ -127,9 +125,7 @@ export default {
|
|||
pageSize: 10,
|
||||
quotHjCode: null,
|
||||
quotHjPricingDate: null,
|
||||
},
|
||||
//调用公共核价单页面参数
|
||||
quotHjIdProp: ""
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
|
@ -171,9 +167,7 @@ export default {
|
|||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
const quotHjId = row.quotHjId || this.ids
|
||||
this.open = true;
|
||||
this.title = "报价单-核价单";
|
||||
this.quotHjIdProp = quotHjId;//传参设置
|
||||
this.$refs.hjDialog.getInfo("报价单-核价单",true,true,quotHjId);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -625,7 +625,7 @@
|
|||
</el-tabs>
|
||||
<!-- 特缆、中压、低压、其他协助反馈附件对话框 -->
|
||||
<el-dialog class="fkfjDialog" :title="addFileTitle" :visible.sync="addFileOpen" width="800px" append-to-body>
|
||||
<el-upload class="upload-demo"
|
||||
<!--<el-upload class="upload-demo"
|
||||
ref="upload"
|
||||
name="quotFile"
|
||||
:action="uploadUrl"
|
||||
|
@ -636,7 +636,7 @@
|
|||
:limit="1"
|
||||
v-if="uploadDis">
|
||||
<el-button size="small" type="primary">上传文件</el-button>
|
||||
</el-upload>
|
||||
</el-upload>-->
|
||||
<el-table class="down" :data="quotJsqrFileList" border stripe style="width: 100%;margin-top: 20px;" height="200px">
|
||||
<el-table-column prop="fileName" label="文件名称" ></el-table-column>
|
||||
<el-table-column prop="fileSize" label="文件大小" width="150px">
|
||||
|
@ -651,9 +651,9 @@
|
|||
<el-button :key="Math.random()" size="small" type="text">
|
||||
<a @click="downloadFile(scope.row.fileUrl)">下载</a>
|
||||
</el-button>
|
||||
<el-button :key="Math.random()" size="small" type="text" v-if="uploadDis">
|
||||
<!--<el-button :key="Math.random()" size="small" type="text" v-if="uploadDis">
|
||||
<a @click="deleteFile(scope.row.fileId)">删除</a>
|
||||
</el-button>
|
||||
</el-button>-->
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
@ -672,14 +672,10 @@
|
|||
</el-dialog>
|
||||
|
||||
<!-- 技术确认单详情对话框 -->
|
||||
<el-dialog :title="jsqrTitle" :visible.sync="jsqrDialogOpen" width="1000px" append-to-body>
|
||||
<jsqrDialog :quotJsqrIdProp="quotJsqrIdProp" :isSelfProp="false"></jsqrDialog>
|
||||
</el-dialog>
|
||||
<jsqrDialog ref="jsqrDialog"></jsqrDialog>
|
||||
|
||||
<!-- 核价单详情对话框 -->
|
||||
<el-dialog :title="hjTitle" :visible.sync="hjDialogOpen" width="1000px" append-to-body>
|
||||
<hjDialog :quotHjIdProp="quotHjIdProp" :isSelfProp="false"></hjDialog>
|
||||
</el-dialog>
|
||||
<hjDialog ref="hjDialog"></hjDialog>
|
||||
</div>
|
||||
</template>
|
||||
<style>
|
||||
|
@ -815,17 +811,7 @@ export default {
|
|||
showTl: false,
|
||||
showDy: false,
|
||||
showZy: false,
|
||||
showQt: false,
|
||||
|
||||
//调用公共技术确认单页面参数
|
||||
jsqrTitle: "",
|
||||
jsqrDialogOpen: false,
|
||||
quotJsqrIdProp: "",
|
||||
|
||||
//调用公共核价单页面参数
|
||||
hjTitle: "",
|
||||
hjDialogOpen: false,
|
||||
quotHjIdProp: ""
|
||||
showQt: false
|
||||
};
|
||||
},
|
||||
created() {
|
||||
|
@ -1202,16 +1188,12 @@ export default {
|
|||
|
||||
//技术确认单 详细信息
|
||||
showJsqrDialog(){
|
||||
this.jsqrTitle = "技术确认单信息";
|
||||
this.jsqrDialogOpen = true;
|
||||
this.quotJsqrIdProp = this.form.quotJsxzConfirmId;//传参设置
|
||||
this.$refs.jsqrDialog.getInfo("报价单-技术确认单",true,false,this.form.quotJsxzConfirmId);
|
||||
},
|
||||
|
||||
//核价单 详细信息
|
||||
showHjDialog(){
|
||||
this.hjTitle = "核价单信息";
|
||||
this.hjDialogOpen = true;
|
||||
this.quotHjIdProp = this.form.quotHjId;//传参设置
|
||||
this.$refs.hjDialog.getInfo("报价单-核价单",true,false,this.form.quotHjId);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -92,9 +92,7 @@
|
|||
/>
|
||||
|
||||
<!-- 添加或修改报价单-技术确认单对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
|
||||
<jsqrDialog :quotJsqrIdProp="quotJsqrIdProp" :isSelfProp="true" @fMethod="cancel"></jsqrDialog>
|
||||
</el-dialog>
|
||||
<jsqrDialog ref="jsqrDialog" @refreshList="getList"></jsqrDialog>
|
||||
</div>
|
||||
</template>
|
||||
<style>
|
||||
|
@ -156,20 +154,13 @@ export default {
|
|||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
quotJsqrCode: null
|
||||
},
|
||||
//调用公共技术确认单页面参数
|
||||
quotJsqrIdProp: ""
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
// 关闭弹窗按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.getList();
|
||||
},
|
||||
/** 查询报价单-技术确认单列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
|
@ -198,10 +189,8 @@ export default {
|
|||
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
const quotJsqrId = row.quotJsqrId || this.ids
|
||||
this.open = true;
|
||||
this.title = "报价单-技术确认单";
|
||||
this.quotJsqrIdProp = quotJsqrId;//传参设置
|
||||
const quotJsqrId = row.quotJsqrId || this.ids;
|
||||
this.$refs.jsqrDialog.getInfo("报价单-技术确认单",true,true,quotJsqrId);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="150px">
|
||||
<el-row :gutter="8">
|
||||
<el-col :span="12">
|
||||
|
@ -648,20 +649,23 @@
|
|||
<el-button :key="Math.random()" size="small" type="text">
|
||||
<a @click="downloadFile(scope.row.fileUrl)">下载</a>
|
||||
</el-button>
|
||||
<div v-if="this.isSelfProp">
|
||||
<el-button :key="Math.random()" size="small" type="text" v-if="uploadDis">
|
||||
<a @click="deleteFile(scope.row.fileId)">删除</a>
|
||||
</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-dialog>
|
||||
</el-form>
|
||||
<div v-if="this._props.isSelfProp">
|
||||
<div slot="footer" class="dialog-footer" v-if="this.form.quotJsxzApprovalStatus==1">
|
||||
<div v-if="isSelfProp">
|
||||
<span v-hasPermi="['jsqr:jsqr:commit']"><el-button type="primary" @click="commitQuot">提交报价</el-button></span>
|
||||
<span style="margin-left: 10px"><el-button @click="cancel">取 消</el-button></span>
|
||||
</div>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
<style>
|
||||
|
@ -681,12 +685,13 @@
|
|||
export default {
|
||||
name: "jsxzInfo",
|
||||
dicts: ['quot_jsxz_approval_status','quot_jsxz_chapter','quot_jsxz_standard','quot_jsxz_group','quot_jsxz_group_status'],
|
||||
props: {
|
||||
quotJsqrIdProp: String,
|
||||
isSelfProp: Boolean
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
// 弹窗标题 关闭/打开
|
||||
title: "",
|
||||
open: false,
|
||||
// 是否是自身页面调用
|
||||
isSelfProp: true,
|
||||
// 报价单-技术确认单-技术规范附件列表数据
|
||||
quotJsgfFileList: [],
|
||||
//报价单-技术确认单-反馈附件上传地址
|
||||
|
@ -746,14 +751,6 @@
|
|||
quotJsqrQtLeaderRemarkDis: false,
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
quotJsqrIdProp(value,oldvalue){
|
||||
this.getInfo();
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getInfo();
|
||||
},
|
||||
methods: {
|
||||
/** 清空表单 */
|
||||
reset(){
|
||||
|
@ -836,12 +833,15 @@
|
|||
},
|
||||
// 关闭弹窗按钮
|
||||
cancel() {
|
||||
this.$emit('fMethod');
|
||||
this.open = false;
|
||||
this.$emit('refreshList');
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
getInfo() {
|
||||
getInfo(title,open,isSelfProp,quotJsqrId) {
|
||||
this.open = true;
|
||||
this.title = "报价单-技术确认单";
|
||||
this.isSelfProp = isSelfProp;
|
||||
this.reset();
|
||||
const quotJsqrId = this._props.quotJsqrIdProp;
|
||||
getJsqr(quotJsqrId).then(response => {
|
||||
this.form = response.data;
|
||||
this.$set(this.form, "quotJsxzGroup", (this.form.quotJsxzGroupValues==''||this.form.quotJsxzGroupValues==null)?[]:this.form.quotJsxzGroupValues.split(','));
|
||||
|
@ -863,8 +863,6 @@
|
|||
this.getQuotJsqrFileList('quotJsqrQtFkFile');
|
||||
}
|
||||
|
||||
this.open = true;
|
||||
this.title = "报价单-技术确认单";
|
||||
this.getQuotJsgfFileList();
|
||||
this.quotJsqrTlRemarkDisSet();//技术协助-特缆审核意见/组长确认意见 编辑状态设置
|
||||
this.quotJsqrDyRemarkDisSet();//技术协助-低压审核意见/组长确认意见 编辑状态设置
|
||||
|
|
Loading…
Reference in New Issue