Commit 2044cd35 authored by jingnan's avatar jingnan 👀

废品通知单修改

parent 03d00146
......@@ -80,7 +80,7 @@
</td>
<td class="input">
<el-form-item prop="quota">
<el-input v-model="form.quota" clearable type="Number" min="0" placeholder="请输入" />
<el-input v-model="form.quota" :disabled="basicData.isOnlyRead" clearable type="Number" min="0" placeholder="请输入" />
<!-- :disabled="costEstimator || (disabled && !costEstimator)" -->
</el-form-item>
</td>
......@@ -91,7 +91,7 @@
</td>
<td class="input">
<el-form-item prop="consumeCount">
<el-input v-model="form.consumeCount" clearable type="Number" min="0" placeholder="请输入" />
<el-input v-model="form.consumeCount" :disabled="basicData.isOnlyRead" clearable type="Number" min="0" placeholder="请输入" />
<!-- :disabled="costEstimator || (disabled && !costEstimator)" -->
</el-form-item>
</td>
......@@ -102,7 +102,7 @@
</td>
<td class="input">
<el-form-item prop="price">
<el-input v-model="form.price" clearable type="Number" min="0" placeholder="请输入" />
<el-input v-model="form.price" :disabled="basicData.isOnlyRead" clearable type="Number" min="0" placeholder="请输入" />
<!-- :disabled="costEstimator || (disabled && !costEstimator)" -->
</el-form-item>
</td>
......@@ -125,7 +125,7 @@
</td>
<td class="input">
<el-form-item prop="subMaterialLossValue">
<el-input v-model="form.subMaterialLossValue" clearable placeholder="请输入" type="Number" min="0" />
<el-input v-model="form.subMaterialLossValue" :disabled="basicData.isOnlyRead" clearable placeholder="请输入" type="Number" min="0" />
<!-- :disabled="costEstimator || (disabled && !costEstimator)" -->
</el-form-item>
</td>
......@@ -136,7 +136,7 @@
</td>
<td class="input">
<el-form-item prop="totalLossValue">
<el-input v-model="form.totalLossValue" clearable type="Number" min="0" placeholder="请输入" />
<el-input v-model="form.totalLossValue" :disabled="basicData.isOnlyRead" clearable type="Number" min="0" placeholder="请输入" />
<!-- :disabled="costEstimator || (disabled && !costEstimator)" -->
</el-form-item>
</td>
......@@ -151,7 +151,7 @@
v-model="form.disassemblyDate"
clearable
type="Number"
:disabled="technologist || (disabled && !technologist)"
:disabled="technologist || (disabled && !technologist)||basicData.isOnlyRead"
min="0"
placeholder="请输入"
/>
......@@ -164,14 +164,14 @@
<el-form-item prop="clsign">
<label for="">材料定额员:</label>
<el-input v-model="form.clsign" clearable :disabled="Activity_1dnbmb6" class="material-quota-officer" />
<el-input v-model="form.clsign" clearable :disabled="Activity_1dnbmb6||basicData.isOnlyRead" class="material-quota-officer" />
<!-- <span class="material-quota-officer" contenteditable="true" /> -->
</el-form-item>
</div>
<div>
<el-form-item prop="gysign">
<label for="">工艺员:</label>
<el-input v-model="form.gysign" clearable :disabled="Activity_1dnbmb6" class="technologists" />
<el-input v-model="form.gysign" clearable :disabled="Activity_1dnbmb6||basicData.isOnlyRead" class="technologists" />
<!-- <span class="technologist" contenteditable="true" /> -->
</el-form-item>
</div>
......@@ -180,7 +180,7 @@
</tbody>
</table>
</el-form>
<div class="table-btn">
<div v-if="!basicData.isOnlyRead" class="table-btn">
<el-button type="primary" size="small" :disabled="disab" @click="save">确定</el-button>
<el-button size="small" :disabled="disab" @click="handleClose">取消</el-button>
</div>
......
......@@ -24,7 +24,7 @@
<el-input
v-model="form.materialCount"
clearable
:disabled="costEstimator || (disabled && !costEstimator)"
:disabled="costEstimator || (disabled && !costEstimator)||basicData.isOnlyRead"
min="0"
type="Number"
placeholder="请输入"
......@@ -37,7 +37,7 @@
<el-input
v-model="form.materialCost"
clearable
:disabled="costEstimator || (disabled && !costEstimator)"
:disabled="costEstimator || (disabled && !costEstimator)||basicData.isOnlyRead"
min="0"
type="Number"
placeholder="请输入"
......@@ -65,7 +65,7 @@
<el-input
v-model="form.curOpCostPCount"
clearable
:disabled="costEstimator || (disabled && !costEstimator)"
:disabled="costEstimator || (disabled && !costEstimator)||basicData.isOnlyRead"
min="0"
type="Number"
placeholder="请输入"
......@@ -78,7 +78,7 @@
<el-input
v-model="form.curOpCostP"
clearable
:disabled="costEstimator || (disabled && !costEstimator)"
:disabled="costEstimator || (disabled && !costEstimator)||basicData.isOnlyRead"
min="0"
type="Number"
placeholder="请输入"
......@@ -98,7 +98,7 @@
<el-input
v-model="form.curOpCostMCount"
clearable
:disabled="costEstimator || (disabled && !costEstimator)"
:disabled="costEstimator || (disabled && !costEstimator)||basicData.isOnlyRead"
min="0"
type="Number"
placeholder="请输入"
......@@ -111,7 +111,7 @@
<el-input
v-model="form.curOpCostM"
clearable
:disabled="costEstimator || (disabled && !costEstimator)"
:disabled="costEstimator || (disabled && !costEstimator)||basicData.isOnlyRead"
min="0"
type="Number"
placeholder="请输入"
......@@ -139,7 +139,7 @@
<el-input
v-model="form.perOpCostPCount"
clearable
:disabled="costEstimator || (disabled && !costEstimator)"
:disabled="costEstimator || (disabled && !costEstimator)||basicData.isOnlyRead"
min="0"
type="Number"
placeholder="请输入"
......@@ -152,7 +152,7 @@
<el-input
v-model="form.perOpCostP"
clearable
:disabled="costEstimator || (disabled && !costEstimator)"
:disabled="costEstimator || (disabled && !costEstimator)||basicData.isOnlyRead"
min="0"
type="Number"
placeholder="请输入"
......@@ -172,7 +172,7 @@
<el-input
v-model="form.perOpCostMCount"
clearable
:disabled="costEstimator || (disabled && !costEstimator)"
:disabled="costEstimator || (disabled && !costEstimator)||basicData.isOnlyRead"
min="0"
type="Number"
placeholder="请输入"
......@@ -185,7 +185,7 @@
<el-input
v-model="form.perOpCostM"
clearable
:disabled="costEstimator || (disabled && !costEstimator)"
:disabled="costEstimator || (disabled && !costEstimator)||basicData.isOnlyRead"
min="0"
type="Number"
placeholder="请输入"
......@@ -217,6 +217,7 @@
min="0"
type="Number"
placeholder="请输入"
:disabled="basicData.isOnlyRead"
@input="outCount"
/>
</el-form-item>
......@@ -229,6 +230,7 @@
min="0"
type="Number"
placeholder="请输入"
:disabled="basicData.isOnlyRead"
@input="outPrice"
/>
</el-form-item>
......@@ -249,6 +251,7 @@
min="0"
type="Number"
placeholder="请输入"
:disabled="basicData.isOnlyRead"
@input="outCount"
/>
</el-form-item>
......@@ -260,6 +263,7 @@
clearable
min="0"
type="Number"
:disabled="basicData.isOnlyRead"
placeholder="请输入"
@input="outPrice"
/>
......@@ -279,6 +283,7 @@
clearable
min="0"
type="Number"
:disabled="basicData.isOnlyRead"
placeholder="请输入"
@input="outCount"
/>
......@@ -291,6 +296,7 @@
clearable
min="0"
type="Number"
:disabled="basicData.isOnlyRead"
placeholder="请输入"
@input="outPrice"
/>
......@@ -326,7 +332,7 @@
<el-input
v-model="form.scrapValue"
clearable
:disabled="costEstimator || (disabled && !costEstimator)"
:disabled="costEstimator || (disabled && !costEstimator)||basicData.isOnlyRead"
min="0"
type="Number"
placeholder="请输入"
......@@ -350,7 +356,7 @@
<el-input
v-model="form.netLoss"
clearable
:disabled="costEstimator || (disabled && !costEstimator)"
:disabled="costEstimator || (disabled && !costEstimator)||basicData.isOnlyRead"
min="0"
type="Number"
placeholder="请输入"
......@@ -369,28 +375,28 @@
<td colspan="2">
<p>合计:{{ form.materialF }}</p>
<p class="input">
签字:<el-input clearable placeholder="请输入名字" />
签字:<el-input :disabled="basicData.isOnlyRead" clearable placeholder="请输入名字" />
</p>
<p class="input">
日期:<el-input clearable placeholder="请输入日期" />
日期:<el-input :disabled="basicData.isOnlyRead" clearable placeholder="请输入日期" />
</p>
</td>
<td colspan="2">
<p>合计:{{ form.workHourF }}</p>
<p class="input">
签字:<el-input clearable placeholder="请输入名字" />
签字:<el-input :disabled="basicData.isOnlyRead" clearable placeholder="请输入名字" />
</p>
<p class="input">
日期:<el-input clearable placeholder="请输入日期" />
日期:<el-input :disabled="basicData.isOnlyRead" clearable placeholder="请输入日期" />
</p>
</td>
<td>
<p>合计:{{ form.manufactureF }}</p>
<p class="input">
签字:<el-input clearable placeholder="请输入名字" />
签字:<el-input :disabled="basicData.isOnlyRead" clearable placeholder="请输入名字" />
</p>
<p class="input">
日期:<el-input clearable placeholder="请输入日期" />
日期:<el-input :disabled="basicData.isOnlyRead" clearable placeholder="请输入日期" />
</p>
</td>
<td>
......@@ -411,16 +417,16 @@
</p>
</el-form-item>
<p class="input">
签字:<el-input clearable placeholder="请输入名字" />
签字:<el-input :disabled="basicData.isOnlyRead" clearable placeholder="请输入名字" />
</p>
<p class="input">
日期:<el-input clearable placeholder="请输入日期" />
日期:<el-input :disabled="basicData.isOnlyRead" clearable placeholder="请输入日期" />
</p>
</td>
</tr>
</tbody>
</table>
<div class="table-btn">
<div v-if="!basicData.isOnlyRead" class="table-btn">
<el-button type="primary" size="small" :disabled="disab" @click="save">确定</el-button>
<el-button size="small" :disabled="disab" @click="handleClose">取消</el-button>
</div>
......@@ -546,9 +552,9 @@ export default {
} else if (!that.workHourMCount || !that.workHourMCost) {
that.workHourMLossCost = 0
}
if (that.curTotalLossCost) {
that.accounts = parseFloat(that.curTotalLossCost)
} else if (!that.curTotalLossCost) {
if (that.totalLossCost) {
that.accounts = parseFloat(that.totalLossCost)
} else if (!that.totalLossCost) {
that.accounts = 0
}
this.outLoss()
......@@ -639,7 +645,8 @@ export default {
const params = {
id: this.item.id,
operator: 'MODIFY', // 增加操作
...this.form
...this.form,
loss: this.form.accounts
}
this.$api.recursion('ScrapNoticeDoc', params).then((res) => {
this.item = res.items
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment