shish 3 лет назад
Родитель
Сommit
bdd0e6f619
1 измененных файлов с 8 добавлено и 10 удалено
  1. 8 10
      ghsApp/src/pagesOrder/allot.vue

+ 8 - 10
ghsApp/src/pagesOrder/allot.vue

@@ -6,24 +6,21 @@
         <view class="module-com input-line-wrap">
           <tui-list-cell class="line-cell" :arrow="true">
             <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" >
-              <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>
           </tui-list-cell>          
         </view>
-
         <view class="confirm-btn">
           <button class="admin-button-com big blue" @click="commitChange()">修改</button>
         </view>
-
       </form>
     </view>
   </view>
 </view>
 </template>
-
 <script>
 import TuiListCell from "@/components/plugin/list-cell";
 import { getDetail,changeWorker } from "@/api/order";
@@ -34,7 +31,8 @@ export default {
   data () {
     return {
       staffList:[],
-      form{ shopAdminId:0,shopAdminName:''},
+      shopAdminId:0,
+      shopAdminName:'',
       orderInfo:{}
     }
   },
@@ -58,13 +56,13 @@ export default {
 			let index = e.detail.value
       if(!this.$util.isEmpty(this.staffList)){
         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(){
-      changeWorker(this.form).then(res=>{
+      changeWorker({}).then(res=>{
           if(res.code == 1){
 
           }