|
|
@@ -6,17 +6,32 @@
|
|
|
<view class="card_box">
|
|
|
|
|
|
<view class="item_box rx-bc">
|
|
|
- <view class="item_one perce50 rx-sc">
|
|
|
+ <view class="item_one rx-sc">
|
|
|
<view class="lable">委外名称:</view>
|
|
|
- <view>{{ outObj.name }}</view>
|
|
|
+ <view style="color: #157A2C">{{ outObj.name }}</view>
|
|
|
</view>
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="item_box rx-bc">
|
|
|
+
|
|
|
<view class="item_one perce50 rx-sc">
|
|
|
<view class="lable">委外类型:</view>
|
|
|
- <view>{{ outObj.type == 4 ? '带料委外' : '无料委外' }}</view>
|
|
|
+ <view style="color: #157A2C">{{ outObj.type == 4 ? '带料委外' : '无料委外' }}</view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="item_one perce50 rx-sc">
|
|
|
+ <view class="lable">直接入库:</view>
|
|
|
+ <view style="color: #157A2C">{{ outObj.isStraight == 1 ? '是' : '否' }}</view>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
</view>
|
|
|
|
|
|
@@ -33,7 +48,7 @@
|
|
|
<u-list @scrolltolower="scrolltolower" class="z_list">
|
|
|
|
|
|
<view v-if="actTab == '物品清单'">
|
|
|
- <view class="rx-bc">
|
|
|
+ <view class="rx-bc" v-if="outObj.isStraight != 1 && clientEnvironmentId != 2">
|
|
|
<view style="margin-left: 24rpx">
|
|
|
<checkbox v-if="!seletedAll" color="#fff" :checked="seletedAll" @tap="_seletedAll">全选
|
|
|
</checkbox>
|
|
|
@@ -48,13 +63,13 @@
|
|
|
|
|
|
|
|
|
<checkbox-group v-for="(item, index) in pickOutInList" :key="index"
|
|
|
- @change="e => selectVal(e, item, index)">
|
|
|
- <label class="listBox rx-bs">
|
|
|
+ @change="e => selectVal(e, item, index)" v-if="clientEnvironmentId != 2">
|
|
|
+ <label class="listBox rx-bs" >
|
|
|
|
|
|
<view class="listBox-sel">
|
|
|
<checkbox
|
|
|
v-if=' (item.rootCategoryLevelId != 11 || (item.rootCategoryLevelId == 11 && item.status != 1))'
|
|
|
- :value="item.code" color="#fff" :disabled="item.disabled"
|
|
|
+ :value="item.code" color="#fff" :disabled="outObj.isStraight == 1"
|
|
|
:checked="item.checked" />
|
|
|
</view>
|
|
|
|
|
|
@@ -148,10 +163,18 @@
|
|
|
<text>{{ itm.label }}</text>{{ item[itm.prop] }}
|
|
|
</view>
|
|
|
|
|
|
- <view class="items" v-if="item.isDemandQuantity">
|
|
|
- <text>数量</text>{{ item.demandQuantity }}
|
|
|
+ <view class="items" v-if="item.isDemandQuantity && clientEnvironmentId != 2">
|
|
|
+ <text>数量</text>{{ item.count * ( checkListLen || 1 ) }}
|
|
|
+ </view>
|
|
|
+ <view class="items content_num" v-if="!item.isDemandQuantity && clientEnvironmentId != 2">
|
|
|
+ <text>数量</text> <input style="8rpx !important"
|
|
|
+ v-model="item.demandQuantity"></input>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="items" v-if="item.isDemandQuantity && clientEnvironmentId == 2">
|
|
|
+ <text>数量</text>{{ item.count * ( outObj.formedNumLast || 1 ) }}
|
|
|
</view>
|
|
|
- <view class="items content_num" v-if="!item.isDemandQuantity">
|
|
|
+ <view class="items content_num" v-if="!item.isDemandQuantity && clientEnvironmentId == 2">
|
|
|
<text>数量</text> <input style="8rpx !important"
|
|
|
v-model="item.demandQuantity"></input>
|
|
|
</view>
|
|
|
@@ -306,6 +329,7 @@
|
|
|
methods: {
|
|
|
open(obj) {
|
|
|
this.outObj = obj
|
|
|
+ this.actTab = '物品清单',
|
|
|
|
|
|
this.outsourceMaterialFn()
|
|
|
this.show = true
|
|
|
@@ -343,7 +367,7 @@
|
|
|
},
|
|
|
|
|
|
close() {
|
|
|
- EventBus.$off('outEvent');
|
|
|
+
|
|
|
this.show = false
|
|
|
},
|
|
|
|
|
|
@@ -421,15 +445,20 @@
|
|
|
...this.outObj,
|
|
|
isRelease: 0,
|
|
|
bomMaterialList: this.bomMaterialList,
|
|
|
- pickOutInList: this.pickOutInList.filter(f => f.checked == true) ,
|
|
|
+ pickOutInList: this.pickOutInList.filter(f => f.checked == true),
|
|
|
materialList: this.materialList,
|
|
|
standardOutputList: this.standardOutputList,
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
applyoutsourceSave(param).then(res => {
|
|
|
- this.$emit('close', true)
|
|
|
- this.close()
|
|
|
-
|
|
|
+ uni.showToast({
|
|
|
+ title: "提交成功",
|
|
|
+ icon: "none"
|
|
|
+ })
|
|
|
+ this.$emit('close', true)
|
|
|
+ this.checkListLen = 0
|
|
|
+ this.close()
|
|
|
+
|
|
|
})
|
|
|
},
|
|
|
}
|