|
|
|
@ -0,0 +1,252 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="vol-tabs">
|
|
|
|
|
<Tabs ref="projecttabs">
|
|
|
|
|
|
|
|
|
|
<TabPane :label="this.$t('labeltitle.InfoFiles')" icon="ios-aperture">
|
|
|
|
|
<Infofiles_Table
|
|
|
|
|
ref="tab_infofiles"
|
|
|
|
|
@loadBefore="loadTableBefore_Infofile"
|
|
|
|
|
@loadAfter="loadTableAfter_Infofile"
|
|
|
|
|
></Infofiles_Table>
|
|
|
|
|
</TabPane>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Tabs>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
//开发一对多从表需要参照voltable与viewgrid组件api
|
|
|
|
|
import VolTable from "@/components/basic/VolTable.vue";
|
|
|
|
|
import Infofiles_Table from "@/components/basic/InfoFile_Table.vue";
|
|
|
|
|
import InfoClientContract_Table from "@/components/basic/InfoClientContract_Table.vue";
|
|
|
|
|
export default {
|
|
|
|
|
components: { VolTable,Infofiles_Table,InfoClientContract_Table,
|
|
|
|
|
VolForm: ()=> import("@/components/basic/VolForm.vue")
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
|
|
formname_cn:"项目管理",
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
created() {
|
|
|
|
|
//this.getCustName();
|
|
|
|
|
//this.IsBatchStock = false
|
|
|
|
|
// this.getConditionList();
|
|
|
|
|
//this.searchField_planlist.PLANTIME
|
|
|
|
|
window.Bodyhead = this;
|
|
|
|
|
window.Listhead = this.$store.getters.data().OPPROJECT_parent_head;
|
|
|
|
|
// this.WanHuaHuaXue_Show=this.http.FormShow.WanHuaHuaXue_Show;
|
|
|
|
|
|
|
|
|
|
// this.isWUTONG = this.http.FormShow.isWUTONG;
|
|
|
|
|
|
|
|
|
|
// this.GoodsModelShow = this.http.GoodsModelShow;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//this.getPrintList();
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
computed:{
|
|
|
|
|
// isBatchStock:function() {
|
|
|
|
|
// let _headform=this.$store.getters.data().OPPROJECT_parent_head;
|
|
|
|
|
// let _data= _headform.geteditformfield();
|
|
|
|
|
// // console.log(_data)
|
|
|
|
|
// let isbatch= _data.ISBATCHSTOCK == 0 ? false : true
|
|
|
|
|
// this.IsBatchStock = isbatch
|
|
|
|
|
// console.log(this.IsBatchStock)
|
|
|
|
|
// // this.loadTableAfter1()
|
|
|
|
|
// return isbatch;
|
|
|
|
|
// },
|
|
|
|
|
// showwmsfee:function(){
|
|
|
|
|
// let _headform=this.$store.getters.data().OPPROJECT_parent_head;
|
|
|
|
|
// let _data= _headform.geteditformfield();
|
|
|
|
|
// // console.log(_data)
|
|
|
|
|
// let _Showwmsfee= _data.BSSTATUS == "true" ? false : true
|
|
|
|
|
// this.Showwmsfee = _Showwmsfee;
|
|
|
|
|
// //console.log(this.IsBatchStock)
|
|
|
|
|
// // this.loadTableAfter1()
|
|
|
|
|
// return _Showwmsfee;
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
// let tabs= this.$refs.outplantabs.getTabs();
|
|
|
|
|
// console.log('当前标识',this.IsBatchStock)
|
|
|
|
|
// tabs.forEach((x)=>{
|
|
|
|
|
// if(!this.isFEST){
|
|
|
|
|
// if(x.label=="费用"){
|
|
|
|
|
// x.disabled=true;
|
|
|
|
|
// if(this.http.FormShow.isJGWL){
|
|
|
|
|
// x.disabled=false;
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
// refreshplan(param, callBack) {
|
|
|
|
|
// this.$refs.table1.reset();
|
|
|
|
|
// },
|
|
|
|
|
getheadid(){
|
|
|
|
|
let _headform=this.$store.getters.data().OPPROJECT_parent_head;
|
|
|
|
|
let _data= _headform.geteditformfield();
|
|
|
|
|
let searchvalue=_data.GID;
|
|
|
|
|
|
|
|
|
|
if(_headform.isNullorEmpty(searchvalue)){searchvalue="00000000-0000-0000-0000-000000000000"}
|
|
|
|
|
return searchvalue;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
loadTableBefore_Infofile(param) {
|
|
|
|
|
param.wheres=[];
|
|
|
|
|
//let headid =this.getheadid();
|
|
|
|
|
|
|
|
|
|
let _this=this.$store.getters.data().OPPROJECT_parent_head;
|
|
|
|
|
let MBLNO= _this.geteditformfield().PROJECTNAME;
|
|
|
|
|
|
|
|
|
|
param.wheres.push({ Name:"MBLNO",Value:MBLNO,displayType:'='});
|
|
|
|
|
},
|
|
|
|
|
loadTableAfter_Infofile(data, callBack) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// remoteLoad() {
|
|
|
|
|
// },
|
|
|
|
|
// setFormData(formData){
|
|
|
|
|
// let extra = {
|
|
|
|
|
// // table1List: this.$refs.table1.rowData,
|
|
|
|
|
// // tab_truckList: this.$refs.tab_truck.rowData,
|
|
|
|
|
// }
|
|
|
|
|
// formData.extra = JSON.stringify(extra);
|
|
|
|
|
// return formData;
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
// selectBlur(e) {
|
|
|
|
|
// this.Customer = e.target.value;
|
|
|
|
|
// },
|
|
|
|
|
// getOption(field) {
|
|
|
|
|
// let option;
|
|
|
|
|
// let _headform=this.$store.getters.data().OPPROJECT_parent_head;
|
|
|
|
|
// _headform.editFormOptions.forEach(x => {
|
|
|
|
|
// x.forEach(item => {
|
|
|
|
|
// if (item.field == field) {
|
|
|
|
|
// option = item;
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
|
// })
|
|
|
|
|
// return option;
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
getforminfo() {
|
|
|
|
|
let headid =this.getheadid();
|
|
|
|
|
let _headform=this.$store.getters.data().OPPROJECT_parent_head;
|
|
|
|
|
let _data= _headform.geteditformfield();
|
|
|
|
|
let CUSTOMERNAME = _data.CUSTOMERNAME;
|
|
|
|
|
let MBLNO = _data.MBLNO;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return {formname:this.formname,formname_cn:this.formname_cn,headid:headid
|
|
|
|
|
,filetype:"项目管理",filename:"项目管理",mblno:MBLNO
|
|
|
|
|
,customername:CUSTOMERNAME
|
|
|
|
|
,hidechange:true
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// getPrintList() {
|
|
|
|
|
|
|
|
|
|
// let GetPrintInfoUrl= "api/SYS_PRINTINFO/GetPrintList";
|
|
|
|
|
// let _headform = this.$store.getters.data().OPPROJECT_parent_head;
|
|
|
|
|
// let _this=this;
|
|
|
|
|
// let userInfo = this.$store.getters.getUserInfo();
|
|
|
|
|
|
|
|
|
|
// let printparam = {
|
|
|
|
|
// order: "asc",
|
|
|
|
|
// page: 1,
|
|
|
|
|
// rows: 30,
|
|
|
|
|
// sort:"",
|
|
|
|
|
// wheres: [{name:"MODNAME",value:this.formname_cn},{name:"CORPID",value:userInfo.companyId}], //查询条件,格式为[{ name: "字段", value: "xx" }]
|
|
|
|
|
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
// if (printparam.wheres && printparam.wheres instanceof Array) {
|
|
|
|
|
// printparam.wheres = JSON.stringify(printparam.wheres);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// this.http.post(GetPrintInfoUrl, printparam ).then(response => {
|
|
|
|
|
// var redata=response.rows;
|
|
|
|
|
// _this.PRINTINFOList=redata;
|
|
|
|
|
// })
|
|
|
|
|
// .catch(function (error) {
|
|
|
|
|
// console.log(error);
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
// doprint(){
|
|
|
|
|
// //return this.$Message.error(this.PrintInfo.PRINTID);
|
|
|
|
|
// let headid=this.getheadid();
|
|
|
|
|
|
|
|
|
|
// let rows2 = this.$refs.table1.getSelected();
|
|
|
|
|
// let printkeys2 = rows2.map(x => {
|
|
|
|
|
// return "'" + x['WMSOUTDETAILID'] + "'";
|
|
|
|
|
// });
|
|
|
|
|
// var keystr2=""
|
|
|
|
|
|
|
|
|
|
// if(printkeys2.length>0){
|
|
|
|
|
// printkeys2.forEach(x => {
|
|
|
|
|
// if (keystr2 != "") keystr2+=","
|
|
|
|
|
// keystr2 += x;
|
|
|
|
|
// });
|
|
|
|
|
// }else{
|
|
|
|
|
// //
|
|
|
|
|
// keystr2="''";
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// let PrintInfo = {
|
|
|
|
|
// PRINTTYPE: this.PrintMessage.PRINTTYPE,
|
|
|
|
|
// MODNAME: this.formname_cn,
|
|
|
|
|
// PRINTNAME: this.PrintMessage.printname,
|
|
|
|
|
// TITLE: "",
|
|
|
|
|
// headid:headid,
|
|
|
|
|
// BILLGID:headid,
|
|
|
|
|
// param1:"" + keystr2
|
|
|
|
|
// };
|
|
|
|
|
// let $http = this.http;
|
|
|
|
|
// let tigger = false;
|
|
|
|
|
// if (tigger) return;
|
|
|
|
|
// tigger = true;
|
|
|
|
|
// let url = "api/SYS_PRINTINFO/FastReportPrint_back";
|
|
|
|
|
// this.http.post(url, PrintInfo, this.$t('MSG.MakingPrintFile')).then(x => {
|
|
|
|
|
// if (!x.status) return this.$error(x.message);
|
|
|
|
|
// tigger = false;
|
|
|
|
|
// //this.$refs.table1.delRow(rows);
|
|
|
|
|
// let url=x.data;//下载地址
|
|
|
|
|
// window.open($http.ipAddress+'/'+url);
|
|
|
|
|
// });
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.vol-tabs {
|
|
|
|
|
background: white;
|
|
|
|
|
}
|
|
|
|
|
.tabs1-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
text-align: right;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
.btn-group {
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|