Authored by 李奇

fixed:超时不禁用

... ... @@ -2,8 +2,7 @@
<div class="cell-deliver">
<p class="row">
发货<span class="num">
<Input v-if="rowDisabled" v-model="deliver" placeholder="数量" disabled></Input>
<Input v-else v-model="deliver" placeholder="数量"></Input>
<Input v-model="deliver" placeholder="数量"></Input>
</span>
</p>
<p class="row">已发数:{{shipNum}}</p>
... ... @@ -14,9 +13,6 @@
export default {
name: 'CellDeliver',
props: {
rowDisabled: {
type: Boolean
},
rowIndex: {
type: Number
},
... ...
... ... @@ -2,14 +2,12 @@
<div class="cell-stock-out">
<p class="row">
缺货<span class="num">
<Input v-if="rowDisabled" placeholder="数量" disabled></Input>
<Input v-else v-model="uploadNum" placeholder="数量"></Input>
<Input v-model="uploadNum" placeholder="数量"></Input>
</span>
</p>
<p class="row" :class="{highlight: lackNum > 0}">缺货数:{{lackNum}}</p>
<p class="row">
<Button v-if="rowDisabled" type="error" @click="showModal" disabled>上传确认缺货</Button>
<Button v-else type="error" @click="showModal">上传确认缺货</Button>
<Button type="error" @click="showModal">上传确认缺货</Button>
</p>
</div>
</template>
... ... @@ -18,9 +16,6 @@
export default {
name: 'CellStockOut',
props: {
rowDisabled: {
type: Boolean
},
rowIndex: {
type: [String, Number]
},
... ...
... ... @@ -123,7 +123,6 @@ export default () => {
render(row, column, i) {
return `<cell-deliver
:row-index="${i}"
:row-disabled="${row._disabled}"
:ship-num="row.shipmentsNums"
@deliver-change="deliverChange">
</cell-deliver>`;
... ... @@ -136,7 +135,6 @@ export default () => {
render(row, column, index) {
return `<cell-stock-out
:row-index="${index}"
:row-disabled="${row._disabled}"
:lack-num="row.lackNum"
@lack-num-change="lackNumChange"
@click-upload="showUploadModal(${index})"
... ...
... ... @@ -176,7 +176,6 @@
_.each(list, (v, i) => {
v._rowIndex = i; // 当前行index
v._disabled = v.isOvertime === 'Y';
v._colorName = v.factoryGoodsName || '';
v.createTime = moment.unix(v.createTime).format(fmt);
v._needDeliver = v.buyingNums - v.lackNum - v.shipmentsNums; // 当前需发数
... ...