|
@@ -33,7 +33,8 @@
|
|
|
|
|
|
<template slot="billingType" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="billingType" class='sonItem'>
|
|
|
- <a-select v-model="record.billingType" style='width:100%' >
|
|
|
+ <span v-if="title=='订单操作'">{{ record.billingType }}</span>
|
|
|
+ <a-select v-model="record.billingType" style='width:100%' v-else>
|
|
|
<a-select-option value='铝合金门窗'> 铝合金门窗</a-select-option>
|
|
|
<a-select-option value='双开窗'> 双开窗</a-select-option>
|
|
|
</a-select>
|
|
@@ -41,27 +42,26 @@
|
|
|
</template>
|
|
|
<template slot="batch" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="batch" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.batch" ></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.batch }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.batch" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="inventoryCode" slot-scope="text, record, index">
|
|
|
<a-form-model-item :prop="'dataSource.'+index+'.inventoryCode'" class='sonItem' :rules="rules.inventoryCode">
|
|
|
- <a-input-search placeholder="请输入" v-model="record.inventoryCode" @search="onSearchInven(record)" readOnly></a-input-search>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.inventoryCode }}</span>
|
|
|
+ <a-input-search placeholder="请输入" v-model="record.inventoryCode" @search="onSearchInven(record)" readOnly v-else></a-input-search>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
- <template slot="batch" slot-scope="text, record, index">
|
|
|
- <a-form-model-item prop="batch" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.batch" ></a-input>
|
|
|
- </a-form-model-item>
|
|
|
- </template>
|
|
|
<template slot="quantity" slot-scope="text, record, index">
|
|
|
<a-form-model-item :prop="'dataSource.'+index+'.quantity'" class='sonItem' :rules="rules.quantity">
|
|
|
- <a-input placeholder="请输入" v-model="record.quantity" @change="changeQuantity(record)"></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.quantity }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.quantity" @change="changeQuantity(record)" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="unQuantity" slot-scope="text, record, index">
|
|
|
<a-form-model-item :prop="'dataSource.'+index+'.unQuantity'" class='sonItem' :rules="rules.unQuantity">
|
|
|
- <a-input placeholder="请输入" v-model="record.unQuantity" @change="changeUnQuantity(record)"></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.unQuantity }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.unQuantity" @change="changeUnQuantity(record)" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="quantityExecuteIn" slot-scope="text, record, index">
|
|
@@ -72,142 +72,170 @@
|
|
|
</template>
|
|
|
<template slot="framesCount" slot-scope="text, record, index">
|
|
|
<a-form-model-item :prop="'dataSource.'+index+'.framesCount'" class='sonItem' :rules="rules.framesCount">
|
|
|
- <a-input placeholder="请输入" v-model="record.framesCount"></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.framesCount }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.framesCount" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="leafCount" slot-scope="text, record, index">
|
|
|
<a-form-model-item :prop="'dataSource.'+index+'.leafCount'" class='sonItem' :rules="rules.leafCount">
|
|
|
- <a-input placeholder="请输入" v-model="record.leafCount"></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.leafCount }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.leafCount" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="executeInLeaf" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="executeInLeaf" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.executeInLeaf"></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.executeInLeaf }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.executeInLeaf" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="executeInFrames" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="executeInFrames" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.executeInFrames"></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.executeInFrames }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.executeInFrames" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="executeOutLeaf" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="executeOutLeaf" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.executeOutLeaf"></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.executeOutLeaf }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.executeOutLeaf" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="executeOutFrames" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="executeOutFrames" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.executeOutFrames"></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.executeOutFrames }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.executeOutFrames" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="model" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="model" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.model" ></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.model }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.model" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="color" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="color" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.color" ></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.color }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.color" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="fixedNum" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="fixedNum" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.fixedNum" ></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.fixedNum }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.fixedNum" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="fixedLength" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="fixedLength" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.fixedLength" ></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.fixedLength }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.fixedLength" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="widthHeight" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="widthHeight" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.widthHeight"></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.widthHeight }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.widthHeight" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="pieces" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="pieces" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.pieces" ></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.pieces }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.pieces" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="remarks" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="remarks" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.remarks" ></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.remarks }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.remarks" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="meterWeight" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="meterWeight" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.meterWeight" ></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.meterWeight }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.meterWeight" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="decorationLength" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="decorationLength" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.decorationLength" ></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.decorationLength }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.decorationLength" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="windowNo" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="windowNo" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.windowNo"></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.windowNo }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.windowNo" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="exclusiveZone" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="exclusiveZone" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.exclusiveZone"></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.exclusiveZone }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.exclusiveZone" v-esle></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="widthLength" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="widthLength" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.widthLength" ></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.widthLength }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.widthLength" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="height" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="height" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.height" ></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.height }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.height" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="buildingNumber" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="buildingNumber" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.buildingNumber" ></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.buildingNumber }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.buildingNumber" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="framesTang" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="framesTang" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.framesTang" ></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.framesTang }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.framesTang" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="semiClass" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="semiClass" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.semiClass"></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.semiClass }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.semiClass" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="area" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="area" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.area" ></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.area }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.area" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="cuttingLength" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="cuttingLength" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.cuttingLength" ></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.cuttingLength }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.cuttingLength" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="cuttingLeftDown" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="cuttingLeftDown" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.cuttingLeftDown"></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.cuttingLeftDown }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.cuttingLeftDown" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="cuttingRightTop" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="cuttingRightTop" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.cuttingRightTop"></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.cuttingRightTop }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.cuttingRightTop" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="series" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="series" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.series" ></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.series }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.series" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="glassNumber" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="glassNumber" class='sonItem'>
|
|
|
- <a-input placeholder="请输入" v-model="record.glassNumber"></a-input>
|
|
|
+ <span v-if="title=='订单操作'">{{ record.glassNumber }}</span>
|
|
|
+ <a-input placeholder="请输入" v-model="record.glassNumber" v-else></a-input>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
</a-table>
|
|
@@ -555,8 +583,11 @@
|
|
|
},
|
|
|
}
|
|
|
},
|
|
|
- props: {
|
|
|
-
|
|
|
+ props:{
|
|
|
+ title: {
|
|
|
+ type: String,
|
|
|
+ default:''
|
|
|
+ },
|
|
|
},
|
|
|
|
|
|
created() {},
|