This commit is contained in:
weipengfei 2024-01-18 18:45:06 +08:00
parent d3e8fe6c96
commit 2d88fe3e6a
5 changed files with 24 additions and 12 deletions

View File

@ -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) {

View File

@ -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" : {

View File

@ -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);

View File

@ -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';
})

View File

@ -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);