|
@@ -16,7 +16,7 @@
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
- <el-form-item label="计划名称" prop="planName" :rules="{ required: true, message: '请填写名称', trigger: 'blur' }">
|
|
|
+ <el-form-item label="计划名称" prop="planName" :rules="{ required: true, message: '请填写计划名称', trigger: 'blur' }">
|
|
|
<el-input
|
|
|
v-model.trim="basicForm.planName"
|
|
|
size="mini"
|
|
@@ -131,7 +131,6 @@
|
|
|
max-height="600"
|
|
|
style="font-size: 12px;"
|
|
|
@selection-change="handleSelectionChange"
|
|
|
- :cell-class-name="cellClassName"
|
|
|
>
|
|
|
<el-table-column type="selection" align="center"/>
|
|
|
<el-table-column label="序号" type="index" align="center"/>
|
|
@@ -152,7 +151,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column show-overflow-tooltip label="客户名称" prop="customerName" min-width="230" :render-header="addRedStar">
|
|
|
+ <el-table-column show-overflow-tooltip label="客户" prop="customerName" min-width="230" :render-header="addRedStar">
|
|
|
<template slot-scope="scope">
|
|
|
<el-form-item class="hang" :prop="'mkBoPlanItemList.' + scope.$index + '.' + 'customerName'" :rules="{ required: true, message: '请选择客户', trigger: 'blur' }">
|
|
|
<el-select clearable size="mini" v-model="scope.row.customerName" :disabled="sonDisable" @focus="chooseSon(scope.$index, 'CUSTOMER_PARAM_ZT', true, '客户')" style="width: 200px">
|
|
@@ -165,7 +164,7 @@
|
|
|
<el-table-column show-overflow-tooltip label="联系人" prop="contactName" min-width="230" :render-header="addRedStar">
|
|
|
<template slot-scope="scope">
|
|
|
<el-form-item class="hang" :prop="'mkBoPlanItemList.' + scope.$index + '.' + 'contactName'" :rules="{ required: true, message: '请选择联系人', trigger: 'blur' }">
|
|
|
- <el-select clearable size="mini" v-model="scope.row.contactName" :disabled="sonDisable" @focus="chooseSon(scope.$index, 'LINKMAN_PARAM', true, '联系人', {id: customer})" style="width: 200px">
|
|
|
+ <el-select clearable size="mini" v-model="scope.row.contactName" :disabled="sonDisable" @focus="chooseSon(scope.$index, 'LINKMAN_PARAM', true, '联系人', {customer:scope.row.customer})" style="width: 200px">
|
|
|
<el-option v-for="item in linkOptions" :key="item.id" :label="item.name" :value="item.code" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -264,10 +263,10 @@ export default {
|
|
|
basicForm: {
|
|
|
id: '',
|
|
|
planCode: '',
|
|
|
- planName :'',
|
|
|
- charger: '',
|
|
|
- chargerName: this.$store.state.user.nickName,
|
|
|
- dept: '',
|
|
|
+ planName : '',
|
|
|
+ charger: his.$store.state.user.id,
|
|
|
+ chargerName: his.$store.state.user.nickName,
|
|
|
+ dept: this.$store.state.user.deptId,
|
|
|
deptName: this.$store.state.user.deptName,
|
|
|
startDate: this.getNextWeek(1),
|
|
|
deadlineTime: this.getNextWeek(7),
|
|
@@ -373,7 +372,7 @@ export default {
|
|
|
addPlan(this.basicForm).then(res => {
|
|
|
console.log(333)
|
|
|
if (res.code === 200) {
|
|
|
- this.$modal.msgSuccess("保存成功");
|
|
|
+ this.$modal.notifySuccess("保存成功");
|
|
|
this.$modal.closeLoading();
|
|
|
this.back()
|
|
|
}
|
|
@@ -390,7 +389,7 @@ export default {
|
|
|
// this.basicForm.mkBoPlanItemList.push(...this.delPlanItemList)
|
|
|
editPlan(param).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
- this.$modal.msgSuccess("编辑成功");
|
|
|
+ this.$modal.notifySuccess("编辑成功");
|
|
|
this.$modal.closeLoading();
|
|
|
this.back()
|
|
|
}
|
|
@@ -416,7 +415,7 @@ export default {
|
|
|
// this.$modal.loading("提交中...");
|
|
|
// submitDemand(this.basicForm).then(res => {
|
|
|
// if (res.code === 200) {
|
|
|
- // this.$modal.msgSuccess("提交成功");
|
|
|
+ // this.$modal.notifySuccess("提交成功");
|
|
|
// this.$modal.closeLoading();
|
|
|
// this.back()
|
|
|
// }
|
|
@@ -458,7 +457,7 @@ export default {
|
|
|
this.$modal.confirm('确认信息').then(() => {
|
|
|
delPlanItem(param).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
- this.$modal.msgSuccess("删除成功");
|
|
|
+ this.$modal.notifySuccess("删除成功");
|
|
|
this.getDetails(this.row)
|
|
|
}
|
|
|
})
|
|
@@ -506,18 +505,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- // 单元格标红
|
|
|
- cellClassName({row, column, rowIndex, columnIndex}) {
|
|
|
- if(this.basicForm.isSpeical == 'N' && column.label == '需求可用周期' && Number(row.demandPeriod) > 1.5 && Number(row.demandPeriod) > Number(row.minOrderQty)) {
|
|
|
- return 'success-row';
|
|
|
- }
|
|
|
- },
|
|
|
- // handleSelectionChange(selection) {
|
|
|
- // this.ids = selection.map(item =>{
|
|
|
- // return item.id
|
|
|
- // })
|
|
|
- // console.log('选中数组', this.ids)
|
|
|
- // },
|
|
|
handleSelectionChange(selection) {
|
|
|
console.log('选中', selection)
|
|
|
this.ids = selection.map(item => item.id)
|
|
@@ -596,7 +583,7 @@ export default {
|
|
|
const week = [];
|
|
|
for (let i = 0; i < 7; i++) {
|
|
|
let Stamp = new Date();
|
|
|
- let num = 7-Stamp.getDay() + 1 + i;
|
|
|
+ let num = 7 - Stamp.getDay() + 1 + i;
|
|
|
Stamp.setDate(Stamp.getDate() + num);
|
|
|
week[i] = Stamp.getFullYear() + '-' + (Stamp.getMonth() + 1) + '-' + Stamp.getDate();
|
|
|
}
|
|
@@ -609,7 +596,7 @@ export default {
|
|
|
}
|
|
|
this.isFlag = true;
|
|
|
},
|
|
|
- // 必选标识
|
|
|
+ //必选标识
|
|
|
addRedStar(h, { column }) {
|
|
|
return [
|
|
|
h('span', { style: 'color: #F56C6C' }, '*'),
|