| | |
| | | @blur="numberChangeXianPrice(discount, discount)" /> |
| | | </el-form-item> |
| | | <el-form-item label="接害工龄年" prop="zhiyeJhgln" label-width="84px"> |
| | | <el-input v-model="form.zhiyeJhgln" type="number" style="width: 140px"/> |
| | | <el-input v-model="form.zhiyeJhgln" type="number" style="width: 140px" /> |
| | | </el-form-item> |
| | | <el-form-item label="接害工龄月" prop="zhiyeJhgln" label-width="84px"> |
| | | <el-input v-model="form.zhiyeJhgly" style="width: 140px" type="number" /> |
| | | <el-input v-model="form.zhiyeJhgly" style="width: 140px" type="number" /> |
| | | </el-form-item> |
| | | <el-form-item label="开始接害日期" prop="zhiyeKsjhrq" label-width="100px"> |
| | | <el-date-picker clearable v-model="form.zhiyeKsjhrq" type="date" |
| | | value-format="yyyy-MM-dd" style="width: 200px" /> |
| | | <el-date-picker clearable v-model="form.zhiyeKsjhrq" type="date" value-format="yyyy-MM-dd" |
| | | style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item label="工号" label-width="50px"> |
| | | <el-input v-model="form.zhiyeGh" /> |
| | | <el-input v-model="form.zhiyeGh" /> |
| | | </el-form-item> |
| | | <el-form-item label="车间" label-width="106px"> |
| | | <el-input v-model="form.zhiyeCj" /> |
| | | <el-input v-model="form.zhiyeCj" /> |
| | | </el-form-item> |
| | | <br /> |
| | | |
| | |
| | | font-size: 16px; |
| | | margin-right: 20px; |
| | | "> |
| | | <span v-if="this.tableData1[0]">{{ |
| | | this.tableData1[0].pacName || "" |
| | | }}</span> |
| | | 已选项目条数:<span style="font-weight: 700; color: red; margin-right: 5px">{{ this.tableData1.length || 0 |
| | | }}</span>条 |
| | | </div> |
| | |
| | | tuantiSelect, |
| | | deptTreeSelect, |
| | | projectGetList, |
| | | getOrderzhiye, |
| | | getOrder, |
| | | getProParentIdDxList, |
| | | getProSonDxList, |
| | | getCusIdcard, |
| | |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | Package() { |
| | | Package() { |
| | | this.activeNames = "first"; |
| | | if (this.form.cusSex == "男") { |
| | | this.form.cusSex = 0; |
| | |
| | | sex: cusSex, |
| | | dwId: this.form.firmId || "", |
| | | }; |
| | | if (this.form.tjType == 1) { |
| | | if (this.form.tjType == 6) { |
| | | if (!this.form.firmId && !this.form.firmName) { |
| | | this.$message({ |
| | | type: "warning", |
| | |
| | | } catch (error) { } |
| | | this.loading = false; |
| | | }); |
| | | } |
| | | |
| | | else { |
| | | } else { |
| | | this.taocan = true; |
| | | this.loading = true; |
| | | tuantiSelect(param).then((res) => { |
| | |
| | | |
| | | // 点击多选框获取选中数据 |
| | | handleSelectionChange(selection, row) { |
| | | console.log(selection) |
| | | this.tableData = selection; |
| | | if (selection.length > 1) { |
| | | let del_row = selection.shift(); |
| | |
| | | }); |
| | | } |
| | | if (selection[0]) { |
| | | // this.DataList = []; |
| | | // this.data = JSON.parse(JSON.stringify(this.dXData)); |
| | | // selection[0].tjProjectList.forEach((selectionitem) => { |
| | | // this.Treedata.forEach((item) => { |
| | | // if (selectionitem.proName == item.proName) { |
| | | // item.disabled = true; |
| | | // item.tjProjectList = []; |
| | | // } |
| | | // if (item.tjProjectList) { |
| | | // item.tjProjectList.forEach((item1) => { |
| | | // if (selectionitem.proName == item1.proName) { |
| | | // item1.disabled = true; |
| | | // item1.tjProjectList = []; |
| | | // } |
| | | // if (item1.tjProjectList) { |
| | | // item1.tjProjectList.forEach((item2) => { |
| | | // if (selectionitem.proName == item2.proName) { |
| | | // item2.disabled = true; |
| | | // item2.tjProjectList = []; |
| | | // } |
| | | // }); |
| | | // } |
| | | // }); |
| | | // } |
| | | // }); |
| | | // this.TreedataList.forEach((item3) => { |
| | | // if (item3.proParentId == selectionitem.proId) { |
| | | // item.disabled = true; |
| | | // } |
| | | // }); |
| | | // }); |
| | | } else { |
| | | this.treedataList = JSON.parse(JSON.stringify(this.dXData)); |
| | | return; |
| | |
| | | |
| | | // 项目提交 |
| | | submit() { |
| | | |
| | | if (this.form.cusIdcard) { |
| | | var cusId = this.form.cusIdcard; |
| | | } else { |
| | |
| | | this.isSubmitting = false; // 提交完成后重置标志 |
| | | }).catch(() => { |
| | | this.isSubmitting = false; // 确保在错误情况下也重置标志 |
| | | }); |
| | | } |
| | | |
| | | // 如果 tjCategory 为 "02",确保选中的套餐被添加到 tableData1 |
| | | if (this.tjCategory === "02" && this.tableData.length > 0) { |
| | | this.tableData.forEach((item) => { |
| | | if (!this.tableData1.some((existingItem) => existingItem.pacId === item.pacId)) { |
| | | this.tableData1.push(item); |
| | | } |
| | | }); |
| | | } |
| | | |
| | |
| | | }; |
| | | } |
| | | |
| | | getOrderzhiye(data).then((res) => { |
| | | getOrder(data).then((res) => { |
| | | this.$modal.msgSuccess("提交成功"); |
| | | this.tjNumbers = res.msg; |
| | | this.charge = true; |
| | |
| | | }, |
| | | |
| | | listgetOrder(data) { |
| | | getOrderzhiye(data).then((res) => { |
| | | const loading = this.$loading({ |
| | | lock: true, |
| | | text: '正在加载中,请稍等!', |
| | | spinner: 'el-icon-loading', |
| | | background: 'rgba(0, 0, 0, 0.7)' |
| | | }); |
| | | getOrder(data).then((res) => { |
| | | loading.close(); |
| | | this.$modal.msgSuccess("提交成功"); |
| | | //调接口显示导检单 |
| | | const tjNumber = res.msg; |
| | |
| | | this.$tab.refreshPage(); |
| | | }, |
| | | |
| | | // 最后提交按钮 |
| | | submitPrice() { |
| | | submitPrice() { |
| | | let _this = this; |
| | | this.loadingSubmit = true; |
| | | if (_this.tjCategory !== "") { |
| | |
| | | discount: item.discount, |
| | | parentProId: item.parentProId, |
| | | cusIdCard: item.cusId, |
| | | yhj: item.nowPrice |
| | | yhj: item.nowPrice, |
| | | })); // 创建新的对象,包含 discount 和 id |
| | | gaibianzhekou(newArray).then((res) => { |
| | | this.loadingSubmit = false; |
| | | if (res.code === 200) { |
| | | |
| | | let data; |
| | | |
| | | if (pacId || this.tjOrderList.length > 0) { |
| | |
| | | firmId: this.form.firmId, |
| | | firmName: this.form.firmName, |
| | | firmDeptName: this.form.firmDeptName, |
| | | zhiyeJhgly: this.form.zhiyeJhgly, |
| | | zhiyeKsjhrq: this.form.zhiyeKsjhrq, |
| | | zhiyeGh: this.form.zhiyeGh, |
| | | zhiyeCj: this.form.zhiyeCj |
| | | }; |
| | | |
| | | this.listgetOrder(data); |
| | |
| | | firmId: this.form.firmId, |
| | | firmName: this.form.firmName, |
| | | firmDeptName: this.form.firmDeptName, |
| | | zhiyeJhgly: this.form.zhiyeJhgly, |
| | | zhiyeKsjhrq: this.form.zhiyeKsjhrq, |
| | | zhiyeGh: this.form.zhiyeGh, |
| | | zhiyeCj: this.form.zhiyeCj |
| | | |
| | | |
| | | }; |
| | | this.listgetOrder(data); |
| | | } else { |