|
|
@@ -28,13 +28,20 @@
|
|
|
<toPayWay @cancelPay="cancelPay()" @selectPayWayBack="selectPayWayBack" :orderId.sync="orderId"></toPayWay>
|
|
|
</uni-popup>
|
|
|
|
|
|
+ <!-- 开单选花材输入数量和金额 -->
|
|
|
+ <uni-popup ref="selectNumPriceRef" background-color="#fff" type="center" :animation="false">
|
|
|
+ <selectNum v-if="currentJobType=='make'" @confirmAddItemModel="confirmAddItemModel" :customData.sync="customData" @cancelKdSelectNumPrice="addItemModelHidden"></selectNum>
|
|
|
+ <selectNumPrice v-else @confirmAddItemModel="confirmAddItemModel" :customData.sync="customData" @cancelKdSelectNumPrice="addItemModelHidden"></selectNumPrice>
|
|
|
+ </uni-popup>
|
|
|
+
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
import settlePop from './settlePop.vue'
|
|
|
import toPayWay from './toPay.vue'
|
|
|
import { createCreateOrder, wastageCreateOrder } from '@/api/home/index'
|
|
|
-import productMins from "@/mixins/product";
|
|
|
+import productMins from "@/mixins/product"
|
|
|
+import { allProduct } from '@/api/product'
|
|
|
export default {
|
|
|
name:'console',
|
|
|
mixins: [productMins],
|
|
|
@@ -48,17 +55,31 @@ export default {
|
|
|
data(){
|
|
|
return {
|
|
|
totalShop:{ bigUnit: 0, smallUnit:0, totalPrice: 0 },
|
|
|
- orderId:0
|
|
|
+ orderId:0,
|
|
|
+ allProduct:[]
|
|
|
}
|
|
|
},
|
|
|
created(){
|
|
|
+ // #ifdef APP-PLUS
|
|
|
//避免重复,每次进来先移除全局自定义事件监听器
|
|
|
uni.$off('listenGetScanCode')
|
|
|
uni.$on('listenGetScanCode',function(data){
|
|
|
console.log(data.code)
|
|
|
})
|
|
|
+ allProduct().then(res=>{
|
|
|
+ this.allProduct = res.data.list
|
|
|
+ console.log('载入最新花材...')
|
|
|
+ })
|
|
|
+ // #endif
|
|
|
},
|
|
|
methods:{
|
|
|
+ takeItem(code){
|
|
|
+
|
|
|
+ },
|
|
|
+ popAddModelFn(info) {
|
|
|
+ this.$util.hitRemind()
|
|
|
+ this.showAddModelFn({ ...info, buyNum: 1, unitPrice: info.price,unitType:0})
|
|
|
+ },
|
|
|
changeProperty(property){
|
|
|
this.$emit('changeProperty',property)
|
|
|
},
|