|
|
@@ -81,8 +81,9 @@
|
|
|
:data="productPageResult" :columns="productColumns" @findPage="productCostFindPage" button2Name="编辑"
|
|
|
button2Type="text" button3Type="text" button5Type="text" :button2style="{ color: '#2D4D89' }"
|
|
|
:button3style="{ color: '#D42426' }" :button5style="{ color: '#2D4D89' }" permsButton2="agreement:input:productCost"
|
|
|
- @handleButton2="productUpdate" deleteName="批量修改" @handleDelete="batchUpdate" @customTool="batchDelete"
|
|
|
- customToolName="批量删除" button3Name="删除" permsButton3="agreement:input:productCost" @handleButton3="productDelete"
|
|
|
+ @handleButton2="productUpdate" deleteName="批量修改费用" @handleDelete="batchUpdate" @customTool="batchDelete"
|
|
|
+ @customTool1="customTool1" customToolName1="批量修改起止时间"
|
|
|
+ customToolName="批量删除" button3Name="删除" permsButton3="agreement:input:productCost" @handleButton3="productDelete"
|
|
|
button5Name="轨迹" @handleButton5="trajectory" button3Icon="">
|
|
|
</kt-common-table>
|
|
|
<el-dialog :title="productCostAddDialogTitle" :visible.sync="productCostAddVehicleFactorVisible" width="80%" top="6vh"
|
|
|
@@ -594,6 +595,35 @@
|
|
|
over-size="small" @cancelForm="productHistoryDetailsDialogVisible = false" :disabled="true"></Product-Cost-Form>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+
|
|
|
+ <el-dialog title="批量修改起止时间" :visible.sync="showUpdate1" width="30%" top="6vh">
|
|
|
+ <div class="tab-panestyle">
|
|
|
+ <el-form :inline="true" :model="batchUpdateForm1" id="bulkOperation" class="demo-form-inline tab-panecent" style="padding: 20px;">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="费用起期:">
|
|
|
+ <el-date-picker size="small" v-model="batchUpdateForm1.costsStartDate" type="datetime"
|
|
|
+ placeholder="选择结束日期" value-format="yyyy-MM-dd HH:mm:ss">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="费用止期:">
|
|
|
+ <el-date-picker size="small" v-model="batchUpdateForm1.costsEndDate" type="datetime"
|
|
|
+ placeholder="选择结束日期" value-format="yyyy-MM-dd HH:mm:ss" @change="checkStartDate1">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="small" @click="showUpdate1 = false">取 消</el-button>
|
|
|
+ <el-button size="small" style="background: #2D4D89;color: #fff;border-color: #2D4D89;" type="primary"
|
|
|
+ @click="batchCostsubmit1">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -1185,6 +1215,8 @@ export default {
|
|
|
productName: "",
|
|
|
},
|
|
|
permissions: null,
|
|
|
+ showUpdate1: false,
|
|
|
+ batchUpdateForm1: {},
|
|
|
}
|
|
|
},
|
|
|
// 生命周期函数
|
|
|
@@ -1406,6 +1438,24 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ // 批量修改起止时间
|
|
|
+ batchCostsubmit1() {
|
|
|
+ this.$api.insCompany.costsDateBatch(this.batchUpdateForm1).then((res) => {
|
|
|
+ if (res.code == '200') {
|
|
|
+ this.showUpdate1 = false;
|
|
|
+ this.productCostFindPage();
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.msg,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'error',
|
|
|
+ message: res.msg,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
batchCostsubmit() {
|
|
|
console.log(this.batchUpdateForm);
|
|
|
this.$api.insCompany.bulkOperation(this.batchUpdateForm).then((res) => {
|
|
|
@@ -1525,7 +1575,6 @@ export default {
|
|
|
this.productcopyItemPageRequest.agreementId = "";
|
|
|
this.productcopyItemPageRequest.productCode = [];
|
|
|
this.productcopyItemResult = [];
|
|
|
-
|
|
|
},
|
|
|
//产品删除
|
|
|
productDelete({ row, column }) {
|
|
|
@@ -1608,6 +1657,14 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ // 批量修改起止时间
|
|
|
+ customTool1(data) {
|
|
|
+ this.batchUpdateForm1 = {
|
|
|
+ ids: data
|
|
|
+ }
|
|
|
+ // costsDateBatch
|
|
|
+ this.showUpdate1 = true
|
|
|
+ },
|
|
|
//产品批量编辑
|
|
|
batchUpdate(data) {
|
|
|
this.batchUpdateForm = {
|