|
@@ -143,14 +143,14 @@
|
|
|
placeholder="请输入库存"
|
|
|
/>
|
|
|
</FormItem>
|
|
|
- <FormItem label="单价(元)" v-show="isShowInfoPrice" prop="price">
|
|
|
+ <!-- <FormItem label="单价(元)" v-show="isShowInfoPrice" prop="price">
|
|
|
<Input
|
|
|
type="number"
|
|
|
:disabled="type == 3 ? true : false"
|
|
|
v-model="info.price"
|
|
|
placeholder="请输入金额"
|
|
|
/>
|
|
|
- </FormItem>
|
|
|
+ </FormItem> -->
|
|
|
</Form>
|
|
|
<div class="page-edit" v-show="isShowDetail" style="padding-bottom:100px;">
|
|
|
<div class="items" v-for="(rows, key) in info.detail" :key="key">
|
|
@@ -210,14 +210,14 @@
|
|
|
placeholder="请输入库存"
|
|
|
/>
|
|
|
</FormItem>
|
|
|
- <FormItem label="单价(元)" prop="price">
|
|
|
+ <!-- <FormItem label="单价(元)" prop="price">
|
|
|
<Input
|
|
|
type="number"
|
|
|
:disabled="type == 3 ? true : false"
|
|
|
v-model="rows.price"
|
|
|
placeholder="请输入金额"
|
|
|
/>
|
|
|
- </FormItem>
|
|
|
+ </FormItem> -->
|
|
|
|
|
|
<FormItem label="操作" v-if="isShowDetailBtn">
|
|
|
<div
|
|
@@ -272,7 +272,7 @@ export default {
|
|
|
{
|
|
|
long: "",
|
|
|
width: "",
|
|
|
- price: "",
|
|
|
+ // price: "",
|
|
|
stock: "",
|
|
|
warning_number: "",
|
|
|
scale: "",
|
|
@@ -287,7 +287,7 @@ export default {
|
|
|
],
|
|
|
showKey: false,
|
|
|
itemRules: {
|
|
|
- price: [{ required: true, message: " " }],
|
|
|
+ // price: [{ required: true, message: " " }],
|
|
|
long: [{ required: true, message: " ", trigger: "blur" }],
|
|
|
width: [{ required: true, message: " ", trigger: "blur" }],
|
|
|
stock: [{ required: true, message: " " }],
|
|
@@ -426,7 +426,7 @@ export default {
|
|
|
{
|
|
|
long: "",
|
|
|
width: "",
|
|
|
- price: "",
|
|
|
+ // price: "",
|
|
|
stock: "",
|
|
|
warning_number: "",
|
|
|
scale: "",
|
|
@@ -440,8 +440,8 @@ export default {
|
|
|
this.info.op = type == 1 || type == 4 ? "add" : "edit";
|
|
|
[2, 4, 5, 6].includes(this.basic_type_id) &&
|
|
|
((this.info.detail[0].top_number = this.info.top_number),
|
|
|
- (this.info.detail[0].warning_number = this.info.warning_number),
|
|
|
- (this.info.detail[0].price = this.info.price));
|
|
|
+ (this.info.detail[0].warning_number = this.info.warning_number));
|
|
|
+ // (this.info.detail[0].price = this.info.price));
|
|
|
type == 4 ? (this.info.id = "") : "";
|
|
|
this.axios.post("/api/material", this.info).then((res) => {
|
|
|
console.log(this.info)
|
|
@@ -478,7 +478,7 @@ export default {
|
|
|
row.push({
|
|
|
long: "",
|
|
|
width: "",
|
|
|
- price: "",
|
|
|
+ // price: "",
|
|
|
stock: "",
|
|
|
warning_number: "",
|
|
|
scale: "",
|