|
|
@@ -21,7 +21,8 @@
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title">花店价</view>
|
|
|
- <input v-model="form.price" placeholder-class="phcolor" class="tui-input" name="price" @focus="form.price=''" placeholder="请填写" type="digit" />
|
|
|
+ <input v-model="form.price" style="width:260upx;" placeholder-class="phcolor" class="tui-input" name="price" @focus="form.price=''" placeholder="请填写" type="digit" />
|
|
|
+ <button v-if="productData.id > 0" class="admin-button-com blue middle" @click="goPriceDetail(productData)">价格变动记录</button>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
@@ -35,6 +36,12 @@
|
|
|
<button v-if="productData.id > 0" class="admin-button-com blue middle" @click="goStockDetail(productData)">库存变动记录</button>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
+ <tui-list-cell class="line-cell" :arrow="false">
|
|
|
+ <view class="tui-title">成本</view>
|
|
|
+ <view style="width:260upx;height:45upx;">{{ productData.cost?parseFloat(productData.cost):0 }}</view>
|
|
|
+ <button v-if="productData.id > 0" class="admin-button-com blue middle" @click="goCostDetail(productData)">成本变动记录</button>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
<tui-list-cell class="line-cell" :arrow="true">
|
|
|
<view class="tui-title">分类</view>
|
|
|
<picker mode="selector" :value="form.classId" :range="itemClassData" range-key="name" @change="changeItemClassFn" class="tui-input" >
|
|
|
@@ -46,19 +53,22 @@
|
|
|
<tui-list-cell class="line-cell" :arrow="false">
|
|
|
<view class="tui-title">大单位</view>
|
|
|
<input v-model="form.bigUnitId" name="bigUnitId" type="text" hidden />
|
|
|
- <view v-if="form.bigUnitId" @click="$msg('不可修改')" style="color:#CCCCCC;width:450upx;height:45upx;">{{ bigUnitSelectedData.name }}</view>
|
|
|
+ <view v-if="form.bigUnitId" @click="$msg('不可修改')" style="width:300upx;color:#CCCCCC;height:45upx;">{{ bigUnitSelectedData.name }}</view>
|
|
|
+ <button v-if="productData.id > 0" class="admin-button-com blue middle" @click="modify(productData.id)">修改</button>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :arrow="false">
|
|
|
<view class="tui-title">小单位</view>
|
|
|
<input v-model="form.smallUnitId" name="smallUnitId" type="text" hidden />
|
|
|
- <view v-if="form.smallUnitId" @click="$msg('不可修改')" style="color:#CCCCCC;width:450upx;height:45upx;">{{ smallUnitSelectedData.name }}</view>
|
|
|
+ <view v-if="form.smallUnitId" @click="$msg('不可修改')" style="width:300upx;color:#CCCCCC;height:45upx;">{{ smallUnitSelectedData.name }}</view>
|
|
|
+ <button v-if="productData.id > 0" class="admin-button-com blue middle" @click="modify(productData.id)">修改</button>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title">单位比</view>
|
|
|
- <input v-model="form.ratio" disabled="true" placeholder-class="phcolor" @click="$msg('不可修改')" style="color:#CCCCCC;"
|
|
|
+ <input v-model="form.ratio" disabled="true" placeholder-class="phcolor" @click="$msg('不可修改')" style="width:300upx;color:#CCCCCC;"
|
|
|
class="tui-input" name="ratio" placeholder="如:1扎=20支,请填写20" maxlength="50" type="number" />
|
|
|
+ <button v-if="productData.id > 0" class="admin-button-com blue middle" @click="modify(productData.id)">修改</button>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
@@ -72,8 +82,9 @@
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title">每扎重量</view>
|
|
|
- <input v-model="form.weight" disabled="true" placeholder-class="phcolor" @click="$msg('不可修改')" style="color:#CCCCCC;"
|
|
|
+ <input v-model="form.weight" disabled="true" placeholder-class="phcolor" @click="$msg('不可修改')" style="width:300upx;color:#CCCCCC;"
|
|
|
class="tui-input" name="weight" placeholder="单位为公斤,参考红玫每扎1.2公斤" maxlength="50" type="digit" />
|
|
|
+ <button v-if="productData.id > 0" class="admin-button-com blue middle" @click="modify(productData.id)">修改</button>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
@@ -274,6 +285,9 @@ export default {
|
|
|
blur() {
|
|
|
this.printFocus = false
|
|
|
},
|
|
|
+ modify(){
|
|
|
+ this.$msg('功能开发中,请联系管理员修改')
|
|
|
+ },
|
|
|
doPrintLabel(id){
|
|
|
this.printItemId = id
|
|
|
this.printLabelShow = true
|
|
|
@@ -329,6 +343,12 @@ export default {
|
|
|
notModify(){
|
|
|
this.$msg('不可修改')
|
|
|
},
|
|
|
+ goPriceDetail(item){
|
|
|
+ this.$util.pageTo({url: "/admin/changePrice/changeList?id="+item.id})
|
|
|
+ },
|
|
|
+ goCostDetail(item){
|
|
|
+ this.$util.pageTo({url: "/admin/changePrice/costChangeList?id="+item.id})
|
|
|
+ },
|
|
|
goStockDetail(item){
|
|
|
this.$util.pageTo({url: "/pagesStorehouse/stockWarn/detailed?id="+item.id+'&name='+item.name})
|
|
|
},
|