修改部分样式

dev
e 3 years ago
commit fb8cefd0d0
  1. 3
      src/utils/api.js
  2. 16
      src/views/data/Framework.vue
  3. 36
      src/views/order/AddOrder.vue

@ -1,8 +1,5 @@
let host = 'http://39.108.250.202:9000'
if(process.env.NODE_ENV === 'development'){
host = 'http://192.168.31.216:9000'
}
let host1 = 'http://192.168.31.216:9000'//榕
let host2 = 'http://192.168.31.125:9000'//林
// let host = 'http://192.168.31.137:9000'// 陈赓

@ -319,6 +319,18 @@ export default {
}
})
},
renderChecked(){
let result = []
let list = this.$refs.typeTree.getCheckedNodes()
list.map((n,i) => {
if(n.tableLen && n.tableLen > n.children.length){
result = [...result,...n.children.map(n => n.id)]
}else{
result.push(n.id)
}
})
this.$refs.typeTree.setCheckedKeys(result)
},
loadType(e){
clearTimeout(this.typeTimer)
let typeTree = this.$refs.typeTreeWrap
@ -328,7 +340,7 @@ export default {
this.getMoreTable(this.importTypeList,this.curExpand)
setTimeout(() => {
this.$nextTick(() => {
this.$refs.typeTree.setCheckedKeys(this.defaultTypeChecked)
this.renderChecked()
})
},300)
}
@ -431,7 +443,7 @@ export default {
},
importTypeExpand(obj,node,com){
this.curExpand = obj.id
this.$refs.typeTree.setCheckedKeys(this.defaultTypeChecked)
this.renderChecked()
},
closeImport(){
this.$refs.typeTree.setCheckedKeys([])

@ -181,13 +181,13 @@
<el-table :data="dataPlatform" class="orderTable" stripe header-align="center" :summary-method="getSummaries">
<el-table-column type="index" width="100" label="序号" align="center">
</el-table-column>
<el-table-column prop="productName" label="产品名称" align="center">
<el-table-column prop="productName" label="产品名称" align="center" width="200">
</el-table-column>
<el-table-column label="使用期限" align="center" width="200">
<template slot-scope="scope">
<div class="course-input">
<el-input onkeyup="value=this.value.replace(/\D+/g,'')" :class="!scope.row.periodOfUse&&whetherSubmit?'red':''" :disabled="disabled||editDisabled" maxlength="4" @change="deadLine($event,scope.row),zero($event,scope.row)" oninput="value=value.replace(/[^0-9.]/g,'')" v-model="scope.row.periodOfUse" placeholder="输入时间"></el-input>
<span></span>
<span ></span>
</div>
</template>
</el-table-column>
@ -199,38 +199,39 @@
</div>
</template>
</el-table-column>
<el-table-column label="剩余期限" align="center" width="160px">
<el-table-column label="剩余期限" align="center" width="200">
<template slot-scope="scope">
<div class="small">
<el-input disabled v-model="scope.row.remainingPeriod" placeholder="请输入"type="text"></el-input>
<span></span>
<span style="margin-left:5px"></span>
</div>
</template>
</el-table-column>
<el-table-column label="市场价" align="center" width="185">
<el-table-column label="市场价" align="center" width="200">
<template slot-scope="scope">
<div class="small">
<el-input disabled v-model="scope.row.marketValue" placeholder="请输入"type="text"></el-input>
<span>&nbsp;/&nbsp;</span>
<span style="margin-left:5px">&nbsp;/&nbsp;</span>
</div>
</template>
</el-table-column>
<el-table-column label="成交价" align="center" width="185">
<el-table-column label="成交价" align="center" width="200">
<template slot-scope="scope">
<div class="small">
<el-input :class="!scope.row.finalPrice&&whetherSubmit?'red':''" :disabled="disabled||editDisabled" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" @change="[dealComputers($event,scope.row),calculateDiscount($event,scope.row),userAmount($event,scope.row)]" v-model="scope.row.finalPrice" placeholder="请输入"type="text"></el-input>
<span>&nbsp;/&nbsp; </span>
<span style="margin-left:5px">&nbsp;/&nbsp; </span>
</div>
</template>
</el-table-column>
<el-table-column label="折扣率" align="center" width="140">
<el-table-column label="折扣率" align="center" width="200">
<template slot-scope="scope">
<div class="discountRate">
<!-- <div class="discountRate"> -->
<div class="small">
<el-input disabled v-model="scope.row.discountRate" placeholder=""type="text"></el-input>
</div>
</template>
</el-table-column>
<el-table-column label="账号数" align="center" width="150">
<el-table-column label="账号数" align="center" width="200">
<template slot-scope="scope">
<div class="small">
<el-input :class="!scope.row.accountNum&&whetherSubmit?'red':''" :disabled="disabled||editDisabled" @change="[dealComputers($event,scope.row),dealBargain($event,scope.row),calculateDiscount($event,scope.row)]" v-model="scope.row.accountNum" placeholder="请输入"type="text"></el-input>
@ -238,7 +239,7 @@
</template>
</el-table-column>
<!-- 金额自动计算计算方式账号数*成交价且可以手动修改保留两位小数 -->
<el-table-column label="总金额(元)" align="center" width="180">
<el-table-column label="总金额(元)" align="center" width="200">
<template slot-scope="scope">
<div class="small">
<el-input :class="!scope.row.totalAmount&&whetherSubmit?'red':''" :disabled="disabled||editDisabled" @blur="[allAmount($event,scope.row),allAmountChange($event,scope.row),calculateDiscount($event,scope.row)]" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" v-model="scope.row.totalAmount" placeholder="请输入"type="text"></el-input>
@ -394,7 +395,7 @@
</el-dialog>
<!-- 添加数据平台权限弹框 -->
<el-dialog :visible.sync="showPlatform" width="50%" center>
<el-dialog :visible.sync="showPlatform" width="50%" center >
<div class="flex-between mgb20">
<div class="flex-center">
<p class="addhr_tag"></p>
@ -404,7 +405,7 @@
<el-input placeholder="请输入产品名称" prefix-icon="el-icon-search" v-model="productName" @keyup.enter.native="addDataJurisdiction('search')" clearable></el-input>
</div>
</div>
<el-table :data="boxDataPlatform" stripe header-align="center" @selection-change="boxDataPlatformSelection" :row-key="getRowKeys">
<el-table v-loading="dataLoading" :data="boxDataPlatform" stripe header-align="center" @selection-change="boxDataPlatformSelection" :row-key="getRowKeys">
<el-table-column type="selection" :selectable="selectable" width="55" align="center"></el-table-column>
<el-table-column type="index" width="100" label="序号" align="center"></el-table-column>
<el-table-column prop="productName" label="产品名称" align="center"></el-table-column>
@ -497,6 +498,7 @@ export default {
disabled:false,//
editDisabled:false,//
renewDisabled:false,//
dataLoading:false,//
whetherSubmit:false,/* 提交否 */
@ -515,7 +517,7 @@ export default {
customerName:'',//
},
jurisdictionData: [],//
dataPlatform:[],// data
dataPlatform:[{}],// data
contract:{ //
contractName:'', //
@ -861,10 +863,14 @@ export default {
status:1,
productName:this.productName
}
this.dataLoading = true
this.$post(this.api.listByEntity,param).then(res=>{
this.boxDataPlatform = res.pageList.records
this.platfromTotals = res.pageList.total
this.dataLoading = false
}).catch(err=>{
this.dataLoading = false
})
},

Loading…
Cancel
Save