|
|
@@ -11,7 +11,7 @@
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title">初始名称</view>
|
|
|
- <view style="color:#CCCCCC;width:450upx;height:45upx;display:flex;align-items:center;width:260upx;overflow:hidden;" @click.stop="notModify">
|
|
|
+ <view style="color:#CCCCCC;width:300upx;height:45upx;display:flex;align-items:center;overflow:hidden;" @click.stop="notModify">
|
|
|
{{productData.ptItemInfo ? productData.ptItemInfo.name : ''}}
|
|
|
<image :src="`${constant.imgUrl}/icon/official8.png`" v-if="productData.auth == 1" mode="widthFix" style="width:38upx;height:38upx;display:inline-block;margin-left:10upx;"></image>
|
|
|
</view>
|
|
|
@@ -53,14 +53,22 @@
|
|
|
|
|
|
<tui-list-cell class="line-cell" :arrow="false" :hover="false">
|
|
|
<view class="tui-title">成本</view>
|
|
|
- <input v-model="form.cost" style="width:260upx;" placeholder-class="phcolor" @focus="form.cost=''" class="tui-input" name="cost" placeholder="请输入" type="digit"/>
|
|
|
- <button v-if="productData.id > 0" class="admin-button-com blue middle" @click="goCostDetail(productData)">成本变动记录</button>
|
|
|
+ <input v-model="form.cost" style="width:300upx;" placeholder-class="phcolor" @focus="form.cost=''" class="tui-input" name="cost" placeholder="请输入" type="digit"/>
|
|
|
+ <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" :hover="false">
|
|
|
<view class="tui-title" style="color:#3385FF;font-weight:bold;">库存</view>
|
|
|
- <input v-model="form.stock" style="width:260upx;" placeholder-class="phcolor" @focus="form.stock=''" @input="changeStock($event)" class="tui-input" name="stock" placeholder="请输入" type="digit"/>
|
|
|
- <button v-if="productData.id > 0" class="admin-button-com blue middle" @click="goStockDetail(productData)">库存变动记录</button>
|
|
|
+ <input v-model="form.stock" style="width:300upx;" placeholder-class="phcolor" @focus="form.stock=''" @input="changeStock($event)" class="tui-input" name="stock" placeholder="请输入" type="digit"/>
|
|
|
+ <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" :hover="false">
|
|
|
+ <view class="tui-title">路上库存</view>
|
|
|
+ <view style="color:#CCCCCC;width:300upx;height:45upx;display:flex;align-items:center;overflow:hidden;" @click.stop="notModify">
|
|
|
+ {{form.onStock}}
|
|
|
+ </view>
|
|
|
+ <button v-if="productData.id > 0" class="admin-button-com blue middle" @click="showChangeOnStock(productData)">修改数值</button>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :arrow="true">
|
|
|
@@ -245,6 +253,7 @@ export default {
|
|
|
name:"",
|
|
|
py:"",
|
|
|
stock:'',
|
|
|
+ onStock:'',
|
|
|
ratio:'',
|
|
|
bigUnitId:1,
|
|
|
smallUnitId:2,
|
|
|
@@ -300,6 +309,12 @@ export default {
|
|
|
watch: {
|
|
|
},
|
|
|
methods: {
|
|
|
+ showChangeOnStock(item){
|
|
|
+
|
|
|
+ },
|
|
|
+ changeOnStockConfirm(){
|
|
|
+
|
|
|
+ },
|
|
|
ptAuth(info){
|
|
|
let that = this
|
|
|
that.$util.confirmModal({content:'确认申请?'},() => {
|