|
|
@@ -9,7 +9,7 @@
|
|
|
</view>
|
|
|
<view class="info-cell">
|
|
|
<view class="cell-label"> 日期</view>
|
|
|
- <view class="cell-value"> {{ putData.updateTime || "" }}</view>
|
|
|
+ <view class="cell-value"> {{ putData.updateTime.substr(5,11) }}</view>
|
|
|
</view>
|
|
|
<view class="info-cell">
|
|
|
<view class="cell-label"> 制单人</view>
|
|
|
@@ -39,12 +39,10 @@
|
|
|
<t-tr v-for="(item, index) in putData.itemInfo" :key="index">
|
|
|
<t-td v-for="(column, colIndex) in columns" :key="colIndex" :align="column.align" :color="column.color" >
|
|
|
<view v-if="column.custom == 'icon'" class="list-icon">
|
|
|
- <image class="icon-image" :src="item.itemCover" alt="商品图" />
|
|
|
<view class="icon-info">
|
|
|
<view class="info-name">
|
|
|
{{ item.itemName }}
|
|
|
</view>
|
|
|
- <view class="info-type"> {{ item.rank }}级 </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-else-if="column.custom == 'stock'">
|
|
|
@@ -55,6 +53,9 @@
|
|
|
<text v-if="Number(item.bigNum)>0"> {{ item.bigNum }}扎</text>
|
|
|
<text v-if="Number(item.smallNum)>0">{{ item.smallNum }}支</text>
|
|
|
</view>
|
|
|
+ <view v-else-if="column.custom == 'itemPrice'">
|
|
|
+ <text> ¥{{ item.itemPrice?parseFloat(item.itemPrice):0 }}</text>
|
|
|
+ </view>
|
|
|
<view v-else>
|
|
|
{{ item[column.dataIndex] || "" }}
|
|
|
</view>
|
|
|
@@ -68,7 +69,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="bar-view">
|
|
|
- <view class="info-view"> 入库数量:{{ sumCount }} </view>
|
|
|
+ <view class="info-view">{{ sumCount }} ¥{{putData.price?parseFloat(putData.price):0}}</view>
|
|
|
<view class="btn-view" v-if="putData.status == PUT_STATUS.CONFIRM">
|
|
|
<button class="admin-button-com middle" @click="cancelPutEvent"> 取消入库 </button>
|
|
|
<button class="admin-button-com middle" @click="confirmPutEvent"> 确认入库 </button>
|
|
|
@@ -89,24 +90,10 @@ export default {
|
|
|
orderSn: "",
|
|
|
putData: {},
|
|
|
columns: [
|
|
|
- {
|
|
|
- name: "花材名称",
|
|
|
- custom: "icon"
|
|
|
- },
|
|
|
- {
|
|
|
- name: "库存",
|
|
|
- custom: "stock",
|
|
|
- // color: "success",
|
|
|
- width: 120,
|
|
|
- align: "center"
|
|
|
- },
|
|
|
- {
|
|
|
- name: "入库数量",
|
|
|
- custom: "put",
|
|
|
- // color: "warn",
|
|
|
- width: 120,
|
|
|
- align: "center"
|
|
|
- }
|
|
|
+ { name: "名称", custom: "icon" },
|
|
|
+ { name: "库存", custom: "stock", width: 120, align: "center" },
|
|
|
+ { name: "入库数", custom: "put", width: 120, align: "center" },
|
|
|
+ { name: "成本", custom: "itemPrice", width: 120, align: "center" },
|
|
|
]
|
|
|
};
|
|
|
},
|