Compare commits

...

2 Commits

Author SHA1 Message Date
wtq
da32de2512 '!' 2025-12-31 11:47:15 +08:00
wtq
ff3a927c95 '关注商品时,新增库存默认值' 2025-12-29 10:07:17 +08:00
3 changed files with 11 additions and 8 deletions

View File

@@ -123,7 +123,7 @@ export default {
},
created() {
// this.skus = JSON.parse(JSON.stringify(this.skuName.skus));
this.skus = this.skuName.skus.map(item => {return {...item,locationCode:""}})
this.skus = this.skuName.skus.map(item => {return {...item,locationCode:"",stock:20}})
},
methods: {
// 关闭dialog

View File

@@ -93,7 +93,7 @@
<br>
<!-- 禁止购买物料 -->
<el-form-item label="允许购买物料:" prop="packageSwitch">
<el-switch :active-value="0" :inactive-value="1" v-model="storeInfo.packageSwitch" :disabled="storeInfo.packageSwitch == 1 ? true : false" ></el-switch>
<el-switch :active-value="0" :inactive-value="1" v-model="storeInfo.packageSwitch" :disabled="isCanBuyMaterial" ></el-switch>
</el-form-item>
<br>
<!-- 禁止接收账单 默认接收 0 推送 1 不推送-->
@@ -2021,6 +2021,12 @@ export default {
if(findItem) flag = true
}
return flag
},
isCanBuyMaterial(){
let flag = this.storeInfo.packageSwitch == 1 ? true : false
let mobile = localStorage.getItem("mobile");
if(mobile === '18981810340' || mobile === '18744776542') flag = false
return flag
}
},
watch: {

View File

@@ -452,17 +452,14 @@
</div>
</div>
</el-table-column>
<el-table-column label="配送信息" align="center" header-align="" min-width="120">
<!-- <el-table-column label="配送信息" align="center" header-align="" min-width="120">
<div slot-scope="scope">
<el-popover :refs="scope.row.vendorOrderID" placement="right" @show="handleGetWaybillDetail(scope.row)"
trigger="click">
<!-- 转过的订单 -->
<!-- 请求信息 -->
<div v-loading="waybillLoading" style="min-height: 100px;">
<!-- 配送信息 820177478000021 8/22 -->
<CMPWaybillInfo :currentWaybill="currentWaybill"></CMPWaybillInfo>
</div>
<!-- 请求信息 -->
<div slot="reference">
<div class="hover-click" style="line-height: 1;">
<div>{{ $store.state.serverInfo.vendorName[scope.row.waybillVendorID] }} {{ scope.row.courierName }}</div>
@@ -471,7 +468,7 @@
</div>
</el-popover>
</div>
</el-table-column>
</el-table-column> -->
</el-table>
</div>