|
@@ -99,202 +99,6 @@
|
|
|
<el-button v-if="data.status == '新建'" type="text" size="mini" @click="deleteOrderProduct(scope.data)">删 除</el-button>
|
|
|
</template>
|
|
|
</Table>
|
|
|
- <!-- <el-table
|
|
|
- ref="multipleTable"
|
|
|
- :data="tableData"
|
|
|
- height="500px"
|
|
|
- style="width: 100%;"
|
|
|
- max-height="410px"
|
|
|
- size="small"
|
|
|
- stripe
|
|
|
- border>
|
|
|
- <el-table-column
|
|
|
- type="selection"
|
|
|
- width="55"
|
|
|
- align="center">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="rowno"
|
|
|
- width="100px"
|
|
|
- label="订单行号"
|
|
|
- fixed>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="itemname"
|
|
|
- label="产品名称"
|
|
|
- fixed>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="itemno"
|
|
|
- fixed
|
|
|
- label="产品编码">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="erpitemno"
|
|
|
- label="品号"
|
|
|
- fixed>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="model"
|
|
|
- label="型号"
|
|
|
- fixed>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="规格"
|
|
|
- prop="spec">
|
|
|
- <template slot-scope="scope">
|
|
|
- <p><span>{{scope.row.spec}}</span></p>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="数量"
|
|
|
- width="180"
|
|
|
- prop="qty">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-input-number
|
|
|
- :controls="true" controls-position='right'
|
|
|
- :step-strictly="true" v-if="data.status === '新建'"
|
|
|
- size="mini" v-model="scope.row.qty" :min="scope.row.orderminqty" :step="scope.row.orderaddqty" label="输入数量" @change="qtyChange(scope.row,scope.$index)"></el-input-number>
|
|
|
- <span v-else>{{scope.row.qty}}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="marketprice"
|
|
|
- label="牌价"
|
|
|
- width="100">
|
|
|
- <template slot-scope="scope">
|
|
|
- <p>¥ {{tool.formatAmount(scope.row.marketprice,2)}}</p>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="defaultprice"
|
|
|
- label="折前价格"
|
|
|
- width="100">
|
|
|
- <template slot-scope="scope">
|
|
|
- <p>¥ {{tool.formatAmount(scope.row.defaultprice,2)}}</p>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="defaultamount"
|
|
|
- label="折前金额"
|
|
|
- width="100">
|
|
|
- <template slot-scope="scope">
|
|
|
- <p style="color:red;font-weight:500">¥ {{tool.formatAmount(scope.row.defaultprice * scope.row.qty,2)}}</p>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="折后单价"
|
|
|
- prop="price">
|
|
|
- <template slot-scope="scope">
|
|
|
- <p>¥ {{tool.formatAmount(scope.row.price,2)}}</p>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="折后金额"
|
|
|
- width="150"
|
|
|
- prop="amount">
|
|
|
- <template slot-scope="scope">
|
|
|
- <p style="color:red;font-weight:500">¥ {{tool.formatAmount(scope.row.amount,2)}}</p>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="需求日期"
|
|
|
- prop="needdate"
|
|
|
- width="200">
|
|
|
- <template slot="header" slot-scope="scope">
|
|
|
- <div>
|
|
|
- <el-date-picker
|
|
|
- style="width:180px"
|
|
|
- v-if="data.status === '新建'"
|
|
|
- v-model="value2"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- slot="reference"
|
|
|
- align="right"
|
|
|
- type="date"
|
|
|
- size="mini"
|
|
|
- placeholder="一键交期"
|
|
|
- @change="dateChange(scope.row)">
|
|
|
- </el-date-picker>
|
|
|
- <span v-else>需求日期</span>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-date-picker
|
|
|
- v-if="scope.row.delivery > 0 && data.status === '新建'"
|
|
|
- v-model="scope.row.needdate"
|
|
|
- type="date"
|
|
|
- placeholder="选择日期"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- size="mini"
|
|
|
- style="width:150px"
|
|
|
- :picker-options="pickerOptions"
|
|
|
- @change="onDateChange(scope.row)"
|
|
|
- @focus="setPickerOptions(scope.row)">
|
|
|
- </el-date-picker>
|
|
|
- <div v-else>
|
|
|
- <p v-if="scope.row.delivery === 0 ">不管控交期</p>
|
|
|
- <p v-else>{{scope.row.needdate}}</p>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="deliverydate"
|
|
|
- label="回复交期"
|
|
|
- width="120">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="unit"
|
|
|
- label="计量单位"
|
|
|
- width="90">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-tag size="mini" type="info" effect="plain">{{scope.row.unit}}</el-tag>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="undeliqty"
|
|
|
- label="未发货数量"
|
|
|
- width="100">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="stockstatus"
|
|
|
- label="库存状态"
|
|
|
- width="100">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="material"
|
|
|
- label="材质"
|
|
|
- width="100">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="prodline"
|
|
|
- label="产线"
|
|
|
- width="100">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="device"
|
|
|
- label="装置"
|
|
|
- width="100">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="specalnote"
|
|
|
- label="特殊说明"
|
|
|
- width="100">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="remarks"
|
|
|
- label="备注"
|
|
|
- width="300"
|
|
|
- fixed="right">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-input type="textarea" :disabled="data.status != '新建'" @blur="onConfirm([scope.row],true,true)" size="small" v-model="scope.row.remarks" placeholder="请输入备注"></el-input>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column v-if="data.status === '新建'" width="90" fixed="right">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button type="text" size="mini" @click="deleteOrderProduct(scope.row)">删 除</el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table> -->
|
|
|
<div style="margin-top:16px;text-align:right">
|
|
|
<el-pagination
|
|
|
background
|