|
@@ -6,24 +6,21 @@
|
|
|
<view class="module-com input-line-wrap">
|
|
<view class="module-com input-line-wrap">
|
|
|
<tui-list-cell class="line-cell" :arrow="true">
|
|
<tui-list-cell class="line-cell" :arrow="true">
|
|
|
<div class="tui-title">开单人</div>
|
|
<div class="tui-title">开单人</div>
|
|
|
- <picker mode="selector" :value="form.shopAdminId" :range="staffList"
|
|
|
|
|
|
|
+ <picker mode="selector" :value="shopAdminId" :range="staffList"
|
|
|
range-key="name" @change="kdManChange" class="tui-input" >
|
|
range-key="name" @change="kdManChange" class="tui-input" >
|
|
|
- <input v-model="form.shopAdminId" name="shopAdminId" type="text" hidden />
|
|
|
|
|
- <div style="padding:6upx 0 6upx 0;">{{form.shopAdminName}}</div>
|
|
|
|
|
|
|
+ <input v-model="shopAdminId" name="shopAdminId" type="text" hidden />
|
|
|
|
|
+ <div style="padding:6upx 0 6upx 0;">{{shopAdminName}}</div>
|
|
|
</picker>
|
|
</picker>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
<view class="confirm-btn">
|
|
<view class="confirm-btn">
|
|
|
<button class="admin-button-com big blue" @click="commitChange()">修改</button>
|
|
<button class="admin-button-com big blue" @click="commitChange()">修改</button>
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
</form>
|
|
</form>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
|
import { getDetail,changeWorker } from "@/api/order";
|
|
import { getDetail,changeWorker } from "@/api/order";
|
|
@@ -34,7 +31,8 @@ export default {
|
|
|
data () {
|
|
data () {
|
|
|
return {
|
|
return {
|
|
|
staffList:[],
|
|
staffList:[],
|
|
|
- form{ shopAdminId:0,shopAdminName:''},
|
|
|
|
|
|
|
+ shopAdminId:0,
|
|
|
|
|
+ shopAdminName:'',
|
|
|
orderInfo:{}
|
|
orderInfo:{}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -58,13 +56,13 @@ export default {
|
|
|
let index = e.detail.value
|
|
let index = e.detail.value
|
|
|
if(!this.$util.isEmpty(this.staffList)){
|
|
if(!this.$util.isEmpty(this.staffList)){
|
|
|
if(this.staffList[index]){
|
|
if(this.staffList[index]){
|
|
|
- this.form.shopAdminName = this.staffList[index].name
|
|
|
|
|
- this.form.shopAdminId = this.staffList[index].id
|
|
|
|
|
|
|
+ this.shopAdminName = this.staffList[index].name
|
|
|
|
|
+ this.shopAdminId = this.staffList[index].id
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
commitChange(){
|
|
commitChange(){
|
|
|
- changeWorker(this.form).then(res=>{
|
|
|
|
|
|
|
+ changeWorker({}).then(res=>{
|
|
|
if(res.code == 1){
|
|
if(res.code == 1){
|
|
|
|
|
|
|
|
}
|
|
}
|