Browse Source

完善维修出库

master
guoxing 10 months ago
parent
commit
154bbf3725
  1. 50
      yxt-as-ui/src/views/maintenance/maintenanceOutbound/index.vue

50
yxt-as-ui/src/views/maintenance/maintenanceOutbound/index.vue

@ -189,22 +189,23 @@
<div>
<el-table :data="commodityData" v-loading="commodityLoading" highlight-current-row
@current-change="commodityCurrentChange($event, scope.row)">
<el-table-column fixed prop="goodsID" label="商品ID" width="150"align="center" />
<el-table-column fixed prop="goodsID" label="商品ID" width="150" align="center" />
<el-table-column fixed prop="goodsSpuName" label="商品名称" width="180" align="center" />
<el-table-column fixed prop="goodsSkuCode" label="商品图号" width="100"align="center" />
<el-table-column fixed prop="goodsSkuCode" label="商品图号" width="100" align="center" />
<el-table-column prop="goodsSkuOwnSpec" label="规格" width="100" align="center" />
<el-table-column prop="unit" label="单位" align="center" />
<el-table-column prop="warehouseName" label="仓库" width="150"align="center" />
<el-table-column prop="warehouseRackCode" label="库位"width="100" align="center" />
<el-table-column prop="money" label="入库单价" width="100"align="center" />
<el-table-column prop="count" label="库存数量"width="100" align="center" />
<el-table-column prop="supplierName" label="供应商"width="200" align="center" />
<el-table-column prop="warehouseName" label="仓库" width="150" align="center" />
<el-table-column prop="warehouseRackCode" label="库位" width="100" align="center" />
<el-table-column prop="money" label="入库单价" width="100" align="center" />
<el-table-column prop="count" label="库存数量" width="100" align="center" />
<el-table-column prop="supplierName" label="供应商" width="200" align="center" />
</el-table>
<pagination v-show="commodityData.length > 0" :total="commodityQuery.total" :page.sync="commodityQuery.current"
:limit.sync="commodityQuery.size" class="total pager" @pagination="commodityInput(scope.row)" />
<pagination v-show="commodityData.length > 0" :total="commodityQuery.total"
:page.sync="commodityQuery.current" :limit.sync="commodityQuery.size" class="total pager"
@pagination="commodityInput(scope.row)" />
<!-- <el-pagination :page.sync="commodityQuery.current" :page-size="commodityQuery.size"
<!-- <el-pagination :page.sync="commodityQuery.current" :page-size="commodityQuery.size"
layout="total, pager" :total="commodityQuery.total" /> -->
</div>
<el-input slot="reference" v-model="scope.row.goodsSpuName" @input="commodityInput(scope.row)"
@ -346,16 +347,6 @@
methods: {
initData() {
getOrgSidByPath({
orgPath: window.sessionStorage.getItem('defaultOrgPath')
}).then((res) => {
if (res.success) {
this.formobj.createOrgSid = res.data
this.formobj.useOrgSid = res.data
// this.commodityQuery.params.useOrgSid = res.data
}
})
selAllByOrgSidPath({
orgSidPath: window.sessionStorage.getItem('defaultOrgPath')
}).then((res) => {
@ -390,6 +381,16 @@
this.formobj.createByName = window.sessionStorage.getItem('name')
this.formobj.createTime = getCurrentDate()
getOrgSidByPath({
orgPath: window.sessionStorage.getItem('defaultOrgPath')
}).then((res) => {
if (res.success) {
this.formobj.createOrgSid = res.data
this.formobj.useOrgSid = res.data
// this.commodityQuery.params.useOrgSid = res.data
}
})
} else {
// resp.code
}
@ -511,8 +512,9 @@
console.log("commodityInput》》》》", row)
this.commodityQuery.params.name = row.goodsSpuName
this.commodityQuery.params.busrepairBillsid = row.sourceBillSid
this.commodityQuery.params.useOrgSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage
.getItem('defaultOrgPath').lastIndexOf('/') + 1)
this.commodityQuery.params.useOrgSid = window.sessionStorage.getItem('defaultOrgPath').substring(window
.sessionStorage
.getItem('defaultOrgPath').lastIndexOf('/') + 1)
this.commodityLoading = true
req.getGoodsListPage(this.commodityQuery).then((response) => {
if (response.success) {
@ -544,7 +546,7 @@
row.warehouseRackSid = value.warehouseRackSid
row.warehouseRackCode = value.warehouseRackCode
row.outboundCount = value.outboundCount
row.count =0
row.count = 0
row.amount = 0.00
row.price = value.price
row.remarks = ''
@ -556,7 +558,7 @@
var goods = {
"sourceBillNo": this.formobj.sourceBillNo,
"sourceBillSid": this.formobj.sourceBillSid,
"sourceBillSid": this.formobj.sourceBillSid,
"sitemSid": row.serviceItemSid,
'serviceItem': row.serviceItem,
"inventorySid": "",

Loading…
Cancel
Save