|
|
@@ -3,11 +3,11 @@
|
|
|
<form @submit="formSubmit" @reset="formReset">
|
|
|
<view class="module-com input-line-wrap">
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
- <view class="tui-title">门店名称</view>
|
|
|
+ <view class="tui-title">分店名称</view>
|
|
|
<input v-model="form.shopName" placeholder-class="phcolor" class="tui-input" name="shopName" placeholder="请输入名称" maxlength="50" type="text" />
|
|
|
</tui-list-cell>
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
- <view class="tui-title">门店类型</view>
|
|
|
+ <view class="tui-title">分店类型</view>
|
|
|
<radio-group class="tui-input" @change="joinChange">
|
|
|
<label class="list" for="chainLink">
|
|
|
<radio id="chainLink" value="0" style="transform:scale(0.7,0.7)" :checked="form.join == 0" />
|
|
|
@@ -21,13 +21,10 @@
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
- <view class="tui-title">库存管理</view>
|
|
|
- <radio-group class="tui-input" @change="stockModelChange">
|
|
|
- <label class="list" for="stockModelZha">
|
|
|
- <radio id="stockModelZha" value="0" style="transform:scale(0.7,0.7)" :checked="form.stockModel == 0" />
|
|
|
- <span class="checkbox-text">常规</span>
|
|
|
- </label>
|
|
|
- </radio-group>
|
|
|
+ <view class="tui-title">默认门店</view>
|
|
|
+ <view>
|
|
|
+ <switch style="transform:scale(0.7,0.7)" :checked="form.default == 0 ? false : true" @change="defaultChange" /> {{form.default==0 ? '否' : '是'}}
|
|
|
+ </view>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
@@ -128,7 +125,7 @@ const form = require('@/utils/formValidation.js')
|
|
|
import {mapActions} from "vuex";
|
|
|
import {getDetail} from "@/api/shop"
|
|
|
import { updateShop as update, addShop as add } from '@/api/shop'
|
|
|
-//图片上传插件来源:https://ext.dcloud.net.cn/plugin?id=2922 已改造,不能再升级 shish 20211228
|
|
|
+//已改造,不能再升级 shish 20211228
|
|
|
import htzImageUpload from '@/components/htz-image-upload/htz-image-upload.vue'
|
|
|
export default {
|
|
|
name: 'staff-add',
|
|
|
@@ -162,6 +159,7 @@ export default {
|
|
|
introduction: '',
|
|
|
mobile: '',
|
|
|
img: [],
|
|
|
+ default:0,
|
|
|
superWx:[]
|
|
|
},
|
|
|
showRegion: false,
|
|
|
@@ -196,6 +194,9 @@ export default {
|
|
|
...mapActions(['setUserShopAll']),
|
|
|
init() {
|
|
|
|
|
|
+ },
|
|
|
+ defaultChange(e){
|
|
|
+ this.form.default = e.target.value ? 1 : 0
|
|
|
},
|
|
|
imgUploadSuccess(res) {
|
|
|
var imgReturn = JSON.parse(res.data)
|
|
|
@@ -257,9 +258,6 @@ export default {
|
|
|
joinChange(e){
|
|
|
this.form.join = e.detail.value
|
|
|
},
|
|
|
- stockModelChange(e){
|
|
|
- this.form.stockModel = e.detail.value
|
|
|
- },
|
|
|
endTimeChange: function(e) {
|
|
|
this.end_time = e.detail.value
|
|
|
this.form.openEndTime = e.detail.value
|