|
@@ -26,7 +26,7 @@
|
|
|
<el-input readonly v-model="form.type" placeholder="订单类型" :maxlength="11" clearable :style="{width: '100%'}"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12" v-if="form.type !== '项目订单'">
|
|
|
+ <el-col :span="form.type==='工具订单'?24:12" v-if="form.type !== '项目订单'">
|
|
|
<el-form-item label="选择经销商" prop="sys_enterpriseid">
|
|
|
<agent ref="enterprise" ismanage="0" @rowClick="rowClick"></agent>
|
|
|
</el-form-item>
|
|
@@ -184,19 +184,16 @@ export default {
|
|
|
methods:{
|
|
|
async handleCommand (command) {
|
|
|
this.form.type = command
|
|
|
- if (command === '工具订单') {
|
|
|
- const res = await this.$api.requested({
|
|
|
- "id": 20221108111402,
|
|
|
- "content":this.form
|
|
|
- })
|
|
|
- this.tool.showMessage(res,()=>{
|
|
|
- this.$store.dispatch('changeDetailDrawer',true)
|
|
|
- this.$router.push({path:'/orderdetail',query:{id:res.data.sa_orderid,rowindex:res.data.rowindex}})
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.drawer = true
|
|
|
- this.specordermx()
|
|
|
- }
|
|
|
+ const res = await this.$api.requested({
|
|
|
+ "id": 20221108111402,
|
|
|
+ "content":this.form
|
|
|
+ })
|
|
|
+ // this.tool.showMessage(res,()=>{
|
|
|
+ // this.$store.dispatch('changeDetailDrawer',true)
|
|
|
+ // this.$router.push({path:'/orderdetail',query:{id:res.data.sa_orderid,rowindex:res.data.rowindex}})
|
|
|
+ // })
|
|
|
+ this.drawer = true
|
|
|
+ this.specordermx()
|
|
|
|
|
|
},
|
|
|
submitForm() {
|