|
@@ -93,12 +93,14 @@
|
|
|
</template>
|
|
|
<template slot="goodsNumForm" slot-scope="{ row }">
|
|
|
<el-input-number v-if="row.$cellEdit" size="small" v-model="row.goodsNum"
|
|
|
+ type="number" :min="1" :max="99999"
|
|
|
:controls="false" :precision="numberDecimal" style="width: 100%"
|
|
|
@change="moneyChange(row)"></el-input-number>
|
|
|
<span v-else>{{ row.goodsNum }}</span>
|
|
|
</template>
|
|
|
<template slot="price" slot-scope="{ row }">
|
|
|
<el-input v-if="row.$cellEdit" size="small" v-model="row.price" style="width: 100%"
|
|
|
+ type="number" :controls="false"
|
|
|
@change="moneyChange(row)"></el-input>
|
|
|
<span v-else>{{ row.price }}</span>
|
|
|
</template>
|
|
@@ -152,12 +154,13 @@
|
|
|
</template>
|
|
|
<tempalte slot="costPriceForm" slot-scope="{ row }">
|
|
|
<el-input-number v-if="row.$cellEdit" v-model="row.costPrice" @change="countChange(row)"
|
|
|
- :controls="false" placeholder="请输入 单价" size="small"
|
|
|
+ type="number" :controls="false" placeholder="请输入 单价" size="small"
|
|
|
style="width: 100%;"></el-input-number>
|
|
|
<span v-else>{{ row.costPrice }}</span>
|
|
|
</tempalte>
|
|
|
<tempalte slot="goodsNumForm" slot-scope="{ row }">
|
|
|
<el-input-number v-if="row.$cellEdit" v-model="row.goodsNum" @change="countChange(row)"
|
|
|
+ type="number" :min="1" :max="99999"
|
|
|
:controls="false" placeholder="请输入 数量" size="small"
|
|
|
style="width: 100%;"></el-input-number>
|
|
|
<span v-else>{{ row.goodsNum }}</span>
|
|
@@ -465,7 +468,7 @@ export default {
|
|
|
prop: "businesDate",
|
|
|
searchProp: "businesDateList",
|
|
|
disabled: false,
|
|
|
- type: "datetime",
|
|
|
+ type: "date",
|
|
|
value: dateFormat(new Date(), 'yyyy-MM-dd'),
|
|
|
format: "yyyy-MM-dd",
|
|
|
valueFormat: "yyyy-MM-dd",
|
|
@@ -1109,6 +1112,7 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
+ this.excelBox = false
|
|
|
} else {
|
|
|
this.$message.error(res)
|
|
|
}
|
|
@@ -1139,8 +1143,8 @@ export default {
|
|
|
this.findObject(this.excelOption.column, "excelFile").action = '/api/blade-sales-part/order/import-item-name'
|
|
|
this.templateUrl = '/api/blade-sales-part/order/export-item-name'
|
|
|
} else if (name == 'code') {
|
|
|
- this.findObject(this.excelOption.column, "excelFile").action = '/api/blade-sales-part/order/import-item-code'
|
|
|
- this.templateUrl = '/api/blade-sales-part/tire/center/warehouse/stockDesc/export-item-code'
|
|
|
+ this.findObject(this.excelOption.column, "excelFile").action = '/api/blade-sales-part/tire/center/warehouse/plan/import-item-code?storageId=' + this.form.storageId
|
|
|
+ this.templateUrl = '/api/blade-sales-part/tire/center/warehouse/plan/export-item-code?storageId=' + this.form.storageId
|
|
|
}
|
|
|
this.excelBox = true
|
|
|
},
|
|
@@ -1214,7 +1218,7 @@ export default {
|
|
|
background: 'rgba(255,255,255,0.7)'
|
|
|
});
|
|
|
submit(obj).then(res => {
|
|
|
- this.$message.success("提交成功");
|
|
|
+ this.$message.success(type === 1 ? "提交成功" : "保存成功");
|
|
|
this.getDetail(res.data.data)
|
|
|
}).finally(() => {
|
|
|
loading.close();
|