|
@@ -67,6 +67,7 @@
|
|
|
:info="productItem"
|
|
:info="productItem"
|
|
|
:bigCount=" getSelectItemById(productItem.id, classItem.classId).bigCount"
|
|
:bigCount=" getSelectItemById(productItem.id, classItem.classId).bigCount"
|
|
|
:smallCount="getSelectItemById(productItem.id, classItem.classId).smallCount"
|
|
:smallCount="getSelectItemById(productItem.id, classItem.classId).smallCount"
|
|
|
|
|
+ :itemPrice="getSelectItemById(productItem.id, classItem.classId).itemPrice"
|
|
|
@customNum="customNum"
|
|
@customNum="customNum"
|
|
|
@add="addEvent"
|
|
@add="addEvent"
|
|
|
@addOneEvent="addCustomNumEvent"
|
|
@addOneEvent="addCustomNumEvent"
|
|
@@ -101,12 +102,15 @@
|
|
|
<view class="kc">
|
|
<view class="kc">
|
|
|
价格
|
|
价格
|
|
|
</view>
|
|
</view>
|
|
|
- <input
|
|
|
|
|
- :value="customData.itemPrice"
|
|
|
|
|
- @change="changePriceEvent"
|
|
|
|
|
- type="number"
|
|
|
|
|
- placeholder="请填写采购总价"
|
|
|
|
|
- />元
|
|
|
|
|
|
|
+<!-- <input-->
|
|
|
|
|
+<!-- :value="customData.itemPrice"-->
|
|
|
|
|
+<!-- @change="changePriceEvent"-->
|
|
|
|
|
+<!-- type="number"-->
|
|
|
|
|
+<!-- placeholder="请填写采购总价"-->
|
|
|
|
|
+<!-- />元-->
|
|
|
|
|
+ <allSelectInput :isActive="isAloneAllActive" :isFocus="isAloneAllFocus" :value="customData.itemPrice" :placeholder="'请填写采购总价'"
|
|
|
|
|
+ @deleteInputVal="deleteAloneInputVal" @initAllInput="initAloneAllInput" @moveAllInput="moveAloneAllInput">
|
|
|
|
|
+ </allSelectInput>元
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="select-cmd_bx">
|
|
<view class="select-cmd_bx">
|
|
@@ -156,6 +160,9 @@ import productMins from "@/mixins/product";
|
|
|
|
|
|
|
|
import allMoreSelectInput from "@/components/module/allMoreSelectInput";
|
|
import allMoreSelectInput from "@/components/module/allMoreSelectInput";
|
|
|
import allMoreSelectInputMins from "@/mixins/allMoreSelectInput";
|
|
import allMoreSelectInputMins from "@/mixins/allMoreSelectInput";
|
|
|
|
|
+
|
|
|
|
|
+import allSelectInput from "@/components/module/allSelectInput";
|
|
|
|
|
+import allSelectInputMins from "@/mixins/allSelectInput";
|
|
|
export default {
|
|
export default {
|
|
|
name: "purchase", // 采购
|
|
name: "purchase", // 采购
|
|
|
components: {
|
|
components: {
|
|
@@ -164,30 +171,46 @@ export default {
|
|
|
AppWrapperEmpty,
|
|
AppWrapperEmpty,
|
|
|
CommodityPurchase,
|
|
CommodityPurchase,
|
|
|
ModalModule,
|
|
ModalModule,
|
|
|
- FooterCart,allMoreSelectInput
|
|
|
|
|
|
|
+ FooterCart,allMoreSelectInput,allSelectInput
|
|
|
},
|
|
},
|
|
|
- mixins: [productMins,allMoreSelectInputMins],
|
|
|
|
|
|
|
+ mixins: [productMins,allMoreSelectInputMins,allSelectInputMins],
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
pageType: "purchase",
|
|
pageType: "purchase",
|
|
|
|
|
|
|
|
|
|
+ isAloneAllActive: false,
|
|
|
|
|
+ isAloneAllFocus: false,
|
|
|
|
|
+
|
|
|
isModel: false,
|
|
isModel: false,
|
|
|
showSubmitModel: false,
|
|
showSubmitModel: false,
|
|
|
customData: {
|
|
customData: {
|
|
|
bigCount: 0,
|
|
bigCount: 0,
|
|
|
smallCount: 0,
|
|
smallCount: 0,
|
|
|
- itemPrice: null
|
|
|
|
|
|
|
+ itemPrice: 0
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
onLoad() {},
|
|
onLoad() {},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ // 离开全选input alone
|
|
|
|
|
+ moveAloneAllInput(e){
|
|
|
|
|
+ this.isAloneAllActive=false;
|
|
|
|
|
+ this.isAloneAllFocus=false;
|
|
|
|
|
+ if(e==''){return}
|
|
|
|
|
+ this.customData.itemPrice = e;
|
|
|
|
|
+ },
|
|
|
|
|
+ //input点击删除按键
|
|
|
|
|
+ deleteAloneInputVal(){
|
|
|
|
|
+ this.isAloneAllActive=false;
|
|
|
|
|
+ this.customData.itemPrice = '';
|
|
|
|
|
+ },
|
|
|
//自定义数量
|
|
//自定义数量
|
|
|
customNum(info) {
|
|
customNum(info) {
|
|
|
this.isModel = true;
|
|
this.isModel = true;
|
|
|
this.customData = info;
|
|
this.customData = info;
|
|
|
this.$nextTick(()=>{
|
|
this.$nextTick(()=>{
|
|
|
- this.initAllInput();
|
|
|
|
|
|
|
+ // this.initAllInput();
|
|
|
|
|
+ this.initAloneAllInput();
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
modalCancel() {
|
|
modalCancel() {
|
|
@@ -197,6 +220,7 @@ export default {
|
|
|
affirm(val) {
|
|
affirm(val) {
|
|
|
// this.moveAllInput();
|
|
// this.moveAllInput();
|
|
|
// this.moveAllInputOne();
|
|
// this.moveAllInputOne();
|
|
|
|
|
+ console.log('this.customData)',this.customData)
|
|
|
this.isFocus = false;
|
|
this.isFocus = false;
|
|
|
this.isFocusOne = false;
|
|
this.isFocusOne = false;
|
|
|
this.$nextTick(()=>{
|
|
this.$nextTick(()=>{
|