|
@@ -2,7 +2,7 @@
|
|
|
<view class="button-area">
|
|
<view class="button-area">
|
|
|
<view class="active" @click="changeProperty">{{property==1 ? '花材' : '成品'}}</view>
|
|
<view class="active" @click="changeProperty">{{property==1 ? '花材' : '成品'}}</view>
|
|
|
<view @click="gosettleCommit">结算 </view>
|
|
<view @click="gosettleCommit">结算 </view>
|
|
|
- <view>收款</view>
|
|
|
|
|
|
|
+ <view @click="gatheringFn()">收款</view>
|
|
|
<view @click="breakage">报损</view>
|
|
<view @click="breakage">报损</view>
|
|
|
<view @click="resetCustomer">选客</view>
|
|
<view @click="resetCustomer">选客</view>
|
|
|
<view @click="calcFn">{{calc == 'add' ? '+' : '-'}}</view>
|
|
<view @click="calcFn">{{calc == 'add' ? '+' : '-'}}</view>
|
|
@@ -28,6 +28,11 @@
|
|
|
<toPayWay @cancelPay="cancelPay()" @payFinish="payFinish()" @selectPayWayBack="selectPayWayBack" :orderId.sync="orderId"></toPayWay>
|
|
<toPayWay @cancelPay="cancelPay()" @payFinish="payFinish()" @selectPayWayBack="selectPayWayBack" :orderId.sync="orderId"></toPayWay>
|
|
|
</uni-popup>
|
|
</uni-popup>
|
|
|
|
|
|
|
|
|
|
+ <!-- 收款 -->
|
|
|
|
|
+ <uni-popup ref="gatheringRef" background-color="#fff" type="center" :animation="false">
|
|
|
|
|
+ <selectPrice @confirmSelectPrice="confirmSelectPrice" @cancelSelectPrice="cancelSelectPrice"></selectPrice>
|
|
|
|
|
+ </uni-popup>
|
|
|
|
|
+
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -36,10 +41,11 @@ import toPayWay from './toPay.vue'
|
|
|
import { createCreateOrder, wastageCreateOrder } from '@/api/home/index'
|
|
import { createCreateOrder, wastageCreateOrder } from '@/api/home/index'
|
|
|
import productMins from "@/mixins/product"
|
|
import productMins from "@/mixins/product"
|
|
|
import { allProduct } from '@/api/product'
|
|
import { allProduct } from '@/api/product'
|
|
|
|
|
+import selectPrice from './selectPrice.vue'
|
|
|
export default {
|
|
export default {
|
|
|
name:'console',
|
|
name:'console',
|
|
|
mixins: [productMins],
|
|
mixins: [productMins],
|
|
|
- components:{ settlePop,toPayWay},
|
|
|
|
|
|
|
+ components:{ settlePop,toPayWay,selectPrice},
|
|
|
props: {
|
|
props: {
|
|
|
customId: {
|
|
customId: {
|
|
|
type: Number,
|
|
type: Number,
|
|
@@ -83,6 +89,24 @@ export default {
|
|
|
this.initData()
|
|
this.initData()
|
|
|
},
|
|
},
|
|
|
methods:{
|
|
methods:{
|
|
|
|
|
+ cancelSelectPrice(){
|
|
|
|
|
+ this.$refs.gatheringRef.close()
|
|
|
|
|
+ },
|
|
|
|
|
+ confirmSelectPrice(params){
|
|
|
|
|
+ uni.showLoading({mask:true})
|
|
|
|
|
+ createCreateOrder({orderName:params.name,lsGoodsPrice:params.price,modifyPrice:params.price}).then(res=>{
|
|
|
|
|
+ uni.hideLoading()
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ this.$refs.gatheringRef.close()
|
|
|
|
|
+ this.orderId = res.data.id
|
|
|
|
|
+ this.$refs.toPayRef.open('center')
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ gatheringFn(){
|
|
|
|
|
+ this.$util.hitRemind()
|
|
|
|
|
+ this.$refs.gatheringRef.open('center')
|
|
|
|
|
+ },
|
|
|
payFinish(){
|
|
payFinish(){
|
|
|
this.$util.hitRemind()
|
|
this.$util.hitRemind()
|
|
|
this.$refs.toPayRef.close()
|
|
this.$refs.toPayRef.close()
|