提交 e242f808 编写于 作者: 张磊's avatar 张磊

Merge branch 'feature/zl' into 'release'

auto commit

See merge request com.pica.cloud.education.frontend/pica.cloud.web-education-admin!498
...@@ -7,7 +7,7 @@ if [ ! $hasGit ];then ...@@ -7,7 +7,7 @@ if [ ! $hasGit ];then
else else
git fetch --all git fetch --all
result=`git symbolic-ref --short -q HEAD` # 获取分支名 result=`git symbolic-ref --short -q HEAD` # 获取分支名
current_id=`git log -n 1 release --pretty=format:"%H"` current_id=`git log -n 1 origin/release --pretty=format:"%H"`
git reset --soft $current_id git reset --soft $current_id
git add . git add .
git commit -m "$msg" git commit -m "$msg"
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"private": true, "private": true,
"license": "GPL", "license": "GPL",
"scripts": { "scripts": {
"dev": "cross-env BUILD_ENV=development node build/dev-server.js", "dev": "cross-env BUILD_ENV=test node build/dev-server.js",
"local": "cross-env BUILD_ENV=development node build/dev-server.js", "local": "cross-env BUILD_ENV=development node build/dev-server.js",
"build": "node build/build.js", "build": "node build/build.js",
"build:dev": "cross-env BUILD_ENV=dev node build/build.js", "build:dev": "cross-env BUILD_ENV=dev node build/build.js",
......
...@@ -21,6 +21,7 @@ const form = { ...@@ -21,6 +21,7 @@ const form = {
incrStock: "", //增加库存 incrStock: "", //增加库存
storeId: "", storeId: "",
optPrice: "", optPrice: "",
realCostPrice: "",
scorePerformance: 0, scorePerformance: 0,
goodsStock: 0, goodsStock: 0,
stock: 0, stock: 0,
......
...@@ -107,6 +107,7 @@ const rules = { ...@@ -107,6 +107,7 @@ const rules = {
// { validator: checkBarcode, trigger: "blur" }, // { validator: checkBarcode, trigger: "blur" },
// ], // ],
optPrice: [{ required: true, message: "请输入价格", trigger: "blur" }], optPrice: [{ required: true, message: "请输入价格", trigger: "blur" }],
realCostPrice: [{ required: true, message: "请输入价格", trigger: "blur" }],
saleType: [{ required: true, message: "请选择销售方式", trigger: "change" }], saleType: [{ required: true, message: "请选择销售方式", trigger: "change" }],
stock: [{ required: true, message: "请输入库存", trigger: "blur" }], stock: [{ required: true, message: "请输入库存", trigger: "blur" }],
minWhole: [{ required: true, message: "请输入最小起批", trigger: "blur" }], minWhole: [{ required: true, message: "请输入最小起批", trigger: "blur" }],
......
...@@ -249,6 +249,13 @@ ...@@ -249,6 +249,13 @@
</el-col> </el-col>
</el-form-item> </el-form-item>
</div> </div>
<div class="inline">
<el-form-item label="成本价" prop="realCostPrice">
<el-col :span="20">
<el-input-number class="stock-com" @input="$forceUpdate();" v-model="formData.realCostPrice" size="small" :precision="2" :min="0.00" :max="99999.99"></el-input-number>
</el-col>
</el-form-item>
</div>
<div class="inline" v-if="formData.saleType == 2"> <div class="inline" v-if="formData.saleType == 2">
<el-form-item label="批发价" prop="optPrice"> <el-form-item label="批发价" prop="optPrice">
<el-col :span="20"> <el-col :span="20">
...@@ -1056,6 +1063,7 @@ ...@@ -1056,6 +1063,7 @@
this.buyLimitDtoList = this.formData.buyLimitDtoList; this.buyLimitDtoList = this.formData.buyLimitDtoList;
this.formData.expressLimitFlag = expressLimitFlag; this.formData.expressLimitFlag = expressLimitFlag;
this.formData.optPrice = this.formData.costPrice/100; this.formData.optPrice = this.formData.costPrice/100;
this.formData.realCostPrice = this.formData.realCostPrice/100;
this.formData.scorePerformance = this.formData.scorePerformance/100; this.formData.scorePerformance = this.formData.scorePerformance/100;
this.fileGoodsList = this.getImges(goodDet.goodsImgList,1); this.fileGoodsList = this.getImges(goodDet.goodsImgList,1);
this.fileIntrList = this.getImges(goodDet.goodsDetailImageList,2); this.fileIntrList = this.getImges(goodDet.goodsDetailImageList,2);
...@@ -1249,6 +1257,7 @@ ...@@ -1249,6 +1257,7 @@
return false; return false;
}else{ }else{
this.formData.costPrice = signFigures(this.formData.optPrice*100, 10); this.formData.costPrice = signFigures(this.formData.optPrice*100, 10);
this.formData.realCostPrice = signFigures(this.formData.realCostPrice*100, 10);
this.formData.hasChanged = true; this.formData.hasChanged = true;
this.formData.inputType = this.inputType; this.formData.inputType = this.inputType;
this.updateGoodsInfo(); this.updateGoodsInfo();
......
...@@ -144,6 +144,11 @@ ...@@ -144,6 +144,11 @@
<span>{{scope.row.costPrice | rangePrice}}</span> <span>{{scope.row.costPrice | rangePrice}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="realCostPrice" label="成本价" width="120" align="center">
<template slot-scope="scope">
<span>{{scope.row.realCostPrice | rangePrice}}</span>
</template>
</el-table-column>
<el-table-column prop="commissionType" v-if="commissionFlag == 2" label="分佣方式" width="150" align="center"> <el-table-column prop="commissionType" v-if="commissionFlag == 2" label="分佣方式" width="150" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.commissionType | commissionTypeFormat}}</span> <span>{{ scope.row.commissionType | commissionTypeFormat}}</span>
...@@ -566,7 +571,7 @@ ...@@ -566,7 +571,7 @@
} }
}, },
}, },
methods: { methods: {
handlePreview(){}, handlePreview(){},
handleRemove(){}, handleRemove(){},
beforeRemove(){}, beforeRemove(){},
...@@ -580,13 +585,13 @@ ...@@ -580,13 +585,13 @@
val.map(item => { val.map(item => {
if (item !== '') { if (item !== '') {
newVal.push(item); newVal.push(item);
} }
}) })
} }
if (newVal.length > 0) { if (newVal.length > 0) {
str = newVal.join('/') str = newVal.join('/')
} }
return str; return str;
}, },
//批量上传 //批量上传
getBatchUpload(file) { getBatchUpload(file) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册