diff --git a/src/components/contract/contractDetail.vue b/src/components/contract/contractDetail.vue index c7e2932..7587524 100644 --- a/src/components/contract/contractDetail.vue +++ b/src/components/contract/contractDetail.vue @@ -3,7 +3,7 @@ - 首页 + 合同管理 @@ -95,70 +95,37 @@ > - - + - - + - - + - - + - - + - - + - - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + + @@ -360,7 +419,8 @@ export default { formInline: { user: "", region: "", - }, + },//基本信息对象 + diveceformInline:{},//新增设备对象 readonly: true, htqd: cddata.htqd, timestamps1: [ @@ -394,25 +454,28 @@ export default { xh: "inslight iS3", sccj: "深圳因赛斯医疗科技有限公司", sl: "1", - dj: "7.85", - zj: "7.85", + cjdj: "7.85", + cjzj: "7.85", + ysdj: "8.00", + yszj: "8.00", bz: "2022年度计划", }, ], multipleSelection: [], + diviceDialogVisible: false, //添加设备 }; }, methods: { //汇总设备总价 - getSummaries(){ - const sums = []; - sums[7] = '总价(万元)'; - var price = 0 - this.tableData.forEach((item) => { - price += parseFloat(item.zj) - }); - sums[8] = price; - return sums; + getSummaries() { + const sums = []; + sums[13] = "总价(万元)"; + var price = 0; + this.tableData.forEach((item) => { + price += parseFloat(item.cjzj); + }); + sums[14] = price; + return sums; }, //删除设备 handleDelete(index) { @@ -421,17 +484,19 @@ export default { }, //新增设备 onAddDevice() { - var obj = { - name: "", - ks: "", - xh: "", - sccj: "", - sl: "", - dj: "0", - zj: "0", - bz: "", - }; - this.tableData.push(obj); + //显示弹框 + this.diviceDialogVisible = true; + // var obj = { + // name: "", + // ks: "", + // xh: "", + // sccj: "", + // sl: "", + // dj: "0", + // zj: "0", + // bz: "", + // }; + // this.tableData.push(obj); }, onSubmit() { console.log("submit!"); diff --git a/src/components/contract/contractList.vue b/src/components/contract/contractList.vue index 3889db2..c16f11b 100644 --- a/src/components/contract/contractList.vue +++ b/src/components/contract/contractList.vue @@ -1,13 +1,13 @@