|
@@ -4,7 +4,7 @@
|
|
|
<div class = "search-bx" >
|
|
|
<div class="search">
|
|
|
<el-row :gutter="0">
|
|
|
-
|
|
|
+
|
|
|
<el-input v-model="tableObj.getdataListParm.parammaps.contractCode" placeholder="合同编号" class="filter-item" style="width: 120px" />
|
|
|
|
|
|
<!-- <el-autocomplete v-model="tableObj.getdataListParm.parammaps.customerName" :fetch-suggestions="customer_search" placeholder="客户名称" style="width: 200px;margin-right:10px" @select="change_customer_select" @clear="clear_customer_select" @blur="customer_search_blur" clearable>
|
|
@@ -24,13 +24,10 @@
|
|
|
<el-date-picker v-model="tableObj.getdataListParm.parammaps.inputDatetime2" class="inputDatetime filter-item" type="daterange" range-separator="至" start-placeholder="合同结束日期" end-placeholder="合同结束日期" style="width: 250px;" />
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
<el-select v-model="tableObj.getdataListParm.parammaps.contractStatus" placeholder="合同状态" class="filter-item" style="width: 120px;" clearable>
|
|
|
<el-option v-for="item in statusNameList" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
-
|
|
|
+
|
|
|
|
|
|
<el-input v-model="tableObj.getdataListParm.parammaps.beginContractMoney" placeholder="合同金额" style="width:80px"></el-input>
|
|
|
-
|
|
@@ -42,49 +39,28 @@
|
|
|
<el-input v-model="tableObj.getdataListParm.parammaps.endMoneyStep" placeholder="款项分期" style="width:80px"></el-input>
|
|
|
|
|
|
|
|
|
-
|
|
|
<el-date-picker v-model="tableObj.getdataListParm.parammaps.inputDatetime3" class="inputDatetime filter-item" type="daterange" range-separator="至" start-placeholder="创建时间" end-placeholder="创建时间" style="width: 250px;" />
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
<el-select v-model="tableObj.getdataListParm.parammaps.createrId" placeholder="创建人" class="filter-item" style="width: 120px;" clearable filterable>
|
|
|
<el-option v-for="(item,index) in createrNameList" :key="index" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
<el-button class="successBorder" @click="form_search">查询</el-button>
|
|
|
<el-button class="successBorder" @click="form_clear">重置</el-button>
|
|
|
-
|
|
|
+
|
|
|
</el-row>
|
|
|
</div>
|
|
|
-
|
|
|
|
|
|
- </div>
|
|
|
|
|
|
+ </div>
|
|
|
|
|
|
-
|
|
|
|
|
|
<div class="table" >
|
|
|
<el-table :key="tableObj.tableKey" v-loading="tableObj.listLoading" element-loading-text="给我一点时间" :data="tableObj.list" border fit highlight-current-row style="width: 100%;" :row-style="rowStyle" :cell-style="cellStyle" class="elTable table-fixed" :max-height="myHeight">
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
<el-table-column label="序号" align="center" type="index" width="50px" fixed="left">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.$index + (tableObj.pageNum-1) * tableObj.pageSize + 1 }}</span>
|
|
@@ -106,11 +82,11 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<!-- <el-table-column label="营业执照" min-width="110px" align="center" show-overflow-tooltip>
|
|
|
-
|
|
|
+
|
|
|
<template slot-scope="scope">
|
|
|
<img style="width: 50px; height: 50px" :src="scope.row.imgUrlDetil" alt="">
|
|
|
</template>
|
|
|
-
|
|
|
+
|
|
|
</el-table-column> -->
|
|
|
<el-table-column label="所属集团" min-width="90px" align="center" >
|
|
|
<template slot-scope="scope">
|
|
@@ -151,14 +127,14 @@
|
|
|
|
|
|
<el-table-column label="操作" align="center" :width="autoWidth" v-if="autoWidth !== 0" class-name="small-padding fixed-width" fixed="right">
|
|
|
<template slot-scope="{row}">
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
<el-button class="miniSuccess" @click="form_adopt(row)" v-if="roleSet(row)">通过</el-button>
|
|
|
|
|
|
<el-button class="miniDanger" @click="form_reject(row)" v-if="roleSet(row)">驳回</el-button>
|
|
|
<el-button class="miniSuccess" v-if="row.contractStatus == '一审中' || row.contractStatus == '二审中' || row.contractStatus == '三审中' || row.contractStatus == '四审中' || row.contractStatus == '五审中'" @click="form_quick(row)" >催进度</el-button>
|
|
|
|
|
|
-
|
|
|
+
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
@@ -173,18 +149,17 @@
|
|
|
<pagination v-show="tableObj.total>=0" :total="tableObj.total" :page.sync="tableObj.getdataListParm.offset" :limit.sync="tableObj.getdataListParm.pagecount" @pagination="get_table_data" />
|
|
|
</div>
|
|
|
|
|
|
-
|
|
|
|
|
|
<!-- 查看/反馈 -->
|
|
|
<el-dialog title="合同详情" :visible.sync="createSee.dialogFormVisible" :close-on-click-modal="false" width="95%" :before-close="dialog_close_see">
|
|
|
<div class="app-add">
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
<ContractMoreDetail :conmore-data="conmoreData" />
|
|
|
|
|
|
-
|
|
|
+
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
-
|
|
|
+
|
|
|
<el-button class="success" v-if="roleSet(create.temp)" @click="form_adopt(create.temp)">审核通过</el-button>
|
|
|
<el-button class="success" v-if="roleSet(create.temp)" @click="form_reject(create.temp)">驳回</el-button>
|
|
|
|
|
@@ -192,14 +167,12 @@
|
|
|
<el-button class="success" v-if="create.temp.contractStatus == '一审中' || create.temp.contractStatus == '二审中' || create.temp.contractStatus == '三审中' || create.temp.contractStatus == '四审中' || create.temp.contractStatus == '五审中'" @click="form_quick(create.temp)" >催进度</el-button>
|
|
|
<el-button class="cancelClose" @click="dialog_close_see()">关闭</el-button>
|
|
|
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
<!-- 通过 -->
|
|
|
<el-dialog title="确认是否审核通过" :visible.sync="adopt.dialogFormVisible" :close-on-click-modal="false" width="40%" :before-close="dialog_close_adopt">
|
|
|
<div class="app-add">
|
|
@@ -208,11 +181,11 @@
|
|
|
<el-form-item label="备注:" prop="remark">
|
|
|
<el-input ref="remark" v-model="adopt.temp.remark" type="textarea" :autosize="{ minRows: 4, maxRows: 8} " :rows="8" placeholder="请输入备注,最多200个字" maxlength="200" class="filter-item" style="width: 100%;" />
|
|
|
</el-form-item>
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
-
|
|
|
+
|
|
|
<el-button class="cancelClose" @click="dialog_close_adopt()">关闭</el-button>
|
|
|
<el-button class="success" @click="form_adopt_save()">确认</el-button>
|
|
|
</div>
|
|
@@ -227,18 +200,18 @@
|
|
|
<el-form-item label="驳回原因:" prop="remark">
|
|
|
<el-input ref="remark" v-model="reject.temp.remark" type="textarea" :autosize="{ minRows: 4, maxRows: 8} " :rows="8" placeholder="请输入备注,最多200个字" maxlength="200" class="filter-item" style="width: 100%;" />
|
|
|
</el-form-item>
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
-
|
|
|
+
|
|
|
<el-button class="cancelClose" @click="dialog_close_reject()">关闭</el-button>
|
|
|
<el-button class="success" @click="form_reject_save()">确认</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -292,14 +265,14 @@ export default {
|
|
|
fileList2: [],
|
|
|
|
|
|
|
|
|
- isRoleEdit: [], isContractAdopt: [],
|
|
|
+ isRoleEdit: [], isContractAdopt: [],
|
|
|
|
|
|
|
|
|
activeName:'first',
|
|
|
|
|
|
//客户资料详情组件
|
|
|
conmoreData:{ id:"" },
|
|
|
-
|
|
|
+
|
|
|
send_select_list: [
|
|
|
{ name: 'getDictListSelect', offset: 0, pagecount: 0, parammaps: { "pid": "54" } },
|
|
|
{ name: 'getUsersSelect', offset: 0, pagecount: 0, parammaps: {} },
|
|
@@ -311,40 +284,35 @@ export default {
|
|
|
|
|
|
|
|
|
// 下拉框 - 创建人
|
|
|
- createrNameList: [],
|
|
|
+ createrNameList: [],
|
|
|
|
|
|
// 下拉框 - 合同状态
|
|
|
statusNameList: [
|
|
|
- { "name": "草稿", "id": "草稿" },
|
|
|
- { "name": "一审中", "id": "一审中" },
|
|
|
- { "name": "二审中", "id": "二审中" },
|
|
|
- { "name": "三审中", "id": "三审中" },
|
|
|
- { "name": "审核通过", "id": "审核通过" },
|
|
|
- { "name": "已撤销", "id": "已撤销" },
|
|
|
- { "name": "被驳回", "id": "被驳回" },
|
|
|
+ { "name": "草稿", "id": "草稿" },
|
|
|
+ { "name": "一审中", "id": "一审中" },
|
|
|
+ { "name": "二审中", "id": "二审中" },
|
|
|
+ { "name": "三审中", "id": "三审中" },
|
|
|
+ { "name": "审核通过", "id": "审核通过" },
|
|
|
+ { "name": "已撤销", "id": "已撤销" },
|
|
|
+ { "name": "被驳回", "id": "被驳回" },
|
|
|
],
|
|
|
|
|
|
// 下拉框 -款项分期
|
|
|
moneyStepList: [
|
|
|
- { "name": "1", "id": "1" },
|
|
|
- { "name": "2", "id": "2" },
|
|
|
- { "name": "3", "id": "3" },
|
|
|
- { "name": "4", "id": "4" },
|
|
|
- { "name": "5", "id": "5" },
|
|
|
- { "name": "6", "id": "6" },
|
|
|
- { "name": "7", "id": "7" },
|
|
|
- { "name": "8", "id": "8" },
|
|
|
- { "name": "9", "id": "9" },
|
|
|
- { "name": "10", "id": "10" },
|
|
|
+ { "name": "1", "id": "1" },
|
|
|
+ { "name": "2", "id": "2" },
|
|
|
+ { "name": "3", "id": "3" },
|
|
|
+ { "name": "4", "id": "4" },
|
|
|
+ { "name": "5", "id": "5" },
|
|
|
+ { "name": "6", "id": "6" },
|
|
|
+ { "name": "7", "id": "7" },
|
|
|
+ { "name": "8", "id": "8" },
|
|
|
+ { "name": "9", "id": "9" },
|
|
|
+ { "name": "10", "id": "10" },
|
|
|
],
|
|
|
|
|
|
-
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- //表格 - 列表 - 查询
|
|
|
+ //表格 - 列表 - 查询
|
|
|
tableObj: {
|
|
|
getdataListParm: {
|
|
|
name: 'getContractApproval',
|
|
@@ -365,7 +333,7 @@ export default {
|
|
|
endContractMoney: "",
|
|
|
beginMoneyStep: "",
|
|
|
endMoneyStep: "",
|
|
|
-
|
|
|
+
|
|
|
|
|
|
inputDatetime1: "",
|
|
|
inputDatetime2: "",
|
|
@@ -378,8 +346,7 @@ export default {
|
|
|
beginCreaterDate: "",
|
|
|
endCreaterDate: "",
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
tableKey: 0,
|
|
@@ -389,7 +356,6 @@ export default {
|
|
|
temp: {}
|
|
|
},
|
|
|
|
|
|
-
|
|
|
|
|
|
tableSumMoney:1000,
|
|
|
|
|
@@ -420,7 +386,7 @@ export default {
|
|
|
returntype: 'Map',
|
|
|
parammaps: { groupId: "" }
|
|
|
},
|
|
|
- customerNameList:[],
|
|
|
+ customerNameList:[],
|
|
|
|
|
|
// 款项信息 - 表格
|
|
|
getdataListParmStages: {
|
|
@@ -452,7 +418,6 @@ export default {
|
|
|
stockSumPrice:0,
|
|
|
|
|
|
|
|
|
-
|
|
|
textMap: {
|
|
|
create: '新增',
|
|
|
see: '查看',
|
|
@@ -485,7 +450,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
|
|
|
-
|
|
|
+
|
|
|
moneyShow:true,
|
|
|
//获取反馈记录
|
|
|
getFeedRecordParm:{
|
|
@@ -503,13 +468,13 @@ export default {
|
|
|
offset: 1,
|
|
|
pagecount: 1000,
|
|
|
returntype: 'Map',
|
|
|
- parammaps: {
|
|
|
+ parammaps: {
|
|
|
serviceId:"",
|
|
|
createrId:"",
|
|
|
remark:"",
|
|
|
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
//反馈记录
|
|
|
feedRecordList:[
|
|
@@ -527,8 +492,8 @@ export default {
|
|
|
},
|
|
|
|
|
|
watch: {
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
// tableStagesList: {
|
|
|
// deep: true,
|
|
|
// handler: function (item) {
|
|
@@ -539,13 +504,11 @@ export default {
|
|
|
// tableStagesList[i].planCost = parseFloat(tableStagesList[i].planCostRate) * contractMoney * 0.01
|
|
|
// }
|
|
|
// this.tableStagesList = tableStagesList
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
// }
|
|
|
// },
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
|
|
|
tableStockList: {
|
|
|
deep: true,
|
|
@@ -556,14 +519,14 @@ export default {
|
|
|
sum = parseInt(i.nums) * parseFloat(i.price) + sum
|
|
|
})
|
|
|
this.stockSumPrice = sum
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
|
|
|
created() {
|
|
|
-
|
|
|
+
|
|
|
this.get_select_list()
|
|
|
this.get_auto_buttons()
|
|
|
|
|
@@ -581,13 +544,12 @@ export default {
|
|
|
this.rowData = {}
|
|
|
this.isHome = ""
|
|
|
this.codeNum = ""
|
|
|
-
|
|
|
+
|
|
|
this.get_table_data()
|
|
|
}
|
|
|
},
|
|
|
|
|
|
|
|
|
-
|
|
|
methods: {
|
|
|
|
|
|
roleSet(row){
|
|
@@ -609,7 +571,7 @@ export default {
|
|
|
// result = false
|
|
|
// }
|
|
|
return result
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
//图片展示
|
|
|
handlePicPreview(file) {
|
|
@@ -633,11 +595,10 @@ export default {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
if (this.create.temp.businessLicense === undefined || this.create.temp.businessLicense == -1) {
|
|
|
console.log("111")
|
|
|
this.create.temp.businessLicense = response.execresult.LastInsertId
|
|
|
- }
|
|
|
+ }
|
|
|
console.log('this.picArr1', this.picArr1)
|
|
|
|
|
|
console.log('this.create.temp', this.create.temp)
|
|
@@ -658,7 +619,7 @@ export default {
|
|
|
document.getElementById('uploadPic').lastChild.style.display = "inline-block"
|
|
|
}
|
|
|
this.create.temp.businessLicense = -1
|
|
|
-
|
|
|
+
|
|
|
if (fileList.length == 1) {
|
|
|
this.create.temp.businessLicense = fileList[0].response.execresult.LastInsertId
|
|
|
|
|
@@ -666,8 +627,6 @@ export default {
|
|
|
console.log(this.create.temp)
|
|
|
},
|
|
|
|
|
|
-
|
|
|
-
|
|
|
|
|
|
//获取按钮权限
|
|
|
get_auto_buttons() {
|
|
@@ -704,7 +663,6 @@ export default {
|
|
|
this.receProductNameList = response.data.getProductsEnable.list
|
|
|
console.log("收件货品下拉框", this.receProductNameList)
|
|
|
|
|
|
-
|
|
|
|
|
|
})
|
|
|
|
|
@@ -718,12 +676,12 @@ export default {
|
|
|
console.log('table数据======>', response.data.list)
|
|
|
if (response.data.list !== null) {
|
|
|
|
|
|
-
|
|
|
+
|
|
|
for (let i = 0; i < response.data.list.length; i++) {
|
|
|
var url = process.env.VUE_APP_BASE_API + response.data.list[i].picname1
|
|
|
- this.$set(response.data.list[i], 'imgUrlDetil', url )
|
|
|
+ this.$set(response.data.list[i], 'imgUrlDetil', url )
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
this.tableObj.list = response.data.list
|
|
|
this.tableObj.pageNum = response.data.pageNum
|
|
|
this.tableObj.pageSize = response.data.pageSize
|
|
@@ -738,9 +696,8 @@ export default {
|
|
|
if(me.roleSet(row)){
|
|
|
itemBtnNum = itemBtnNum + 2
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
console.log(itemBtnNum)
|
|
|
if(itemBtnNum > btnNum){
|
|
|
btnNum = itemBtnNum
|
|
@@ -748,7 +705,6 @@ export default {
|
|
|
})
|
|
|
|
|
|
|
|
|
-
|
|
|
console.log("btnNum=============",btnNum)
|
|
|
me.autoWidth = btnNum * 90 + 90
|
|
|
|
|
@@ -762,8 +718,6 @@ export default {
|
|
|
})
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
var send_price = {
|
|
|
name: 'getContractOfPrice',
|
|
|
parammaps: this.tableObj.getdataListParm.parammaps
|
|
@@ -779,8 +733,6 @@ export default {
|
|
|
})
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
form_search() {
|
|
|
console.log('点击了查询')
|
|
@@ -812,7 +764,6 @@ export default {
|
|
|
this.tableObj.getdataListParm.parammaps.endCreaterDate = ''
|
|
|
}
|
|
|
|
|
|
-
|
|
|
|
|
|
this.tableObj.getdataListParm.offset = 1
|
|
|
this.get_table_data()
|
|
@@ -831,11 +782,11 @@ export default {
|
|
|
this.tableObj.getdataListParm.parammaps.endContractMoney = ''
|
|
|
this.tableObj.getdataListParm.parammaps.beginMoneyStep = ''
|
|
|
this.tableObj.getdataListParm.parammaps.endMoneyStep = ''
|
|
|
-
|
|
|
+
|
|
|
this.tableObj.getdataListParm.parammaps.inputDatetime1 = ''
|
|
|
this.tableObj.getdataListParm.parammaps.inputDatetime2 = ''
|
|
|
this.tableObj.getdataListParm.parammaps.inputDatetime3 = ''
|
|
|
-
|
|
|
+
|
|
|
this.tableObj.getdataListParm.parammaps.beginContractBeginDate = ''
|
|
|
this.tableObj.getdataListParm.parammaps.endContractBeginDate = ''
|
|
|
this.tableObj.getdataListParm.parammaps.beginContractEndDate = ''
|
|
@@ -845,25 +796,22 @@ export default {
|
|
|
this.tableObj.getdataListParm.offset = 1
|
|
|
this.get_table_data()
|
|
|
|
|
|
-
|
|
|
-
|
|
|
|
|
|
},
|
|
|
|
|
|
// 新增
|
|
|
form_reset() {
|
|
|
this.create.temp = { contractStatus: '', customerId: '', groupId: '', groupName: '', serviceCode: '', contractBeginDate: parseTime(new Date(), '{y}-{m}-{d}'), contractEndDate: parseTime(new Date(), '{y}-{m}-{d}'), createrId: Cookies.get('employeid'), createrName: Cookies.get('employename'),moneyStep: '1',contractMoney: '', businessLicense: -1,picname1: '',userIds:""},
|
|
|
-
|
|
|
+
|
|
|
this.fileList = []
|
|
|
-
|
|
|
+
|
|
|
this.tableStagesList = []
|
|
|
this.tableStockList = []
|
|
|
document.getElementById('uploadPic').lastChild.style.display = "inline-block"
|
|
|
-
|
|
|
+
|
|
|
|
|
|
},
|
|
|
|
|
|
-
|
|
|
|
|
|
//客户失去焦点
|
|
|
customer_search_blur(item) {
|
|
@@ -872,7 +820,7 @@ export default {
|
|
|
this.tableObj.getdataListParm.parammaps.customerName = ""
|
|
|
this.customerNameList = []
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
|
|
|
//模糊查询客户
|
|
|
customer_search(queryString, cb) {
|
|
@@ -910,9 +858,9 @@ export default {
|
|
|
this.create.temp.customerName = ""
|
|
|
this.create.temp.customerId = ""
|
|
|
this.create.customerNameList = []
|
|
|
-
|
|
|
+
|
|
|
this.get_customer_list()
|
|
|
- this.$forceUpdate()
|
|
|
+ this.$forceUpdate()
|
|
|
|
|
|
},
|
|
|
// 弹窗中的客户
|
|
@@ -931,15 +879,12 @@ export default {
|
|
|
//监听 - 下拉中客户名称
|
|
|
change_customer(item) {
|
|
|
console.log(item)
|
|
|
- this.create.temp.customerId = item
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ this.create.temp.customerId = item
|
|
|
+
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
-
|
|
|
// 款项信息表格
|
|
|
getStagesTableList() {
|
|
|
GetDataByName(this.create.getdataListParmStages).then(response => {
|
|
@@ -963,9 +908,8 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
// 监听 - 下拉 - 款项分期
|
|
|
change_moneyStep(item) {
|
|
|
console.log(item)
|
|
@@ -977,17 +921,16 @@ export default {
|
|
|
console.log("table_len",table_len)
|
|
|
|
|
|
|
|
|
-
|
|
|
if( item > table_len ){
|
|
|
var num = parseInt(item) - parseInt(table_len)
|
|
|
-
|
|
|
+
|
|
|
console.log("num",num)
|
|
|
for(var i=1; i< num+1; i++){
|
|
|
console.log(i)
|
|
|
me.tableStagesList.push({'stages':i+parseInt(table_len),'planCostRate':'','planCost':'','collectionDate': parseTime(new Date(), '{y}-{m}-{d}'),'customerId':'','createrId':''})
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -997,14 +940,13 @@ export default {
|
|
|
var arrTemp = me.tableStagesList.slice(0, item)
|
|
|
|
|
|
me.tableStagesList = arrTemp
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
-
|
|
|
//下拉 - 备货品
|
|
|
change_receProduct(item) {
|
|
|
console.log("备货品ID ", item)
|
|
@@ -1027,11 +969,9 @@ export default {
|
|
|
form_see(row) {
|
|
|
|
|
|
|
|
|
-
|
|
|
// this.form_reset()
|
|
|
|
|
|
|
|
|
-
|
|
|
this.conmoreData.id = row.id
|
|
|
|
|
|
this.create.temp.id = row.id
|
|
@@ -1044,9 +984,6 @@ export default {
|
|
|
console.log('点击了查看',row)
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
// 现场照片
|
|
|
const urlArray = []
|
|
|
const urlArrayId = []
|
|
@@ -1056,7 +993,7 @@ export default {
|
|
|
urlArray.push(process.env.VUE_APP_BASE_API + this.create.temp.picname1)
|
|
|
urlArrayId.push(this.create.temp.businessLicense)
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
console.log("urlArray", urlArray)
|
|
|
console.log("urlArrayId", urlArrayId)
|
|
@@ -1076,30 +1013,17 @@ export default {
|
|
|
console.log("fileList", fileList)
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
this.createSee.dialogFormVisible = true
|
|
|
|
|
|
|
|
|
-
|
|
|
},
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
// 通过
|
|
|
form_adopt(row) {
|
|
|
console.log('点击了通过', row)
|
|
|
this.reset_adopt()
|
|
|
-
|
|
|
+
|
|
|
this.adopt.temp.id = row.id
|
|
|
this.adopt.temp.contractStatus = row.contractStatus
|
|
|
this.adopt.dialogFormVisible = true
|
|
@@ -1114,7 +1038,7 @@ export default {
|
|
|
form_adopt_save() {
|
|
|
this.$refs['adopttemp'].validate(valid => {
|
|
|
if (valid) {
|
|
|
-
|
|
|
+
|
|
|
|
|
|
var send_data = {
|
|
|
"common": {"returnmap": "0"},
|
|
@@ -1127,22 +1051,21 @@ export default {
|
|
|
"statusId":"1",
|
|
|
"remark":this.adopt.temp.remark ,
|
|
|
"userId":Cookies.get('employeid'),
|
|
|
- "stepName":this.adopt.temp.contractStatus
|
|
|
- },
|
|
|
+ "stepName":this.adopt.temp.contractStatus
|
|
|
+ },
|
|
|
},
|
|
|
|
|
|
{
|
|
|
"name": "updateContractApprovalSuccess","type": "e",
|
|
|
"parammaps": {
|
|
|
"id":this.adopt.temp.id,
|
|
|
- "stepName":this.adopt.temp.contractStatus
|
|
|
+ "stepName":this.adopt.temp.contractStatus
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
]
|
|
|
}
|
|
|
|
|
|
-
|
|
|
|
|
|
ExecDataByConfig(send_data).then(response => {
|
|
|
console.log('通过发送参数', send_data)
|
|
@@ -1155,7 +1078,6 @@ export default {
|
|
|
this.get_table_data()
|
|
|
|
|
|
|
|
|
-
|
|
|
var send_weixin_data1 = {
|
|
|
name: 'getRemindData',
|
|
|
parammaps: {
|
|
@@ -1190,7 +1112,7 @@ export default {
|
|
|
"content": [
|
|
|
{ "color": "#173177","value": value1 },
|
|
|
{ "color": "#173177", "value": value2 },
|
|
|
- { "color": "#173177", "value": value3 },
|
|
|
+ { "color": "#173177", "value": value3 },
|
|
|
{ "color": "#173177","value": value4 }
|
|
|
]
|
|
|
}
|
|
@@ -1214,20 +1136,15 @@ export default {
|
|
|
})
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
if(this.isHome == 'home'){
|
|
|
// 返回首页
|
|
|
- this.$router.push({ name: 'Dashboard', params: { isTodo: 'contractapp' }})
|
|
|
+ this.$router.push({ name: 'Dashboard', params: { isTodo: 'contractapp' }})
|
|
|
}
|
|
|
} else {
|
|
|
this.$notify({ title: '失败', message: '通过失败' + response.data, type: 'error', duration: 2000 })
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-
|
|
|
-
|
|
|
|
|
|
}
|
|
|
})
|
|
@@ -1259,7 +1176,7 @@ export default {
|
|
|
if(row.contractStatus == "五审中"){
|
|
|
send_weixin_data1.parammaps.remindId = 5
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
GetDataByName(send_weixin_data1).then(response => {
|
|
|
console.log('微信推送(获取参数)======>', response )
|
|
|
if (response.data.message == 'ok') {
|
|
@@ -1275,11 +1192,11 @@ export default {
|
|
|
"content": [
|
|
|
{ "color": "#173177","value": value1 },
|
|
|
{ "color": "#173177", "value": value2 },
|
|
|
- { "color": "#173177", "value": value3 },
|
|
|
+ { "color": "#173177", "value": value3 },
|
|
|
{ "color": "#173177","value": value4 }
|
|
|
]
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
wxpush(send_weixin_data2).then(response => {
|
|
|
console.log('微信推送(获取参数)======>', response )
|
|
@@ -1298,7 +1215,7 @@ export default {
|
|
|
form_reject(row) {
|
|
|
console.log('点击了驳回', row)
|
|
|
this.reset_reject()
|
|
|
-
|
|
|
+
|
|
|
this.reject.temp.id = row.id
|
|
|
this.reject.temp.contractStatus = row.contractStatus
|
|
|
this.reject.dialogFormVisible = true
|
|
@@ -1313,7 +1230,7 @@ export default {
|
|
|
form_reject_save() {
|
|
|
this.$refs['rejecttemp'].validate(valid => {
|
|
|
if (valid) {
|
|
|
-
|
|
|
+
|
|
|
|
|
|
var send_data = {
|
|
|
"common": {"returnmap": "0"},
|
|
@@ -1326,18 +1243,18 @@ export default {
|
|
|
"statusId":"0",
|
|
|
"remark":this.reject.temp.remark ,
|
|
|
"userId":Cookies.get('employeid'),
|
|
|
- "stepName":this.reject.temp.contractStatus
|
|
|
- },
|
|
|
+ "stepName":this.reject.temp.contractStatus
|
|
|
+ },
|
|
|
},
|
|
|
|
|
|
{
|
|
|
"name": "updateContractApprovalFalse","type": "e",
|
|
|
"parammaps": {"id":this.reject.temp.id}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
]
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
console.log(this.reject.temp)
|
|
|
|
|
|
ExecDataByConfig(send_data).then(response => {
|
|
@@ -1385,7 +1302,7 @@ export default {
|
|
|
"content": [
|
|
|
{ "color": "#173177","value": value1 },
|
|
|
{ "color": "#173177", "value": value2 },
|
|
|
- { "color": "#173177", "value": value3 },
|
|
|
+ { "color": "#173177", "value": value3 },
|
|
|
{ "color": "#173177","value": value4 }
|
|
|
]
|
|
|
}
|
|
@@ -1409,19 +1326,15 @@ export default {
|
|
|
})
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
if(this.isHome == 'home'){
|
|
|
// 返回首页
|
|
|
- this.$router.push({ name: 'Dashboard', params: { isTodo: 'contractapp' }})
|
|
|
+ this.$router.push({ name: 'Dashboard', params: { isTodo: 'contractapp' }})
|
|
|
}
|
|
|
} else {
|
|
|
this.$notify({ title: '失败', message: '驳回失败' + response.data, type: 'error', duration: 2000 })
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-
|
|
|
-
|
|
|
|
|
|
}
|
|
|
})
|
|
@@ -1434,7 +1347,7 @@ export default {
|
|
|
this.get_table_data()
|
|
|
if(this.isHome == 'home'){
|
|
|
// 返回首页
|
|
|
- this.$router.push({ name: 'Dashboard', params: { isTodo: 'contractapp' }})
|
|
|
+ this.$router.push({ name: 'Dashboard', params: { isTodo: 'contractapp' }})
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -1443,7 +1356,7 @@ export default {
|
|
|
this.get_table_data()
|
|
|
if(this.isHome == 'home'){
|
|
|
// 返回首页
|
|
|
- this.$router.push({ name: 'Dashboard', params: { isTodo: 'contractapp' }})
|
|
|
+ this.$router.push({ name: 'Dashboard', params: { isTodo: 'contractapp' }})
|
|
|
}
|
|
|
},
|
|
|
dialog_close_reject(){
|
|
@@ -1451,10 +1364,10 @@ export default {
|
|
|
this.get_table_data()
|
|
|
if(this.isHome == 'home'){
|
|
|
// 返回首页
|
|
|
- this.$router.push({ name: 'Dashboard', params: { isTodo: 'contractapp' }})
|
|
|
+ this.$router.push({ name: 'Dashboard', params: { isTodo: 'contractapp' }})
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
// 导出
|
|
|
form_export(item) {
|
|
|
if (item == 1) {
|
|
@@ -1484,7 +1397,7 @@ export default {
|
|
|
#uploadPic {
|
|
|
width: 700px;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// #uploadPic .el-upload-list--picture-card .el-upload-list__item {
|
|
|
// width: 70px;
|
|
|
// height: 70px;
|