Commit 6ad3105a authored by 沈翠玲's avatar 沈翠玲

排班计划查询详情用从传planId改成传planCode

parent b4e818dd
......@@ -232,7 +232,7 @@
</el-form>
<el-tabs type="border-card">
<el-tab-pane label="班次">
<Shift v-if="open" ref="shiftTab" :planId="form.planId" :shiftType="form.shiftType" :optType="optType"></Shift>
<Shift v-if="open" ref="shiftTab" :planCode="form.planCode" :shiftType="form.shiftType" :optType="optType"></Shift>
</el-tab-pane>
<el-tab-pane v-if="open" label="工作单元">
<Team v-if="open" ref="teamTab" :planId="form.planId" :form="form" :calendarType="form.calendarType" :optType="optType"></Team>
......@@ -383,6 +383,7 @@ export default {
const planId = row.planId || this.ids
getCalplan(planId).then(response => {
this.form = response.data;
console.log('this.form', this.form)
this.open = true;
this.title = "查看排班计划";
this.optType = "view";
......
......@@ -150,7 +150,7 @@ export default {
dicts: ['SHIFT_TYPE'],
props: {
shiftType: null,
planId: null,
planCode: null,
optType: null
},
watch: {
......@@ -159,7 +159,7 @@ export default {
handler (newName, oldName) {
console.log(newName, 'shiftType')
if (newName) {
if (this.planId&&!this.editShiftType) {
if (this.planCode&&!this.editShiftType) {
this.getEditList();
} else if ((this.optType === 'view' || this.optType === 'edit')&&(this.editShiftType && this.editShiftType === newName)) {
this.getEditList();
......@@ -170,7 +170,7 @@ export default {
},
immediate: true
},
planId: {
planCode: {
handler (newName, oldName) {
if (newName) {
this.editShiftType = this.shiftType
......@@ -254,7 +254,7 @@ export default {
/** 查询计划班次列表 */
getEditList() {
this.loading = true;
listEditShift({planId: this.planId}).then(response => {
listEditShift({planCode: this.planCode}).then(response => {
this.shiftList = response.rows;
this.loading = false;
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment