This commit is contained in:
parent
d3e8fe6c96
commit
2d88fe3e6a
|
@ -9,8 +9,8 @@ let httpApiThree
|
|||
let wsApi
|
||||
|
||||
// 在打包之前请检查当前环境是否正确
|
||||
// const env = 'dev'; // 开发
|
||||
const env = 'prod'; // 生产
|
||||
const env = 'dev'; // 开发
|
||||
// const env = 'prod'; // 生产
|
||||
// const env = 'prew'; // 预上线
|
||||
|
||||
switch (env) {
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
"name" : "惠农商户平台",
|
||||
"appid" : "__UNI__1EE148C",
|
||||
"description" : "",
|
||||
"versionName" : "1.1.2",
|
||||
"versionCode" : 112,
|
||||
"versionName" : "1.1.3",
|
||||
"versionCode" : 113,
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus" : {
|
||||
|
|
|
@ -355,7 +355,18 @@
|
|||
}
|
||||
delete item.id;
|
||||
delete item.stock;
|
||||
uni.navigateTo({
|
||||
if(this.userInfo.mer_info.type_code=='TypeSupplyChain') uni.navigateTo({
|
||||
url: `/pages/product/addGood/addGood_supply?mer_id=${this.userInfo.service.mer_id}&import=1`,
|
||||
success: (e) => {
|
||||
e.eventChannel.emit('importAttrValue', item);
|
||||
uni.$once('importAttrValueOK', (e)=>{
|
||||
this.goods = this.goods.filter(t=>{
|
||||
return t.id!=e;
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
else uni.navigateTo({
|
||||
url: `/pages/product/addGood/addGood?mer_id=${this.userInfo.service.mer_id}&import=1`,
|
||||
success: (e) => {
|
||||
e.eventChannel.emit('importAttrValue', item);
|
||||
|
|
|
@ -687,7 +687,7 @@
|
|||
showFlag = '结算价不能小于0'
|
||||
}
|
||||
if (!t.price || +t.price <= 0) showFlag = '零售价不能小于0';
|
||||
if (!t.single_number || +t.single_number <= 0) showFlag = '零售价不能小于0';
|
||||
// if (!t.single_number || +t.single_number <= 0) showFlag = '单件数量不能小于0';
|
||||
if (!t.stock || +t.stock <= 0) showFlag = '库存不能小于0';
|
||||
// if (!t.cost || +t.cost <= 0) showFlag = '成本价不能小于0';
|
||||
})
|
||||
|
|
|
@ -73,16 +73,17 @@
|
|||
model: 'stock',
|
||||
holder: '请填写库存',
|
||||
require: true,
|
||||
}, {
|
||||
},
|
||||
],
|
||||
moreThanList: [
|
||||
{
|
||||
id: 11,
|
||||
label: '单件数量',
|
||||
type: 'digit',
|
||||
model: 'single_number',
|
||||
holder: '请填写单件数量',
|
||||
require: true,
|
||||
},
|
||||
],
|
||||
moreThanList: [{
|
||||
require: false,
|
||||
}, {
|
||||
id: 2,
|
||||
label: '成本价',
|
||||
type: 'digit',
|
||||
|
@ -179,7 +180,7 @@
|
|||
spliceMoreThan() {
|
||||
this.moreThanFlag = true;
|
||||
// this.formList.splice(!this.$props.product_id ? 2 : 1, this.formList.length);
|
||||
let len = 6;
|
||||
let len = 5;
|
||||
if(this.$store.state.app?.userInfo?.mer_info?.type_code=="TypeSupplyChain")
|
||||
this.formList.splice(len, this.formList.length);
|
||||
else this.formList.splice(len-1, this.formList.length);
|
||||
|
|
Loading…
Reference in New Issue