|
@@ -53,7 +53,7 @@
|
|
|
icon="el-icon-plus"
|
|
icon="el-icon-plus"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
@click="handleAdd"
|
|
@click="handleAdd"
|
|
|
- v-hasPermi="['material:material:add']"
|
|
|
|
|
|
|
+ v-hasPermi="['material:receive:add']"
|
|
|
>新增
|
|
>新增
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -63,7 +63,7 @@
|
|
|
icon="el-icon-download"
|
|
icon="el-icon-download"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
@click="handleExport"
|
|
@click="handleExport"
|
|
|
- v-hasPermi="['material:material:add']"
|
|
|
|
|
|
|
+ v-hasPermi="['material:receive:export']"
|
|
|
>导出
|
|
>导出
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -96,7 +96,7 @@
|
|
|
icon="el-icon-edit"
|
|
icon="el-icon-edit"
|
|
|
@click="handleSplit(scope.row)"
|
|
@click="handleSplit(scope.row)"
|
|
|
v-if="scope.row.monthOrWeek==='1'"
|
|
v-if="scope.row.monthOrWeek==='1'"
|
|
|
- v-hasPermi="['material:material:add']"
|
|
|
|
|
|
|
+ v-hasPermi="['material:receive:add']"
|
|
|
>周数据
|
|
>周数据
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
@@ -105,7 +105,7 @@
|
|
|
icon="el-icon-edit"
|
|
icon="el-icon-edit"
|
|
|
v-if="showEditBtn(scope.row)"
|
|
v-if="showEditBtn(scope.row)"
|
|
|
@click="handleUpdate(scope.row)"
|
|
@click="handleUpdate(scope.row)"
|
|
|
- v-hasPermi="['material:material:edit']"
|
|
|
|
|
|
|
+ v-hasPermi="['material:receive:edit']"
|
|
|
>修改
|
|
>修改
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
@@ -113,7 +113,7 @@
|
|
|
type="text"
|
|
type="text"
|
|
|
icon="el-icon-delete"
|
|
icon="el-icon-delete"
|
|
|
@click="handleDelete(scope.row)"
|
|
@click="handleDelete(scope.row)"
|
|
|
- v-hasPermi="['material:material:delete']"
|
|
|
|
|
|
|
+ v-hasPermi="['material:receive:delete']"
|
|
|
>删除
|
|
>删除
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</template>
|
|
</template>
|
|
@@ -322,8 +322,11 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if (type === 'week') {
|
|
if (type === 'week') {
|
|
|
|
|
+ let time1 = DateUtil.unix(this.form.recordDate) * 1000
|
|
|
|
|
+ let time2 = DateUtil.unix(DateUtil.afterWeek()) * 1000
|
|
|
|
|
+ let limitTime = time1 > time2 ? time1 : time2;
|
|
|
return {
|
|
return {
|
|
|
- disabledDate: time => time.getTime() < DateUtil.unix(DateUtil.afterWeek()) * 1000
|
|
|
|
|
|
|
+ disabledDate: time => time.getTime() < limitTime
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -360,7 +363,6 @@ export default {
|
|
|
this.form.id = undefined;
|
|
this.form.id = undefined;
|
|
|
this.form.num = undefined;
|
|
this.form.num = undefined;
|
|
|
this.form.monthOrWeek = '2'
|
|
this.form.monthOrWeek = '2'
|
|
|
- this.form.recordDate = DateUtil.day()
|
|
|
|
|
this.title = "添加周物料计划";
|
|
this.title = "添加周物料计划";
|
|
|
this.open = true;
|
|
this.open = true;
|
|
|
},
|
|
},
|