|
@@ -27,15 +27,15 @@
|
|
<Form :label-width="85" :model="formData">
|
|
<Form :label-width="85" :model="formData">
|
|
<FormItem label="项目编码:">
|
|
<FormItem label="项目编码:">
|
|
<span v-if="this.$route.query.type == 2">{{formData.project_number}}</span>
|
|
<span v-if="this.$route.query.type == 2">{{formData.project_number}}</span>
|
|
- <Input size='small' v-model="formData.project_number" v-else />
|
|
|
|
|
|
+ <Input size='small' v-model="formData.project_number" v-else placeholder="请输入项目编码"/>
|
|
</FormItem>
|
|
</FormItem>
|
|
<FormItem label="项目名称:">
|
|
<FormItem label="项目名称:">
|
|
<span v-if="this.$route.query.type == 2">{{formData.product_name}}</span>
|
|
<span v-if="this.$route.query.type == 2">{{formData.product_name}}</span>
|
|
- <Input v-else size='small' v-model='formData.product_name'/>
|
|
|
|
|
|
+ <Input v-else size='small' v-model='formData.product_name' placeholder="请输入项目名称"/>
|
|
</FormItem>
|
|
</FormItem>
|
|
<FormItem label="项目简称:">
|
|
<FormItem label="项目简称:">
|
|
<span v-if="this.$route.query.type == 2">{{formData.project_abbreviation}}</span>
|
|
<span v-if="this.$route.query.type == 2">{{formData.project_abbreviation}}</span>
|
|
- <Input v-else size='small' v-model="formData.project_abbreviation"/>
|
|
|
|
|
|
+ <Input v-else size='small' v-model="formData.project_abbreviation" placeholder="请输入项目简称"/>
|
|
</FormItem>
|
|
</FormItem>
|
|
<FormItem label="下单日期:">
|
|
<FormItem label="下单日期:">
|
|
<span v-if="this.$route.query.type == 2">{{formData.start_time}}</span>
|
|
<span v-if="this.$route.query.type == 2">{{formData.start_time}}</span>
|
|
@@ -185,6 +185,9 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
saveData(){
|
|
saveData(){
|
|
|
|
+ if(!this.formData.project_number){
|
|
|
|
+ this.$Message.warning('请填写项目编码!')
|
|
|
|
+ }else{
|
|
let date = new Date();
|
|
let date = new Date();
|
|
if(!this.formData.start_time){
|
|
if(!this.formData.start_time){
|
|
this.formData.start_time = date
|
|
this.formData.start_time = date
|
|
@@ -201,6 +204,7 @@ export default {
|
|
this.axios.post('/api/cut_order_del',{cut_order_product_id:this.del_id,order_type:1,cut_order_id:this.cut_order_id})
|
|
this.axios.post('/api/cut_order_del',{cut_order_product_id:this.del_id,order_type:1,cut_order_id:this.cut_order_id})
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+ }
|
|
},
|
|
},
|
|
search_data(row){
|
|
search_data(row){
|
|
this.axios.post('/api/cut_order_open',{
|
|
this.axios.post('/api/cut_order_open',{
|
|
@@ -249,6 +253,7 @@ export default {
|
|
this.cut_order_id = res.data.cut_order_id;
|
|
this.cut_order_id = res.data.cut_order_id;
|
|
this.formData.project_number = res.data.project_number;
|
|
this.formData.project_number = res.data.project_number;
|
|
this.formData.product_name = res.data.project_name;
|
|
this.formData.product_name = res.data.project_name;
|
|
|
|
+ this.formData.project_abbreviation = res.data.abbreviation;
|
|
this.formData.id = res.data.cut_order_id;
|
|
this.formData.id = res.data.cut_order_id;
|
|
this.formData.start_time =this.func.replaceDate(res.data.crt_time);
|
|
this.formData.start_time =this.func.replaceDate(res.data.crt_time);
|
|
console.log(this.formData.start_time)
|
|
console.log(this.formData.start_time)
|