|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <div class="my-title">分派</div>
|
|
|
+ <div class="my-title">处理</div>
|
|
|
<el-form
|
|
|
:model="dataForm"
|
|
|
:rules="dataRule"
|
|
@@ -149,16 +149,20 @@
|
|
|
label="库存数">
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
+ fixed="right"
|
|
|
prop="planCnt"
|
|
|
header-align="center"
|
|
|
align="center"
|
|
|
- min-width="140"
|
|
|
+ width="120"
|
|
|
:show-tooltip-when-overflow="true"
|
|
|
- label="订单计划数量">
|
|
|
+ label="计划数量">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input v-model="scope.row.planCnt" style="width:80px" :disabled="disabled" />
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
fixed="right"
|
|
|
- prop="projectName"
|
|
|
+ prop="disposal"
|
|
|
header-align="center"
|
|
|
align="center"
|
|
|
width="120"
|
|
@@ -166,7 +170,7 @@
|
|
|
label="处置">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="radio-wrapper">
|
|
|
- <el-radio-group v-model="scope.row.disposal" class="radio-group-wrap">
|
|
|
+ <el-radio-group v-model="scope.row.disposal" class="radio-group-wrap" :disabled="disabled">
|
|
|
<el-radio :label="2" style="margin-left:0">采购件</el-radio>
|
|
|
<el-radio :label="3" style="margin-left:0">委外件</el-radio>
|
|
|
<el-radio :label="1" style="margin-left:0">自制件</el-radio>
|
|
@@ -176,14 +180,14 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
fixed="right"
|
|
|
- prop="projectName"
|
|
|
+ prop="isTechnology"
|
|
|
header-align="center"
|
|
|
align="center"
|
|
|
width="120"
|
|
|
:show-tooltip-when-overflow="true"
|
|
|
label="工艺">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-radio-group v-model="scope.row.isTechnology" class="radio-group-wrap">
|
|
|
+ <el-radio-group v-model="scope.row.isTechnology" class="radio-group-wrap" :disabled="disabled">
|
|
|
<el-radio :label="1" style="margin-left:0">需要</el-radio>
|
|
|
<el-radio :label="2" style="margin-left:0">不需要</el-radio>
|
|
|
</el-radio-group>
|
|
@@ -194,10 +198,11 @@
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="onChose">取消</el-button>
|
|
|
<el-button
|
|
|
+ v-if="!disabled"
|
|
|
type="primary"
|
|
|
@click="dataFormSubmit()"
|
|
|
v-reClick
|
|
|
- >确定</el-button
|
|
|
+ >提交</el-button
|
|
|
>
|
|
|
</span>
|
|
|
|
|
@@ -206,15 +211,14 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import UserComponent from '../common/user-component'
|
|
|
import AttachDetailDialog from '../common/attach-detail-dialog'
|
|
|
export default {
|
|
|
- name: 'plan-assign',
|
|
|
- components: { UserComponent, AttachDetailDialog },
|
|
|
+ name: 'plan-submit',
|
|
|
+ components: { AttachDetailDialog },
|
|
|
computed: {},
|
|
|
data () {
|
|
|
return {
|
|
|
- readonly: false,
|
|
|
+ disabled: false,
|
|
|
id: 0,
|
|
|
dataForm: {
|
|
|
proProductList:[]
|
|
@@ -233,7 +237,7 @@ export default {
|
|
|
async init (item, readonly) {
|
|
|
let id = item.productionManagementId;
|
|
|
if(readonly){
|
|
|
- this.readonly = true
|
|
|
+ this.disabled = true
|
|
|
}
|
|
|
|
|
|
this.$http({
|
|
@@ -263,13 +267,17 @@ export default {
|
|
|
dataFormSubmit () {
|
|
|
this.$refs['dataForm'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
+ let data = {
|
|
|
+ orderCode: this.dataForm.orderCode,
|
|
|
+ proProductList: this.dataForm.proProductList
|
|
|
+ };
|
|
|
+
|
|
|
+ console.log('data', data)
|
|
|
+
|
|
|
this.$http({
|
|
|
- url: this.$http.adornUrl(`/biz-service/projProduction/assign`),
|
|
|
+ url: this.$http.adornUrl(`/biz-service/projProduction/submitPlan`),
|
|
|
method: 'post',
|
|
|
- data: this.$http.adornData({
|
|
|
- productionManagementId: this.dataForm.productionManagementId,
|
|
|
- responsibilityPerson: this.dataForm.responsibilityPerson
|
|
|
- })
|
|
|
+ data: this.$http.adornData(data)
|
|
|
}).then(({ data }) => {
|
|
|
if (data && data.code === '200') {
|
|
|
this.$message({
|
|
@@ -287,9 +295,6 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
- },
|
|
|
- selectChange (val) {
|
|
|
- this.dataForm.responsibilityPerson = val
|
|
|
}
|
|
|
}
|
|
|
}
|