|
@@ -152,12 +152,12 @@
|
|
|
</ex-table>
|
|
|
<no-auth v-else></no-auth>
|
|
|
<!-- 弹窗 新增/修改 -->
|
|
|
- <add-edit
|
|
|
+ <!-- <add-edit
|
|
|
:id="modelId"
|
|
|
:show-model="showModel"
|
|
|
@refresh="searchList"
|
|
|
@cancel="showModel = false"
|
|
|
- />
|
|
|
+ /> -->
|
|
|
<!-- 库存修改记录 -->
|
|
|
<edit-record
|
|
|
:id="modelId"
|
|
@@ -212,6 +212,7 @@ export default {
|
|
|
input: "",
|
|
|
loading: true,
|
|
|
showModel: false,
|
|
|
+ showRecordModel:false,
|
|
|
modelId: 0,
|
|
|
parmValue: {
|
|
|
username: "", // 账户名
|
|
@@ -321,11 +322,12 @@ export default {
|
|
|
// 新建/编辑/详情
|
|
|
openModal(id, isDetail) {
|
|
|
this.modelId = id;
|
|
|
- if (isDetail == true) {
|
|
|
- this.showModel = true;
|
|
|
- } else {
|
|
|
- this.showRecordModel = true;
|
|
|
- }
|
|
|
+ this.showRecordModel = true;
|
|
|
+ // if (isDetail == true) {
|
|
|
+ // this.showModel = true;
|
|
|
+ // } else {
|
|
|
+ // this.showRecordModel = true;
|
|
|
+ // }
|
|
|
},
|
|
|
|
|
|
async numReturned(e) {
|
|
@@ -341,9 +343,8 @@ export default {
|
|
|
const res = await asyncRequest.list(this.parmValue);
|
|
|
if (res && res.code === 0 && res.data) {
|
|
|
this.tableData = res.data.list;
|
|
|
- this.tableData.forEach(v1 => {
|
|
|
- v1.stock_balance+="kg"
|
|
|
-
|
|
|
+ this.tableData.forEach((v1) => {
|
|
|
+ v1.stock_balance += "kg";
|
|
|
});
|
|
|
this.pageInfo.total = Number(res.data.count);
|
|
|
} else if (res && res.code >= 100 && res.code <= 104) {
|