|
|
@@ -5,6 +5,7 @@
|
|
|
<div class="drawer__panel" >
|
|
|
<el-row :gutter="10">
|
|
|
<el-form label-position="right" label-width="90px" :model="form" :rules="rules" ref="form" size="small">
|
|
|
+ <el-row>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="品号" prop="itemno">
|
|
|
<el-input v-model="form.itemno" placeholder="输入品号"></el-input>
|
|
|
@@ -63,7 +64,7 @@
|
|
|
<el-input v-model="form.material" placeholder="输入基材"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
-
|
|
|
+
|
|
|
<el-col :span="12">
|
|
|
<el-form-item prop="ismodule">
|
|
|
<el-checkbox :true-label="1" :false-label="0" v-model="form.ismodule">是否配件</el-checkbox>
|
|
|
@@ -128,6 +129,18 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="主单位" prop="unitid">
|
|
|
+ <el-select style="width:100%" v-model="form.unitid" placeholder="请选择" @change="unitChange">
|
|
|
+ <el-option
|
|
|
+ v-for="item in unitData"
|
|
|
+ :key="item.unitid"
|
|
|
+ :label="item.unitname"
|
|
|
+ :value="item.unitid">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="起订量" prop="orderminqty" style="height:51px">
|
|
|
<el-input placeholder="起订量" v-model="form.orderminqty" @blur="(form.orderminqty<0?form.orderminqty = 1:'')" class="input-with-select">
|
|
|
@@ -148,21 +161,25 @@
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ </el-row>
|
|
|
<!-- <el-col :span="8">
|
|
|
<el-form-item label="交期">
|
|
|
<el-input v-model="form.delivery" placeholder="输入交期(天)"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col> -->
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="保修期限">
|
|
|
- <el-input v-model="form.warrantyday" placeholder="输入保修期限(年)"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="营销物料">
|
|
|
- <el-checkbox :true-label="1" :false-label="0" v-model="form.iswuliao">是否物料</el-checkbox>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+ <el-row :gutter="10">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="保修期限">
|
|
|
+ <el-input v-model="form.warrantyday" placeholder="输入保修期限(年)"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="营销物料">
|
|
|
+ <el-checkbox :true-label="1" :false-label="0" v-model="form.iswuliao">是否物料</el-checkbox>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="特殊说明">
|
|
|
<el-input v-model="form.specalnote" type="textarea" placeholder="输入特殊说明"></el-input>
|
|
|
@@ -194,6 +211,7 @@
|
|
|
<small style="display:block;margin-top:20px" class="info">注:建议上传图片大小1024x1024,大小不超过2M,格式为JPG/PNG</small>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ </el-row>
|
|
|
</el-form>
|
|
|
|
|
|
</el-row>
|
|
|
@@ -291,7 +309,7 @@ export default {
|
|
|
spacList:[],
|
|
|
customizedlist:[],
|
|
|
delisting:[],
|
|
|
- financialclassification:[]
|
|
|
+ financialclassification:[],
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
@@ -315,7 +333,7 @@ export default {
|
|
|
const res = await this.$store.dispatch('optiontypeselect','productcolorlist')
|
|
|
this.productColorList = res.data
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
async financial () {
|
|
|
const res = await this.$store.dispatch('optiontypeselect','financialclassification')
|
|
|
this.financialclassification = res.data
|
|
|
@@ -372,6 +390,7 @@ export default {
|
|
|
this.customizedlist = res.data
|
|
|
},
|
|
|
onSubmit () {
|
|
|
+ console.log(this.form,'form')
|
|
|
this.$refs['form'].validate(async (valid) => {
|
|
|
if (!valid) return false
|
|
|
const res = await this.$api.requested({
|
|
|
@@ -393,7 +412,7 @@ export default {
|
|
|
this.$router.push({path:'/productmagDetail',query:{id:res.data.itemid,rowindex:res.data.rowindex}})
|
|
|
})
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
onCancel(){
|
|
|
this.dialogFormVisible = false
|
|
|
@@ -477,10 +496,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
<style>
|
|
|
-</style>
|
|
|
+</style>
|