|
@@ -4,7 +4,7 @@
|
|
|
<form @submit="formSubmit">
|
|
<form @submit="formSubmit">
|
|
|
<div class="module-com input-line-wrap">
|
|
<div class="module-com input-line-wrap">
|
|
|
<tui-list-cell class="line-cell" :arrow="true" @click="selectCustom">
|
|
<tui-list-cell class="line-cell" :arrow="true" @click="selectCustom">
|
|
|
- <div class="tui-title">请选择门店:</div>
|
|
|
|
|
|
|
+ <div class="tui-title">请选择客户:</div>
|
|
|
<view>{{form.customName}}</view>
|
|
<view>{{form.customName}}</view>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
</div>
|
|
</div>
|
|
@@ -17,7 +17,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
|
-import { skCustom,bindLsShop } from "@/api/shop";
|
|
|
|
|
|
|
+import { skCustom,skCustomSet } from "@/api/shop";
|
|
|
export default {
|
|
export default {
|
|
|
name: "sk",
|
|
name: "sk",
|
|
|
components: {TuiListCell},
|
|
components: {TuiListCell},
|
|
@@ -29,11 +29,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
hasLoad:false
|
|
hasLoad:false
|
|
|
};
|
|
};
|
|
|
- },
|
|
|
|
|
- onLoad() {
|
|
|
|
|
- },
|
|
|
|
|
- onShow() {
|
|
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
init(){
|
|
init(){
|
|
@@ -54,28 +49,26 @@ export default {
|
|
|
},
|
|
},
|
|
|
formSubmit() {
|
|
formSubmit() {
|
|
|
let that = this
|
|
let that = this
|
|
|
- uni.showModal({
|
|
|
|
|
- title: '提示',
|
|
|
|
|
- content: '确认绑定?确认零售店的欠款已全部结清?!!!',
|
|
|
|
|
- success: function (res) {
|
|
|
|
|
- if (res.confirm) {
|
|
|
|
|
- uni.showLoading({mask:true})
|
|
|
|
|
- bindLsShop({id:that.form.customId}).then(res=>{
|
|
|
|
|
- uni.hideLoading()
|
|
|
|
|
- if(res.code == 1){
|
|
|
|
|
- that.$msg(res.msg)
|
|
|
|
|
- setTimeout(function(){
|
|
|
|
|
- uni.navigateBack()
|
|
|
|
|
- },2000)
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ if(that.form.customId == 0 || that.$util.isEmpty(that.form.customId)){
|
|
|
|
|
+ that.$msg('请选择门店')
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
|
|
+ skCustomSet({id:that.form.customId}).then(res=>{
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ that.$msg(res.msg)
|
|
|
|
|
+ setTimeout(function(){
|
|
|
|
|
+
|
|
|
|
|
+ that.$store.commit("setLoginInfo", {})
|
|
|
|
|
+ that.$util.pageTo({url: "/admin/home/workbench",type: 3})
|
|
|
|
|
+
|
|
|
|
|
+ },1000)
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
|
|
+
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
.app-content {
|
|
.app-content {
|
|
|
min-height: calc(100vh - 20upx);
|
|
min-height: calc(100vh - 20upx);
|