|
@@ -2,7 +2,7 @@
|
|
|
<el-dialog
|
|
<el-dialog
|
|
|
:visible.sync="showDialog"
|
|
:visible.sync="showDialog"
|
|
|
:title="title"
|
|
:title="title"
|
|
|
- width="83%"
|
|
|
|
|
|
|
+ width="95%"
|
|
|
:modal-append-to-body="true"
|
|
:modal-append-to-body="true"
|
|
|
style="text-align:left;"
|
|
style="text-align:left;"
|
|
|
@close="closeDialog"
|
|
@close="closeDialog"
|
|
@@ -39,7 +39,7 @@
|
|
|
></el-option>
|
|
></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item label="推送用户:" prop="personId" >
|
|
|
|
|
|
|
+ <el-form-item label="推送用户:" prop="personName" >
|
|
|
<!--
|
|
<!--
|
|
|
<el-input v-model="formModel.personId" style="display:none"></el-input>
|
|
<el-input v-model="formModel.personId" style="display:none"></el-input>
|
|
|
-->
|
|
-->
|
|
@@ -98,7 +98,6 @@
|
|
|
<el-select
|
|
<el-select
|
|
|
v-model="scope.row.goodsId"
|
|
v-model="scope.row.goodsId"
|
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
|
- style="width:150px;"
|
|
|
|
|
@change="handGoodsChange(scope)" size="mini">
|
|
@change="handGoodsChange(scope)" size="mini">
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="result in goodsList"
|
|
v-for="result in goodsList"
|
|
@@ -130,7 +129,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column prop="numStr" label="数量" width="320">
|
|
|
|
|
|
|
+ <el-table-column prop="numStr" label="数量" width="310">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
:prop="'billPushGoodsList.' + scope.$index + '.numStr3'"
|
|
:prop="'billPushGoodsList.' + scope.$index + '.numStr3'"
|
|
@@ -147,24 +146,27 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column prop="standard" label="收费标准(元)" width="120">
|
|
|
|
|
|
|
+ <el-table-column prop="standard" label="收费标准" width="200">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
- :prop="'billPushGoodsList.' + scope.$index + '.standard'"
|
|
|
|
|
- :rules="ruleValidate['standard']"
|
|
|
|
|
|
|
+ :prop="'billPushGoodsList.' + scope.$index + '.unitPrice'"
|
|
|
|
|
+ :rules="ruleValidate['unitPrice']"
|
|
|
|
|
+ size="mini"
|
|
|
>
|
|
>
|
|
|
- <el-input v-model="scope.row.unit" style="display:none"></el-input>
|
|
|
|
|
- <el-input placeholder="收费标准" v-model="scope.row.standard" size="mini"></el-input>
|
|
|
|
|
|
|
+ <el-input placeholder="收费标准" v-model="scope.row.unitPrice" @change="handNumChange(scope)" size="mini">
|
|
|
|
|
+ <template slot="append">{{scope.row.unit}}</template>
|
|
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column prop="totalFee" label="合计金额(元)" width="120">
|
|
|
|
|
|
|
+ <el-table-column prop="totalFee" label="合计金额(元)">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
:prop="'billPushGoodsList.' + scope.$index + '.totalFee'"
|
|
:prop="'billPushGoodsList.' + scope.$index + '.totalFee'"
|
|
|
- :rules="ruleValidate['totalFee']"
|
|
|
|
|
|
|
+ :rules="ruleValidate['totalFee']" size="mini"
|
|
|
>
|
|
>
|
|
|
- <el-input placeholder="合计金额" :value="scope.row.totalFee" readonly="readonly" size="mini"></el-input>
|
|
|
|
|
|
|
+ <el-input placeholder="合计金额" :value="scope.row.totalFee" readonly="readonly" size="mini">
|
|
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -210,9 +212,10 @@ export default {
|
|
|
return {
|
|
return {
|
|
|
ruleValidate: {
|
|
ruleValidate: {
|
|
|
name: [{ required: true, message: "账单名称不能为空", trigger: "blur" }],
|
|
name: [{ required: true, message: "账单名称不能为空", trigger: "blur" }],
|
|
|
- companyId: [{ required: true, message: "缴费单位不能为空", trigger: "blur" }],
|
|
|
|
|
- payService: [{ required: true, message: "收费项目不能为空", trigger: "blur" }],
|
|
|
|
|
- // personId: [{ required: true, message: "推送用户不能为空", trigger: "blur" }]
|
|
|
|
|
|
|
+ checkinInfoId: [{ required: true, message: "缴费单位不能为空", trigger: "blur" }],
|
|
|
|
|
+ // payService: [{ required: true, message: "收费项目不能为空", trigger: "blur" }],
|
|
|
|
|
+ invoiceType: [{ required: true, message: "开票类型不能为空", trigger: "blur" }],
|
|
|
|
|
+ personName: [{ required: true, message: "推送用户不能为空", trigger: "blur" }],
|
|
|
beginEndTime:[{ required: true, message: "起止时间不能为空", trigger: "blur" }],
|
|
beginEndTime:[{ required: true, message: "起止时间不能为空", trigger: "blur" }],
|
|
|
numStr3:[{ required: true, message: "数量不能为空", trigger: "blur" }],
|
|
numStr3:[{ required: true, message: "数量不能为空", trigger: "blur" }],
|
|
|
goodsId:[{ required: true, message: "收费项目未选择", trigger: "blur" }]
|
|
goodsId:[{ required: true, message: "收费项目未选择", trigger: "blur" }]
|
|
@@ -221,7 +224,7 @@ export default {
|
|
|
name:"",
|
|
name:"",
|
|
|
payee:"",
|
|
payee:"",
|
|
|
companyId:"",
|
|
companyId:"",
|
|
|
- payService:"",
|
|
|
|
|
|
|
+ // payService:"",
|
|
|
collectionAccountId:"",
|
|
collectionAccountId:"",
|
|
|
collectionAccountName:"",
|
|
collectionAccountName:"",
|
|
|
bak:"",
|
|
bak:"",
|
|
@@ -310,18 +313,26 @@ export default {
|
|
|
|
|
|
|
|
for(var i=0;i<billPushGoodsList.length;i++){
|
|
for(var i=0;i<billPushGoodsList.length;i++){
|
|
|
billPushGoodsList[i].sortNo = i+1;
|
|
billPushGoodsList[i].sortNo = i+1;
|
|
|
- billPushGoodsList[i].beginDate = billPushGoodsList[i].beginEndTime[0];
|
|
|
|
|
- billPushGoodsList[i].endDate = billPushGoodsList[i].beginEndTime[1]
|
|
|
|
|
- billPushGoodsList[i].beginEndTime=null;
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if(billPushGoodsList[i].beginEndTime!=null){
|
|
|
|
|
+ billPushGoodsList[i].beginDate = billPushGoodsList[i].beginEndTime[0];
|
|
|
|
|
+ billPushGoodsList[i].endDate = billPushGoodsList[i].beginEndTime[1]
|
|
|
|
|
+ billPushGoodsList[i].beginEndTime=null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ billPushGoodsList[i].standard = billPushGoodsList[i].unitPrice + billPushGoodsList[i].unit;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
var removeBillPushGoodsList = requestData.removeBillPushGoodsList;
|
|
var removeBillPushGoodsList = requestData.removeBillPushGoodsList;
|
|
|
|
|
|
|
|
for(var j=0;j<removeBillPushGoodsList.length;j++){
|
|
for(var j=0;j<removeBillPushGoodsList.length;j++){
|
|
|
removeBillPushGoodsList[j].sortNo = j+1;
|
|
removeBillPushGoodsList[j].sortNo = j+1;
|
|
|
- removeBillPushGoodsList[j].beginDate = removeBillPushGoodsList[j].beginEndTime[0];
|
|
|
|
|
- removeBillPushGoodsList[j].endDate = removeBillPushGoodsList[j].beginEndTime[1]
|
|
|
|
|
- removeBillPushGoodsList[j].beginEndTime=null;
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if(removeBillPushGoodsList[j].beginEndTime!=null){
|
|
|
|
|
+ removeBillPushGoodsList[j].beginDate = removeBillPushGoodsList[j].beginEndTime[0];
|
|
|
|
|
+ removeBillPushGoodsList[j].endDate = removeBillPushGoodsList[j].beginEndTime[1];
|
|
|
|
|
+ removeBillPushGoodsList[j].beginEndTime=null;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
(function() {
|
|
(function() {
|
|
@@ -450,8 +461,12 @@ export default {
|
|
|
// row.unit = data.unitPrice;
|
|
// row.unit = data.unitPrice;
|
|
|
// row.goodTypeId = data.goodType;
|
|
// row.goodTypeId = data.goodType;
|
|
|
this.$set(row,"standard",data.unitPriceStr);
|
|
this.$set(row,"standard",data.unitPriceStr);
|
|
|
- this.$set(row,"unit",data.unitPrice);
|
|
|
|
|
|
|
+ this.$set(row,"unit",data.unit);
|
|
|
|
|
+ this.$set(row,"unitPrice",data.unitPrice);
|
|
|
this.$set(row,"goodTypeId",data.goodType);
|
|
this.$set(row,"goodTypeId",data.goodType);
|
|
|
|
|
+
|
|
|
|
|
+ //如果是电费会返回起码
|
|
|
|
|
+ this.$set(row,"numStr", data.numStr);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
// },100);
|
|
// },100);
|
|
@@ -460,9 +475,8 @@ export default {
|
|
|
var row = scope.row;
|
|
var row = scope.row;
|
|
|
|
|
|
|
|
var num = row.numStr3;
|
|
var num = row.numStr3;
|
|
|
- var unit = row.unit;
|
|
|
|
|
-
|
|
|
|
|
- var totalFee = num*1*unit*1;
|
|
|
|
|
|
|
+ var unitPrice = row.unitPrice;
|
|
|
|
|
+ var totalFee = num*1*unitPrice*1;
|
|
|
|
|
|
|
|
if(totalFee!=null){
|
|
if(totalFee!=null){
|
|
|
this.formModel.billPushGoodsList[scope.$index].totalFee = totalFee.toFixed(2);
|
|
this.formModel.billPushGoodsList[scope.$index].totalFee = totalFee.toFixed(2);
|
|
@@ -473,8 +487,7 @@ export default {
|
|
|
|
|
|
|
|
var num1=row.numStr;
|
|
var num1=row.numStr;
|
|
|
var num2=row.numStr2;
|
|
var num2=row.numStr2;
|
|
|
- var unit = row.unit;
|
|
|
|
|
-
|
|
|
|
|
|
|
+ var unitPrice = row.unitPrice;
|
|
|
|
|
|
|
|
setTimeout(()=>{
|
|
setTimeout(()=>{
|
|
|
if(num1!=null&&num2!=null){
|
|
if(num1!=null&&num2!=null){
|
|
@@ -482,7 +495,7 @@ export default {
|
|
|
|
|
|
|
|
this.formModel.billPushGoodsList[scope.$index].numStr3 = num3;
|
|
this.formModel.billPushGoodsList[scope.$index].numStr3 = num3;
|
|
|
|
|
|
|
|
- var totalFee = num3*1*unit*1;
|
|
|
|
|
|
|
+ var totalFee = num3*1*unitPrice*1;
|
|
|
|
|
|
|
|
if(totalFee!=null){
|
|
if(totalFee!=null){
|
|
|
this.formModel.billPushGoodsList[scope.$index].totalFee = totalFee.toFixed(2);
|
|
this.formModel.billPushGoodsList[scope.$index].totalFee = totalFee.toFixed(2);
|
|
@@ -533,7 +546,7 @@ export default {
|
|
|
</script>
|
|
</script>
|
|
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
|
|
.input-form-main{
|
|
.input-form-main{
|
|
|
- width: 250px;
|
|
|
|
|
|
|
+ width: 300px;
|
|
|
}
|
|
}
|
|
|
.link-span{
|
|
.link-span{
|
|
|
margin-right: 20px;
|
|
margin-right: 20px;
|