shish 9 месяцев назад
Родитель
Сommit
2b9eb57ed5
1 измененных файлов с 1 добавлено и 31 удалено
  1. 1 31
      hdApp/src/admin/order/workOrder.vue

+ 1 - 31
hdApp/src/admin/order/workOrder.vue

@@ -18,15 +18,6 @@
 
        <view class="module-com input-line-wrap" style="position:relative;">
 
-        <tui-list-cell class="line-cell" :arrow="true">
-          <view class="tui-title required">品种</view>
-          <picker mode="selector" :value="form.kindId" :range="kindListData" range-key="name" @change="changeKindFn" class="tui-input" >
-            <input v-model="form.kindId" name="kindId" type="text" hidden />
-            <view v-if="form.kindId" style="height:45upx;" >{{ kindSelectedData.name }}</view>
-            <view class="tui-placeholder" style="height:45upx;" v-else>请选择</view>
-          </picker>
-        </tui-list-cell>
-
         <tui-list-cell class="line-cell" :hover="false">
           <view class="tui-title required">数量</view>
           <input v-model="form.num" placeholder-class="phcolor" class="tui-input" name="num" @focus="form.num=''" placeholder="填写数量" maxlength="50" type="number" />
@@ -101,7 +92,6 @@ export default {
         hasPay:1,
         payWay:0,
         sendCost:'',
-        kindId:'',
         cover:[],
         num:1,
         flowerNum:''
@@ -110,7 +100,6 @@ export default {
 		payWayindex:0,
 		payWayList:[{name:"线下微信",id:0},{name:"线下支付宝",id:1},{name:"现金",id:4},{name:"银行卡",id:5}],
       kindListData:[],
-      kindSelectedData:{},
       currentImgData:[],
       numSelectedData:{num:0,name:0},
       flowerNumList:[{num:9,name:9},{num:11,name:11},{num:16,name:16},{num:33,name:33},{num:52,name:52},{num:66,name:66},{num:99,name:99}]
@@ -160,24 +149,6 @@ export default {
       }
     },
     init() {
-      this.getKindDataFn()
-    },
-    async getKindDataFn() {
-      await getAllKind({flower:1}).then(res => {
-        if (this.$util.isEmpty(res.data)){
-          return false;
-        }
-        this.kindListData = res.data.list ? res.data.list : []
-        if(this.kindListData && this.kindListData[0] && this.kindListData[0].id){
-          this.form.kindId = this.kindListData[0].id||''
-          let name = this.kindListData[0].name||''
-          this.kindSelectedData = {name}
-        }
-      });
-    },
-    changeKindFn(e) {
-        this.kindSelectedData = this.kindListData[e.detail.value];
-        this.form.kindId = this.kindSelectedData.id;
     },
 		payWayChange(e){
 			let index = e.detail.value
@@ -229,8 +200,7 @@ export default {
       that.form = {...that.form,...that.$refs.appDelivery.form}
       that.$util.confirmModal({content:'确认提交?'},() => {
           uni.showLoading({mask:true})
-          let name = that.kindSelectedData.name ? that.kindSelectedData.name : ''
-          createOrder({...that.form,unitGoodsPrice:this.goodsPrice,modifyPrice:modifyPrice,name:name,kindName:name,customId:customId,needWork:1,version:3}).then((res) => {
+          createOrder({...that.form,unitGoodsPrice:this.goodsPrice,modifyPrice:modifyPrice,name:'花束',kindName:'花束',customId:customId,needWork:1,version:3}).then((res) => {
             uni.hideLoading()
             that.pageTo({url: '/admin/order/workOrderResult',type:2,query:{id:res.data.id}})
           })