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

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

parent b4e818dd
...@@ -232,7 +232,7 @@ ...@@ -232,7 +232,7 @@
</el-form> </el-form>
<el-tabs type="border-card"> <el-tabs type="border-card">
<el-tab-pane label="班次"> <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>
<el-tab-pane v-if="open" label="工作单元"> <el-tab-pane v-if="open" label="工作单元">
<Team v-if="open" ref="teamTab" :planId="form.planId" :form="form" :calendarType="form.calendarType" :optType="optType"></Team> <Team v-if="open" ref="teamTab" :planId="form.planId" :form="form" :calendarType="form.calendarType" :optType="optType"></Team>
...@@ -383,6 +383,7 @@ export default { ...@@ -383,6 +383,7 @@ export default {
const planId = row.planId || this.ids const planId = row.planId || this.ids
getCalplan(planId).then(response => { getCalplan(planId).then(response => {
this.form = response.data; this.form = response.data;
console.log('this.form', this.form)
this.open = true; this.open = true;
this.title = "查看排班计划"; this.title = "查看排班计划";
this.optType = "view"; this.optType = "view";
......
...@@ -150,7 +150,7 @@ export default { ...@@ -150,7 +150,7 @@ export default {
dicts: ['SHIFT_TYPE'], dicts: ['SHIFT_TYPE'],
props: { props: {
shiftType: null, shiftType: null,
planId: null, planCode: null,
optType: null optType: null
}, },
watch: { watch: {
...@@ -159,7 +159,7 @@ export default { ...@@ -159,7 +159,7 @@ export default {
handler (newName, oldName) { handler (newName, oldName) {
console.log(newName, 'shiftType') console.log(newName, 'shiftType')
if (newName) { if (newName) {
if (this.planId&&!this.editShiftType) { if (this.planCode&&!this.editShiftType) {
this.getEditList(); this.getEditList();
} else if ((this.optType === 'view' || this.optType === 'edit')&&(this.editShiftType && this.editShiftType === newName)) { } else if ((this.optType === 'view' || this.optType === 'edit')&&(this.editShiftType && this.editShiftType === newName)) {
this.getEditList(); this.getEditList();
...@@ -170,7 +170,7 @@ export default { ...@@ -170,7 +170,7 @@ export default {
}, },
immediate: true immediate: true
}, },
planId: { planCode: {
handler (newName, oldName) { handler (newName, oldName) {
if (newName) { if (newName) {
this.editShiftType = this.shiftType this.editShiftType = this.shiftType
...@@ -254,7 +254,7 @@ export default { ...@@ -254,7 +254,7 @@ export default {
/** 查询计划班次列表 */ /** 查询计划班次列表 */
getEditList() { getEditList() {
this.loading = true; this.loading = true;
listEditShift({planId: this.planId}).then(response => { listEditShift({planCode: this.planCode}).then(response => {
this.shiftList = response.rows; this.shiftList = response.rows;
this.loading = false; 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