|
@@ -4,30 +4,24 @@
|
|
|
<div class="module-com input-line-wrap">
|
|
<div class="module-com input-line-wrap">
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<div class="tui-title required">名称</div>
|
|
<div class="tui-title required">名称</div>
|
|
|
- <input
|
|
|
|
|
- v-model="form.name"
|
|
|
|
|
- class="tui-input"
|
|
|
|
|
- placeholder="请填写名称"
|
|
|
|
|
- maxlength="50"
|
|
|
|
|
- type="text"
|
|
|
|
|
- name="username"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <input v-model="form.name" class="tui-input" placeholder="请填写名称" maxlength="50" type="text" name="username" />
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
|
- <tui-list-cell class="line-cell" :hover="false">
|
|
|
|
|
- <view class="tui-title required">所在地</view>
|
|
|
|
|
- <radio-group class="tui-input" @change="locationChange">
|
|
|
|
|
- <label class="list" for="jdLink">
|
|
|
|
|
- <radio id="jdLink" value="0" :checked="form.location == 0" style="transform:scale(0.7,0.7)" />
|
|
|
|
|
- <span class="checkbox-text">上游</span>
|
|
|
|
|
- </label>
|
|
|
|
|
- <label class="list" for="localLink">
|
|
|
|
|
- <radio id="localLink" value="1" :checked="form.location == 1" style="transform:scale(0.7,0.7)" />
|
|
|
|
|
- <span class="checkbox-text">本地</span>
|
|
|
|
|
- </label>
|
|
|
|
|
- </radio-group>
|
|
|
|
|
- </tui-list-cell>
|
|
|
|
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
|
|
+ <view class="tui-title required">所在地</view>
|
|
|
|
|
+ <radio-group class="tui-input" @change="locationChange">
|
|
|
|
|
+ <label class="list" for="jdLink">
|
|
|
|
|
+ <radio id="jdLink" value="0" :checked="form.location == 0" style="transform:scale(0.7,0.7)" />
|
|
|
|
|
+ <span class="checkbox-text">上游</span>
|
|
|
|
|
+ </label>
|
|
|
|
|
+ <label class="list" for="localLink">
|
|
|
|
|
+ <radio id="localLink" value="1" :checked="form.location == 1" style="transform:scale(0.7,0.7)" />
|
|
|
|
|
+ <span class="checkbox-text">本地</span>
|
|
|
|
|
+ </label>
|
|
|
|
|
+ </radio-group>
|
|
|
|
|
+ </tui-list-cell>
|
|
|
|
|
|
|
|
|
|
+ <view style="margin-top:20upx;padding:0 30upx 0 30upx;">选本地,录采购单,没有打包费、运费填写入口。选上游时,有打包费、运费的填写入口。</view>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="confirm-btn">
|
|
<div class="confirm-btn">
|
|
|
<button class="admin-button-com big blue" formType="submit">确认</button>
|
|
<button class="admin-button-com big blue" formType="submit">确认</button>
|
|
@@ -48,7 +42,8 @@ export default {
|
|
|
return {
|
|
return {
|
|
|
form: {
|
|
form: {
|
|
|
name: '',
|
|
name: '',
|
|
|
- location:0
|
|
|
|
|
|
|
+ location:0,
|
|
|
|
|
+ mobile:''
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -80,7 +75,7 @@ export default {
|
|
|
confirmFn() {
|
|
confirmFn() {
|
|
|
uni.showLoading({mask:true})
|
|
uni.showLoading({mask:true})
|
|
|
ghsAdd(this.form).then(res => {
|
|
ghsAdd(this.form).then(res => {
|
|
|
- uni.setStorageSync('newGhs', res.data)
|
|
|
|
|
|
|
+ uni.setStorageSync('newGhs', res.data)
|
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
this.$util.pageTo(1)
|
|
this.$util.pageTo(1)
|