|
|
@@ -15,6 +15,15 @@
|
|
|
</picker>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
+ <tui-list-cell class="line-cell" :arrow="true">
|
|
|
+ <view class="tui-title">支数</view>
|
|
|
+ <picker mode="selector" :value="form.flowerNum" :range="flowerNumList" range-key="num" @change="changeNumFn" class="tui-input" >
|
|
|
+ <input v-model="form.flowerNum" name="flowerNum" type="text" hidden />
|
|
|
+ <view v-if="form.flowerNum" style="height:45upx;" >{{ numSelectedData.name }}</view>
|
|
|
+ <view class="tui-placeholder" style="height:45upx;" v-else>请选择</view>
|
|
|
+ </picker>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="false" >
|
|
|
<view class="tui-title">单价</view>
|
|
|
<input type="digit" @focus="goodsPrice=''" :focus="true" v-model="goodsPrice" placeholder-class="tui-placeholder"/>
|
|
|
@@ -22,10 +31,16 @@
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title">数量</view>
|
|
|
- <input v-model="form.num" placeholder-class="phcolor" style="width:210upx;" class="tui-input" name="num" @focus="form.num=''" placeholder="请填写数量" maxlength="50" type="number" />
|
|
|
+ <input v-model="form.num" placeholder-class="phcolor" style="width:260upx;" class="tui-input" name="num" @focus="form.num=''" placeholder="请填写数量" maxlength="50" type="number" />
|
|
|
<text style="color:#3385FF;font-weight:bold;">合计 ¥<text>{{orderTotalPrice}}</text></text>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
+ <tui-list-cell class="line-cell" :hover="false" :arrow="false" v-if="form.fromType == 3 && form.hasPay == 1">
|
|
|
+ <view class="tui-title">订金</view>
|
|
|
+ <input type="digit" @focus="dj=''" style="width:210upx;" v-model="dj" placeholder-class="tui-placeholder"/>
|
|
|
+ <text style="color:red;font-weight:bold;" v-if="Number(debtFinalPrice)>0">尾款 ¥<text>{{debtFinalPrice}}</text></text>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="false" v-if="form.fromType == 3">
|
|
|
<view class="tui-title">收款方式</view>
|
|
|
<button @tap="form.hasPay = 1" class="admin-button-com middle" :class="form.hasPay == 1 ? 'blue' : 'default'">已收款</button>
|
|
|
@@ -40,12 +55,6 @@
|
|
|
</picker>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
- <tui-list-cell class="line-cell" :hover="false" :arrow="false" v-if="form.fromType == 3 && form.hasPay == 1">
|
|
|
- <view class="tui-title">订金</view>
|
|
|
- <input type="digit" @focus="dj=''" style="width:210upx;" v-model="dj" placeholder-class="tui-placeholder"/>
|
|
|
- <text style="color:red;font-weight:bold;" v-if="Number(debtFinalPrice)>0">尾款 ¥<text>{{debtFinalPrice}}</text></text>
|
|
|
- </tui-list-cell>
|
|
|
-
|
|
|
</view>
|
|
|
|
|
|
<view class="module-com input-line-wrap goods-wrap">
|
|
|
@@ -99,7 +108,7 @@ export default {
|
|
|
kindId:'',
|
|
|
cover:[],
|
|
|
num:1,
|
|
|
- flowerNum:''
|
|
|
+ flowerNum:0
|
|
|
},
|
|
|
goodsPrice:'',
|
|
|
payWayindex:0,
|
|
|
@@ -107,7 +116,9 @@ export default {
|
|
|
kindListData:[],
|
|
|
kindSelectedData:{},
|
|
|
currentImgData:[],
|
|
|
- dj:''
|
|
|
+ dj:'',
|
|
|
+ numSelectedData:{num:0,name:0},
|
|
|
+ flowerNumList:[{num:0,name:'支数'},{num:6,name:6},{num:9,name:9},{num:11,name:11},{num:19,name:19},{num:33,name:33},{num:52,name:52},{num:66,name:66},{num:99,name:99}]
|
|
|
};
|
|
|
},
|
|
|
onLoad (option) {
|
|
|
@@ -166,6 +177,10 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ changeNumFn(e){
|
|
|
+ this.numSelectedData = this.flowerNumList[e.detail.value]
|
|
|
+ this.form.flowerNum = this.numSelectedData.num
|
|
|
+ },
|
|
|
changeKindFn(e) {
|
|
|
this.kindSelectedData = this.kindListData[e.detail.value];
|
|
|
this.form.kindId = this.kindSelectedData.id;
|
|
|
@@ -223,7 +238,7 @@ export default {
|
|
|
that.$util.confirmModal({content:'确认提交?'},() => {
|
|
|
uni.showLoading({mask:true})
|
|
|
let name = that.kindSelectedData.name ? that.kindSelectedData.name : ''
|
|
|
- createOrder({...that.form,unitGoodsPrice:this.goodsPrice,modifyPrice:modifyPrice,dj:this.dj,name:name}).then((res) => {
|
|
|
+ createOrder({...that.form,unitGoodsPrice:this.goodsPrice,modifyPrice:modifyPrice,dj:this.dj,name:name,kindName:name}).then((res) => {
|
|
|
uni.hideLoading()
|
|
|
that.pageTo({url: '/admin/order/workOrderResult',type:2,query:{id:res.data.id}})
|
|
|
})
|