|
|
@@ -19,11 +19,13 @@
|
|
|
<el-button v-if="form.statusName == '待确认'" class="el-button--small-yh" style="margin-left: 6px;" type="danger"
|
|
|
size="small" :disabled="!form.id || editButton" @click="revokePicking">撤销领料
|
|
|
</el-button>
|
|
|
- <el-button v-if="form.statusName == '待确认'&&(roleName=='admin'||roleName=='库管')" class="el-button--small-yh" style="margin-left: 6px;" type="success"
|
|
|
- size="small" :disabled="!form.id || editButton" @click="confirm">确 认
|
|
|
+ <el-button v-if="form.statusName == '待确认' && (roleName.indexOf('admin') != -1 || roleName.indexOf('库管') != -1)"
|
|
|
+ class="el-button--small-yh" style="margin-left: 6px;" type="success" size="small"
|
|
|
+ :disabled="!form.id || editButton" @click="confirm">确 认
|
|
|
</el-button>
|
|
|
- <el-button v-if="form.statusName == '已确认'&&(roleName=='admin'||roleName=='库管')" class="el-button--small-yh" style="margin-left: 6px;" type="danger"
|
|
|
- size="small" :disabled="!form.id || editButton" @click="revokeConfirm">撤销确认
|
|
|
+ <el-button v-if="form.statusName == '已确认' && (roleName.indexOf('admin') != -1 || roleName.indexOf('库管') != -1)"
|
|
|
+ class="el-button--small-yh" style="margin-left: 6px;" type="danger" size="small"
|
|
|
+ :disabled="!form.id || editButton" @click="revokeConfirm">撤销确认
|
|
|
</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -54,11 +56,12 @@
|
|
|
<el-button type="primary" icon="el-icon-plus" size="small"
|
|
|
:disabled="editButton || form.statusName == '待确认' || form.statusName == '已确认'"
|
|
|
@click="rowAdd(row, 1)">添加商品</el-button>
|
|
|
- <el-popover placement="top" width="400" trigger="click" @show="inventoryShow2()">
|
|
|
- <avue-crud :data="inventoryList" :option="inventoryOption">
|
|
|
+ <el-popover placement="top" width="400" trigger="click">
|
|
|
+ <avue-crud :data="inventoryData" :option="inventoryOption">
|
|
|
</avue-crud>
|
|
|
<el-button slot="reference" type="primary" plain size="small"
|
|
|
- :disabled="selectionMultilist.length != 1 || form.businessSource == '外部销售'">查看库存</el-button>
|
|
|
+ :disabled="selectionMultilist.length != 1 || form.businessSource == '外部销售'"
|
|
|
+ @click="viewInventory">查看库存</el-button>
|
|
|
</el-popover>
|
|
|
<!-- <el-button type="primary" icon="el-icon-printer" size="small" @click="handlePrint">打印</el-button> -->
|
|
|
<el-button type="danger" plain size="small" @click="batchDelete"
|
|
|
@@ -191,6 +194,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
roleName: localStorage.getItem("roleName"),
|
|
|
+ inventoryData: [],
|
|
|
inventoryData2: [],
|
|
|
sharedCompany: null,
|
|
|
distributeVisible: false,
|
|
|
@@ -202,19 +206,18 @@ export default {
|
|
|
align: 'center',
|
|
|
column: [
|
|
|
{
|
|
|
- label: '来源公司',
|
|
|
- prop: 'srcSalesCompanyName',
|
|
|
+ label: '仓库',
|
|
|
+ prop: 'storageName',
|
|
|
overHidden: true,
|
|
|
-
|
|
|
},
|
|
|
{
|
|
|
label: '商品名称',
|
|
|
- prop: 'goodsName',
|
|
|
+ prop: 'cname',
|
|
|
overHidden: true,
|
|
|
- },
|
|
|
+ },
|
|
|
{
|
|
|
label: '库存数量',
|
|
|
- prop: 'inventory',
|
|
|
+ prop: 'balanceQuantity',
|
|
|
overHidden: true,
|
|
|
}
|
|
|
]
|
|
|
@@ -499,12 +502,11 @@ export default {
|
|
|
{
|
|
|
label: '业务日期',
|
|
|
prop: "businesDate",
|
|
|
- searchProp: "businesDateList",
|
|
|
disabled: false,
|
|
|
- type: "datetime",
|
|
|
- value: dateFormat(new Date(), 'yyyy-MM-dd hh:mm:ss'),
|
|
|
- format: "yyyy-MM-dd HH:mm",
|
|
|
- valueFormat: "yyyy-MM-dd HH:mm:ss",
|
|
|
+ type: "date",
|
|
|
+ value: dateFormat(new Date(), 'yyyy-MM-dd'),
|
|
|
+ format: "yyyy-MM-dd",
|
|
|
+ valueFormat: "yyyy-MM-dd",
|
|
|
rules: [
|
|
|
{
|
|
|
required: true,
|
|
|
@@ -845,10 +847,15 @@ export default {
|
|
|
removeStagList(row, index, type) {
|
|
|
this.goodsListSave.splice(row.$index, 1)
|
|
|
},
|
|
|
+ viewInventory() {
|
|
|
+ inventoryList({ cname: this.selectionMultilist[0].goodsName }).then(res => {
|
|
|
+ this.inventoryData = res.data.data.records
|
|
|
+ })
|
|
|
+ },
|
|
|
viewInventory2() {
|
|
|
- inventoryList({ cname: this.selectionMultilist[0].goodsName }).then(res => [
|
|
|
+ inventoryList({ cname: this.selectionMultilist[0].goodsName }).then(res => {
|
|
|
this.inventoryData2 = res.data.data.records
|
|
|
- ])
|
|
|
+ })
|
|
|
},
|
|
|
synchronous(row) {
|
|
|
this.form.shipItemsList.forEach(e => {
|