|
|
@@ -106,18 +106,18 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12" v-if="['3', '4', '5', '6','7'].includes(form.sourceType)">
|
|
|
+ <!-- <el-col
|
|
|
+ :span="12"
|
|
|
+ v-if="['3', '4', '5', '6', '7'].includes(form.sourceType)"
|
|
|
+ >
|
|
|
<el-form-item prop="remark" label="是否首工序" label-width="120px">
|
|
|
- <el-radio-group
|
|
|
- v-model="form.isFirstProcess"
|
|
|
-
|
|
|
- >
|
|
|
+ <el-radio-group v-model="form.isFirstProcess">
|
|
|
<el-radio v-for="item in processList" :label="item.value">{{
|
|
|
item.label
|
|
|
}}</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
<el-col :span="12">
|
|
|
<el-form-item prop="remark" label="是否接受拆单" label-width="120px">
|
|
|
<el-radio-group
|
|
|
@@ -183,7 +183,9 @@
|
|
|
|
|
|
<div slot="footer" class="footer">
|
|
|
<el-button type="primary" @click="save" v-click-once>保存</el-button>
|
|
|
- <el-button type="primary" @click="save('sub')" v-click-once>提交</el-button>
|
|
|
+ <el-button type="primary" @click="save('sub')" v-click-once
|
|
|
+ >提交</el-button
|
|
|
+ >
|
|
|
<el-button @click="cancel">返回</el-button>
|
|
|
</div>
|
|
|
|
|
|
@@ -257,7 +259,7 @@
|
|
|
addPurchaseplanManage,
|
|
|
saveAndSubmitPurchasePlanAPI
|
|
|
} from '@/api/purchasingManage/purchasePlanManage';
|
|
|
-
|
|
|
+ import { getCode } from '@/api/login/index.js';
|
|
|
import headList from '@/BIZComponents/user-select/user-select.vue';
|
|
|
import { copyObj } from '@/utils/util';
|
|
|
import { listOrganizations } from '@/api/system/organization';
|
|
|
@@ -309,7 +311,7 @@
|
|
|
sourceTypeName: '',
|
|
|
acceptUnpack: 1,
|
|
|
needInquiry: 1,
|
|
|
- isFirstProcess:0
|
|
|
+ isFirstProcess: 0
|
|
|
};
|
|
|
|
|
|
return {
|
|
|
@@ -585,7 +587,9 @@
|
|
|
let res = await isHasGeneratedPlanAPI(row.id);
|
|
|
if (res) this.$message.warning('该需求已经生成过计划,请注意');
|
|
|
await this.getDetailData(row.id);
|
|
|
+
|
|
|
}
|
|
|
+ this.$set(this.form,'planName',await getCode('purchase_plan_code_name'))
|
|
|
} else {
|
|
|
this.isUpdate = true;
|
|
|
await this.init(row.id);
|