|
@@ -23,7 +23,11 @@
|
|
|
<el-button type="danger" size="mini">延期申请</el-button>
|
|
<el-button type="danger" size="mini">延期申请</el-button>
|
|
|
<el-button type="danger" size="mini">变更申请</el-button>
|
|
<el-button type="danger" size="mini">变更申请</el-button>
|
|
|
|
|
|
|
|
- <el-button type="success" size="mini" v-if="timeDimensionPlanType == 3" @click="factAdd(1)"
|
|
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="success"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ v-if="timeDimensionPlanType == 3"
|
|
|
|
|
+ @click="factAdd(1)"
|
|
|
>新增</el-button
|
|
>新增</el-button
|
|
|
>
|
|
>
|
|
|
</div>
|
|
</div>
|
|
@@ -199,9 +203,17 @@
|
|
|
|
|
|
|
|
<unpackDetails ref="DetailsRef"></unpackDetails>
|
|
<unpackDetails ref="DetailsRef"></unpackDetails>
|
|
|
|
|
|
|
|
- <disassemblePlanPop ref="disassemblePlanRef" @close="reload"></disassemblePlanPop>
|
|
|
|
|
-
|
|
|
|
|
- <factoryAdd ref="factoryRef"></factoryAdd>
|
|
|
|
|
|
|
+ <disassemblePlanPop
|
|
|
|
|
+ ref="disassemblePlanRef"
|
|
|
|
|
+ @close="reload"
|
|
|
|
|
+ ></disassemblePlanPop>
|
|
|
|
|
+
|
|
|
|
|
+ <factoryAdd
|
|
|
|
|
+ v-if="factoryShow"
|
|
|
|
|
+ :factoryType="factoryType"
|
|
|
|
|
+ :factoryObj="factoryObj"
|
|
|
|
|
+ @close="factoryClose"
|
|
|
|
|
+ ></factoryAdd>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -212,7 +224,7 @@
|
|
|
import mergeDialog from './components/mergeDialog.vue';
|
|
import mergeDialog from './components/mergeDialog.vue';
|
|
|
import unpackDetails from './components/unpackDetails.vue';
|
|
import unpackDetails from './components/unpackDetails.vue';
|
|
|
import disassemblePlanPop from './components/disassemblePlanPop.vue';
|
|
import disassemblePlanPop from './components/disassemblePlanPop.vue';
|
|
|
- import factoryAdd from './components/factoryAdd/index.vue'
|
|
|
|
|
|
|
+ import factoryAdd from './components/factoryAdd/index.vue';
|
|
|
import { release } from '@/api/productionPlan/order.js';
|
|
import { release } from '@/api/productionPlan/order.js';
|
|
|
import { getCode } from '@/api/codeManagement';
|
|
import { getCode } from '@/api/codeManagement';
|
|
|
import { fieldModel } from '@/api/saleOrder';
|
|
import { fieldModel } from '@/api/saleOrder';
|
|
@@ -262,7 +274,11 @@
|
|
|
],
|
|
],
|
|
|
newColumns: [],
|
|
newColumns: [],
|
|
|
|
|
|
|
|
- selection: []
|
|
|
|
|
|
|
+ selection: [],
|
|
|
|
|
+
|
|
|
|
|
+ factoryShow: false,
|
|
|
|
|
+ factoryType: 1,
|
|
|
|
|
+ factoryObj: {}
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -645,14 +661,20 @@
|
|
|
// });
|
|
// });
|
|
|
},
|
|
},
|
|
|
// 修改计划
|
|
// 修改计划
|
|
|
- planEdit({ id }) {
|
|
|
|
|
- this.$router.push({
|
|
|
|
|
- path: '/saleOrder/salesToProduction',
|
|
|
|
|
- query: {
|
|
|
|
|
- type: 'edit',
|
|
|
|
|
- id
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ planEdit(row) {
|
|
|
|
|
+ if (row.timeDimensionPlanType == 3) {
|
|
|
|
|
+ this.factoryObj = row;
|
|
|
|
|
+ this.factoryType = 2;
|
|
|
|
|
+ this.factoryShow = true;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$router.push({
|
|
|
|
|
+ path: '/saleOrder/salesToProduction',
|
|
|
|
|
+ query: {
|
|
|
|
|
+ type: 'edit',
|
|
|
|
|
+ id: row.id
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
getFieldModel() {
|
|
getFieldModel() {
|
|
@@ -802,7 +824,15 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
factAdd(type) {
|
|
factAdd(type) {
|
|
|
- this.$refs.factoryRef.open(type);
|
|
|
|
|
|
|
+ this.factoryType = type;
|
|
|
|
|
+ this.factoryShow = true;
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ factoryClose(val) {
|
|
|
|
|
+ this.factoryShow = false;
|
|
|
|
|
+ if (val) {
|
|
|
|
|
+ this.reload();
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
onSortChange(e) {
|
|
onSortChange(e) {
|