|
|
@@ -183,16 +183,21 @@
|
|
|
|
|
|
<select-staff ref="selectStaffRef" @getStaff="getStaff" :staffData="staffData" />
|
|
|
|
|
|
- <arrival ref="arrivalRef" :arrivalData="arrivalData" @addNewItem="addNewItem" @refreshData="refreshData" @getStockDetail="getStockDetail" @getCostChange="getCostChange" />
|
|
|
+ <arrival ref="arrivalRef" :arrivalData="arrivalData" @searchFocus="searchFocus" @addNewItem="addNewItem" @refreshData="refreshData" @getStockDetail="getStockDetail" @getCostChange="getCostChange" @openLoan="openLoan" />
|
|
|
|
|
|
<simple-item ref="simpleItemRef" :simpleData="simpleData" @renewArrival="renewArrival" />
|
|
|
|
|
|
- <order-detail ref="orderDetail" :orderOperate="optionData" @getStockDetail="getStockDetail" />
|
|
|
+ <order-detail ref="orderDetail" :orderOperate="optionData" @getStockDetail="getStockDetail" @searchFocus="searchFocus" />
|
|
|
|
|
|
<sel-order ref="selOrder" :id="optionData.id" @song-success="onSongSuccess" />
|
|
|
|
|
|
<stock-detail ref="stockDetail" :itemData="itemData" />
|
|
|
|
|
|
+ <begin-refund ref="beginRefundRef" :currentRefundData="currentRefundData" @searchFocus="searchFocus" />
|
|
|
+ <refund-record ref="refundRecordRef" :currentData="refundRecordData" @searchFocus="searchFocus" />
|
|
|
+ <cost-change ref="costChangeRef" :costData="costData" @searchFocus="searchFocus" />
|
|
|
+ <loan-item ref="loanItemRef" :currentData="loanData" @renewArrival="renewArrival" />
|
|
|
+
|
|
|
<div class="print-html-box">
|
|
|
<table border="0" width="730" style="border:solid 1px #fff;border-collapse:collapse">
|
|
|
<tr>
|
|
|
@@ -246,9 +251,6 @@
|
|
|
</table>
|
|
|
</div>
|
|
|
|
|
|
- <begin-refund ref="beginRefundRef" :currentRefundData="currentRefundData" />
|
|
|
- <refund-record ref="refundRecordRef" :currentData="refundRecordData" />
|
|
|
-
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -261,6 +263,8 @@ import arrival from './components/arrival';
|
|
|
import simpleItem from './components/simple-item';
|
|
|
import beginRefund from './components/begin-refund';
|
|
|
import refundRecord from './components/refund-record';
|
|
|
+import costChange from '@/components/item/cost-change';
|
|
|
+import loanItem from '@/components/item/loan-item';
|
|
|
import {hiprint, defaultElementTypeProvider} from 'vue-plugin-hiprint'
|
|
|
export default {
|
|
|
components: {
|
|
|
@@ -271,7 +275,9 @@ export default {
|
|
|
beginRefund,
|
|
|
refundRecord,
|
|
|
selectStaff,
|
|
|
- stockDetail
|
|
|
+ stockDetail,
|
|
|
+ costChange,
|
|
|
+ loanItem
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -306,6 +312,8 @@ export default {
|
|
|
],
|
|
|
optionData: {},
|
|
|
arrivalData:{},
|
|
|
+ costData:{},
|
|
|
+ loanData:{},
|
|
|
simpleData:{},
|
|
|
staffData:{title:'',changeType:'',obj:null},
|
|
|
orderData:'',
|
|
|
@@ -378,6 +386,12 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ searchFocus(){
|
|
|
+ let that = this
|
|
|
+ setTimeout(() => {
|
|
|
+ that.$refs.orderSearchRef.focus()
|
|
|
+ },1000)
|
|
|
+ },
|
|
|
getStaff(staff){
|
|
|
let that = this
|
|
|
if(this.staffData.changeType == 'changeSend'){
|
|
|
@@ -431,7 +445,19 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
getCostChange(info){
|
|
|
-
|
|
|
+ this.costData = {id:info.productId,name:info.name,direction:'rtl'}
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$refs.costChangeRef.init()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ openLoan(param,orderId){
|
|
|
+ this.$service.bookItemCustom.getInfo({orderId:orderId,productId:param.productId}).then(data=>{
|
|
|
+ let info = data.res
|
|
|
+ this.loanData = {customId:info.customId,customName:info.customName,id:info.id,itemName:info.name,itemId:info.itemId,direction:'rtl',orderId:orderId}
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$refs.loanItemRef.init()
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
addNewItem(data){
|
|
|
this.simpleData = data
|