Browse Source

制作任务

shish 9 months ago
parent
commit
4425839ec5
2 changed files with 27 additions and 5 deletions
  1. 2 0
      hdApp/src/admin/goods/list.vue
  2. 25 5
      hdApp/src/admin/shop/sk.vue

+ 2 - 0
hdApp/src/admin/goods/list.vue

@@ -350,6 +350,8 @@ export default {
       if (!this.$util.isEmpty(this.searchText)) {
         this.searchTimer = setTimeout(() => {
           this.lastSearchText = this.searchText;
+          this.catId = 0
+          this.currentTab = 0
           this.resetList()
           this.getGoodsList()
         }, 1000);

+ 25 - 5
hdApp/src/admin/shop/sk.vue

@@ -3,18 +3,32 @@
     <view>
         <view class="module-com input-line-wrap">
           <tui-list-cell class="line-cell" :arrow="true" @click="selectCustom">
-            <view class="tui-title">快捷开单</view>
+            <view class="tui-title">快捷开单</view>
             <view>{{form.customName}}</view>
           </tui-list-cell>
           <tui-list-cell class="line-cell" :arrow="true" @click="selectMyItem(0)">
-            <view class="tui-title">处理花材</view>
+            <view class="tui-title">处理花材</view>
             <view>{{losingItemName}}</view>
           </tui-list-cell>
           <tui-list-cell class="line-cell" :arrow="true" @click="selectMyItem(1)">
-            <view class="tui-title">直接收款</view>
+            <view class="tui-title">直接收款</view>
             <view>{{zjGatheringItemName}}</view>
           </tui-list-cell>
 
+          <tui-list-cell class="line-cell" :hover="false">
+            <view class="tui-title">花束订单</view>
+            <radio-group class="tui-input" @change="workNeedChange">
+              <label class="list" for="needWorkNo">
+                <radio id="needWorkNo" value="0" :checked="needWork == 0" style="transform:scale(0.7,0.7)" />
+                <span class="checkbox-text">不要制作</span>
+              </label>
+              <label class="list" for="needWorkOk">
+                <radio id="needWorkOk" value="1" :checked="needWork == 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">商城端跑腿</view>
             <radio-group class="tui-input" @change="thirdSendChange">
@@ -96,7 +110,8 @@ export default {
       orderFlow:0,
       thirdSend:0,
       thirdSendFee:0,
-      wxStoreId:''
+      wxStoreId:'',
+      needWork:0
     };
   },
   onShow() {
@@ -123,6 +138,10 @@ export default {
       this.orderFlow = e.detail.value
       this.changeExt()
     },
+    workNeedChange(e){
+      this.needWork = e.detail.value
+      this.changeExt()
+    },
     thirdSendChange(e){
       this.thirdSend = e.detail.value
       this.changeExt()
@@ -132,7 +151,7 @@ export default {
       this.changeExt()
     },
     changeExt(){
-      modifyExt({orderFlow:this.orderFlow,thirdSend:this.thirdSend,thirdSendFee:this.thirdSendFee}).then(res=>{
+      modifyExt({orderFlow:this.orderFlow,thirdSend:this.thirdSend,thirdSendFee:this.thirdSendFee,needWork:this.needWork}).then(res=>{
         if(res.code == 1){
           this.$msg(res.msg)
         }
@@ -162,6 +181,7 @@ export default {
           this.orderFlow = res.data.orderFlow
           this.thirdSend = res.data.thirdSend
           this.thirdSendFee = res.data.thirdSendFee
+          this.needWork = res.data.needWork
           let main = res.data.main?res.data.main:[]
           this.wxStoreId = main.wxStoreId
         }