|
|
@ -112,6 +112,29 @@
|
|
|
|
>修改
|
|
|
|
>修改
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
plain
|
|
|
|
|
|
|
|
icon="el-icon-plus"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
@click="handleOrder"
|
|
|
|
|
|
|
|
v-hasPermi="['mes/prod:prodOrderInfo:edit']"
|
|
|
|
|
|
|
|
>同步订单
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
plain
|
|
|
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
:disabled="multiple"
|
|
|
|
|
|
|
|
@click="handleSynchronizationPlan"
|
|
|
|
|
|
|
|
v-hasPermi="['mes/prod:prodOrderInfo:edit']"
|
|
|
|
|
|
|
|
>同步计划
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
<!-- <el-col :span="1.5">-->
|
|
|
|
<!-- <el-col :span="1.5">-->
|
|
|
|
<!-- <el-button-->
|
|
|
|
<!-- <el-button-->
|
|
|
|
<!-- type="danger"-->
|
|
|
|
<!-- type="danger"-->
|
|
|
@ -408,6 +431,19 @@
|
|
|
|
<!-- <el-button @click="cancel">取 消</el-button>-->
|
|
|
|
<!-- <el-button @click="cancel">取 消</el-button>-->
|
|
|
|
<!-- </div>-->
|
|
|
|
<!-- </div>-->
|
|
|
|
<!-- </el-dialog>-->
|
|
|
|
<!-- </el-dialog>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 同步ERP订单信息对话框 -->
|
|
|
|
|
|
|
|
<el-dialog :title="title" :visible.sync="orderOpen" width="500px" append-to-body>
|
|
|
|
|
|
|
|
<el-form ref="form" :model="form" label-width="100px">
|
|
|
|
|
|
|
|
<el-form-item label="订单编号" prop="orderCode">
|
|
|
|
|
|
|
|
<el-input v-model="form.orderCode" placeholder="请输入任务编号"/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
|
|
|
<el-button type="primary" @click="orderSubmitForm">确 定</el-button>
|
|
|
|
|
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
@ -417,7 +453,7 @@ import {
|
|
|
|
getProdOrderInfo,
|
|
|
|
getProdOrderInfo,
|
|
|
|
delProdOrderInfo,
|
|
|
|
delProdOrderInfo,
|
|
|
|
addProdOrderInfo,
|
|
|
|
addProdOrderInfo,
|
|
|
|
updateProdOrderInfo
|
|
|
|
updateProdOrderInfo, getERPProductionPlan, getERPWorkOrder
|
|
|
|
} from '@/api/mes/prod/prodOrderInfo'
|
|
|
|
} from '@/api/mes/prod/prodOrderInfo'
|
|
|
|
import router from "@//router";
|
|
|
|
import router from "@//router";
|
|
|
|
|
|
|
|
|
|
|
@ -444,6 +480,7 @@ export default {
|
|
|
|
title: '',
|
|
|
|
title: '',
|
|
|
|
// 是否显示弹出层
|
|
|
|
// 是否显示弹出层
|
|
|
|
open: false,
|
|
|
|
open: false,
|
|
|
|
|
|
|
|
orderOpen: false,
|
|
|
|
// 是否显示下达计划弹出层
|
|
|
|
// 是否显示下达计划弹出层
|
|
|
|
// releaseOpen: false,
|
|
|
|
// releaseOpen: false,
|
|
|
|
// 更新时间时间范围
|
|
|
|
// 更新时间时间范围
|
|
|
@ -552,6 +589,7 @@ export default {
|
|
|
|
cancel() {
|
|
|
|
cancel() {
|
|
|
|
this.open = false
|
|
|
|
this.open = false
|
|
|
|
this.releaseOpen = false
|
|
|
|
this.releaseOpen = false
|
|
|
|
|
|
|
|
this.orderOpen = false
|
|
|
|
this.reset()
|
|
|
|
this.reset()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 表单重置
|
|
|
|
// 表单重置
|
|
|
@ -620,6 +658,12 @@ export default {
|
|
|
|
this.title = '修改订单信息'
|
|
|
|
this.title = '修改订单信息'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
/** 同步ERP订单按钮操作 */
|
|
|
|
|
|
|
|
handleOrder() {
|
|
|
|
|
|
|
|
this.reset()
|
|
|
|
|
|
|
|
this.orderOpen = true
|
|
|
|
|
|
|
|
this.title = '同步ERP订单信息'
|
|
|
|
|
|
|
|
},
|
|
|
|
/** 提交按钮 */
|
|
|
|
/** 提交按钮 */
|
|
|
|
submitForm() {
|
|
|
|
submitForm() {
|
|
|
|
this.$refs['form'].validate(valid => {
|
|
|
|
this.$refs['form'].validate(valid => {
|
|
|
@ -640,6 +684,14 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
|
|
|
|
orderSubmitForm() {
|
|
|
|
|
|
|
|
getERPWorkOrder(this.form.orderCode).then(response => {
|
|
|
|
|
|
|
|
this.$modal.msgSuccess('同步订单成功')
|
|
|
|
|
|
|
|
this.orderOpen = false
|
|
|
|
|
|
|
|
this.getList()
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
handleDelete(row) {
|
|
|
|
handleDelete(row) {
|
|
|
|
const objIds = row.objId || this.ids
|
|
|
|
const objIds = row.objId || this.ids
|
|
|
@ -651,6 +703,16 @@ export default {
|
|
|
|
}).catch(() => {
|
|
|
|
}).catch(() => {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
handleSynchronizationPlan(row) {
|
|
|
|
|
|
|
|
const objIds = row.objId || this.ids
|
|
|
|
|
|
|
|
this.$modal.confirm('是否确认同步订单为"' + objIds + '"的数据项?').then(function() {
|
|
|
|
|
|
|
|
return getERPProductionPlan(objIds)
|
|
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
|
|
this.getList()
|
|
|
|
|
|
|
|
this.$modal.msgSuccess('同步成功')
|
|
|
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
handleExport() {
|
|
|
|
handleExport() {
|
|
|
|
this.download('mes/prod/prodOrderInfo/export', {
|
|
|
|
this.download('mes/prod/prodOrderInfo/export', {
|
|
|
|