| | |
| | | style="width: 150px" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="体检类别" prop="tjCategory"> |
| | | <el-select |
| | | v-model="form.tjCategory" |
| | | placeholder="请选择是否上架" |
| | | style="width: 150px" |
| | | filterable |
| | | clearable |
| | | > |
| | | <el-option |
| | | v-for="dict in dict.type.dict_tjtype" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | <div v-if="!isCollapsed" style="display: flex"> |
| | | <div> |
| | |
| | | </template> |
| | | </el-table-column>--> |
| | | </el-table> |
| | | <span>合计:{{ pics }}元</span> |
| | | <h3 style="font-weight: 600">合计:{{ pics }}元</h3> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | import { Message } from "element-ui"; |
| | | export default { |
| | | name: "Package", |
| | | dicts: ["sys_normal_disable", "sys_yes_no"], |
| | | dicts: ["sys_normal_disable", "sys_yes_no", "dict_tjtype"], |
| | | components: { Packages }, |
| | | data() { |
| | | let checkPhoneNum = (rule, value, callback) => { |
| | |
| | | } |
| | | }; |
| | | return { |
| | | pics: "", |
| | | pics: 0, |
| | | filterText: "", |
| | | DataList: [], |
| | | list1: true, |
| | |
| | | }, |
| | | filterNode(value, data) { |
| | | if (!value) return true; |
| | | return data.proName.indexOf(value) !== -1; |
| | | // return data.proName.indexOf(value) !== -1; |
| | | if(data.proName.indexOf(value) !== -1){ |
| | | return data.proName.indexOf(value) !== -1; |
| | | }else{ |
| | | return data.proEngName.indexOf(value) !== -1; |
| | | } |
| | | }, |
| | | /** 查询体检套餐列表 */ |
| | | getList() { |
| | |
| | | this.form.keywords = this.form.keywords.slice(0, -1); |
| | | this.form.keywords = this.form.keywords.split(","); |
| | | this.DataList = []; |
| | | // this.pics = 0; |
| | | this.checkedkey = []; |
| | | this.checkedListkey = []; |
| | | this.getDataList(); |
| | |
| | | this.loading = true; |
| | | getProParentIdDxList().then((response) => { |
| | | this.Treedata = response.data.list; |
| | | console.log(this.Treedata, 666); |
| | | if (this.form.tjProjectList) { |
| | | this.form.tjProjectList.forEach((item) => { |
| | | this.Treedata.forEach((item1) => { |
| | |
| | | item2.disabled = true; |
| | | this.checkedListkey.push(item2.proId); |
| | | this.DataList.push(item2); |
| | | console.log(this.DataList); |
| | | if (this.DataList.length != 0) { |
| | | this.DataList.forEach((item) => { |
| | | if (item.proParentId == item1.proId) { |
| | | item.propinName = item1.proName; |
| | | item.propinPrice = item1.proPrice; |
| | | } |
| | | }); |
| | | this.pics = 0; |
| | | this.DataList.forEach((item) => { |
| | | this.pics += item.proPrice; |
| | | }); |
| | | } |
| | | }); |
| | |
| | | this.DataList.forEach((item) => { |
| | | item.propinName = this.Treedata[0].proName; |
| | | item.propinPrice = this.Treedata[0].proPrice; |
| | | }); |
| | | this.pics = 0; |
| | | this.DataList.forEach((item) => { |
| | | this.pics += item.proPrice; |
| | | }); |
| | | }); |
| | | }); |
| | |
| | | this.spliceData(); |
| | | this.pics = 0; |
| | | this.DataList.forEach((item1) => { |
| | | this.pics += item.proPrice; |
| | | this.pics += item1.proPrice; |
| | | if (item1.proParentId == data.proId) { |
| | | item1.propinName = data.proName; |
| | | item1.propinPrice = this.dataObj.proPrice; |
| | |
| | | item.disabled = true; |
| | | }); |
| | | this.checkedListkey = []; |
| | | console.log(this.DataList); |
| | | this.DataList.forEach((item, index) => { |
| | | if (item.proParentId == this.dataObj.proId) { |
| | | this.DataList.splice(index, this.TreedataList.length); |
| | |
| | | this.pics = 0; |
| | | this.DataList.forEach((item1) => { |
| | | this.pics += item1.proPrice; |
| | | this.TotalPrice1 = item1.proPrice + this.TotalPrice1; |
| | | // this.TotalPrice1 = item1.proPrice + this.TotalPrice1; |
| | | }); |
| | | } |
| | | }); |
| | | } else if (checked == true) { |
| | | this.DataList.push(data); |
| | | this.pics = 0; |
| | | this.DataList.forEach((item1) => { |
| | | this.pics += item1.proPrice; |
| | | if (item1.proParentId == this.dataObj.proId) { |
| | | item1.propinName = this.dataObj.proName; |
| | | item1.propinPrice = this.dataObj.proPrice; |
| | |
| | | this.TotalPrice1 = 0; |
| | | this.pics = 0; |
| | | this.DataList.forEach((item1) => { |
| | | this.TotalPrice1 = item1.proPrice + this.TotalPrice1; |
| | | // this.TotalPrice1 = item1.proPrice + this.TotalPrice1; |
| | | this.pics += item1.proPrice; |
| | | }); |
| | | } |