|
@@ -62,7 +62,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template #slot-billing>
|
|
<template #slot-billing>
|
|
|
- <el-button type="primary" size="mini" style="margin-left:60px;" @click="add()">添加供货商</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" size="mini" style="margin-left:60px;" @click="addGhs()">添加供货商</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-left:60px;" @click="billing()">开单</el-button>
|
|
<el-button type="primary" size="mini" style="margin-left:60px;" @click="billing()">开单</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-left:60px;" @click="newCg()">新增采购</el-button>
|
|
<el-button type="primary" size="mini" style="margin-left:60px;" @click="newCg()">新增采购</el-button>
|
|
|
</template>
|
|
</template>
|
|
@@ -115,22 +115,6 @@
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
|
|
- <el-dialog title="添加供货商" :visible.sync="addPop" width="600px" center :close-on-click-modal="false">
|
|
|
|
|
- <div>
|
|
|
|
|
- <div class="accounts-list">
|
|
|
|
|
- 供货商名称
|
|
|
|
|
- <el-input style="width: 80%" v-model="name1" clearable></el-input>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="accounts-list" style="margin-top:20px;">
|
|
|
|
|
- <span></span>
|
|
|
|
|
- <div class="accounts-center">
|
|
|
|
|
- <el-button @click="resetAdd()">取消</el-button>
|
|
|
|
|
- <el-button type="primary" @click="confirmAdd()" style="margin-left:80px;">确认</el-button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </el-dialog>
|
|
|
|
|
-
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -168,8 +152,7 @@ export default {
|
|
|
rechargeCustom:{},
|
|
rechargeCustom:{},
|
|
|
name1:'',
|
|
name1:'',
|
|
|
mobile1:'',
|
|
mobile1:'',
|
|
|
- confirmMobile1:'',
|
|
|
|
|
- addPop:false
|
|
|
|
|
|
|
+ confirmMobile1:''
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -203,36 +186,9 @@ export default {
|
|
|
let query = {}
|
|
let query = {}
|
|
|
this.$router.push({path:'/in/add',query})
|
|
this.$router.push({path:'/in/add',query})
|
|
|
},
|
|
},
|
|
|
- add(){
|
|
|
|
|
- this.addPop = true
|
|
|
|
|
- },
|
|
|
|
|
- resetAdd(){
|
|
|
|
|
- this.name1 = ''
|
|
|
|
|
- this.mobile1 = ''
|
|
|
|
|
- this.addPop = false
|
|
|
|
|
- this.confirmMobile1 = ''
|
|
|
|
|
- },
|
|
|
|
|
- confirmAdd(){
|
|
|
|
|
- if(this.mobile1 != this.confirmMobile1){
|
|
|
|
|
- this.$message({message: '二次手机号不一致',type: 'warning'})
|
|
|
|
|
- return false
|
|
|
|
|
- }
|
|
|
|
|
- if(this.mobile1.length != 11){
|
|
|
|
|
- this.$message({message: '手机号错误',type: 'warning'})
|
|
|
|
|
- return false
|
|
|
|
|
- }
|
|
|
|
|
- if(this.$util.isEmpty(this.name1)){
|
|
|
|
|
- this.$message({message: '请填写名称',type: 'warning'})
|
|
|
|
|
- return false
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- this.$confirm('确认添加?', '提示', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning' }).then(() => {
|
|
|
|
|
- this.$service.custom.createCustomers({ name1:this.name1,mobile1:this.mobile1,confirmMobile1:this.confirmMobile1}).then(data => {
|
|
|
|
|
- this.resetAdd()
|
|
|
|
|
- this.$notify({ title: '添加成功,15秒后生效', message: 'success', type: 'success'})
|
|
|
|
|
- this.app.refresh({ type: this.tabIndex })
|
|
|
|
|
- })
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ addGhs(){
|
|
|
|
|
+ let query = {}
|
|
|
|
|
+ this.$router.push({path:'/in/add',query})
|
|
|
},
|
|
},
|
|
|
billing(){
|
|
billing(){
|
|
|
let query = {}
|
|
let query = {}
|